/* Mobile reading and conversion pass · 2026-08-07
   Desktop layout remains unchanged. Mobile is re-composed instead of scaled down. */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overflow-x: clip;
  }

  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  .nav-shell,
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
    padding: 10px 0 8px;
  }

  .brand-lockup { min-width: 0; }
  .brand-mark { font-size: 24px; }
  .nav-actions { min-width: 0; }
  .nav-consult,
  .overview-button,
  .view-tab {
    min-height: 44px;
  }
  .nav-consult { padding-inline: 12px; font-size: 13px; }
  .view-tabs { gap: 4px; }
  .view-tab { padding-inline: 8px; font-size: 13px; line-height: 1.25; text-align: center; }

  .section { padding-block: 46px; }
  .module-head {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
  }
  .module-number { display: none; }
  .module-head .task-button { grid-column: 1; justify-self: start; }
  .module-title h2 {
    font-size: clamp(29px, 8.5vw, 36px);
    line-height: 1.16;
    text-wrap: balance;
  }
  .module-title p {
    max-width: none;
    font-size: 16px;
    line-height: 1.7;
  }

  .home-hero {
    min-height: 640px;
  }
  .home-hero::before { background-position: 64% center; }
  .home-hero .hero-copy {
    min-height: 640px;
    padding: 58px 20px 150px;
  }
  .home-hero .hero-brand-lockup {
    margin-bottom: 18px;
    gap: 6px 10px;
  }
  .home-hero .hero-brand-lockup strong {
    font-size: 30px;
    line-height: 1.15;
  }
  .home-hero .hero-brand-lockup span {
    width: 100%;
    font-size: 18px;
    line-height: 1.45;
  }
  .home-hero h1 {
    max-width: none;
    font-size: clamp(33px, 9.6vw, 40px);
    line-height: 1.18;
    letter-spacing: .01em;
  }
  .home-hero h1 span { display: block; }
  .home-hero .hero-lead {
    max-width: 29em;
    font-size: 16px;
    line-height: 1.65;
  }
  .hero-actions,
  .hero-copy > .actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-actions .btn,
  .hero-copy > .actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  .category-table { gap: 12px; }
  .category-row,
  .category-row.featured {
    min-height: 0;
    padding: 26px 22px;
  }
  .category-row.featured {
    min-height: 0;
    justify-content: flex-start;
  }
  .category-row > span { display: none; }
  .category-row h3 {
    margin-top: 0;
    font-size: 34px;
    line-height: 1.15;
  }
  .category-row.featured h3 {
    font-size: clamp(38px, 11vw, 48px);
  }
  .category-row p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.65;
  }
  .category-routes {
    margin-top: 18px;
    gap: 10px;
  }
  .category-route {
    min-height: 88px;
    padding: 14px 16px;
  }
  .category-route small { display: none; }
  .category-route strong { font-size: 17px; line-height: 1.4; }
  .category-route b { margin-top: 8px; font-size: 14px; }
  .category-row .text-action {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    text-align: center;
  }
  .category-direct-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    justify-content: center;
    text-align: center;
  }
  .category-row.nuts,
  .category-row.zongzi { min-height: 260px; }

  .factory-introduction {
    width: 100vw;
    min-height: 0;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 30px max(20px, env(safe-area-inset-right)) 30px max(20px, env(safe-area-inset-left));
    box-shadow: none;
  }
  .factory-introduction::after { display: none; }
  .factory-intro-copy h3 {
    font-size: clamp(31px, 8.7vw, 38px);
    line-height: 1.16;
    text-wrap: balance;
  }
  .factory-intro-copy p { font-size: 16px; line-height: 1.65; }
  .factory-intro-business-lines { gap: 10px; }
  .factory-business-line {
    min-height: 0;
    padding: 18px 16px;
  }
  .factory-business-line strong { font-size: 25px; line-height: 1.25; }
  .factory-business-line span { font-size: 15px; line-height: 1.55; }
  .factory-intro-certifications { gap: 8px; }
  .factory-intro-certifications span { min-height: 44px; display: inline-flex; align-items: center; }
  .factory-intro-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory-intro-metrics article { min-height: 112px; padding: 18px 12px; }
  .factory-intro-metrics strong { font-size: clamp(31px, 9vw, 38px); }
  .factory-intro-service { grid-template-columns: 1fr; }
  .factory-intro-service span {
    min-height: 66px;
    padding: 14px 16px;
    border-right: 0;
  }
  .factory-intro-service span:last-child { grid-column: auto; }

  .factory-video-block { gap: 0; }
  .factory-video-copy { padding: 28px 20px; }
  .factory-video-copy h3 { font-size: 32px; }
  .factory-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .factory-gallery-item.hero,
  .factory-gallery-item.side,
  .factory-gallery-item.small { grid-column: auto; grid-row: auto; }
  .factory-gallery-item,
  .factory-gallery-item.hero {
    position: relative;
    min-height: 240px;
  }
  .factory-gallery-item figure {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
  }
  .factory-gallery-item figcaption {
    inset: auto 0 0;
  }

  .facts-grid { gap: 10px; }
  .fact { min-height: 0; padding: 24px 20px; }
  .credentials-board { padding: 26px 16px; }
  .credentials-copy h3 { font-size: 31px; line-height: 1.18; }
  .credentials-gallery { grid-template-columns: 1fr; }

  .mooncake-scene { min-height: 620px; }
  .mooncake-scene .hero-copy {
    min-height: 620px;
    padding: 62px 20px 150px;
  }
  .mooncake-scene .hero-copy h1 {
    max-width: 10em;
    font-size: clamp(34px, 9.8vw, 42px);
    line-height: 1.18;
    text-wrap: balance;
  }

  .scenario-grid { gap: 10px; }
  .scenario { min-height: 230px; }
  .scenario h3 { font-size: 30px; }
  .scenario-route { min-height: 44px; display: inline-flex; align-items: center; }

  .assortment-layout,
  .bulk-showcase { grid-template-columns: 1fr; }
  .product-placeholder { min-height: 280px; padding: 28px 20px; }
  .product-placeholder strong { font-size: 31px; line-height: 1.22; }
  .spec-row { grid-template-columns: 92px 1fr; gap: 14px; }
  .spec-actions,
  .bulk-showcase-actions,
  .process-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .spec-actions .btn,
  .bulk-showcase-actions .btn,
  .process-actions .btn { width: 100%; min-height: 50px; justify-content: center; }
  .bulk-showcase-copy { padding: 28px 20px; }
  .bulk-showcase-copy h3 { font-size: 36px; line-height: 1.18; }
  .bulk-fact { grid-template-columns: 92px 1fr; gap: 14px; }
  .bulk-showcase-visual { min-height: 270px; }

  .process-overview { padding: 28px 18px; }
  .process-overview-copy h3 { font-size: 31px; line-height: 1.2; }
  .process-facts { grid-template-columns: 1fr; }
  .process-facts span {
    min-height: 60px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .steps { grid-template-columns: 1fr; }
  .step {
    min-height: 0;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 249 242 / .16);
  }
  .step::after { display: none; }
  .step h3 { font-size: 27px; }
  .step p { font-size: 16px; line-height: 1.65; }
  .process-footer { padding: 20px 18px; }

  .channel-copy h2 { font-size: clamp(34px, 9.5vw, 42px); line-height: 1.18; }
  .channel-row { grid-template-columns: 1fr; gap: 12px; padding-block: 22px; }
  .channel-row .text-action { width: 100%; min-height: 48px; justify-content: center; }

  .faq-list summary { font-size: 17px; line-height: 1.5; }
  .faq-list details p { font-size: 16px; line-height: 1.7; }

  .contact-band { padding-block: 30px; }
  .contact-band-copy strong { font-size: 27px; line-height: 1.22; }
  .contact-band-copy span { font-size: 15px; line-height: 1.65; }
  .contact-band-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .contact-band-actions .btn { width: 100%; min-height: 50px; justify-content: center; }
  .footer-inner { align-items: flex-start; gap: 8px; line-height: 1.6; }

  .wechat-dialog {
    width: min(calc(100% - 24px), 520px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 26px 18px 20px;
  }
  .benefit-dialog .benefit-actions {
    position: sticky;
    bottom: -20px;
    z-index: 2;
    margin-inline: -18px;
    padding: 12px 18px max(20px, env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .benefit-actions,
  .benefit-rules { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .nav-shell,
  .container { width: min(calc(100% - 22px), var(--max)); }
  .home-hero .hero-copy,
  .mooncake-scene .hero-copy { padding-inline: 16px; }
  .home-hero .hero-brand-lockup strong { font-size: 27px; }
  .home-hero .hero-brand-lockup span { font-size: 16px; }
  .home-hero h1,
  .mooncake-scene .hero-copy h1 { font-size: 32px; }
  .factory-intro-metrics strong { font-size: 29px; }
}

.mobile-conversion-bar { display: none; }

@media (max-width: 640px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.drawer-open { padding-bottom: 0; }
  .mobile-conversion-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 8px;
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
    border-top: 1px solid #d8cabe;
    background: rgb(251 249 245 / .96);
    box-shadow: 0 -8px 24px rgb(75 52 39 / .12);
    backdrop-filter: blur(12px);
  }
  body.drawer-open .mobile-conversion-bar { display: none; }
  .mobile-conversion-bar a,
  .mobile-conversion-bar button {
    display: inline-flex;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid #a43b36;
    border-radius: 0;
    font: 700 16px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
  }
  .mobile-conversion-primary { background: #a43b36; color: #fbf9f5; }
  .mobile-conversion-secondary { background: #fbf9f5; color: #4b3427; }
  .mobile-conversion-bar a:focus-visible,
  .mobile-conversion-bar button:focus-visible {
    outline: 3px solid #4b3427;
    outline-offset: 2px;
  }
}
