/* Shared responsive layer for the current official-site pages only.
   Desktop design rules remain in their original page stylesheets. */
.mobile-scroll-hint { display: none; }

@media (max-width: 1000px) {
  :root { --mobile-header-height: calc(108px + env(safe-area-inset-top, 0px)); }
  html { scroll-padding-top: calc(var(--mobile-header-height) + 16px); -webkit-text-size-adjust: 100%; }
  .home-header { height: auto; padding-top: env(safe-area-inset-top, 0px); background: #fff; }
  .home-header .header-inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 60px 48px; column-gap: 12px; height: auto; min-height: 0;
  }
  .home-logo, .home-logo img { width: 96px; height: 34px; }
  .header-phone { grid-column: 2; grid-row: 1; justify-self: end; min-height: 44px; margin: 0; }
  .header-phone img { display: none; }
  .header-phone span { gap: 4px; }
  .header-phone small { font-size: 10px; }
  .header-phone b { font-size: 14px; letter-spacing: 0; white-space: nowrap; }
  .home-header .header-order { grid-column: 3; grid-row: 1; min-width: 72px; height: 40px; margin: 0; border-radius: 20px; font-size: 13px; }
  .header-nav {
    grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%; height: 48px; margin: 0; overflow: visible; border-top: 1px solid #f3efed;
  }
  .header-nav a { min-width: 0; padding: 0 4px; border-radius: 0; font-size: 14px; }
  .header-nav a::before { top: auto; bottom: 0; right: 25%; left: 25%; height: 3px; border-radius: 3px; }
  .header-nav a.is-active { background: #fff6f2; }
  .home-footer { padding: 28px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
  .footer-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; min-height: 0; }
  .footer-brand { grid-column: 1 / -1; width: auto; }
  .footer-main nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); order: 0; width: 100%; margin: 0; }
  .footer-main nav a { display: grid; min-height: 44px; padding: 0 4px; place-items: center; font-size: 12px; }
  .footer-channel, .footer-channel + .footer-channel { min-width: 0; min-height: 48px; gap: 8px; margin: 0; }
  .footer-channel > img { flex-shrink: 0; width: 32px; height: 32px; }
  .footer-channel b { font-size: 12px; }
  .footer-channel small { font-size: 10px; line-height: 16px; white-space: normal; }
  .footer-qr { width: 144px; height: 144px; padding: 8px; }
  .footer-qr img { width: 126px; height: 126px; }
  .footer-meta { display: grid; justify-content: start; gap: 8px; margin-top: 22px; padding: 18px 0 0; font-size: 11px; line-height: 18px; }
  .footer-meta .footer-copyright { margin: 0; }

  /* Headings stay beside their own content when desktop columns stack. */
  .process-detail-section > .home-container, .coverage-application-section > .home-container { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .process-detail-heading, .process-detail-layout, .coverage-application-heading, .coverage-application-layout { display: contents; }
  .process-detail-heading h1, .coverage-application-heading h2 { grid-column: 1; grid-row: 1; }
  .flow-step-grid, .coverage-application-form { grid-column: 1; grid-row: 2; }
  .process-detail-heading h2, .coverage-application-heading h3 { grid-column: 1; grid-row: 3; margin: 12px 0 0; }
  .process-preparation, .coverage-outcomes { grid-column: 1; grid-row: 4; height: auto; min-height: 0; margin: 0; }
  .process-preparation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
  .coverage-application-form { height: auto; min-height: 0; }
  .coverage-outcomes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .coverage-outcomes li { width: auto; min-width: 0; padding: 12px; }
  .coverage-outcomes span { font-size: 14px; white-space: normal; }
  .coverage-notice-section .home-container { width: calc(100% - 40px); }
  .coverage-notice-copy { width: 100%; }
  .coverage-notice-copy h2 { height: auto; font-size: 26px; line-height: 36px; }
  .coverage-notice-layout { grid-template-columns: minmax(0, 1fr); height: auto; margin-top: 20px; gap: 24px; }
  .coverage-notice-list { grid-template-rows: none; width: 100%; height: auto; }
  .coverage-notice-list li { min-height: 64px; height: auto; padding: 16px 0; }
  .coverage-notice-list b { flex-basis: 16px; width: 16px; height: auto; font-size: 16px; line-height: 24px; }
  .coverage-notice-list span { margin-left: 16px; font-size: 14px; line-height: 24px; white-space: normal; }
  .coverage-consult-cta { width: 100%; height: auto; min-height: 148px; padding: 24px; border-radius: 16px; }
  .coverage-consult-cta p { width: auto; height: auto; font-size: 14px; line-height: 22px; white-space: normal; }
  .coverage-consult-cta button, .coverage-consult-cta a { width: 184px; height: 44px; margin-top: 18px; font-size: 15px; line-height: 22px; }
  .coverage-application-result, .order-parse-result { top: calc(var(--mobile-header-height) + 12px); }
}

@media (max-width: 760px) {
  .coverage-consult-cta a { width: 184px; height: 44px; margin-top: 18px; font-size: 15px; line-height: 22px; }
}

@media (max-width: 760px) {
  body { min-width: 320px; }
  .home-container, .coverage-notice-section .home-container { width: calc(100% - 32px); }
  main :where(section[id], [data-order-step]) { scroll-margin-top: calc(var(--mobile-header-height) + 16px); }
  button, a, input, select, textarea { -webkit-tap-highlight-color: rgba(233,71,43,.12); }
  :where(input, select, textarea) { max-width: 100%; }

  /* 四张手机端轮播图都是 1:1 切图。电脑端仍使用横幅图，手机端不能沿用
     旧版 3:1 容器，否则第二至第四张会在容器中央被缩得很小。 */
  .home-hero { height: auto; padding: 16px 0 18px; }
  .hero-frame,
  .hero-frame.has-image-active {
    height: auto;
    aspect-ratio: 1 / 1;
    margin-top: 0;
    transition: height .24s ease;
  }
  .hero-slide, .hero-slide:not(.hero-image-slide) { border-radius: 12px; background: #fff5e9; }
  .hero-slide:not(.hero-image-slide) > img { object-position: 76% center; }
  .hero-copy { top: 0; left: 0; width: 100%; height: 100%; padding: 26px 20px; background: linear-gradient(90deg, rgba(255,248,235,.98), rgba(255,248,235,.9) 70%, rgba(255,248,235,.7)); }
  .hero-copy h1 { max-width: 340px; font-size: 28px; line-height: 1.35; letter-spacing: 0; white-space: normal; }
  .hero-copy h1 span { display: inline-block; }
  .hero-copy > p { width: 100%; margin-top: 14px; color: #645347; font-size: 14px; line-height: 23px; }
  .hero-actions { gap: 10px; margin-top: 20px; }
  .hero-actions a { min-width: 0; height: 44px; padding: 0 14px; font-size: 14px; }
  .hero-coverage { flex: 1; }
  .hero-promises { justify-content: space-between; gap: 8px; margin-top: 22px; }
  .hero-promises span { min-width: 0; padding-left: 7px; }
  .hero-promises b { font-size: 12px; line-height: 18px; }
  .hero-promises small { max-width: none; font-size: 10px; line-height: 15px; white-space: normal; }
  .hero-image-slide, .hero-frame.has-image-active .hero-image-slide { background: transparent; }
  .hero-image-slide > img, .hero-frame.has-image-active .hero-image-slide img { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .hero-dots { position: absolute; bottom: -34px; left: 50%; justify-content: center; height: 28px; margin: 0; gap: 0; transform: translateX(-50%); }
  .hero-dots button, .hero-dots button.is-active { position: relative; width: 40px; height: 28px; background: transparent; }
  .hero-dots button::after { content: ""; position: absolute; top: 12px; right: 9px; left: 9px; height: 4px; border-radius: 4px; background: #ddd; }
  .hero-dots button.is-active::after { right: 4px; left: 4px; background: #f05335; }
  .home-hero { padding-bottom: 50px; }
  .feature-grid article { justify-content: center; padding-left: 0; gap: 10px; }
  .about-section { padding: 36px 0; }
  .about-tabs { height: 44px; gap: 28px; }
  .about-tabs button { height: 44px; font-size: 22px; line-height: 30px; }
  .about-tabs button::after { bottom: -5px; }
  .about-panels { margin-top: 28px; }
  .about-company-copy h2, .about-story-panel h2 { font-size: 18px; line-height: 28px; }
  .about-company-copy p, .about-story-copy p { font-size: 14px; line-height: 25px; text-align: left; }
  .about-company-visual { border-radius: 12px; }
  .products-preview { padding: 36px 0; }
  .products-heading h2 { font-size: 24px; line-height: 34px; }
  .products-heading a { min-height: 40px; }
  .product-tabs { gap: 8px; }
  .product-tabs button { min-height: 40px; padding: 0 10px; }
  .plan-card { flex-basis: min(76vw, 288px); height: 284px; padding: 22px; }
  .plan-card > span, .plan-card > small { font-size: 13px; }
  .plan-card strong { font-size: 54px; }
  .plan-card > div { left: 22px; bottom: 80px; }
  .plan-card i { font-size: 12px; }
  .plan-card div b { font-size: 30px; }
  .plan-card u { right: 22px; left: 22px; bottom: 20px; height: 40px; font-size: 13px; }
  .coverage-callout { min-height: 0; }
  .coverage-inner { padding-top: 32px; padding-bottom: 36px; }
  .coverage-inner h2 { font-size: 24px; line-height: 34px; }
  .coverage-inner p { font-size: 14px; line-height: 24px; }

  .product-hero, .process-flow-hero, .coverage-map-hero { height: auto; padding: 16px 0 24px; }
  .product-hero .home-container, .process-flow-hero .home-container, .coverage-map-banner { height: auto; aspect-ratio: 3 / 1; border-radius: 12px; }
  .product-hero img, .process-flow-hero img, .coverage-map-banner img { height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
  .product-offers-section, .process-detail-section, .coverage-application-section { margin-top: 0; padding: 32px 0; }
  .product-section-heading h1, .comparison-section h2, .process-detail-heading h1, .coverage-application-heading h2 { font-size: 24px; line-height: 34px; }
  .process-detail-heading h2, .coverage-application-heading h3 { font-size: 21px; line-height: 30px; }
  .product-section-heading h1 { text-wrap: balance; }
  .product-section-heading p { font-size: 14px; line-height: 24px; }
  .term-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .term-card { min-height: 186px; padding: 26px 14px 18px; }
  .term-card > span { min-height: 36px; font-size: 13px; line-height: 18px; text-wrap: balance; }
  .term-card small { margin-top: 18px; }
  .term-card strong { font-size: 40px; line-height: 48px; }
  .term-card-featured > em { top: 0; right: 0; }
  .fusion-panel { padding: 12px; }
  .fusion-row { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 18px; }
  .fusion-price { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .fusion-price > div { margin: 0; }
  .fusion-price b { font-size: 14px; white-space: normal; }
  .fusion-price strong { font-size: 42px; }
  .fusion-row p, .fusion-term, .fusion-term small { font-size: 14px !important; line-height: 24px !important; }
  .fusion-summary { display: block; }
  .fusion-row > .fusion-term { padding-top: 12px; border-top: 1px solid #f6e9e3; }
  .comparison-section, .product-consult-section, .process-faq-section, .coverage-notice-section { padding: 36px 0; }
  .mobile-scroll-hint { display: block; margin-top: 10px !important; color: #886d60; font-size: 12px; line-height: 20px; }
  .comparison-scroll { margin-top: 14px; overscroll-behavior-x: contain; }
  .comparison-table { min-width: 820px; }
  .comparison-table th, .comparison-table td { font-size: 13px !important; line-height: 21px; padding-top: 12px; padding-bottom: 12px; }
  .comparison-table thead th:first-child, .comparison-table tbody th { position: sticky; z-index: 1; left: 0; }
  .recommendation-grid b { height: auto; min-height: 36px; padding: 6px 10px; }
  .recommendation-grid p { font-size: 14px; line-height: 24px; }
  .product-design-page .product-notice { gap: 10px; font-size: 13px; line-height: 22px; }

  .flow-step-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: none; gap: 14px; }
  .flow-step-grid .flow-step-card { width: 100%; min-height: 0; margin: 0; padding: 16px 18px 20px; border: 1px solid #ededed; border-radius: 14px; overflow: hidden; }
  .flow-step-head { height: 40px; }
  .flow-step-head img { flex-basis: 28px; width: 28px; height: 28px; }
  .flow-step-head h3 { font-size: 18px; margin-left: 12px; }
  .flow-step-head b { color: #eee5e1; font-size: 40px; }
  .flow-step-card p { margin-top: 12px; font-size: 14px; line-height: 24px; text-align: left; }
  .flow-step-card small { position: static; display: block; margin-top: 12px; font-size: 12px; line-height: 20px; }
  .flow-connector { display: none; }
  .process-preparation ul { gap: 10px; padding: 12px; }
  .process-preparation li { gap: 8px; height: 76px; padding: 10px; }
  .process-preparation img { width: 30px; height: 30px; }
  .process-preparation span { font-size: 14px; line-height: 21px; }
  .process-faq-section h2 { font-size: 24px; line-height: 34px; }
  .process-faq-item summary, .process-faq-item[open] summary { height: auto; min-height: 60px; padding: 16px 36px 16px 8px; font-size: 15px; line-height: 24px; }
  .faq-answer { padding: 0 8px 18px; }
  .faq-answer p { font-size: 14px; line-height: 24px; text-align: left; }

  .coverage-application-form { padding: 20px 16px; border-radius: 16px; }
  .coverage-fields-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .coverage-field > label { height: auto; font-size: 14px; line-height: 22px; }
  .coverage-field > input, .coverage-field > select { height: 48px; padding: 0 12px; font-size: 16px; }
  .coverage-smart-parse, .order-smart-parse { height: 136px; }
  .coverage-smart-parse textarea, .order-smart-parse textarea { height: 136px; padding: 12px 12px 60px; font-size: 16px; line-height: 24px; }
  .coverage-smart-parse button, .order-smart-parse button { top: auto; bottom: 10px; right: 10px; width: 120px; height: 40px; margin: 0; transform: none; font-size: 14px; line-height: 40px; }
  .coverage-submit-button { width: 100%; height: 48px; margin-top: 24px; font-size: 16px; }
  .coverage-outcomes { padding: 12px; border-radius: 16px; }
  .coverage-outcomes ul { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .coverage-outcomes li { width: 100%; min-height: 64px; padding: 12px 16px; }
  .coverage-outcomes span { font-size: 15px; }
  .coverage-notice-layout { display: grid; }
  .coverage-consult-cta { margin-top: 0; }

  .detail-hero-layout { gap: 24px; }
  .product-detail-page { --detail-card-size: min(330px, calc(100vw - 32px)); }
  .detail-actions { gap: 12px; }
  .detail-primary { flex: 1; width: auto; }
  .detail-primary, .detail-secondary { height: 48px; font-size: 15px; }
  .detail-info-section > p, .detail-feature-item p, .detail-tip { font-size: 14px; line-height: 24px; }
  .product-card-topline select { min-height: 36px; font-size: 16px; background-position: right 8px center; }

  .order-hero { padding-bottom: 24px; }
  .order-hero-layout { gap: 16px; margin-top: 22px; }
  .order-hero h1 { font-size: 28px; line-height: 38px; }
  .order-hero h1 + p { margin-top: 12px; }
  .order-hero-status { gap: 4px; padding: 12px 14px; }
  .order-assurances { margin-top: 20px; }
  .order-assurance { min-height: 0; padding: 12px 4px; gap: 6px; }
  .order-assurance img { flex-basis: 28px; width: 28px; height: 28px; }
  .order-progress { height: 80px; padding: 12px 8px; }
  .order-progress-item { min-height: 52px; }
  .order-form { padding: 24px 16px; }
  .order-step { scroll-margin-top: 16px; }
  .order-form-grid, .order-form-grid-address { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .order-form label > span { font-size: 14px; line-height: 22px; }
  .order-form input, .order-form select { height: 48px; font-size: 16px; }
  .order-form .order-consent input { width: 20px; height: 20px; flex-basis: 20px; }
  .order-primary-button, .order-secondary-button { min-height: 48px; font-size: 15px; }
  .order-examples { gap: 6px 12px; }
  .order-examples button { min-height: 36px; font-size: 13px; }
  .order-step-heading > p:last-child { font-size: 14px; line-height: 24px; }
  .order-aside-note button { height: 44px; }
  .order-hotline { min-height: 70px; }
  .consult-dialog { max-height: calc(100dvh - 32px); border-radius: 16px; overscroll-behavior: contain; }
  .consult-dialog input, .consult-dialog select, .consult-dialog textarea { min-height: 48px; font-size: 16px; border-radius: 8px; }
  .dialog-close { flex-shrink: 0; width: 40px; height: 40px; }
  .dialog-submit { height: 48px; border-radius: 24px; }
}

@media (max-width: 359px) {
  .home-header .header-inner { column-gap: 8px; }
  .home-logo, .home-logo img { width: 82px; height: 30px; }
  .header-phone b { font-size: 12px; }
  .home-header .header-order { min-width: 64px; font-size: 12px; }
  .header-nav a { font-size: 13px; }
  .hero-copy { padding: 22px 16px; }
  .hero-copy h1 { font-size: 25px; }
  .hero-copy > p { font-size: 13px; line-height: 22px; }
  .hero-actions a { padding: 0 10px; font-size: 12px; }
  .term-card { padding-right: 12px; padding-left: 12px; }
  .term-card strong { font-size: 35px; }
}

/* 手机端四张轮播切图均为 1:1：本机预览和线上后台配置保持同一规格。 */
@media (max-width: 760px) {
  .hero-frame.is-local-mobile-banner-preview .hero-slide,
  .hero-frame.is-local-mobile-banner-preview .hero-slide:not(.hero-image-slide) {
    border-radius: 12px;
  }
  .hero-frame.is-local-mobile-banner-preview .hero-slide:not(.hero-image-slide) > img {
    object-position: center;
  }
  /* phone_banner1 已预留首屏文案的浅色区域，线上和本机都不能再叠加旧版整层蒙版。 */
  .hero-frame .hero-slide:not(.hero-image-slide) .hero-copy {
    background: transparent;
  }
  .hero-frame.is-local-mobile-banner-preview .hero-image-slide > img {
    object-fit: cover;
  }

  /* 内页顶部图和首页使用同一组手机端 1:1 切图，避免横幅在手机上过矮。 */
  .product-hero .home-container,
  .process-flow-hero .home-container,
  .coverage-map-banner {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .product-hero picture,
  .process-flow-hero picture,
  .coverage-map-banner picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .product-hero img,
  .process-flow-hero img,
  .coverage-map-banner img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}
