/*
  global.css - 全局样式重置与基础样式
  1. 全局元素重置，统一盒模型与排版。
  2. 移动端适配与触摸优化。
  3. Ant Design 组件基础适配。
  4. 滚动条美化。
  5. 响应式增强，适配不同屏幕尺寸。
*/
/* 1. 全局元素重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. 基础排版与字体设置 */
html,
body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, 'Hiragino Sans GB', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

html {
  height: 100%;
  min-height: 100vh;
}

body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
}

/* 桌面端确保滚动正常 */
@media (min-width: 769px) {

  html,
  body {
    overflow-y: auto;
  }
}

/* 3. 移动端触摸反馈优化 */
button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* 4. 移除移动端点击高亮 */
* {
  -webkit-tap-highlight-color: transparent;
}

/* 5. Ant Design 组件基础适配 */
.ant-btn,
.ant-input,
.ant-form-item {
  transition: all 0.2s;
}

/* 6. 滚动条样式美化 */
::-webkit-scrollbar {
  width: clamp(4px, 0.5vw, 8px);
  height: clamp(4px, 0.5vw, 8px);
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: clamp(2px, 0.3vw, 4px);
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: clamp(2px, 0.3vw, 4px);
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 7. 响应式增强：适配超小屏幕和大屏 */
@media (max-width: 375px) {

  html,
  body {
    font-size: 12px;
  }

  .ant-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .ant-input {
    font-size: 12px;
  }
}

@media (min-width: 1200px) {

  html,
  body {
    font-size: 16px;
  }
}

/* 8. 通用响应式断点，适配主流屏幕 */
@media (max-width: 1024px) {

  .header-container,
  .dropdown-content,
  .footerDescriation,
  .ltsrm_footer {
    max-width: 100vw;
    padding-left: clamp(12px, 2vw, 16px);
    padding-right: clamp(12px, 2vw, 16px);
  }

  .main-nav,
  .nav-list {
    gap: clamp(1rem, 1.5vw, 1.2rem);
  }

  .logo-container {
    width: clamp(90px, 12vw, 100px);
    height: clamp(55px, 7.5vh, 60px);
  }
}

@media (max-width: 768px) {

  .header-container,
  .dropdown-content,
  .footerDescriation,
  .ltsrm_footer {
    flex-direction: column !important;
    padding-left: clamp(6px, 1.5vw, 8px);
    padding-right: clamp(6px, 1.5vw, 8px);
    min-width: 0;
  }

  .main-nav,
  .nav-list {
    flex-direction: column;
    gap: clamp(0.4rem, 1vw, 0.5rem);
    margin-right: 0;
  }

  .logo-container {
    width: clamp(70px, 10vw, 80px);
    height: clamp(35px, 5vh, 40px);
  }

  .footerDescriation {
    width: 100%;
  }

  /* 移动端防止页面抖动 */
  html,
  body {
    overflow-x: hidden;
    width: 100vw;
    position: relative;
  }

  /* 稳定移动端视频和轮播高度 */
  video,
  .carousel,
  .carousel__track,
  .carousel__slide {
    max-height: 100vh;
  }
}

@media (max-width: 480px) {

  .header-container,
  .dropdown-content,
  .footerDescriation,
  .ltsrm_footer {
    padding-left: clamp(2px, 1vw, 4px);
    padding-right: clamp(2px, 1vw, 4px);
  }

  .logo-container {
    width: clamp(55px, 8vw, 60px);
    height: clamp(27px, 4vh, 30px);
  }

  .footerDescriation {
    width: 100%;
    font-size: clamp(11px, 1.5vw, 12px);
  }
}.df {
    display: flex;
}

.j-c {
    justify-content: center;
}

.a-c {
    align-items: center;
}

.d-c {
    display: flex;
    justify-content: center;
    align-items: center;
}

.d-c-c {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.d-a {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.d-b {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-a-c {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
}

.d-b-c {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.p-c {
    -webkit-transform: translateZ(0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.p-f {
    -webkit-transform: translateZ(0);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.f-c {
    display: flex;
    align-items: center;
}
/* 主容器与main区域响应式优化 */
#app {
  width: 100%;
  height: auto;
  min-height: 100vh;
  background-color: #f5f5f5;
  display: block;
}
main {
  width: 100%;
  min-height: auto;
  /* padding-top: 80px; */
  /* padding-bottom: 32px; */
}
@media (max-width: 1024px) {
main {
    padding-top: 60px;
    padding-bottom: 16px;
}
}
@media (max-width: 768px) {
main {
    padding-top: 0;
    padding-bottom: 8px;
}
}

/* 页面切换动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
/*
动画说明：
- 页面切换时应用淡入淡出效果，提升视觉体验。
*/
