:root {
    --paper: #f3f0e8;
    --paper-light: #faf8f1;
    --ink: #171717;
    --muted: #625f58;
    --line: #b9b4aa;
    --cobalt: #2447d7;
    --cobalt-dark: #1937b1;
    --cobalt-pale: #e2e7fb;
    --wechat: #07c160;
    --wechat-dark: #05a84f;
    --white: #ffffff;
    --rail-width: 70px;
    --container: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

a,
button {
    color: inherit;
    font: inherit;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
strong {
    font-weight: 760;
}

ol,
ul {
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 4px;
}

.page-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--rail-width);
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--ink);
    background: var(--paper-light);
}

.rail-mark {
    display: grid;
    width: 100%;
    height: 70px;
    place-items: center;
    border-bottom: 1px solid var(--ink);
    color: var(--white);
    background: var(--cobalt);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.08em;
}

.rail-title {
    display: flex;
    flex: 1;
    align-items: center;
    margin: 0;
    padding-top: 28px;
    padding-block: 24px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    writing-mode: vertical-rl;
}

.rail-year {
    padding-bottom: 25px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
}

.editorial-shell {
    min-width: 0;
    margin-left: var(--rail-width);
}

.nav-shell,
.hero,
.chapter,
.site-footer {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--ink);
    background: rgba(243, 240, 232, 0.96);
}

.nav-shell {
    position: relative;
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 27px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 680;
}

.site-menu > a:not(.nav-plus) {
    position: relative;
    padding-block: 10px;
}

.site-menu > a:not(.nav-plus)::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--cobalt);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-menu > a:not(.nav-plus):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-plus,
.button,
.plan-button,
.wechat-float {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-plus {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--cobalt);
    border-radius: 2px;
    color: var(--white);
    background: var(--cobalt);
}

.nav-plus:hover,
.nav-plus:focus-visible {
    border-color: var(--cobalt-dark);
    background: var(--cobalt-dark);
}

.reservation-trigger {
    transform-origin: center;
    animation: reservation-wobble 10s ease-in-out infinite;
}

@keyframes reservation-wobble {
    0%,
    88%,
    100% {
        rotate: 0deg;
    }

    90% {
        rotate: -4deg;
    }

    92% {
        rotate: 4deg;
    }

    94% {
        rotate: -3deg;
    }

    96% {
        rotate: 2deg;
    }

    98% {
        rotate: 0deg;
    }
}

.nav-plus:active,
.button:active,
.plan-button:active,
.wechat-float:active {
    transform: translateY(1px) scale(0.99);
}

.menu-toggle {
    display: none;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--paper-light);
    font-weight: 750;
}

.hero {
    border-bottom: 1px solid var(--ink);
}

.hero-main {
    display: grid;
    min-height: max(500px, calc(100dvh - 210px));
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
}

.hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 58px 68px 58px 0;
}

.hero-offer {
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cobalt);
    color: var(--cobalt);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.025em;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 24px;
    font-size: clamp(52px, 5.7vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.065em;
}

.hero-lead {
    max-width: 570px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 760;
}

.button-primary {
    border-color: var(--cobalt);
    color: var(--white);
    background: var(--cobalt);
}

.button-primary:hover,
.button-primary:focus-visible {
    border-color: var(--cobalt-dark);
    background: var(--cobalt-dark);
}

.button-secondary {
    background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: var(--white);
    background: var(--ink);
}

.hero-process {
    align-self: center;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--ink);
    list-style: none;
}

.hero-process li {
    display: grid;
    min-height: 142px;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    border-top: 1px solid var(--line);
}

.hero-process li:last-child {
    border-bottom: 1px solid var(--line);
}

.hero-process li > span {
    padding-left: 24px;
    color: var(--cobalt);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(50px, 5vw, 76px);
    font-weight: 700;
    letter-spacing: -0.09em;
    line-height: 1;
}

.hero-process li > div {
    padding: 24px 24px 24px 18px;
}

.hero-process strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.hero-process p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.hero-index {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
}

.hero-index article {
    min-height: 132px;
    padding: 21px 20px;
    border-left: 1px solid var(--line);
}

.hero-index article:first-child {
    border-left: 0;
}

.hero-index span,
.service-index,
.plan-index {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hero-index span {
    display: block;
    margin-bottom: 17px;
    color: var(--cobalt);
    font-size: 11px;
}

.hero-index strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.hero-index p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.chapter {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    padding-block: 108px;
    border-bottom: 1px solid var(--ink);
}

.chapter-number {
    padding-top: 9px;
    color: var(--cobalt);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.chapter-heading {
    max-width: 800px;
    margin-bottom: 48px;
}

.chapter-heading h2,
.promise-columns h2,
.contact-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4.1vw, 52px);
    line-height: 1.18;
    letter-spacing: -0.05em;
}

.chapter-heading p {
    max-width: 65ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.market-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(250px, 0.72fr);
    column-gap: 58px;
}

.market-editorial .chapter-heading {
    grid-column: 1 / -1;
}

.guide-heading {
    max-width: 920px;
}

.chapter-heading .guide-answer {
    max-width: 78ch;
    color: var(--ink);
}

.chapter-heading .guide-updated {
    max-width: 90ch;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.guide-updated a {
    color: var(--cobalt);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
    list-style: none;
}

.guide-steps li {
    display: grid;
    min-height: 190px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 26px;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.guide-steps li > span {
    padding-top: 3px;
    color: var(--cobalt);
    font-size: 12px;
    font-weight: 780;
}

.guide-steps h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.guide-steps p {
    margin-bottom: 0;
    color: var(--muted);
}

.market-lead {
    display: grid;
    min-height: 310px;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    padding: 30px 34px 30px 0;
    border-top: 1px solid var(--ink);
}

.drop-cap {
    color: var(--cobalt);
    font-size: 132px;
    font-weight: 800;
    letter-spacing: -0.12em;
    line-height: 0.82;
}

.market-lead h3,
.market-notes h3,
.service-directory h3,
.safety-directory h3,
.faq-ledger h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.market-lead p,
.market-notes p,
.service-directory p,
.safety-directory p,
.faq-ledger p {
    margin-bottom: 0;
    color: var(--muted);
}

.market-notes {
    border-top: 1px solid var(--ink);
}

.market-notes article {
    min-height: 155px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.market-notes article:last-child {
    border-bottom-color: var(--ink);
}

.service-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
}

.service-directory article {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    padding: 28px;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.service-index {
    margin-bottom: auto;
    color: var(--cobalt);
    font-size: 32px;
    font-weight: 760;
}

.service-directory p {
    max-width: 44ch;
    margin-bottom: 22px;
}

.service-directory strong {
    color: var(--cobalt);
    font-size: 12px;
}

.pricing-ledger {
    border-top: 1px solid var(--ink);
}

.pricing-row {
    display: grid;
    grid-template-columns: 48px 205px minmax(0, 1fr) 145px;
    gap: 24px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--ink);
}

.pricing-row.is-featured {
    margin-inline: -20px;
    padding-inline: 20px;
    border-color: var(--cobalt);
    color: var(--white);
    background: var(--cobalt);
}

.plan-index {
    padding-top: 3px;
    color: var(--cobalt);
    font-size: 12px;
    font-weight: 760;
}

.is-featured .plan-index {
    color: var(--white);
}

.plan-title > small,
.plan-labels > small {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 780;
}

.is-featured .plan-title > small,
.is-featured .plan-labels > small {
    color: rgba(255, 255, 255, 0.78);
}

.plan-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}

.plan-labels > small {
    margin-bottom: 0;
}

.plan-labels .discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--white);
    background: var(--cobalt);
    line-height: 1.3;
}

.plan-title h3 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.25;
}

.price {
    margin-bottom: 0;
    color: var(--cobalt);
    font-size: 30px;
    font-weight: 820;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.price small {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
}

.original-price {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.original-price del {
    text-decoration-thickness: 1px;
}

.is-featured .price {
    color: var(--white);
}

.plan-summary {
    margin-bottom: 14px;
    font-weight: 730;
}

.plan-detail ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 24px;
    margin-bottom: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
}

.is-featured .plan-detail ul {
    color: rgba(255, 255, 255, 0.86);
}

.plan-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 15px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 770;
}

.plan-button:hover,
.plan-button:focus-visible {
    color: var(--white);
    background: var(--ink);
}

.is-featured .plan-button {
    border-color: var(--white);
    color: var(--cobalt);
    background: var(--white);
}

.is-featured .plan-button:hover,
.is-featured .plan-button:focus-visible {
    color: var(--white);
    background: transparent;
}

.pricing-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

.pricing-notes p {
    margin-bottom: 0;
}

.promise-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promise-columns article {
    min-height: 390px;
    padding: 6px 52px 6px 0;
}

.promise-columns article + article {
    padding-right: 0;
    padding-left: 52px;
    border-left: 1px solid var(--ink);
}

.promise-columns h2 {
    max-width: 10ch;
    font-size: clamp(31px, 3.4vw, 44px);
}

.promise-columns ul {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.promise-columns li {
    position: relative;
    padding: 14px 0 14px 24px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.promise-columns li::before {
    position: absolute;
    top: 23px;
    left: 1px;
    width: 8px;
    height: 1px;
    content: "";
    background: var(--cobalt);
}

.safety-directory {
    border-top: 1px solid var(--ink);
}

.safety-directory article {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.safety-directory article:last-child {
    border-bottom-color: var(--ink);
}

.safety-directory article > span {
    color: var(--cobalt);
    font-size: 13px;
    font-weight: 780;
}

.safety-directory h3 {
    margin-bottom: 5px;
}

.faq-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
}

.faq-column {
    min-width: 0;
}

.faq-column + .faq-column {
    padding-left: 38px;
    border-left: 1px solid var(--ink);
}

.faq-column:first-child {
    padding-right: 38px;
}

.faq-ledger article {
    min-height: 170px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.faq-ledger h3 {
    padding-right: 12px;
}

.chapter-contact {
    display: block;
    padding-block: 92px;
}

.contact-manual {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
    gap: 54px;
    padding: 52px;
    color: var(--white);
    background: var(--cobalt);
}

.contact-copy > p:first-child,
.qr-modal__copy > p {
    margin-bottom: 20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.06em;
}

.contact-copy h2 {
    max-width: 12ch;
}

.contact-copy > p:not(:first-child) {
    max-width: 52ch;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.82);
}

.contact-copy ol {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.contact-copy li {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 14px;
}

.contact-copy li span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 11px;
}

.contact-qr {
    align-self: center;
    padding: 18px;
    color: var(--ink);
    background: var(--white);
}

.contact-qr__frame {
    overflow: hidden;
    max-width: 330px;
    margin-inline: auto;
    border: 1px solid #d7d7d7;
    background: var(--white);
}

.contact-qr img {
    width: 100%;
    height: auto;
}

.contact-qr strong,
.contact-qr > span {
    display: block;
    text-align: center;
}

.contact-qr strong {
    margin-top: 15px;
    font-size: 15px;
}

.contact-qr > span {
    color: var(--muted);
    font-size: 11px;
}

.site-footer {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.site-footer a {
    color: var(--ink);
    font-weight: 760;
}

.wechat-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: inline-flex;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    padding: 7px 22px 7px 9px;
    border: 1px solid var(--wechat);
    border-radius: 14px;
    color: var(--white);
    background: var(--wechat);
    box-shadow: 0 12px 28px rgba(7, 193, 96, 0.24);
    font-size: 16px;
    font-weight: 780;
}

.wechat-float:hover,
.wechat-float:focus-visible {
    border-color: var(--wechat-dark);
    background: var(--wechat-dark);
}

.wechat-float__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.qr-modal[hidden] {
    display: none;
}

.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    place-items: center;
    padding: 24px;
}

.qr-modal.is-open {
    display: grid;
}

.qr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 23, 0.66);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.qr-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    overflow: hidden;
    width: min(680px, calc(100vw - 48px));
    max-height: 92dvh;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    border: 1px solid var(--ink);
    border-radius: 16px;
    background: var(--paper-light);
    box-shadow: 0 26px 72px rgba(23, 23, 23, 0.28);
    transform-origin: center;
}

.qr-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(23, 23, 23, 0.2);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(250, 248, 241, 0.96);
    box-shadow: 0 6px 20px rgba(23, 23, 23, 0.1);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.qr-modal__close:hover {
    border-color: var(--cobalt);
    color: var(--white);
    background: var(--cobalt);
}

.qr-modal__close:focus-visible {
    outline: 2px solid var(--cobalt);
    outline-offset: 3px;
    border-color: var(--cobalt);
    color: var(--cobalt);
    background: var(--paper-light);
}

.qr-modal__close:active {
    transform: scale(0.94);
}

.qr-modal__close span {
    display: block;
    margin-top: -2px;
}

.qr-modal__copy {
    display: flex;
    min-height: 450px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 42px 28px 28px;
    color: var(--white);
    background: var(--cobalt);
}

.qr-modal__copy h2 {
    max-width: 9ch;
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.qr-modal__lead {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.qr-modal__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: auto 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    list-style: none;
}

.qr-modal__steps li {
    min-width: 0;
}

.qr-modal__steps small,
.qr-modal__steps strong {
    display: block;
}

.qr-modal__steps small {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.64);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
}

.qr-modal__steps strong {
    font-size: 11px;
    line-height: 1.35;
}

.qr-modal__image {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 58px 28px 24px;
    background: var(--paper-light);
}

.qr-modal__image-frame {
    width: min(100%, 250px);
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--white);
}

.qr-modal__image-frame img {
    width: 100%;
    height: auto;
}

.qr-modal__caption {
    display: grid;
    gap: 1px;
    margin: 13px 0 0;
    text-align: center;
}

.qr-modal__caption strong {
    color: var(--ink);
    font-size: 12px;
}

.qr-modal__caption span {
    color: var(--muted);
    font-size: 10px;
}

.qr-modal.is-open .qr-modal__backdrop {
    animation: qr-backdrop-enter 180ms ease-out both;
}

.qr-modal.is-open .qr-modal__panel {
    animation: qr-modal-enter 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes qr-backdrop-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes qr-modal-enter {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.motion-ready .hero [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 1040px) {
    .hero-main {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.88fr);
    }

    .hero-copy {
        padding-right: 44px;
    }

    .hero h1 {
        font-size: clamp(48px, 6.4vw, 66px);
    }

    .hero-process li {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .hero-process li > span {
        padding-left: 18px;
        font-size: 56px;
    }

    .chapter {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .pricing-row {
        grid-template-columns: 44px 178px minmax(0, 1fr) 130px;
        gap: 18px;
    }

    .plan-detail ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    html {
        scroll-padding-top: 70px;
    }

    .page-rail {
        display: none;
    }

    .editorial-shell {
        margin-left: 0;
    }

    .nav-shell,
    .hero,
    .chapter,
    .site-footer {
        width: min(100% - 36px, var(--container));
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-menu {
        position: absolute;
        top: 100%;
        right: -18px;
        left: -18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 18px 18px;
        border-bottom: 1px solid var(--ink);
        background: var(--paper-light);
        white-space: normal;
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu > a:not(.nav-plus) {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .site-menu > a:not(.nav-plus)::after {
        display: none;
    }

    .nav-plus {
        margin-top: 12px;
    }

    .hero-main {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: 500px;
        padding: 60px 0 48px;
    }

    .hero-process {
        border-left: 0;
        border-top: 1px solid var(--ink);
    }

    .hero-process li {
        min-height: 124px;
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .hero-process li:first-child {
        border-top: 0;
    }

    .hero-process li > span {
        padding-left: 0;
        font-size: 50px;
    }

    .hero-process li > div {
        padding-right: 0;
    }

    .hero-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-index article:nth-child(odd) {
        border-left: 0;
    }

    .hero-index article:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .chapter {
        grid-template-columns: 1fr;
        padding-block: 78px;
    }

    .chapter-number {
        margin-bottom: 28px;
        padding-top: 0;
    }

    .market-editorial {
        column-gap: 34px;
    }

    .market-lead {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .drop-cap {
        font-size: 98px;
    }

    .pricing-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 18px 20px;
    }

    .plan-detail,
    .plan-button {
        grid-column: 2;
    }

    .plan-button {
        justify-self: start;
    }

    .pricing-row.is-featured {
        margin-inline: 0;
    }

    .contact-manual {
        gap: 38px;
        padding: 38px;
    }

    .qr-modal__panel {
        grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1.18fr);
    }

    .qr-modal__copy {
        padding-inline: 26px;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .hero,
    .chapter,
    .site-footer {
        width: min(100% - 32px, var(--container));
    }

    .site-menu {
        right: -16px;
        left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .brand {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-copy {
        min-height: 470px;
        padding: 50px 0 44px;
    }

    .hero-offer {
        max-width: 100%;
        font-size: 11px;
    }

    .hero h1 {
        margin-bottom: 20px;
        font-size: clamp(43px, 14vw, 58px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .button {
        flex: 1 1 150px;
        padding-inline: 14px;
    }

    .hero-process li {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .hero-process li > span {
        font-size: 42px;
    }

    .hero-process li > div {
        padding-left: 12px;
    }

    .hero-index {
        grid-template-columns: 1fr;
    }

    .hero-index article {
        min-height: 105px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .hero-index article:first-child {
        border-top: 0;
    }

    .chapter {
        padding-block: 68px;
    }

    .chapter-heading {
        margin-bottom: 36px;
    }

    .chapter-heading h2,
    .contact-copy h2 {
        font-size: 34px;
    }

    .chapter-heading p {
        font-size: 16px;
    }

    .market-editorial,
    .market-lead,
    .guide-steps,
    .service-directory,
    .promise-columns,
    .faq-ledger,
    .contact-manual,
    .pricing-notes {
        grid-template-columns: 1fr;
    }

    .market-lead {
        min-height: auto;
        padding-right: 0;
    }

    .drop-cap {
        margin-bottom: 25px;
        font-size: 82px;
    }

    .market-notes {
        margin-top: 40px;
    }

    .service-directory article {
        min-height: 245px;
        padding: 24px;
    }

    .pricing-row {
        grid-template-columns: 36px minmax(0, 1fr);
        padding-block: 28px;
    }

    .plan-detail ul {
        padding-left: 17px;
    }

    .pricing-notes {
        gap: 12px;
    }

    .promise-columns article,
    .promise-columns article + article {
        min-height: auto;
        padding: 0;
        border-left: 0;
    }

    .promise-columns article + article {
        margin-top: 58px;
        padding-top: 58px;
        border-top: 1px solid var(--ink);
    }

    .promise-columns h2 {
        max-width: none;
        font-size: 34px;
    }

    .safety-directory article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .faq-column:first-child,
    .faq-column + .faq-column {
        padding: 0;
        border-left: 0;
    }

    .faq-column + .faq-column article:first-child {
        border-top: 0;
    }

    .faq-ledger article {
        min-height: auto;
    }

    .chapter-contact {
        padding-block: 56px;
    }

    .contact-manual {
        gap: 36px;
        padding: 28px 22px;
    }

    .contact-copy h2 {
        max-width: none;
    }

    .contact-qr {
        width: 100%;
    }

    .wechat-float {
        right: 14px;
        bottom: 14px;
        min-height: 54px;
        gap: 9px;
        padding: 8px 15px 8px 9px;
        border-radius: 12px;
        font-size: 14px;
    }

    .wechat-float__icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .qr-modal {
        padding: 14px;
    }

    .qr-modal__panel {
        overflow-y: auto;
        width: min(100%, 430px);
        grid-template-columns: 1fr;
    }

    .qr-modal__copy {
        min-height: auto;
        padding: 48px 24px 24px;
    }

    .qr-modal__copy h2 {
        max-width: 11ch;
        font-size: 30px;
    }

    .qr-modal__steps {
        margin-top: 28px;
    }

    .qr-modal__image {
        padding: 24px 24px 26px;
    }

    .qr-modal__image-frame {
        width: min(100%, 240px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .motion-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .reservation-trigger {
        animation: none;
        rotate: 0deg;
    }
}
