: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;
    --line: rgba(44, 42, 40, 0.14);
    --line-strong: rgba(166, 90, 58, 0.36);
    --shadow: 0 12px 28px rgba(44, 42, 40, 0.08);
    --max: 980px;
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    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;
    text-rendering: optimizeLegibility;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    top: 4px;
    left: 12px;
    z-index: 400;
    transform: translateY(-140%);
    background: var(--panel);
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 180; box-shadow: 0 1px 0 var(--line); }
.bar-inner { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.elephant-news { height: 20px; background: var(--ink); color: var(--panel); font-size: 12px; }
.elephant-news .bar-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-button {
    border: 0;
    padding: 0 2px;
    height: 20px;
    background: transparent;
    color: var(--panel);
    cursor: pointer;
}
.elephant-head { height: 54px; background: var(--elephant); border-bottom: 1px solid rgba(44,42,40,0.28); }
.head-inner { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.brand-logo, .drawer-logo, .footer-logo { height: 24px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { white-space: nowrap; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.app-link, .drawer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 13px;
}
.app-link { background: var(--panel); border: 1px solid var(--line-strong); color: var(--ink); }
.drawer-button { border: 1px solid rgba(44,42,40,.28); background: transparent; cursor: pointer; color: var(--ink); }
.elephant-step { height: 46px; background: var(--panel); border-bottom: 1px solid var(--line); }
.top-nav-inner { height: 46px; display: flex; align-items: stretch; justify-content: flex-start; gap: 22px; }
.top-nav-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; position: relative; color: var(--ink); font-size: 13px; }
.nav-num { color: var(--clay); font-size: 12px; }
.top-nav-link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--clay); }
.top-nav-link.is-current .nav-num { color: var(--ink); }

.site-main { padding-top: 120px; min-height: 70vh; }
.content-wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.page-section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.page-section.compact { padding: 38px 0; }
.page-section:last-child { border-bottom: 0; }
.section-kicker { margin: 0 0 8px; color: var(--clay); font-size: 12px; letter-spacing: .08em; font-weight: 800; }
.big-index { margin: 0 0 12px; color: var(--clay); font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
h1, h2, h3 { margin-top: 0; color: var(--ink); }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.42; margin-bottom: 14px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 15px; }
.lead { max-width: 760px; font-size: 16px; color: var(--text); }
.soft-text { color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.space-top { margin-top: 18px; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.primary-button, .secondary-button {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 14px;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.primary-button { color: var(--panel); background: linear-gradient(135deg,#B8B3A8 0%,#2C2A28 100%); box-shadow: var(--shadow); }
.secondary-button { color: var(--ink); background: var(--panel); border: 1px solid var(--clay); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(166,90,58,.38); outline-offset: 2px; }

.media-slot { width: 100%; background: var(--elephant); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(244,241,234,.3), rgba(44,42,40,.05)); }
.media-short { height: 180px; }
.media-step { height: 150px; max-width: 310px; }
.media-quote { height: 150px; }
.media-header { height: 160px; }
.media-period { height: 170px; }
.media-status { height: 150px; }
.media-app { height: 300px; max-width: 350px; }
.media-icon { width: 48px; height: 48px; border-radius: 10px; flex: 0 0 48px; }
.media-banner { height: 200px; }
.media-detail { height: 210px; }
.media-cover { height: 220px; }

.hero-numbered { padding: 58px 0 50px; background: linear-gradient(180deg, var(--bg), var(--panel-soft)); }
.hero-numbered .hero-copy { max-width: 780px; }
.hero-numbered .hero-line { margin: 0 0 12px; color: var(--ink); font-size: 18px; font-weight: 700; }

.full-frame-feature { background: var(--bg-deep); }
.full-frame-feature .frame-caption { display: flex; justify-content: space-between; gap: 28px; margin-top: 16px; color: var(--muted); }
.full-frame-feature .frame-caption strong { color: var(--ink); }

.vertical-steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step-row { display: grid; grid-template-columns: 74px minmax(0,1fr) minmax(220px,310px); gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.step-row.no-media { grid-template-columns: 74px minmax(0,1fr); }
.step-num { color: var(--clay); font-weight: 800; font-size: 22px; align-self: start; line-height: 1.2; }
.step-row p { margin-bottom: 0; }

.quote-stack { display: grid; gap: 18px; }
.quote-block { background: var(--panel); border-left: 3px solid var(--clay); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px; box-shadow: var(--shadow); }
.quote-block.has-media { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: center; }
.quote-block blockquote { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.65; }
.quote-block p { margin-top: 12px; margin-bottom: 0; color: var(--muted); }

.explain-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.explain-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.explain-card h3 { margin-bottom: 10px; }
.explain-card p:last-child { margin-bottom: 0; }

.period-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 20px; }
.period-card { background: var(--panel-soft); border-top: 3px solid var(--moss); padding: 20px; border-radius: 0 0 var(--radius) var(--radius); }
.period-card .period-label { color: var(--clay); font-weight: 800; font-size: 13px; }
.period-card p:last-child { margin-bottom: 0; }

.status-list { display: grid; gap: 12px; }
.status-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.status-item span:last-child { color: var(--moss); font-weight: 800; font-size: 13px; }

.product-split { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); gap: 34px; align-items: center; }
.product-visual { display: flex; gap: 14px; align-items: flex-start; justify-content: center; }
.product-copy .app-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.product-copy .app-mark strong { color: var(--ink); }

.points-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.points-list li { position: relative; padding: 16px 18px 16px 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.points-list li::before { content: attr(data-no); position: absolute; left: 16px; top: 16px; color: var(--clay); font-weight: 800; }

.faq-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-mini article { padding: 20px; background: var(--panel-soft); border-radius: var(--radius); border: 1px solid var(--line); }
.faq-mini p:last-child { margin-bottom: 0; }

.brand-note { background: var(--ink); color: var(--panel); border-radius: var(--radius); padding: 28px; }
.brand-note h2, .brand-note h3 { color: var(--panel); }
.brand-note p { color: #E6E2DA; }

.inner-hero { padding: 48px 0 28px; }
.inner-hero .intro { max-width: 780px; color: var(--muted); }
.numbered-intro { display: grid; grid-template-columns: 90px 1fr; gap: 22px; align-items: start; }
.numbered-intro .big-index { margin-top: 3px; }

.single-explainer { max-width: 760px; margin: 0 auto; }
.single-explainer article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.single-explainer article:last-child { border-bottom: 0; }
.single-explainer .media-slot { margin: 18px 0 20px; }

.memo-board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.memo-row { display: grid; grid-template-columns: 170px 1fr; gap: 22px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.memo-row:last-child { border-bottom: 0; }
.memo-row h2, .memo-row h3 { margin-bottom: 0; }
.memo-row p:last-child { margin-bottom: 0; }

.method-flow { display: grid; gap: 18px; }
.method-item { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.method-badge { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--clay); color: var(--panel); border-radius: 50%; font-weight: 800; }
.method-copy { padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.topic-list { display: grid; gap: 14px; }
.topic-item { display: grid; grid-template-columns: 180px 1fr auto; gap: 20px; align-items: center; background: var(--panel); padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.topic-item .topic-key { color: var(--clay); font-weight: 800; }
.topic-item .secondary-button { min-width: 108px; }

.centered-card { max-width: 760px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 30px; box-shadow: var(--shadow); text-align: center; }
.centered-card .media-slot { margin: 0 auto 24px; }
.centered-card p { text-align: left; }
.centered-card .button-row { justify-content: center; }

.terms-stack { display: grid; gap: 16px; }
.term-section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.term-section h2 { display: flex; gap: 10px; align-items: baseline; }
.term-section h2 span { color: var(--clay); font-size: 12px; }
.term-section p:last-child { margin-bottom: 0; }

.install-path { display: grid; gap: 0; border-left: 2px solid var(--clay); margin-left: 18px; }
.install-step { position: relative; padding: 0 0 30px 28px; }
.install-step::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--clay); }
.install-step:last-child { padding-bottom: 0; }

.help-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.help-main { display: grid; gap: 14px; }
.help-card { background: var(--panel); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.help-card p:last-child { margin-bottom: 0; }
.help-side { background: var(--bg-deep); border-radius: var(--radius); padding: 22px; align-self: start; }
.help-side a { display: block; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.help-side a:last-child { border-bottom: 0; }

.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.faq-item h2 { font-size: 16px; margin-bottom: 10px; }
.faq-item p { margin-bottom: 0; }

.contact-lanes { display: grid; gap: 16px; }
.contact-lane { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-lane:first-child { border-top: 0; }
.contact-lane h2 { margin-bottom: 0; }

.about-banner { margin-top: 18px; }
.about-statement { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.about-statement .brand-note { position: sticky; top: 142px; }
.about-copy article { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.about-copy article:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.site-footer { background: #241F1C; color: #E6E2DA; border-top: 1px solid var(--elephant); font-size: 13px; padding: 38px 0 calc(38px + env(safe-area-inset-bottom)); }
.footer-main { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand-link { min-height: 44px; display: inline-flex; align-items: center; }
.footer-brand strong { color: var(--panel); }
.footer-brand span { color: #B8B3A8; }
.footer-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; border-top: 1px solid rgba(184,179,168,.22); border-bottom: 1px solid rgba(184,179,168,.22); padding: 20px 0; }
.footer-links h2 { color: var(--panel); font-size: 13px; margin: 0 0 8px; }
.footer-links a { display: inline-flex; min-height: 34px; align-items: center; margin-right: 12px; color: #E6E2DA; }
.footer-note { max-width: 800px; color: #D4CFC6; }
.footer-copy { color: #B8B3A8; margin-bottom: 0; }

.site-drawer {
    position: fixed;
    z-index: 320;
    left: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: var(--panel);
    color: var(--text);
    box-shadow: 16px 0 36px rgba(44,42,40,.18);
    transform: translateX(0);
    transition: transform .2s ease, visibility .2s ease;
    display: flex;
    flex-direction: column;
}
.site-drawer[aria-hidden="true"] { visibility: hidden; pointer-events: none; transform: translateX(-102%); }
.drawer-top { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--elephant); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.close-button { min-height: 44px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 7px; cursor: pointer; }
.drawer-scroll { overflow-y: auto; padding: 8px 16px 24px; }
.drawer-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-group:last-child { border-bottom: 0; }
.drawer-group h2 { font-size: 12px; color: var(--clay); margin: 0 0 8px; }
.drawer-group a { display: block; min-height: 54px; padding: 8px 0; }
.drawer-group strong { display: block; color: var(--ink); font-size: 14px; }
.drawer-group span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 2px; }

.search-layer {
    position: fixed;
    z-index: 310;
    left: 0;
    right: 0;
    top: 74px;
    visibility: visible;
    pointer-events: auto;
}
.search-layer[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.search-card { width: min(100% - 32px, 720px); margin: 10px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); padding: 20px; }
.search-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.search-top strong { color: var(--ink); font-size: 18px; }
.search-top p { margin: 4px 0 0; color: var(--muted); }
.search-label { display: block; margin-top: 16px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.search-input { width: 100%; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 7px; padding: 0 12px; }
.search-results { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-results a { min-height: 54px; padding: 10px 12px; background: var(--panel-soft); border-radius: 7px; border: 1px solid var(--line); color: var(--ink); }
.search-results span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.search-empty { margin: 12px 0 0; color: var(--muted); }
.site-overlay { position: fixed; inset: 0; z-index: 290; background: rgba(36,31,28,.46); visibility: visible; pointer-events: auto; }
.site-overlay[aria-hidden="true"] { visibility: hidden; pointer-events: none; }

.mobile-bottom { display: none; }

@media (max-width: 760px) {
    .bar-inner, .content-wrap { width: calc(100% - 32px); }
    .elephant-step { display: none; }
    .site-main { padding-top: 74px; padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
    .head-actions { gap: 4px; }
    .app-link, .drawer-button { padding: 0 10px; min-width: 44px; }
    .page-section { padding: 40px 0; }
    .hero-numbered { padding: 44px 0 38px; }
    .big-index { font-size: 44px; }
    .section-head { display: block; }
    .section-head p { margin-top: 8px; }
    .step-row, .step-row.no-media { grid-template-columns: 52px minmax(0,1fr); gap: 12px; }
    .step-row .media-slot { grid-column: 1 / -1; max-width: none; margin-top: 6px; }
    .quote-block.has-media { grid-template-columns: 1fr; }
    .quote-block.has-media .media-slot { order: -1; }
    .explain-cards, .period-list, .faq-mini, .footer-links { grid-template-columns: 1fr; }
    .status-item { grid-template-columns: 1fr; gap: 6px; }
    .product-split { grid-template-columns: 1fr; gap: 24px; }
    .product-visual { justify-content: flex-start; }
    .media-app { max-width: 100%; height: 280px; }
    .numbered-intro { grid-template-columns: 1fr; gap: 4px; }
    .memo-row { grid-template-columns: 1fr; gap: 8px; }
    .topic-item { grid-template-columns: 1fr; gap: 8px; }
    .topic-item .secondary-button { justify-self: start; }
    .centered-card { padding: 22px 18px; }
    .help-grid, .about-statement { grid-template-columns: 1fr; }
    .about-statement .brand-note { position: static; }
    .contact-lane { grid-template-columns: 1fr; gap: 8px; }
    .footer-links section { padding-bottom: 10px; border-bottom: 1px solid rgba(184,179,168,.14); }
    .footer-links section:last-child { border-bottom: 0; }
    .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .search-layer { top: 0; bottom: 0; background: var(--ink); color: var(--panel); overflow-y: auto; }
    .search-card { width: calc(100% - 32px); min-height: 100%; margin: 0 auto; padding: 26px 0 80px; background: var(--ink); border: 0; box-shadow: none; }
    .search-top strong, .search-top p, .search-label { color: var(--panel); }
    .search-top .close-button { background: transparent; color: var(--panel); border-color: rgba(244,241,234,.4); }
    .search-results { grid-template-columns: 1fr; }
    .search-results a { background: #F4F1EA; color: var(--ink); }
    .search-empty { color: var(--panel); }
    .mobile-bottom {
        position: fixed;
        z-index: 170;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4,1fr);
        height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--panel);
        border-top: 1px solid var(--line);
    }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 13px; }
    .mobile-bottom a.is-current { background: var(--ink); color: var(--panel); }
}

@media (max-width: 420px) {
    .elephant-news .bar-inner { width: calc(100% - 24px); }
    .bar-inner, .content-wrap { width: calc(100% - 32px); }
    .brand-fallback { font-size: 15px; }
    .app-link { padding: 0 8px; }
    .drawer-button { padding: 0 9px; }
    .full-frame-feature .frame-caption { display: block; }
    .full-frame-feature .frame-caption p + p { margin-top: 8px; }
}
.text-button { position: relative; }
.text-button::before { content: ""; position: absolute; left: -8px; right: -8px; top: -12px; bottom: -12px; }
.primary-button, .secondary-button { min-height: 44px; }
.footer-links a { min-height: 44px; }
.brand-note .section-kicker { color: #E6E2DA; }
