/* ImageTwin移动端响应式样式 */

@media screen and (max-width: 768px) {
  
  /* 移动端字体调整 */
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 15px;
  }

  .section {
    padding: 40px 0;
  }

  /* 头部导航 */
  .main-nav {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Banner移动端优化 */
  .hero-banner {
    min-height: 100vh;
    margin-top: 75px;
  }

  .hero-content {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 17px;
    margin-bottom: 35px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .cta-btn {
    width: 100%;
    max-width: 100%;
    padding: 16px 30px;
    font-size: 17px;
    justify-content: center;
  }

  .hero-stats {
    gap: 35px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }

  /* 标题 */
  .section-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 35px;
  }

  /* 卡片 */
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }

  /* 按钮最小点击区域 */
  .btn,
  button,
  a.btn {
    min-height: 48px;
    min-width: 48px;
    padding: 14px 25px;
  }

  /* 表格移动端优化 */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    padding: 12px 10px;
    font-size: 14px;
    min-width: 100px;
  }

  /* 表格容器滚动提示 */
  table::after {
    content: '👉 左右滑动查看更多';
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: var(--text-gray);
    background: var(--bg-green);
  }

  /* 页脚 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* 回到顶部按钮 */
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  /* 文本对齐 */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
  }

  /* 图片响应式 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 间距优化 */
  p {
    margin-bottom: 15px;
  }

  ul, ol {
    margin-left: 15px;
    padding-left: 10px;
  }

  li {
    margin-bottom: 10px;
    line-height: 1.7;
  }

  /* 行高优化 */
  p, li, td {
    line-height: 1.7;
  }
}

/* 超小屏幕 */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .cta-btn {
    font-size: 16px;
    padding: 14px 25px;
  }

  .stat-number {
    font-size: 30px;
  }
}

/* 横屏优化 */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .hero-banner {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .hero-content {
    padding: 40px 15px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .hero-stats {
    gap: 25px;
  }
}

