/* 响应式样式 - 英雄区域优化版 */

/* 通用性能优化 */
@media screen and (max-width: 1400px) {
  :root {
    --transition-base: transform 0.3s ease, opacity 0.3s ease;
  }

  /* 减少GPU合成层 */
  .animate-on-scroll,
  .section-title,
  .feature-card,
  .download-card {
    transform: translateY(0);
  }

  /* 确保英雄区域在大多数屏幕上有足够的间距 */
  .hero-content {
    gap: 60px;
  }
}

/* 大型屏幕优化 */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-content h1 {
    font-size: 5rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 3.2rem;
  }

  .showcase-image img {
    max-height: 550px;
  }

  /* 超大屏幕英雄区域优化 */
  .hero-content {
    max-width: 1320px;
    gap: 150px;
    /* 超大屏幕间距更大 */
  }

  .hero-tagline {
    max-width: 600px;
  }

  .hero-device {
    max-width: 550px;
  }
}

/* 桌面端响应式设计 */
@media screen and (max-width: 1200px) {
  .container {
    max-width: 992px;
    padding: 0 30px;
  }

  /* 桌面端英雄区域优化 */
  .hero-content {
    gap: 80px;
    /* 减小间距但保持分离 */
    max-width: 992px;
  }

  .hero-tagline {
    max-width: 480px;
  }

  .hero-device {
    max-width: 420px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
  }

  .feature-card {
    padding: 30px;
  }

  .showcase-content {
    padding: 30px;
  }

  .tab-content.active {
    gap: 40px;
  }

  .showcase-image {
    margin-right: 0;
  }

  .showcase-description {
    padding: 0 20px;
  }

  /* 简化卡片效果 */
  .card-3d:hover {
    transform: translateY(-10px);
  }

  /* 移除复杂动画效果 */
  .highlight-sweep::before {
    display: none;
  }

  .key-stats {
    gap: 30px;
  }
}

/* 大平板端响应式设计 */
@media screen and (max-width: 1024px) {
  .hero-content {
    gap: 60px;
    /* 进一步减小间距但仍保持两列 */
    max-width: 900px;
  }

  .hero-tagline {
    max-width: 440px;
  }

  .hero-device {
    max-width: 400px;
  }

  .fullscreen-hero {
    padding-top: 75px;
  }
}

/* 平板端响应式设计 - 从992px开始改为垂直布局 */
@media screen and (max-width: 992px) {
  .container {
    max-width: 768px;
    padding: 0 25px;
  }

  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  /* 平板端英雄区域优化 - 转为垂直布局 */
  .hero-content {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    padding: 0 30px;
  }

  .hero-tagline {
    max-width: 600px;
    /* 垂直布局时可以更宽 */
    min-width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 0;
    /* 移除水平布局时的右内边距 */
    margin-top: 40px;
    /* 添加顶部间距 */
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-device {
    max-width: 500px;
    min-width: auto;
    margin: 0 auto;
    padding-left: 0;
    /* 移除水平布局时的左内边距 */
  }

  .key-stats {
    width: 100%;
    justify-content: center;
    gap: 30px;
  }

  .hero-container {
    padding: 30px 0 70px;
  }

  /* 优化其他区域 */
  .solution-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .solution-problem,
  .solution-answer {
    align-items: center;
  }

  .solution-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }

  .tab-content.active {
    flex-direction: column;
  }

  .showcase-description {
    text-align: center;
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .qr-download {
    flex-direction: column;
    text-align: center;
  }

  .qr-code {
    margin: 0 auto 1.5rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-logo {
    text-align: center;
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    justify-content: space-around;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .tab-content.active {
    flex-direction: column;
    gap: 40px;
  }

  .showcase-image {
    min-width: auto;
    margin: 0 auto;
  }

  .showcase-description {
    padding: 0;
  }

  /* 平板优化：完全禁用视差和复杂动画 */
  .hero-image img,
  .showcase-image img {
    transform: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* 平板设备上隐藏功能指示器 */
  .feature-indicators {
    display: none;
  }
}

/* 移动端响应式设计 */
@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  header .container {
    padding: 0 15px;
  }

  /* 移动端侧边栏导航样式完全由mobile-nav.css控制 */

  .nav-links a.active {
    background: var(--primary-gradient) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25) !important;
    border-color: transparent !important;
    /* 确保文字颜色不被覆盖 */
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
  }

  .nav-links a.active::before {
    content: "●" !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    color: white !important;
  }

  /* 移除移动端侧边栏中选中链接的底部线条 */
  .nav-links a.active::after {
    display: none !important;
  }

  .nav-links a.nav-cta {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    margin: 20px 16px 16px 16px !important;
    border-radius: 16px !important;
    text-align: center !important;
    font-weight: 700 !important;
    border: none !important;
    width: calc(100% - 32px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    justify-content: center !important;
    padding: 20px 24px !important;
    font-size: 1.1rem !important;
    /* 确保文字颜色始终为白色 */
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
  }

  .nav-links a.nav-cta::before {
    content: "⬇" !important;
    margin-right: 8px !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    color: white !important;
    font-size: 1rem !important;
    animation: bounce 2s infinite !important;
  }

  .nav-links a.nav-cta::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
  }

  .nav-links a.nav-cta:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateX(8px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
  }

  .nav-links a.nav-cta:hover::after {
    left: 100% !important;
  }

  @keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }

    40% {
      transform: translateY(-3px);
    }

    60% {
      transform: translateY(-2px);
    }
  }

  .nav-links a:hover {
    background: rgba(37, 99, 235, 0.2) !important;
    transform: translateY(-2px) !important;
  }

  .nav-links a.active {
    background: var(--primary-color) !important;
    color: white !important;
  }

  .nav-links a.nav-cta {
    background: var(--primary-color) !important;
    color: white !important;
    margin-top: 10px !important;
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
  }

  .nav-links a.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) scale(1.05) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
  }

  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 100 !important;
    width: 48px !important;
    height: 48px !important;
    padding: 12px !important;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05)) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-radius: 16px !important;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.08),
      0 2px 6px rgba(37, 99, 235, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: hamburgerEntrance 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards !important;
  }

  @keyframes hamburgerEntrance {
    0% {
      opacity: 0;
      transform: scale(0.3) rotate(180deg);
    }

    60% {
      opacity: 1;
      transform: scale(1.1) rotate(-10deg);
    }

    100% {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }
  }

  /* 光泽扫过效果 - 仅普通状态使用 */
  .hamburger:not(.active)::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
  }

  .hamburger:not(.active):hover::before {
    left: 100% !important;
  }

  /* 移除默认状态的角标，避免突兀的红色点 */

  .hamburger:hover {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04)) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.12),
      0 4px 12px rgba(37, 99, 235, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }



  .hamburger:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.1),
      0 1px 4px rgba(37, 99, 235, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  }

  /* 汉堡菜单线条样式优化 - 移动端使用深色线条 */
  .hamburger span {
    display: block !important;
    width: 24px !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary-color), #4f46e5) !important;
    /* 移动端使用深色线条 */
    border-radius: 2px !important;
    margin: 2px 0 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform-origin: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
  }

  /* 线条悬停高亮效果 - 仅在非激活状态 */
  .hamburger:not(.active) span::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, #60a5fa, var(--primary-color)) !important;
    /* 移动端悬停：蓝色渐变 */
    border-radius: 2px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }

  .hamburger:not(.active):hover span::before {
    opacity: 1 !important;
  }

  /* 激活状态的X形变换 - 最高优先级 */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
  }

  /* 确保激活状态覆盖所有其他样式 */
  .glass-header .hamburger.active span,
  .glass-header.scrolled .hamburger.active span {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
  }

  /* 激活状态的线条不显示悬停效果 */
  .hamburger.active span::before {
    opacity: 0 !important;
  }

  /* 修复激活状态第2条线的隐藏问题 */
  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
    background: transparent !important;
  }

  /* 确保激活状态的第1和第3条线正确显示 */
  .hamburger.active span:nth-child(1),
  .hamburger.active span:nth-child(3) {
    opacity: 1 !important;
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
  }

  /* 激活状态的按钮整体样式 - 移除动画效果 */
  .hamburger.active {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05)) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    box-shadow:
      0 6px 16px rgba(239, 68, 68, 0.15),
      0 2px 8px rgba(239, 68, 68, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }

  /* 移除激活状态的脉冲环效果，避免红色边框 */

  /* 移除激活状态的角标，X形线条已足够表示状态 */

  /* 移除不再使用的脉冲动画 */

  /* 移动端英雄区域进一步优化 */
  .fullscreen-hero {
    padding-top: 60px;
    min-height: auto;
    /* 移动端不需要全屏高度 */
    height: auto;
    /* 让高度自适应内容 */
  }

  .hero-container {
    padding: 40px 0;
  }

  .hero-content {
    margin-bottom: 16px;
    gap: 20px;
    padding: 0 15px;
  }

  .hero-device {
    max-width: 90%;
  }

  .hero-tagline {
    max-width: 100%;
    width: 100%;
    margin-top: 20px;
  }

  .hero-tagline h1 {
    font-size: 2.5rem;
  }

  .hero-tagline h2 {
    font-size: 1.5rem;
  }

  .hero-tagline p {
    font-size: 1rem;
  }

  .key-stats {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
  }

  .stat-separator {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    display: block;
    margin: 0;
    text-align: center;
    /* 确保按钮文字居中 */
  }

  /* 移动端其他优化 */
  .key-metrics {
    flex-direction: column;
    gap: 1.5rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-slider {
    padding: 0;
  }

  .testimonials-stats {
    flex-direction: column;
    text-align: center;
  }

  .testimonials-stats .stat-item {
    border: none;
    padding: 1rem 0;
  }

  .alternatives-container {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links-column {
    width: 100%;
    text-align: center;
  }

  .footer-links-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* 移除复杂样式效果 */
  .section-title:after {
    width: 60px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* 标签栏溢出处理 */
  .showcase-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px;
    gap: 10px;
    width: 90%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    top: 65px;
  }

  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .showcase-content {
    padding: 15px;
  }

  .showcase-description h3 {
    font-size: 1.5rem;
  }

  /* 应用商店按钮 */
  .store-buttons {
    justify-content: center;
    gap: 10px;
  }

  /* 下载卡片调整 */
  .download-card {
    min-width: 100%;
    padding: 25px 15px;
  }

  /* 页脚链接 */
  .footer-links {
    margin-top: 2rem;
    gap: 2rem;
  }

  /* 在移动设备上隐藏向下滚动指示器 */
  .scroll-indicator {
    display: none;
  }

  /* 弧形分隔线调整 */
  .hero-divider {
    bottom: -1px;
    /* 确保没有缝隙 */
  }
}

/* 小型移动设备优化 */
@media screen and (max-width: 480px) {
  .hero-content {
    padding: 0 10px;
  }

  .hero-tagline h1 {
    font-size: 2rem;
  }

  .hero-tagline h2 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .showcase-tabs {
    padding: 8px;
    width: 100%;
  }

  .tab-btn {
    padding: 6px 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-device {
    max-width: 100%;
  }

  .stat-value {
    font-size: 2rem;
  }

  /* 进一步简化小型设备的布局 */
  .hero-container {
    padding: 30px 0;
  }

  .hero-content {
    gap: 30px;
  }

  .hero-tagline .pre-title {
    font-size: 0.9rem;
  }
}

/* 非常小的移动设备 */
@media screen and (max-width: 360px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-tagline .pre-title {
    font-size: 0.8rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* 打印样式 */
@media print {

  header,
  footer,
  .cta-buttons,
  .showcase-tabs,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
    margin: 0;
    padding: 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  a {
    text-decoration: none;
    color: black;
  }

  .section-title {
    font-size: 18pt;
    margin: 20pt 0;
  }

  .section-title:after {
    display: none;
  }

  .tab-content {
    display: block;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* 减少动画 */
/* 减少动画偏好设置 - 使用高优先级选择器 */
@media (prefers-reduced-motion: reduce) {
  html body * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    animation-delay: 0.01ms;
    scroll-behavior: auto;
  }

  html body .slide-up,
  html body .slide-right,
  html body .fade-in,
  html body .animate-on-scroll,
  html body .device-container,
  html body .perspective-effect {
    animation: none;
    transform: none;
    transition: none;
  }

  html body .hero-bg,
  html body .download::before,
  html body .showcase::before,
  html body .about::before {
    animation: none;
    transition: none;
  }
}

/* 高DPI屏幕优化 */
@media screen and (-webkit-min-device-pixel-ratio: 2),
screen and (min-resolution: 192dpi) {

  .feature-card,
  .download-card,
  .showcase-content,
  .contact-info,
  .github-card {
    border: 0.5px solid rgba(0, 0, 0, 0.05);
  }

  .btn-primary {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  body {
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* 触摸设备优化 */
@media (hover: none) {

  /* 移除所有悬停效果 - 使用高优先级选择器 */
  html body *:hover {
    transform: none;
    box-shadow: none;
    background-position: initial;
    transform-style: initial;
    transition: none;
  }

  /* 扩大按钮点击区域 */
  .btn,
  .tab-btn,
  .nav-links a {
    padding: 12px 20px;
  }

  .footer-links-column a {
    padding: 8px 0;
    display: inline-block;
  }

  /* 触摸设备上的小程序模块优化 - 使用高优先级选择器 */
  html body .iphone-container:hover {
    transform: none;
  }

  html body .iphone-frame {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.15);
  }

  html body .testimonial-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }

  /* 确保触摸设备上的点击区域足够大 */
  .testimonial-card {
    min-height: 60px;
    padding: 16px;
  }

  .qr-container-apple {
    min-height: 120px;
    padding: 16px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f3f4f6;
    --text-secondary: #e5e7eb;
    --text-tertiary: #9ca3af;
    --surface-light: #1f2937;
    --surface-medium: #111827;
    --surface-dark: #0f172a;
    --background: #111827;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  }

  body {
    background-color: var(--background);
    color: var(--text-primary);
  }

  header {
    background: rgba(17, 24, 39, 0.8);
  }

  header.scrolled {
    background: rgba(17, 24, 39, 0.95);
  }

  .logo h1 {
    color: white;
  }

  .feature-card,
  .showcase-content,
  .contact-info,
  .github-card {
    background: var(--surface-light);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .btn-secondary {
    background: var(--surface-medium);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .btn-secondary:hover {
    background: var(--surface-light);
  }

  code {
    background: var(--surface-dark);
    color: #e5e7eb;
  }

  .hero,
  .showcase,
  .about {
    background: linear-gradient(135deg,
        var(--surface-medium) 0%,
        var(--background) 100%);
  }

  section {
    border-color: rgba(255, 255, 255, 0.05);
  }
}

/* 内容可见性优化 - 性能增强 */
@supports (content-visibility: auto) {
  section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
  }
}

/* 让移动端导航同时兼容 .active 与 .open */
@media screen and (max-width: 768px) {
  .nav-links.open {
    transform: translateX(0);
  }
}

/* 确保PC端完全隐藏移动端元素 - 使用更高特异性 */
@media screen and (min-width: 769px) {

  /* 隐藏汉堡菜单按钮 */
  header .hamburger,
  .glass-header .hamburger,
  nav .hamburger,
  .hamburger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* 隐藏移动端侧边栏相关元素 */
  .nav-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* 联系我们页面响应式 */
@media screen and (max-width: 1200px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-content {
    padding-top: 130px;
  }
}

@media screen and (max-width: 768px) {
  .breadcrumb {
    margin: 10px 0 20px;
  }

  .map-info {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }
}

/* 智车互联小程序模块移动端优化 */
@media screen and (max-width: 768px) {

  /* 小程序模块整体布局优化 */
  .apple-miniprogram-section {
    padding: 60px 0 30px 0 !important;
    /* 减少底部间距 */
  }

  /* 小程序展示区域改为垂直布局 */
  .miniprogram-showcase .showcase-content {
    flex-direction: column !important;
    gap: 40px !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* 文本区域优化 */
  .miniprogram-showcase .showcase-text {
    max-width: 100% !important;
    order: 1 !important;
    /* 文本在上方 */
  }

  /* 手机展示区域优化 */
  .miniprogram-showcase .showcase-visual {
    width: 100% !important;
    max-width: 320px !important;
    order: 2 !important;
    /* 手机在下方 */
    margin-bottom: 30px !important;
    /* 减少底部间距 */
  }

  /* 手机容器调整间距 */
  .iphone-container {
    margin-bottom: 20px !important;
    /* 进一步减少间距 */
    padding-bottom: 10px !important;
  }

  /* 功能亮点网格优化 - 移动端2列布局 */
  .feature-highlights {
    grid-template-columns: repeat(2, 1fr) !important;
    /* 改为2列 */
    gap: 1.5rem !important;
    margin-bottom: 2.5rem !important;
  }

  /* 功能亮点项目移动端优化 */
  .highlight-item {
    display: flex !important;
    flex-direction: column !important;
    /* 垂直排列 */
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 122, 255, 0.1) !important;
  }

  /* 功能图标优化 - 使用高优先级选择器 */
  html body .highlight-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }

  /* 功能内容文字优化 - 使用高优先级选择器 */
  html body .highlight-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  html body .highlight-content p {
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
    color: #666;
  }

  /* CTA区域垂直布局 */
  .miniprogram-cta {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
    margin-top: 40px !important;
  }

  /* 二维码区域居中 */
  .qr-section {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* 评论区域调整间距 */
  .apple-testimonials {
    margin-top: 80px !important;
    /* 增加与手机模型的间距 */
    padding-top: 40px !important;
    position: relative;
    z-index: 10;
  }

  /* 在评论区域前添加适度的分隔 */
  .apple-testimonials::before {
    content: '' !important;
    position: absolute !important;
    top: -10px !important;
    left: 0 !important;
    right: 0 !important;
    height: 10px !important;
    background: transparent !important;
    display: block !important;
  }

  /* 评论卡片网格优化 */
  .apple-testimonials .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
    padding: 0 20px !important;
  }

  /* 评论卡片内容优化 */
  .testimonial-card {
    padding: 20px !important;
    margin-bottom: 16px !important;
    /* 增加卡片间距 */
  }

  /* 手机模型尺寸调整 */
  .iphone-frame {
    width: 220px !important;
    height: 440px !important;
    padding: 5px !important;
    /* 相应调整内边距 */
    border-radius: 32px !important;
    /* 相应调整圆角 */
    box-shadow:
      0 30px 60px rgba(0, 0, 0, 0.25),
      0 15px 30px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    /* 调整阴影比例 */
  }

  /* 手机屏幕圆角调整 */
  .iphone-screen {
    border-radius: 27px !important;
    /* 相应调整屏幕圆角 */
  }

  /* Home指示器调整 */
  .iphone-home-indicator {
    width: 95px !important;
    /* 相应缩小 */
    height: 2.5px !important;
    bottom: 5px !important;
  }

  /* 设备阴影调整 */
  .device-shadow {
    width: 240px !important;
    /* 相应调整阴影尺寸 */
    height: 460px !important;
    border-radius: 40px !important;
  }

  /* 功能展示设备样式调整 */
  .feature-device {
    width: 240px !important;
    height: 480px !important;
    padding: 5px !important;
    border-radius: 32px !important;
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.2),
      0 12px 25px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  .feature-device img {
    border-radius: 27px !important;
  }

  .feature-device::after {
    width: 95px !important;
    height: 2.5px !important;
    bottom: 5px !important;
  }
}

@media screen and (max-width: 480px) {

  /* 小屏设备进一步优化 */
  .apple-miniprogram-section {
    padding: 40px 0 20px 0 !important;
    /* 减少底部间距 */
  }

  /* 小程序展示区域间距调整 */
  .miniprogram-showcase .showcase-content {
    gap: 24px !important;
  }

  .miniprogram-showcase .showcase-visual {
    margin-bottom: 20px !important;
    /* 减少底部间距 */
  }

  /* 手机容器小屏优化 */
  .iphone-container {
    margin-bottom: 15px !important;
    /* 进一步减少间距 */
    padding-bottom: 8px !important;
  }

  /* 功能亮点改为单列布局 */
  .feature-highlights {
    grid-template-columns: 1fr !important;
    /* 小屏改为单列 */
    gap: 1rem !important;
  }

  /* 功能亮点项目小屏优化 */
  .highlight-item {
    flex-direction: row !important;
    /* 小屏改为水平布局 */
    align-items: center !important;
    text-align: left !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  .highlight-icon {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
  }

  /* 评论区域进一步优化 */
  .apple-testimonials {
    margin-top: 60px !important;
    /* 增加间距 */
    padding-top: 30px !important;
  }

  /* 评论区域前的分隔调整 */
  .apple-testimonials::before {
    top: -8px !important;
    height: 8px !important;
  }

  /* 评论卡片小屏优化 */
  .testimonial-card {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  /* 手机模型小屏尺寸 */
  .iphone-frame {
    width: 160px !important;
    height: 320px !important;
    padding: 4px !important;
    /* 小屏幕内边距 */
    border-radius: 24px !important;
    /* 小屏幕圆角 */
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.25),
      0 10px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    /* 小屏幕阴影 */
  }

  /* 小屏幕手机屏幕圆角调整 */
  .iphone-screen {
    border-radius: 20px !important;
    /* 小屏幕屏幕圆角 */
  }

  /* 小屏幕Home指示器调整 */
  .iphone-home-indicator {
    width: 70px !important;
    /* 进一步缩小 */
    height: 2px !important;
    bottom: 4px !important;
  }

  /* 小屏幕设备阴影调整 */
  .device-shadow {
    width: 180px !important;
    /* 小屏幕阴影尺寸 */
    height: 340px !important;
    border-radius: 30px !important;
  }

  /* 小屏幕功能展示设备样式调整 */
  .feature-device {
    width: 200px !important;
    height: 400px !important;
    padding: 4px !important;
    border-radius: 24px !important;
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.2),
      0 10px 20px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  .feature-device img {
    border-radius: 20px !important;
  }

  .feature-device::after {
    width: 70px !important;
    height: 2px !important;
    bottom: 4px !important;
  }

  /* 二维码容器小屏优化 */
  .qr-container-apple {
    padding: 1rem !important;
    max-width: 180px !important;
  }
}

/* Apple风格界面展示模块移动端优化 */
@media screen and (max-width: 768px) {

  /* 界面展示区域整体优化 */
  .apple-showcase-section {
    padding: 60px 0 !important;
  }

  /* Apple风格展示项目 - 移动端垂直布局 */
  .showcase-item.apple-style-showcase .showcase-content {
    flex-direction: column !important;
    gap: 40px !important;
    text-align: center !important;
    align-items: center !important;
    max-width: 100% !important;
  }

  /* 反向布局在移动端也保持正常顺序 */
  .showcase-item.apple-style-showcase.reverse .showcase-content {
    flex-direction: column !important;
  }

  /* Apple风格 - 图片在上，文字在下 */
  .showcase-item.apple-style-showcase .showcase-visual {
    order: 1 !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .showcase-item.apple-style-showcase .showcase-text {
    order: 2 !important;
    max-width: 100% !important;
    padding: 0 30px !important;
  }

  /* Apple风格文本区域优化 */
  .showcase-item.apple-style-showcase .showcase-text h3 {
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.01em !important;
  }

  .showcase-item.apple-style-showcase .showcase-text p {
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
    color: #86868b !important;
    margin-bottom: 24px !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Apple风格徽章优化 */
  .showcase-item.apple-style-showcase .showcase-badge {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #007AFF !important;
    background: rgba(0, 122, 255, 0.1) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    margin-bottom: 16px !important;
    display: inline-block !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
  }

  /* Apple风格设备展示优化 */
  .showcase-item.apple-style-showcase .device-frame-showcase {
    max-width: 320px !important;
    margin: 0 auto !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.15),
      0 8px 24px rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%) !important;
    padding: 8px !important;
  }

  .showcase-item.apple-style-showcase .device-frame-showcase img {
    border-radius: 16px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Apple风格设备展示容器 */
  .showcase-item.apple-style-showcase .device-showcase {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
  }

  /* Apple风格功能点列表 */
  .showcase-item.apple-style-showcase .showcase-features {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 32px !important;
    padding: 0 20px !important;
  }

  .showcase-item.apple-style-showcase .feature-point {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(0, 122, 255, 0.1) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: #1d1d1f !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    flex: 0 0 auto !important;
    min-width: 140px !important;
  }

  .showcase-item.apple-style-showcase .feature-point:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .showcase-item.apple-style-showcase .feature-point .point-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    background: rgba(0, 122, 255, 0.1) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .showcase-item.apple-style-showcase .feature-point .point-icon i {
    font-size: 0.75rem !important;
    color: #007AFF !important;
  }

  /* 展示标题和描述优化 */
  .showcase-text h3 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }

  .showcase-text p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  /* 展示徽章优化 */
  .showcase-badge {
    font-size: 0.875rem !important;
    padding: 6px 12px !important;
    margin-bottom: 12px !important;
  }
}

@media screen and (max-width: 480px) {

  /* Apple风格小屏设备优化 */
  .apple-showcase-section {
    padding: 40px 0 !important;
  }

  /* Apple风格展示内容间距调整 */
  .showcase-item.apple-style-showcase .showcase-content {
    gap: 32px !important;
  }

  /* Apple风格文本小屏优化 */
  .showcase-item.apple-style-showcase .showcase-text {
    padding: 0 20px !important;
  }

  .showcase-item.apple-style-showcase .showcase-text h3 {
    font-size: 1.75rem !important;
    margin-bottom: 12px !important;
  }

  .showcase-item.apple-style-showcase .showcase-text p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
  }

  .showcase-item.apple-style-showcase .showcase-badge {
    font-size: 0.8125rem !important;
    padding: 6px 12px !important;
  }

  /* Apple风格设备展示小屏调整 */
  .showcase-item.apple-style-showcase .showcase-visual {
    max-width: 280px !important;
  }

  .showcase-item.apple-style-showcase .device-frame-showcase {
    max-width: 260px !important;
    padding: 6px !important;
  }

  .showcase-item.apple-style-showcase .device-showcase {
    padding: 15px !important;
  }

  /* Apple风格功能点小屏优化 */
  .showcase-item.apple-style-showcase .showcase-features {
    gap: 12px !important;
    margin-top: 24px !important;
    padding: 0 15px !important;
  }

  .showcase-item.apple-style-showcase .feature-point {
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    border-radius: 20px !important;
    min-width: 120px !important;
  }

  .showcase-item.apple-style-showcase .feature-point .point-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .showcase-item.apple-style-showcase .feature-point .point-icon i {
    font-size: 0.6875rem !important;
  }
}

/* Apple风格功能特点区域移动端优化 */
@media screen and (max-width: 768px) {

  /* 功能特点整体区域 */
  .apple-features-section {
    padding: 60px 0 10px !important;
  }

  /* Apple风格功能展示区域 */
  .feature-hero.apple-style-feature .feature-hero-content {
    flex-direction: column !important;
    gap: 40px !important;
    text-align: center !important;
    align-items: center !important;
  }

  /* 图片在上，文字在下 */
  .feature-hero.apple-style-feature .feature-hero-visual {
    order: 1 !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .feature-hero.apple-style-feature .feature-hero-text {
    order: 2 !important;
    max-width: 100% !important;
    padding: 0 30px !important;
  }

  /* Apple风格功能文本优化 */
  .feature-hero.apple-style-feature .feature-hero-text h3 {
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.01em !important;
  }

  .feature-hero.apple-style-feature .feature-hero-text p {
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
    color: #86868b !important;
    margin-bottom: 32px !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Apple风格功能徽章 */
  .feature-hero.apple-style-feature .feature-badge {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #007AFF !important;
    background: rgba(0, 122, 255, 0.1) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    margin-bottom: 16px !important;
    display: inline-block !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
  }

  /* Apple风格功能列表 */
  .feature-hero-list.apple-style-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 24px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* Apple风格功能卡片 */
  .feature-item-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%) !important;
    border: 1px solid rgba(0, 122, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.06),
      0 4px 16px rgba(0, 122, 255, 0.04) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
  }

  .feature-item-card:hover {
    transform: translateY(-4px) !important;
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.1),
      0 8px 24px rgba(0, 122, 255, 0.08) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border-color: rgba(0, 122, 255, 0.12) !important;
  }

  /* Apple风格图标 */
  .feature-item-card .list-icon {
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.08) 100%) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.1) !important;
  }

  .feature-item-card .list-icon i {
    font-size: 1.5rem !important;
    color: #007AFF !important;
  }

  /* Apple风格文字内容 */
  .feature-item-card .list-content h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }

  .feature-item-card .list-content p {
    font-size: 1rem !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }
}

/* PC端功能特点紧凑布局优化 */
@media screen and (min-width: 1024px) {

  /* 功能展示区域PC端优化 */
  .feature-hero.apple-style-feature .feature-hero-content {
    flex-direction: row !important;
    gap: 60px !important;
    align-items: center !important;
    text-align: left !important;
  }

  /* PC端图片在左，文字在右 */
  .feature-hero.apple-style-feature .feature-hero-visual {
    order: 1 !important;
    width: 45% !important;
    max-width: 500px !important;
    margin: 0 !important;
  }

  .feature-hero.apple-style-feature .feature-hero-text {
    order: 2 !important;
    width: 55% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  /* PC端功能列表2列网格布局 */
  .feature-hero-list.apple-style-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
    margin-top: 32px !important;
    max-width: 500px !important;
  }

  /* PC端功能卡片紧凑样式 */
  .feature-item-card {
    padding: 16px !important;
    border-radius: 16px !important;
    gap: 12px !important;
    min-height: auto !important;
  }

  .feature-item-card .list-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  .feature-item-card .list-icon i {
    font-size: 1.25rem !important;
  }

  .feature-item-card .list-content h4 {
    font-size: 1.125rem !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
  }

  .feature-item-card .list-content p {
    font-size: 0.9375rem !important;
    line-height: 1.3 !important;
    color: #666 !important;
  }

  /* PC端悬停效果优化 */
  .feature-item-card:hover {
    transform: translateY(-2px) !important;
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.08),
      0 6px 18px rgba(0, 122, 255, 0.06) !important;
  }

  /* PC端文本优化 */
  .feature-hero.apple-style-feature .feature-hero-text h3 {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
  }

  .feature-hero.apple-style-feature .feature-hero-text p {
    font-size: 1.25rem !important;
    margin-bottom: 28px !important;
    max-width: 480px !important;
  }

  .feature-hero.apple-style-feature .feature-badge {
    margin-bottom: 20px !important;
  }
}

/* 功能特点响应式 */
@media screen and (max-width: 1024px) {
  .features-section {
    padding: 60px 0;
  }

  /* 嵌套在apple-features-section内的features-section不需要额外padding */
  .apple-features-section .features-section {
    padding: 0;
  }

  .features-content {
    padding: 0 30px;
  }



  .feature-category {
    margin-bottom: 50px;
  }

  .feature-category:last-child {
    margin-bottom: 0 !important;
  }

  .category-title {
    font-size: 19px;
    margin-bottom: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .feature-card {
    padding: 18px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 9px;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  .feature-card h4 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .features-section {
    padding: 50px 0;
  }

  /* 嵌套在apple-features-section内的features-section不需要额外padding */
  .apple-features-section .features-section {
    padding: 0;
  }

  .features-content {
    padding: 0 20px;
  }



  .feature-category {
    margin-bottom: 40px;
  }

  .feature-category:last-child {
    margin-bottom: 0 !important;
  }

  .category-title {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .feature-card {
    padding: 16px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .feature-card p {
    font-size: 13px;
    line-height: 1.3;
  }
}

@media screen and (max-width: 480px) {
  .features-section {
    padding: 40px 0;
  }

  /* 嵌套在apple-features-section内的features-section不需要额外padding */
  .apple-features-section .features-section {
    padding: 0;
  }

  .features-content {
    padding: 0 15px;
  }



  .feature-category {
    margin-bottom: 32px;
  }

  .feature-category:last-child {
    margin-bottom: 0 !important;
  }

  .category-title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 14px;
    border-radius: 10px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 7px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .feature-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .feature-card p {
    font-size: 12px;
    line-height: 1.25;
  }
}

.feature-card.large .feature-content h3 {
  font-size: 1rem;
}

.feature-card.large .feature-content p {
  font-size: 0.8125rem;
}
}

@media screen and (max-width: 480px) {

  /* Apple风格功能特点小屏优化 */
  .apple-features-section {
    padding: 40px 0 5px !important;
  }

  /* 功能展示内容间距调整 */
  .feature-hero.apple-style-feature .feature-hero-content {
    gap: 32px !important;
  }

  /* 功能文本小屏优化 */
  .feature-hero.apple-style-feature .feature-hero-text {
    padding: 0 20px !important;
  }

  .feature-hero.apple-style-feature .feature-hero-text h3 {
    font-size: 1.75rem !important;
    margin-bottom: 12px !important;
  }

  .feature-hero.apple-style-feature .feature-hero-text p {
    font-size: 1rem !important;
    margin-bottom: 24px !important;
  }

  .feature-hero.apple-style-feature .feature-badge {
    font-size: 0.8125rem !important;
    padding: 6px 12px !important;
  }

  /* 功能视觉区域小屏调整 */
  .feature-hero.apple-style-feature .feature-hero-visual {
    max-width: 280px !important;
  }

  /* 功能卡片小屏优化 */
  .feature-item-card {
    padding: 16px !important;
    border-radius: 16px !important;
    gap: 12px !important;
  }

  .feature-item-card .list-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
  }

  .feature-item-card .list-icon i {
    font-size: 1.25rem !important;
  }

  .feature-item-card .list-content h4 {
    font-size: 1.125rem !important;
    margin-bottom: 4px !important;
  }

  .feature-item-card .list-content p {
    font-size: 0.9375rem !important;
    line-height: 1.3 !important;
  }

  /* 功能列表间距调整 */
  .feature-hero-list.apple-style-list {
    gap: 12px !important;
    margin-top: 20px !important;
  }
}

/* 触摸设备功能特点区域优化 */
@media (hover: none) and (pointer: coarse) {

  /* 移除悬停效果，优化触摸体验 */
  .feature-item-card:hover {
    transform: none !important;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.06),
      0 4px 16px rgba(0, 122, 255, 0.04) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%) !important;
    border-color: rgba(0, 122, 255, 0.08) !important;
  }

  /* 触摸反馈效果 */
  .feature-item-card:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }

  /* 确保触摸区域足够大 */
  .feature-item-card {
    min-height: 80px !important;
    cursor: default !important;
  }
}

/* 车机设备展示移动端优化 */
@media screen and (max-width: 768px) {
  .car-device-container {
    padding: 15px !important;
    perspective: none !important;
  }

  .car-device-frame {
    max-width: 350px !important;
    transform: none !important;
  }

  /* 核心优势区域的车机设备移动端优化 */
  .car-device-container.hero-device {
    padding: 20px !important;
  }

  .car-device-container.hero-device .car-device-frame {
    max-width: 450px !important;
    /* 移动端仍然比普通设备大 */
  }

  .car-device-container.hero-device .device-bezel {
    padding: 16px !important;
    border-radius: 24px !important;
  }

  .car-device-container.hero-device .device-bezel::before {
    width: 60px !important;
    height: 4px !important;
    top: 8px !important;
  }

  .car-device-container.hero-device .device-screen {
    border-radius: 14px !important;
    overflow: hidden !important;
    /* 确保大尺寸移动端正确裁剪 */
    clip-path: inset(0 round 14px) !important;
    /* 移动端强制裁剪 */
  }

  .car-device-container.hero-device .screen-content {
    border-radius: inherit !important;
    /* 继承容器圆角 */
  }

  .car-device-container.hero-device .device-reflection {
    border-radius: 24px !important;
  }

  .car-device-frame:hover {
    transform: none !important;
  }

  .device-bezel {
    padding: 12px !important;
    border-radius: 20px !important;
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.25),
      0 6px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
  }

  .device-bezel::before {
    width: 50px !important;
    height: 3px !important;
    top: 6px !important;
  }

  .device-screen {
    border-radius: 10px !important;
    overflow: hidden !important;
    /* 确保移动端也正确裁剪 */
    clip-path: inset(0 round 10px) !important;
    /* 移动端强制裁剪 */
  }

  .screen-content {
    border-radius: inherit !important;
    /* 继承容器圆角 */
  }

  .car-device-frame:hover .screen-content {
    transform: none !important;
  }

  .device-reflection {
    border-radius: 20px !important;
  }
}

@media screen and (max-width: 480px) {
  .car-device-container {
    padding: 10px !important;
  }

  .car-device-frame {
    max-width: 280px !important;
  }

  /* 核心优势区域小屏优化 */
  .car-device-container.hero-device {
    padding: 15px !important;
  }

  .car-device-container.hero-device .car-device-frame {
    max-width: 350px !important;
    /* 小屏仍然保持较大尺寸 */
  }

  .car-device-container.hero-device .device-bezel {
    padding: 12px !important;
    border-radius: 20px !important;
  }

  .car-device-container.hero-device .device-bezel::before {
    width: 50px !important;
    height: 3px !important;
    top: 6px !important;
  }

  .car-device-container.hero-device .device-screen {
    border-radius: 12px !important;
    overflow: hidden !important;
    /* 确保小屏大尺寸正确裁剪 */
    clip-path: inset(0 round 12px) !important;
    /* 小屏强制裁剪 */
  }

  .car-device-container.hero-device .screen-content {
    border-radius: inherit !important;
    /* 继承容器圆角 */
  }

  .car-device-container.hero-device .device-reflection {
    border-radius: 20px !important;
  }

  .device-bezel {
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .device-bezel::before {
    width: 40px !important;
    height: 2px !important;
    top: 5px !important;
  }

  .device-screen {
    border-radius: 8px !important;
    overflow: hidden !important;
    /* 确保小屏也正确裁剪 */
    clip-path: inset(0 round 8px) !important;
    /* 小屏强制裁剪 */
  }

  .screen-content {
    border-radius: inherit !important;
    /* 继承容器圆角 */
  }

  .device-reflection {
    border-radius: 16px !important;
  }
}

/* 触摸设备车机展示优化 */
@media (hover: none) and (pointer: coarse) {
  .car-device-frame:hover {
    transform: none !important;
  }

  .car-device-frame:hover .screen-content {
    transform: none !important;
  }

  /* 触摸反馈 */
  .car-device-frame:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
}

/* 小程序文字显示优化 */
@media screen and (max-width: 768px) {

  /* 小程序标题区域优化 */
  .miniprogram-header {
    margin-bottom: 40px !important;
    padding: 0 20px !important;
  }

  .miniprogram-title {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }

  .miniprogram-subtitle {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }

  .miniprogram-description {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  /* 功能亮点文字优化 - 使用高优先级选择器 */
  html body .highlight-content h4 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    color: #1d1d1f;
  }

  html body .highlight-content p {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #666;
    margin: 0;
  }
}

@media screen and (max-width: 480px) {

  /* 小屏设备文字进一步优化 - 使用高优先级选择器 */
  html body .miniprogram-title {
    font-size: 1.875rem;
  }

  html body .miniprogram-subtitle {
    font-size: 1.125rem;
  }

  html body .miniprogram-description {
    font-size: 0.9375rem;
    padding: 0 5px;
  }

  /* 功能亮点小屏文字 - 使用高优先级选择器 */
  html body .highlight-content h4 {
    font-size: 0.9375rem;
  }

  html body .highlight-content p {
    font-size: 0.8125rem;
    line-height: 1.3;
  }
}

/* 核心优势区域移动端背景优化 */
@media screen and (max-width: 768px) {

  /* 核心优势整体区域 */
  .value-highlights {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-bottom: 2.5rem !important;
  }

  /* 核心优势项目移动端卡片化 */
  .value-highlights .highlight-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border: 1px solid rgba(0, 122, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.04),
      0 2px 8px rgba(0, 122, 255, 0.06) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
  }

  /* 核心优势项目悬停效果 */
  .value-highlights .highlight-item:hover {
    transform: translateY(-2px) !important;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.08),
      0 4px 12px rgba(0, 122, 255, 0.12) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    border-color: rgba(0, 122, 255, 0.15) !important;
  }

  /* 核心优势图标优化 */
  .value-highlights .highlight-icon {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.08) 100%) !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1) !important;
  }

  .value-highlights .highlight-icon i {
    font-size: 1.25rem !important;
    color: #007AFF !important;
  }

  /* 核心优势文字优化 */
  .value-highlights .highlight-text h4 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
  }

  .value-highlights .highlight-text p {
    font-size: 0.9375rem !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }
}

@media screen and (max-width: 480px) {

  /* 小屏设备核心优势进一步优化 */
  .value-highlights .highlight-item {
    padding: 1rem !important;
    border-radius: 14px !important;
  }

  .value-highlights .highlight-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .value-highlights .highlight-icon i {
    font-size: 1.125rem !important;
  }

  .value-highlights .highlight-text h4 {
    font-size: 1rem !important;
  }

  .value-highlights .highlight-text p {
    font-size: 0.875rem !important;
  }
}

/* 触摸设备核心优势区域优化 */
@media (hover: none) and (pointer: coarse) {

  /* 移除悬停效果，优化触摸体验 */
  .value-highlights .highlight-item:hover {
    transform: none !important;
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.04),
      0 2px 8px rgba(0, 122, 255, 0.06) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border-color: rgba(0, 122, 255, 0.08) !important;
  }

  /* 增加触摸区域 */
  .value-highlights .highlight-item {
    min-height: 80px !important;
    cursor: default !important;
  }

  /* 触摸反馈效果 */
  .value-highlights .highlight-item:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
}

/* 暗色模式下的核心优势区域 */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .value-highlights .highlight-item {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.9) 100%) !important;
    border-color: rgba(0, 122, 255, 0.2) !important;
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.2),
      0 2px 8px rgba(0, 122, 255, 0.1) !important;
  }

  .value-highlights .highlight-text h4 {
    color: #f3f4f6 !important;
  }

  .value-highlights .highlight-text p {
    color: #d1d5db !important;
  }

  .value-highlights .highlight-icon {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(88, 86, 214, 0.15) 100%) !important;
  }
}

/* 简版评论区域移动端优化 */
@media screen and (max-width: 768px) {

  /* 简版评论区域间距优化 */
  .testimonials.testimonials-brief {
    padding: 30px 0 40px 0 !important;
    /* 调整间距 */
    margin-top: 30px !important;
    /* 减少与上方内容的间距 */
  }

  /* 简版评论网格移动端布局 */
  .testimonials-brief .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
    padding: 0 20px !important;
  }

  /* 简版评论卡片移动端优化 */
  .testimonials-brief .testimonial-card {
    padding: 18px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    border-radius: 16px !important;
  }

  /* 简版评论内容优化 */
  .testimonials-brief .testimonial-content p {
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
}

@media screen and (max-width: 480px) {

  /* 小屏设备简版评论优化 */
  .testimonials.testimonials-brief {
    padding: 30px 0 40px 0;
    margin-top: 30px;
  }

  .testimonials-brief .testimonial-card {
    padding: 16px;
    margin-bottom: 12px;
  }

  .testimonials-brief .testimonial-content p {
    font-size: 0.9375rem;
  }
}

/* 确保移动端布局不会出现重叠问题 */
@media screen and (max-width: 768px) {

  /* 为所有主要区块添加明确的间距 */
  .apple-showcase-section {
    margin-bottom: 60px !important;
    position: relative;
    z-index: 1;
  }

  .testimonials.testimonials-brief {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
    position: relative;
    z-index: 2;
  }

  .apple-miniprogram-section {
    margin-top: 60px !important;
    clear: both !important;
    /* 确保清除浮动 */
    position: relative;
    z-index: 3;
  }

  /* 手机模型容器添加明确的底部间距 */
  .iphone-container {
    margin-bottom: 40px !important;
    padding-bottom: 20px !important;
  }

  /* 确保评论卡片不会与上方内容重叠 */
  .apple-testimonials {
    clear: both !important;
    position: relative !important;
    z-index: 4 !important;
  }

  /* 强制分隔各个区域 */
  .apple-showcase-section::after,
  .testimonials.testimonials-brief::after,
  .miniprogram-showcase::after {
    content: '' !important;
    display: block !important;
    height: 40px !important;
    width: 100% !important;
    clear: both !important;
  }
}

/* 超小屏幕设备的额外优化 */
@media screen and (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .apple-miniprogram-section {
    padding: 30px 0 50px 0;
  }

  .miniprogram-showcase .showcase-content {
    gap: 20px;
  }

  .apple-testimonials {
    margin-top: 40px;
    padding-top: 30px;
  }

  .testimonial-card {
    padding: 12px;
    font-size: 0.875rem;
  }
}

/* 覆盖主样式文件中可能冲突的响应式设计 */
@media screen and (max-width: 1024px) {

  /* 确保我们的移动端优化优先级更高 */
  .apple-miniprogram-section .miniprogram-showcase .showcase-content {
    flex-direction: column !important;
    gap: 60px !important;
    text-align: center !important;
    align-items: center !important;
  }

  .apple-miniprogram-section .miniprogram-showcase .showcase-visual {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  .apple-miniprogram-section .feature-highlights {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .apple-miniprogram-section .miniprogram-cta {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
  }
}

/* 移动端专用样式覆盖 */
@media screen and (max-width: 768px) {

  /* 强制覆盖主样式文件中的设置 */
  .apple-miniprogram-section {
    padding: 60px 0 30px 0 !important;
  }

  /* 确保手机模型与评论区域有足够间距 */
  .apple-miniprogram-section .iphone-container {
    margin-bottom: 50px !important;
    padding-bottom: 30px !important;
  }

  /* 强制评论区域间距 - 修正为合理间距 */
  .apple-miniprogram-section+* .apple-testimonials,
  .apple-testimonials {
    margin-top: 40px !important;
    padding-top: 20px !important;
  }
}