:root {
    --bg: #E6E2DA;
    --bg-deep: #D4CFC6;
    --panel: #F4F1EA;
    --panel-soft: #EBE7DF;
    --ink: #2C2A28;
    --text: #3A3732;
    --muted: #6A645C;
    --soft: #8A847A;
    --elephant: #B8B3A8;
    --moss: #6A7A58;
    --clay: #A65A3A;
    --border: rgba(44,42,40,0.14);
    --border-strong: rgba(166,90,58,0.36);
    --shadow: 0 12px 28px rgba(44,42,40,0.08);
    --content: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 120px;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 3px solid rgba(166,90,58,0.38);
    outline-offset: 2px;
}

.site-shell { min-height: 100vh; }
.top-inner, .head-inner, .step-inner, .footer-inner, .site-main {
    width: min(calc(100% - 32px), var(--content));
    margin: 0 auto;
}

.xiang-news {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 80;
    background: var(--ink);
    color: var(--panel);
    font-size: 12px;
}
.top-inner {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.top-search {
    border: 0;
    background: transparent;
    color: var(--panel);
    padding: 0 8px;
    min-width: 44px;
    height: 20px;
    cursor: pointer;
}

.xiang-head {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    height: 54px;
    z-index: 78;
    background: var(--elephant);
    border-bottom: 1px solid rgba(44,42,40,0.25);
}
.head-inner {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.brand-link img { height: 24px; width: auto; object-fit: contain; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.app-link, .drawer-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 13px;
    white-space: nowrap;
}
.app-link { background: var(--panel); border: 1px solid var(--border-strong); color: var(--ink); }
.drawer-toggle { background: var(--ink); color: var(--panel); border: 1px solid var(--ink); cursor: pointer; }
.app-link:hover, .drawer-toggle:hover { transform: translateY(-1px); }

.xiang-step {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    height: 46px;
    z-index: 75;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}
.step-inner { height: 46px; display: flex; align-items: center; gap: 28px; }
.step-inner a {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
}
.step-inner a span { color: var(--clay); font-size: 12px; }
.step-inner a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--clay);
}
.step-inner a.is-current span { color: var(--ink); }

.site-main { padding: 34px 0 70px; min-height: 60vh; }
.page-lead { margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--clay); font-size: 12px; letter-spacing: .08em; }
.lead-number { display: block; margin-bottom: 4px; color: var(--clay); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
h1, h2, h3 { color: var(--ink); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead-copy { max-width: 760px; color: var(--text); }
.kicker { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.section-block { margin-top: 34px; }

.has-top-gap { margin-top: 16px; }
.lead-center { text-align: center; }
.lead-copy-center { margin-inline: auto; }
.btn-row-center { justify-content: center; }
.title-after-media { margin-top: 14px; }
.section-head { margin-bottom: 16px; }
.section-head p { color: var(--muted); max-width: 760px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-primary, .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg,#B8B3A8 0%,#2C2A28 100%); color: var(--panel); box-shadow: var(--shadow); }
.btn-secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--clay); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); }

.media-slot {
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--elephant);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-placeholder { width: 42px; height: 3px; background: rgba(44,42,40,0.25); border-radius: 3px; }
.media-short { height: 180px; }
.media-banner { height: 200px; }
.media-tall { height: 300px; }
.media-small { min-height: 92px; height: 92px; }
.media-soft { background: var(--panel); }

.numbered-intro {
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--clay);
    border-radius: 8px;
}

.vertical-steps { display: grid; gap: 12px; }
.vertical-step {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.step-no { color: var(--clay); font-weight: 700; font-size: 18px; }
.vertical-step .media-slot { margin: 12px 0 0; }

.quote-stack { display: grid; gap: 14px; }
.quote-card {
    position: relative;
    padding: 22px 24px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.quote-card::before { content: "“"; position: absolute; top: 4px; right: 16px; font-size: 44px; line-height: 1; color: var(--elephant); }
.quote-card strong { display: block; margin-bottom: 8px; color: var(--ink); }

.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.info-card { padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.info-card p:last-child { margin-bottom: 0; }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.triad article { padding: 18px; background: var(--panel-soft); border-top: 3px solid var(--moss); border-radius: 8px; }
.triad .label { color: var(--moss); font-weight: 700; }

.status-list { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--panel); font-size: 12px; }
.status-pill.pending { background: var(--moss); }
.status-pill.wait { background: var(--clay); }

.product-split { display: grid; grid-template-columns: minmax(260px,.82fr) minmax(0,1.18fr); gap: 24px; align-items: start; }
.product-art { display: grid; gap: 12px; }
.app-icon-wrap { width: 64px; min-height: 64px; padding: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.app-icon-wrap img { width: 48px; height: 48px; object-fit: contain; }
.app-icon-placeholder { width: 48px; height: 48px; background: var(--elephant); border-radius: 8px; }
.product-copy { padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }

.method-list { display: grid; gap: 10px; }
.method-item { padding: 17px 18px; border-bottom: 1px solid var(--border); background: transparent; }
.method-item strong { display: block; color: var(--ink); margin-bottom: 4px; }

.faq-mini { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.faq-mini article { padding: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }

.wide-frame { margin: 18px 0 24px; }
.scene-sequence { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.scene-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px; background: var(--panel); border-bottom: 1px solid var(--border); }
.scene-row:last-child { border-bottom: 0; }
.scene-row strong { color: var(--clay); }

.observation-quotes { display: grid; gap: 16px; }
.observation-quotes blockquote { margin: 0; padding: 24px 26px; background: var(--panel-soft); border-left: 4px solid var(--moss); border-radius: 6px; }
.observation-quotes cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; font-size: 13px; }

.single-column { max-width: 760px; }
.single-column section { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.single-column section:last-child { border-bottom: 0; }

.memo-list { display: grid; gap: 12px; }
.memo-item { padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.memo-item ul { margin: 8px 0 0; padding-left: 20px; }

.topic-list { display: grid; gap: 14px; }
.topic-item { display: grid; grid-template-columns: 160px 1fr; gap: 22px; padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.topic-item .topic-tag { color: var(--clay); font-size: 13px; font-weight: 700; }

.center-card { max-width: 760px; margin: 0 auto; text-align: center; padding: 28px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.center-card .media-slot { margin-bottom: 18px; }
.center-card-list { margin-top: 26px; display: grid; gap: 12px; text-align: left; }
.center-card-list article { padding: 16px 18px; background: var(--panel-soft); border-radius: 8px; }

.policy-sections { display: grid; gap: 16px; }
.policy-sections section { padding: 20px 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.policy-sections ul { padding-left: 20px; margin: 8px 0 0; }

.faq-full { display: grid; gap: 12px; }
.faq-full article { padding: 20px 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.faq-full article p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contact-grid article { padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }

.site-footer { background: #241F1C; color: #E6E2DA; border-top: 1px solid rgba(184,179,168,.25); }
.footer-inner { padding: 32px 0 74px; font-size: 13px; }
.footer-brand { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid rgba(184,179,168,.22); }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 24px; width: auto; object-fit: contain; }
.footer-logo strong, .footer-logo span { display: block; color: #F4F1EA; }
.footer-logo span { font-size: 11px; color: #B8B3A8; letter-spacing: .08em; }
.footer-brand p { color: #D4CFC6; }
.footer-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 24px 0; }
.footer-groups h2 { font-size: 13px; color: #F4F1EA; margin: 0 0 8px; }
.footer-groups a { display: block; min-height: 44px; padding: 6px 0; color: #D4CFC6; }
.footer-groups a:hover { color: #F4F1EA; }
.footer-bottom { padding-top: 18px; border-top: 1px solid rgba(184,179,168,.22); color: #B8B3A8; }

.site-drawer {
    position: fixed;
    z-index: 120;
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
    max-width: 86vw;
    overflow-y: auto;
    background: var(--panel);
    color: var(--ink);
    box-shadow: 16px 0 40px rgba(44,42,40,.16);
    transform: translateX(-102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, visibility .22s ease;
}
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 16px; background: var(--elephant); border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand img { height: 24px; width: auto; object-fit: contain; }
.drawer-head button { min-height: 44px; border: 1px solid var(--ink); background: var(--ink); color: var(--panel); border-radius: 7px; padding: 0 12px; cursor: pointer; }
.drawer-groups { padding: 10px 16px 24px; }
.drawer-groups section { padding: 14px 0; border-bottom: 1px solid var(--border); }
.drawer-groups h2 { font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.drawer-groups a { display: block; min-height: 52px; padding: 8px 6px; border-radius: 6px; }
.drawer-groups a:hover { background: var(--panel-soft); }
.drawer-groups strong, .drawer-groups span { display: block; }
.drawer-groups strong { color: var(--ink); font-size: 14px; }
.drawer-groups span { margin-top: 1px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(36,31,28,.36);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.page-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.search-panel {
    position: fixed;
    z-index: 125;
    top: 74px;
    left: 50%;
    width: min(calc(100% - 32px), 760px);
    transform: translate(-50%,-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.search-panel.is-open { opacity: 1; transform: translate(-50%,0); visibility: visible; pointer-events: auto; }
.search-card { padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.search-head span { color: var(--clay); font-size: 12px; }
.search-head h2 { margin: 2px 0 0; }
.search-head button { min-height: 44px; border: 1px solid var(--border); background: var(--panel-soft); border-radius: 7px; padding: 0 12px; cursor: pointer; }
.search-card label { display: block; margin: 10px 0 5px; color: var(--muted); font-size: 13px; }
.search-card input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 7px; background: #fff; color: var(--ink); }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 7px; background: var(--ink); color: var(--panel); }
.search-empty { margin-top: 12px; color: var(--muted); }

.mobile-bottom { display: none; }

@media (max-width: 760px) {
    body { padding-top: 74px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .top-inner, .head-inner, .footer-inner, .site-main { width: calc(100% - 32px); }
    .xiang-step { display: none; }
    .head-inner { gap: 8px; }
    .head-actions { gap: 4px; }
    .app-link, .drawer-toggle { padding: 0 10px; }
    .site-main { padding-top: 24px; }
    .numbered-intro { padding: 20px; }
    .card-grid-2, .faq-mini, .contact-grid, .triad, .footer-brand, .product-split, .footer-groups { grid-template-columns: 1fr; }
    .vertical-step { grid-template-columns: 44px 1fr; gap: 10px; }
    .scene-row { grid-template-columns: 1fr; gap: 8px; }
    .topic-item { grid-template-columns: 1fr; gap: 8px; }
    .media-tall { height: 280px; }
    .footer-inner { padding-bottom: 82px; }
    .footer-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-panel {
        inset: 0;
        width: auto;
        transform: translateY(-8px);
        background: var(--ink);
        color: var(--panel);
    }
    .search-panel.is-open { transform: translateY(0); }
    .search-card { min-height: 100%; border: 0; border-radius: 0; background: var(--ink); color: var(--panel); padding: 26px 16px; }
    .search-head h2, .search-head span { color: var(--panel); }
    .search-head button { background: var(--panel); color: var(--ink); }
    .search-card label { color: #D4CFC6; }
    .search-presets a { background: var(--panel); color: var(--ink); }
    .search-empty { color: #D4CFC6; }
    .mobile-bottom {
        position: fixed;
        z-index: 70;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(4,1fr);
        background: var(--panel);
        border-top: 1px solid var(--border);
    }
    .mobile-bottom a { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 13px; color: var(--ink); }
    .mobile-bottom a.is-current { background: var(--ink); color: var(--panel); }
}

@media (max-width: 420px) {
    .top-inner { gap: 8px; }
    .top-inner > span { max-width: 72%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .app-link { padding: 0 8px; }
    .drawer-toggle { padding: 0 9px; }
    .footer-groups { grid-template-columns: 1fr 1fr; }
}
