/* === 移动端断点：≤ 1000px === */
@media (max-width: 1000px) {

  /* --- 禁用 Swiper 全屏模式 --- */
  .main-swiper-container {
    height: auto !important;
    overflow: visible !important;
  }

  .main-swiper-container .swiper-wrapper {
    display: block !important;
    transform: none !important;
  }

  .main-swiper-container .swiper-slide {
    height: auto !important;
    min-height: auto;
    padding-top: 0 !important;
    flex-shrink: 0; /* 保持 Swiper 默认值，避免布局断裂 */
    scroll-margin-top: var(--header-height);
  }

  .main-swiper-pagination {
    display: none !important;
  }

  /* --- Section 填充调整 --- */
  .section {
    padding: var(--space-xl) 0;
  }

  .section-container {
    padding: 0 var(--space-md);
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* --- 导航栏 --- */
  .header-menu-btn {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .header-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .header-nav .nav-list {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .header-nav .nav-link {
    color: var(--color-text-primary) !important;
    font-size: 1.25rem;
  }

  .header-nav .nav-link::after {
    background-color: var(--color-accent);
  }

  .header-nav .nav-cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff !important;
    margin-top: var(--space-md);
    padding: 0.75rem 2rem !important;
  }

  /* --- Hero --- */
  #home, #home .hero {
    height: 100vh;
    min-height: 100vh;
  }
  .hero-content {
    padding: 0 var(--space-md);
  }

  .hero-scroll-hint {
    display: none;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
  }

  /* --- 核心价值 --- */
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .value-card {
    padding: var(--space-md);
  }

  /* --- 案例 --- */
  .case-layout {
    flex-direction: column !important;
    gap: var(--space-xl);
    padding: 0 var(--space-md);
  }

  .case-text {
    flex: none;
    width: 100%;
    order: 1;
  }

  /* 移动端：图片始终在上，文字在下（order: -1 不受 DOM 顺序影响） */
  .case-visual {
    width: 100%;
    order: -1;
  }

  .case-img {
    aspect-ratio: 4 / 3;
  }

  .case-more {
    margin-left: 0;
    margin-top: var(--space-md);
    display: flex;
    width: fit-content;
  }

  /* --- 服务 --- */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-lg);
  }

  /* --- 全脑冲突战略（Slide 5 新结构） --- */
  .services-grid--three {
    grid-template-columns: 1fr;
  }

  .stages-row {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .stage-arrow {
    transform: rotate(90deg);
  }

  .stage-tag {
    min-width: auto;
    width: 100%;
    max-width: 280px;
    flex-direction: row;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  .stage-label {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .services-tagline {
    font-size: var(--text-sm);
    padding: 0 var(--space-md);
  }

  /* --- 团队 --- */
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .team-card {
    max-width: 300px;
    margin: 0 auto;
  }

  /* --- 客户见证 --- */
  .testimonial p {
    font-size: var(--text-lg);
  }

  .logos-track {
    gap: var(--space-md);
  }

  .logo-item {
    padding: var(--space-xs) var(--space-sm);
  }

  .logo-img {
    height: 28px;
    max-width: 100px;
  }

  /* --- 洞察 --- */
  .insights-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* --- CTA --- */
  .cta-form .form-row {
    flex-direction: column;
  }

  .cta-form .form-row input {
    width: 100%;
  }

  .cta-form .btn-accent {
    width: 100%;
  }

  /* --- Footer --- */
  .footer {
    height: auto;
    padding: var(--space-xl) var(--space-md);
  }

  .footer-main {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-brand {
    flex: none;
  }

  .footer-qr {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* === 小屏手机优化 ≤ 480px === */
@media (max-width: 480px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
  }
}

/* ====== methodology.html 响应式 ====== */
@media (max-width: 1000px) {
  .two-stages-detail {
    grid-template-columns: 1fr;
  }

  .three-systems-grid {
    grid-template-columns: 1fr;
  }

  .four-phases-flow {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .phase-connector {
    transform: rotate(90deg);
  }

  .phase-node {
    width: 100%;
    max-width: 300px;
  }

  .process-grid,
  .process-grid--four {
    grid-template-columns: 1fr;
  }

  .method-hero {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .method-hero-inner h1 {
    font-size: var(--text-xl);
  }

  .method-hero-desc {
    font-size: var(--text-base);
  }

  .process-group-header {
    flex-direction: column;
    gap: var(--space-xs);
  }
}
