/* Responsive breakpoints */

@media (max-width: 1100px) {
  .nav-dropdown {
    width: 70cqw;
    max-width: 70cqw;
  }

  .nav-dropdown.nav-panel:not(.nav-mega) {
    width: min(620px, 85cqw);
    max-width: 85cqw;
  }

  .nav-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .cv-stats,
  .cv-tiers,
  .cv-xc-groups {
    grid-template-columns: 1fr 1fr;
  }

  .cv-stats {
    gap: 0;
  }

  .cv-stat:nth-child(2n) {
    border-right: none;
  }

  .cv-stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cv-engines,
  .cv-engines--bento,
  .cv-promises,
  .cv-contrast,
  .cv-contact-panel,
  .cv-faq-layout,
  .cv-case-grid {
    grid-template-columns: 1fr;
  }

  .cv-promise--rights::after {
    width: 56px;
    height: 56px;
  }

  .cv-engines--bento .cv-engine.is-lead {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "fit"
      "list"
      "case";
  }

  .cv-contrast-col.is-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cv-faq-aside {
    position: static;
  }

  .cv-tier.is-featured {
    transform: none;
  }
}

@media (max-width: 960px) {
  :root {
    --section-y: 68px;
    --text-hero: clamp(32px, 7vw, 56px);
    --text-5xl: clamp(30px, 6.5vw, 48px);
    --text-4xl: clamp(26px, 5.5vw, 40px);
    --text-3xl: clamp(22px, 4.5vw, 32px);
    --nav-max-w: calc(100vw - 28px);
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head h2 {
    font-size: clamp(26px, 6.5vw, 34px);
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .section-head p {
    font-size: 16px;
    line-height: 1.6;
  }

  .cv-section .section-head {
    margin-bottom: 28px;
  }

  .cv-section .section-head h2 {
    font-size: clamp(24px, 6.2vw, 32px);
  }

  .cv-contrast-col {
    padding: 24px 18px;
  }

  .cv-contrast-col ul {
    gap: 14px;
  }

  .cv-contrast-col li {
    font-size: 14px;
    line-height: 1.6;
  }

  .cv-contrast-intro {
    margin-bottom: 14px;
    line-height: 1.55;
  }

  .section-more {
    margin-top: 28px;
  }

  .hero-brand {
    font-size: clamp(34px, 9vw, 56px);
  }

  .hero h1,
  .page-hero-inner h1,
  .cv-hero-copy h1,
  .cv-hero-copy .cv-hero-title {
    font-size: clamp(26px, 6.2vw, 36px);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-lead,
  .page-hero-sub,
  .cv-hero-sub {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-funnel {
    gap: 28px;
  }

  .hero-funnel h1 {
    font-size: clamp(32px, 8.5vw, 46px);
    line-height: 1.18;
    min-height: 0;
    max-width: none;
  }

  .hero--funnel {
    padding-bottom: clamp(96px, 14vh, 140px);
  }

  .hero-metrics {
    gap: 14px;
  }

  .hero-metric {
    padding: 14px 16px;
    gap: 12px;
  }

  .page-hero,
  .page-hero--company,
  .page-hero--method,
  .page-hero--products,
  .page-hero--cases,
  .page-hero--solution {
    min-height: 240px;
    padding-bottom: 40px;
  }

  .cv-hero {
    padding: 56px 0 48px;
  }

  .cv-hero-inner {
    gap: 28px;
  }

  .cv-hero-copy {
    margin-bottom: 28px;
  }

  .cv-section .section-head {
    margin-bottom: 28px;
  }

  .cv-engines,
  .cv-promises,
  .cv-tiers,
  .cv-case-grid,
  .cv-xc-groups,
  .product-stack,
  .solution-showcase-grid,
  .home-cases-grid,
  .home-link-grid,
  .info-card-grid,
  .careers-benefits-grid,
  .tracks-grid,
  .cases-tracks-grid {
    gap: 18px;
  }

  .cv-engine,
  .cv-tier,
  .cv-case,
  .cv-promise,
  .home-case-body,
  .product-body,
  .solution-showcase-body,
  .standard-item,
  .loop-step,
  .prove-step,
  .prove-why-item,
  .track-item,
  .cv-contrast-col,
  .cv-value-card,
  .cv-step-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cv-engine,
  .cv-tier,
  .cv-case,
  .cv-promise {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .home-case-body {
    padding: 20px 18px 22px;
  }

  .product-body {
    padding: 28px 20px;
  }

  .product-body h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .product-visual {
    min-height: 200px;
  }

  .solution-showcase-body {
    padding: 18px 18px 20px;
  }

  .solution-showcase-body h3 {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .solution-showcase-body p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .solution-showcases-lead {
    margin-bottom: 18px;
  }

  .solution-showcase-desense {
    font-size: 9px;
    padding: 3px 7px;
    right: 6px;
    bottom: 6px;
    white-space: normal;
    max-width: min(92%, 220px);
    text-align: right;
    line-height: 1.3;
  }

  .solution-roi-grid {
    gap: 12px;
    margin: 16px 0 20px;
  }

  .solution-roi-item {
    padding: 18px 16px;
  }

  .cv-stat,
  .stat {
    padding: 24px 20px;
  }

  .cv-stat-value,
  .stat-val,
  .home-case-val,
  .hero-metric-val {
    font-size: clamp(24px, 7vw, 32px);
  }

  .cv-step {
    padding-bottom: 24px;
  }

  .cv-step-head {
    gap: 12px;
    margin-bottom: 12px;
  }

  .cv-step-gets ul,
  .cv-engine ul,
  .cv-promise-list,
  .privacy-list,
  .home-prove-side ul {
    gap: 12px;
  }

  .cv-contact-panel {
    padding: 28px 20px;
    gap: 24px;
  }

  .cta-copy h2 {
    font-size: clamp(26px, 6vw, 36px);
    margin-bottom: 12px;
  }

  .home-prove-layout,
  .truth-grid {
    gap: 28px;
  }

  .home-prove-steps {
    gap: 16px;
    margin: 24px 0 28px;
  }

  .home-prove-steps h3 {
    margin-bottom: 8px;
  }

  .loop-step {
    padding: 22px 18px;
  }

  .loop-step h3,
  .prove-step h3,
  .standard-item h3,
  .track-item h3 {
    margin-bottom: 10px;
  }

  .loop-step p,
  .prove-step p,
  .standard-item p {
    line-height: 1.6;
  }

  .prove-alias-item {
    gap: 8px 12px;
  }

  .info-block {
    padding-top: 24px;
    margin-top: 24px;
  }

  .info-lead {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .truth-switch-media {
    min-height: clamp(220px, 58vw, 320px);
  }

  .cases-track-link {
    padding: 16px 18px;
    gap: 6px 12px;
  }

  .footer-brand-text,
  .footer-brand-sep,
  .footer-tagline {
    letter-spacing: 0.28em;
  }

  .footer-brand-text::after,
  .footer-tagline::after,
  #footer-tagline::after {
    margin-left: -0.28em;
  }

  .footer-col-list {
    gap: 10px;
  }

  .footer-col-list a {
    padding: 2px 0;
  }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* 隐藏中间链后改为两列，避免右侧空出 1fr 空隙 */
  .nav {
    grid-template-columns: 1fr auto;
  }

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

  .hero-funnel,
  .truth-grid,
  .home-prove-layout,
  .home-cases-grid,
  .method-layers,
  .company-culture-grid,
  .cases-tracks-grid {
    grid-template-columns: 1fr;
  }

  .truth-detail-pane:not(.is-active) {
    visibility: hidden;
  }

  .cases-page #cases-tracks-head p {
    white-space: normal;
    max-width: var(--measure, 40rem);
  }

  .solution-roi-grid {
    grid-template-columns: 1fr;
  }

  .solution-showcase-grid {
    grid-template-columns: 1fr;
  }

  .corner-actions {
    right: 16px;
    bottom: 16px;
  }

  .corner-actions.has-top,
  .corner-actions.has-experience {
    gap: 8px;
  }

  .corner-action,
  .back-to-top {
    width: 42px;
    height: 42px;
  }

  .corner-experience.is-visible {
    width: auto;
    height: auto;
    min-height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }

  .corner-action:not(.is-visible) {
    width: 0;
    height: 0;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
  }

  .hero-carousel-seg {
    width: 28px;
  }

  .hero-carousel-pill {
    gap: 8px;
    padding: 10px 14px;
  }

  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border); }

  .product-card,
  .product-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .standard-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .standard-item:nth-child(2n) { border-right: none; }
  .standard-item:nth-child(3),
  .standard-item:nth-child(4) { border-top: 1px solid var(--border); }

  .loop-flow {
    flex-direction: column;
    gap: 0;
  }

  .loop-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .loop-step:last-child { border-bottom: none; }
  .loop-step:not(:last-child)::after { display: none; }
  .loop-step p { max-width: none; }

  .prove-steps {
    grid-template-columns: 1fr 1fr;
  }

  .prove-step:nth-child(2n)::before {
    display: none;
  }

  .prove-step:nth-child(n + 3) { border-top: none; }
  .prove-step:not(:last-child)::after { display: none; }

  .prove-step:nth-child(n + 3)::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    width: auto;
    height: 1px;
    border: none;
    transform: none;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 20%,
      rgba(255, 255, 255, 0.1) 80%,
      transparent 100%
    );
    z-index: 1;
  }

  .prove-why-grid {
    grid-template-columns: 1fr;
  }

  .prove-gates-grid {
    grid-template-columns: 1fr;
  }

  .prove-why-item {
    border-right: none;
    padding: 22px 18px;
  }

  .prove-contrast-grid {
    grid-template-columns: 1fr;
  }

  .prove-contrast-col--bad {
    border-right: none;
    border-bottom: none;
  }

  .prove-contrast-col--bad::after {
    top: auto;
    bottom: 0;
    left: 10%;
    right: 10%;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1) 30%,
      rgba(255, 255, 255, 0.1) 70%,
      transparent
    );
  }

  .prove-note-pair {
    grid-template-columns: 1fr;
  }

  .prove-note-col {
    border-right: 1px solid var(--border);
  }

  .prove-alias-item {
    grid-template-columns: 1fr;
  }

  .cta-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-card-grid,
  .careers-benefits-grid {
    grid-template-columns: 1fr;
  }

  .cv-stats,
  .cv-tiers,
  .cv-case-grid,
  .cv-xc-groups,
  .cv-engines,
  .cv-engines--bento,
  .cv-promises {
    grid-template-columns: 1fr;
  }

  .cv-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cv-stat:last-child {
    border-bottom: none;
  }

  .cv-stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .company-history-stage {
    padding: 22px 18px 26px;
  }

  .company-history-rail {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 4px;
  }

  .company-history-rail-line {
    left: 18px;
    right: 18px;
    width: max(100%, 360px);
  }

  .company-history-display-year {
    font-size: clamp(40px, 12vw, 56px);
  }

  .company-culture-photo-caption {
    white-space: normal;
    max-width: min(72vw, 280px);
    text-align: right;
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: 56px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    gap: 6px;
    grid-template-columns: 1fr auto;
  }

  .nav-logo-img {
    height: 16px;
    max-width: min(132px, 38vw);
  }

  .nav-right {
    gap: 4px;
  }

  .nav-right .btn-pill.sm {
    display: none;
  }

  .nav-toggle {
    width: calc(var(--nav-h) - var(--nav-edge-inset) * 2);
    height: calc(var(--nav-h) - var(--nav-edge-inset) * 2);
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.25;
  }

  .section-head p {
    font-size: 15px;
  }

  .cv-section .section-head h2 {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .cv-contrast-col {
    padding: 22px 4px;
  }

  .cv-contrast {
    margin-bottom: 40px;
  }

  #truth-head h2 .truth-title-break {
    display: block;
  }

  .home-link-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { max-width: none; }

  .hero--funnel {
    padding-bottom: 80px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .stats-grid { grid-template-columns: 1fr; }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px 18px;
  }
  .stat:last-child { border-bottom: none; }

  .standards-list {
    grid-template-columns: 1fr;
  }

  .prove-steps {
    grid-template-columns: 1fr;
  }

  .prove-step {
    border-right: none;
    border-bottom: none;
    padding: 24px 18px;
  }

  .prove-step:not(:last-child)::before {
    top: auto;
    bottom: 0;
    left: 12%;
    right: 12%;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 20%,
      rgba(255, 255, 255, 0.1) 80%,
      transparent 100%
    );
  }

  .prove-step:not(:last-child)::after {
    display: none;
  }

  .prove-step:last-child { border-bottom: none; }
  .prove-step:nth-child(n + 3) { border-top: none; }

  .prove-contrast-col--bad::after {
    top: auto;
    bottom: 0;
    left: 10%;
    right: 10%;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1) 30%,
      rgba(255, 255, 255, 0.1) 70%,
      transparent
    );
  }

  .standard-item,
  .standard-item:nth-child(2n),
  .standard-item:nth-child(4n) {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px 18px;
  }

  .standard-item:last-child { border-bottom: none; }
  .standard-item:nth-child(3),
  .standard-item:nth-child(4) { border-top: none; }

  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .track-item,
  .track-item:nth-child(2n) {
    padding: 20px 18px;
  }

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

  .contrast-col.is-left {
    border-right: 1px solid var(--border);
  }

  .contrast-col.is-right {
    box-shadow: inset 0 3px 0 var(--accent);
  }

  .cv-engines,
  .cv-promises,
  .cv-tiers,
  .cv-case-grid,
  .home-cases-grid,
  .solution-showcase-grid {
    gap: 16px;
  }

  .cv-engine,
  .cv-tier,
  .cv-case,
  .cv-promise {
    padding: 20px 16px;
  }

  .cv-contact-panel {
    padding: 24px 16px;
    gap: 20px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  /* 保持「品牌 | 标语」同一行，避免竖排折成三行 */
  .footer-top {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-brand-text,
  .footer-brand-sep,
  .footer-tagline,
  #footer-tagline {
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .footer-brand-text::after,
  .footer-tagline::after,
  #footer-tagline::after {
    margin-left: -0.14em;
  }

  .footer-brand-sep {
    margin: 0 0.35em;
  }

  .footer-bottom {
    gap: 12px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    padding-top: 0;
  }

  .footer-contact {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cap-visual--grid .cap-grid-scan { animation: none; }
  .loop-step { opacity: 1; transform: none; transition: none; }
}
