.desktop-brand,
.desktop-language { display: none; }

@media (min-width: 821px) {
  body { background: var(--paper); }

  .app-shell {
    width: 100%;
    height: 100dvh;
    min-height: 560px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .app-shell::after { display: none; }
  .screen { top: 76px; }
  .app-shell .screen .scroll-area { top: 0; bottom: 0; scrollbar-width: auto; }
  .app-shell .screen .scroll-area.with-cta { bottom: 86px; }

  /* The same navigation becomes a site header on desktop. */
  .app-shell[data-current-screen] .bottom-nav {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 2vw, 30px);
    height: 76px;
    padding: 0 max(32px, calc((100vw - 1240px) / 2));
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 252, 246, .97);
    backdrop-filter: blur(16px);
  }
  .desktop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    white-space: nowrap;
  }
  .desktop-brand img { display: block; width: 44px; height: 44px; object-fit: contain; }
  .desktop-brand span { display: grid; gap: 2px; }
  .desktop-brand strong { font: 700 24px/1 var(--serif); letter-spacing: .1em; }
  .desktop-brand small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
  .bottom-nav button[data-nav] {
    display: flex;
    flex: 0 0 auto;
    min-height: 76px;
    padding: 0 8px;
    color: #5b5752;
    font-size: 15px;
  }
  .bottom-nav button[data-nav] svg { display: none; }
  .bottom-nav button[data-nav]::before { top: auto; bottom: 0; width: calc(100% - 16px); height: 3px; }
  .bottom-nav button[data-nav].is-selected { color: var(--qiao-red); }
  .app-shell .bottom-nav .desktop-language {
    display: flex;
    min-height: 38px;
    margin-left: clamp(4px, 1vw, 18px);
    padding: 0 12px;
    border: 1px solid var(--line);
    font-size: 14px;
  }
  .brand-header { display: none; }
  .language-sheet > div {
    top: 84px;
    right: max(32px, calc((100vw - 1240px) / 2));
    bottom: auto;
    left: auto;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 5px 16px 5px 16px;
    animation: none;
  }

  .hero {
    min-height: min(640px, calc(100dvh - 76px));
    padding: clamp(100px, 10vh, 150px) max(40px, calc((100vw - 1180px) / 2)) 84px;
    background-position: center 56%;
    background-size: cover;
  }
  .hero-copy { width: min(52%, 610px); max-width: none; }
  .hero h1 { font-size: clamp(52px, 5vw, 76px); line-height: 1.17; }
  .hero-copy > p { max-width: 510px; font-size: 18px; line-height: 1.85; }
  .hero-link { margin-top: 30px; padding: 0 24px; font-size: 16px; }
  .hero-location { right: max(40px, calc((100vw - 1180px) / 2)); bottom: 36px; width: 230px; padding: 18px 20px; }
  .hero-location b { font-size: 18px; }
  .hero-location small { font-size: 12px; }
  .canton-scene { display: none; }
  .home-scroll { padding: 0; }
  .section-block,
  .city-section,
  .home-story { padding-right: max(40px, calc((100vw - 1180px) / 2)); padding-left: max(40px, calc((100vw - 1180px) / 2)); }
  .section-block { padding-top: 70px; padding-bottom: 70px; }
  .section-heading h2, .content-title h2 { font-size: 34px; }
  .section-heading { margin-bottom: 28px; }
  .platform-card { padding: 36px 42px; }
  .platform-card h3 { font-size: 29px; }
  .platform-card p { max-width: 930px; font-size: 16px; }
  .platform-flow { margin-top: 28px; }
  .platform-flow b { padding: 10px 15px; font-size: 14px; }
  .platform-flow i { flex-basis: 26px; }
  .package-card { display: grid; grid-template-columns: minmax(310px, 43%) 1fr; min-height: 320px; }
  .package-cover { height: 100%; min-height: 320px; padding: 38px; }
  .cover-title { margin-top: 42px; }
  .cover-title strong { font-size: 38px; }
  .package-body { display: flex; flex-direction: column; justify-content: center; padding: 38px 45px; }
  .package-body > p { max-width: 530px; font-size: 18px; }
  .package-footer { margin-top: 24px; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-grid button { min-height: 260px; }
  .city-section { padding-top: 70px; padding-bottom: 75px; }
  .city-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 260px; }
  .city-card { min-height: 260px; padding: 26px; }
  .city-card strong { font-size: 30px; }
  .home-story { min-height: 310px; padding-top: 70px; padding-bottom: 70px; }
  .home-story blockquote { max-width: 700px; font-size: 34px; }

  .page-header,
  .form-scroll > .page-header,
  .article-content > .page-header,
  .service-scroll > .page-header,
  .service-detail-scroll > .page-header,
  .simple-page-scroll > .page-header {
    width: auto;
    max-width: 1180px;
    height: 74px;
    margin: 0 auto 30px;
    padding: 0 20px;
    background: transparent;
  }
  .page-header-overlay { color: var(--ink); }
  .icon-button.glass { color: var(--ink); background: var(--rice); }
  .detail-cover { height: 450px; background-position: center; background-size: cover; }
  .detail-cover-copy { left: max(40px, calc((100vw - 1180px) / 2)); bottom: 62px; }
  .detail-cover-copy h1 { font-size: 51px; }
  .detail-place { right: max(40px, calc((100vw - 1180px) / 2)); }
  .detail-intro,
  .route-strip,
  .timeline-section,
  .package-facts,
  .included-section { padding-right: max(40px, calc((100vw - 1180px) / 2)); padding-left: max(40px, calc((100vw - 1180px) / 2)); }
  .detail-intro { padding-top: 55px; padding-bottom: 36px; }
  .detail-intro h2 { max-width: 830px; font-size: 31px; }
  .detail-intro > p { max-width: 760px; }
  .info-strip { margin-right: max(40px, calc((100vw - 1180px) / 2)); margin-left: max(40px, calc((100vw - 1180px) / 2)); }
  .info-strip strong { font-size: 21px; }
  .route-strip { padding-top: 40px; padding-bottom: 40px; }
  .route-strip > div { gap: 18px; }
  .timeline-section, .package-facts, .included-section { padding-top: 58px; padding-bottom: 58px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .timeline::before { display: none; }
  .timeline article { grid-template-columns: 1fr; align-content: start; gap: 15px; }
  .timeline h3 { font-size: 21px; }
  .timeline p { font-size: 15px; }
  .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .included-section ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .included-section li { border-right: 1px solid var(--line); }
  .price-table { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sticky-cta { height: 86px; padding: 12px max(40px, calc((100vw - 1180px) / 2)); }

  .form-scroll { padding: 0 40px 80px; }
  .form-scroll > .page-header { max-width: 880px; }
  .form-progress, .form-intro, .prototype-form { max-width: 880px; margin-right: auto; margin-left: auto; }
  .form-progress { margin-top: 16px; margin-bottom: 36px; }
  .form-intro h1 { font-size: 39px; }
  .prototype-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; }
  .prototype-form > label { display: block; }
  .prototype-form > label > input,
  .prototype-form > label > select,
  .prototype-form > label > textarea,
  .prototype-form > label > .choice-row,
  .prototype-form > label > .stepper { margin-top: 9px; }
  .prototype-form > .sample-fill { grid-column: 1 / -1; justify-self: start; width: min(100%, 250px); }
  .prototype-form > label:has(textarea),
  .prototype-form > fieldset,
  .prototype-form > .form-divider,
  .prototype-form > .consent { grid-column: 1 / -1; }
  .prototype-form .check-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prototype-form > .primary-button { grid-column: 1 / -1; justify-self: end; width: min(100%, 350px); }
  .success-content { max-width: 630px; margin: auto; padding-top: 65px; }
  .success-content > p { max-width: 500px; }
  .success-content h1 { font-size: 44px; }

  .feature-scroll > .feature-header,
  .news-scroll > .news-header,
  .profile-scroll > .profile-header {
    width: calc(100% + 80px);
    height: 220px;
    margin: 0 -40px 35px;
    padding: 52px max(40px, calc((100vw - 1180px) / 2));
  }
  .feature-header h1, .news-header h1, .profile-header h1 { font-size: 40px; }
  .app-shell .screen .feature-scroll { bottom: 78px; padding: 0 40px 34px; }
  .ai-notice, .chat-list, .quick-section { width: min(100%, 900px); margin-right: auto; margin-left: auto; }
  .message > div:last-child { max-width: 610px; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chat-composer { right: auto; bottom: 0; left: 50%; width: min(100%, 980px); min-height: 78px; padding: 12px 20px; transform: translateX(-50%); }
  .app-shell .screen .news-scroll { padding: 0 40px 70px; }
  .category-tabs, .featured-article, .article-list { max-width: 1180px; margin-right: auto; margin-left: auto; }
  .category-tabs { justify-content: center; }
  .featured-article { display: grid; grid-template-columns: 44% 1fr; }
  .article-art { height: 280px; }
  .featured-article > div:last-child { align-self: center; padding: 38px; }
  .article-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .article-list article { grid-template-columns: 1fr; align-content: start; }
  .article-list .mini-art { grid-row: 1; width: 100%; height: 150px; }
  .article-content { width: min(100%, 860px); margin: auto; padding: 0 40px 80px; }
  .article-content > .page-header { margin-bottom: 38px; }
  .article-content h1 { font-size: 46px; }
  .article-visual { height: 300px; }

  .app-shell .screen .profile-scroll { padding: 0 40px 80px; }
  .member-card, .order-section, .profile-menu { max-width: 1180px; margin-right: auto; margin-left: auto; }
  .member-card { min-height: 220px; padding: 35px; }
  .profile-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
  .profile-menu button { min-height: 86px; }
  .app-shell .screen .service-scroll,
  .app-shell .screen .service-detail-scroll,
  .app-shell .screen .simple-page-scroll { width: min(100%, 1040px); margin: auto; padding: 0 40px 80px; }
  .service-hero { min-height: 220px; padding: 40px; }
  .service-hero h1 { font-size: 38px; }
  .report-summary > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-detail-hero { min-height: 330px; padding: 42px; }
  .service-detail-hero p { max-width: 580px; }
  .profile-data-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .profile-data-form > p, .profile-data-form > .primary-button { grid-column: 1 / -1; }
  .profile-data-form > .primary-button { justify-self: end; width: 300px; }
  .toast { bottom: 25px; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { width: 60%; }
  .hero h1 { font-size: 52px; }
  .city-cards { grid-template-rows: 220px; }
  .city-card { min-height: 220px; }
  .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
