:root {
    --bg: #EEF0F8;
    --deep-bg: #E0E4F2;
    --content: #F7F8FD;
    --secondary: #EBEEF8;
    --title: #1A1840;
    --text: #2C2A48;
    --muted: #5A5680;
    --soft: #7A76A0;
    --purple: #5B4BDB;
    --blue: #3A6BD4;
    --deep: #1C1A3A;
    --mist: #8AA4E0;
    --lilac: #8A6AD4;
    --warm: #F7F8FD;
    --border: rgba(58, 107, 212, 0.18);
    --border-strong: rgba(91, 75, 219, 0.42);
    --shadow: 0 12px 28px rgba(28, 26, 58, 0.08);
    --top-total: 118px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
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;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { border: 0; }
.shell { width: min(1000px, calc(100% - 32px)); margin: 0 auto; }
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 1000; box-shadow: 0 1px 0 var(--border); }
.address-bar { height: 22px; background: var(--deep); color: var(--warm); font-size: 12px; }
.address-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.address-search { background: transparent; color: var(--warm); padding: 0 6px; height: 22px; cursor: pointer; }
.window-bar { height: 54px; background: var(--deep-bg); border-bottom: 1px solid var(--border-strong); }
.window-inner { height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand-home { justify-self: start; display: inline-flex; align-items: center; min-width: 0; }
.brand-logo, .drawer-logo, .footer-logo { height: 24px; width: auto; max-width: 150px; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; font-weight: 800; color: var(--title); white-space: nowrap; }
.app-entry { justify-self: center; color: var(--purple); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; }
.drawer-button { justify-self: end; background: var(--content); color: var(--title); border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 16px; cursor: pointer; }
.tap-target { min-height: 44px; min-width: 44px; }
.section-tabs { height: 42px; background: var(--warm); border-bottom: 1px solid var(--border); }
.tab-wrap { height: 42px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; overflow: hidden; }
.tab-link { font-size: 13px; line-height: 30px; height: 30px; padding: 0 15px; border-radius: 999px; color: var(--text); }
.tab-link:hover, .tab-link:focus-visible { background: var(--secondary); outline: none; }
.tab-link.is-current { background: var(--purple); color: var(--warm); }
.site-main { padding-top: calc(var(--top-total) + 28px); padding-bottom: 48px; }
.hero-section, .page-hero { margin-bottom: 28px; }
.narrow-window { max-width: 780px; margin: 0 auto; background: var(--content); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window-chrome { height: 28px; background: var(--deep); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.window-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); }
.window-body { padding: 18px; }
.media-slot { width: 100%; background: var(--secondary); border: 1px solid var(--border); border-radius: 12px; 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 { min-height: 100%; width: 100%; background: linear-gradient(135deg, rgba(138,164,224,.18), rgba(138,106,212,.12)); }
.banner-slot { height: 168px; }
.section-media { height: 176px; }
.app-media { height: 300px; max-width: 360px; margin: 0 auto; }
.about-cover { height: 260px; }
.icon-slot { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 16px; }
.eyebrow { color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, #8AA4E0 0%, #5B4BDB 55%, #3A6BD4 100%); color: var(--warm); }
.btn-secondary { background: var(--content); color: var(--deep); border: 1px solid var(--border-strong); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(91,75,219,.25); outline-offset: 2px; }
.content-section { margin: 34px auto; }
.surface { background: var(--content); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 22px; }
.longform { max-width: 820px; margin: 0 auto; }
.longform p:last-child { margin-bottom: 0; }
.single-flow { max-width: 860px; margin: 0 auto; display: grid; gap: 18px; }
.stair-stack { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.stair-card { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.stair-card:nth-child(2) { transform: translateX(24px); }
.stair-card .section-media { margin-bottom: 16px; }
.wrap-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.wrap-tags span { background: var(--secondary); color: var(--deep); border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 13px; }
.dual-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dual-card { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.path-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.path-card { background: var(--secondary); border: 1px solid var(--border); border-radius: 12px; padding: 18px; min-height: 138px; }
.center-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 18px; }
.center-card { text-align: center; background: var(--content); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.product-card { max-width: 720px; margin: 0 auto; background: var(--content); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; text-align: center; }
.product-brand { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 auto 16px; }
.product-copy { max-width: 620px; margin: 0 auto; text-align: left; }
.info-list { display: grid; gap: 12px; }
.info-item { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.tool-list { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.tool-item { display: grid; grid-template-columns: 140px 1fr; gap: 18px; background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.note-list { display: grid; gap: 14px; counter-reset: note; }
.note-item { position: relative; padding: 20px 20px 20px 64px; background: var(--content); border: 1px solid var(--border); border-radius: 12px; }
.note-item::before { counter-increment: note; content: counter(note); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: var(--warm); display: grid; place-items: center; font-weight: 800; }
.terms { max-width: 850px; margin: 0 auto; display: grid; gap: 16px; }
.term-block { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.reading-sheet { max-width: 760px; margin: 0 auto; background: var(--content); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.reading-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.reading-controls span { background: var(--deep-bg); color: var(--deep); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-side { background: var(--content); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.compare-side.is-accent { background: var(--deep); color: var(--warm); }
.compare-side.is-accent h2, .compare-side.is-accent h3 { color: var(--warm); }
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.notice { background: var(--deep-bg); color: var(--deep); border: 1px solid var(--border-strong); border-radius: 12px; padding: 18px; }
.dark-block { background: var(--deep); color: var(--warm); border-radius: 14px; padding: 24px; }
.dark-block h2, .dark-block h3 { color: var(--warm); }
.home-intro { display: grid; gap: 18px; }
.home-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.site-footer { background: var(--deep); color: var(--warm); border-top: 1px solid var(--mist); padding: 34px 0 22px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 24px; }
.footer-brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-footer .brand-text { color: var(--warm); }
.site-footer h2 { color: var(--warm); font-size: 14px; margin-bottom: 9px; }
.site-footer a { display: block; color: var(--warm); opacity: .9; padding: 2px 0; }
.site-footer a:hover, .site-footer a:focus-visible { opacity: 1; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(238,240,248,.18); margin-top: 24px; padding-top: 16px; color: rgba(238,240,248,.82); }
.page-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(28,26,58,.38); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.page-overlay.is-visible { opacity: 1; pointer-events: auto; }
.tool-drawer { position: fixed; right: 18px; bottom: 18px; width: 360px; max-height: 70vh; overflow: auto; z-index: 1600; background: var(--content); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 22px 56px rgba(28,26,58,.2); padding: 16px; visibility: hidden; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .18s ease; }
.tool-drawer.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -16px; z-index: 1; background: var(--content); padding: 4px 0 10px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-close, .search-close { background: var(--secondary); color: var(--deep); border: 1px solid var(--border-strong); border-radius: 9px; cursor: pointer; }
.drawer-groups { display: grid; gap: 14px; }
.drawer-groups section { border-top: 1px solid var(--border); padding-top: 12px; }
.drawer-groups h2 { font-size: 14px; margin-bottom: 8px; }
.drawer-groups a { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 9px 8px; border-radius: 9px; }
.drawer-groups a:hover { background: var(--secondary); }
.drawer-groups span { font-weight: 800; color: var(--title); }
.drawer-groups small { color: var(--muted); line-height: 1.45; }
.search-layer { position: fixed; z-index: 1550; left: 0; right: 0; top: 76px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: .18s ease; }
.search-layer.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.search-card { background: var(--deep-bg); border: 1px solid var(--border-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 18px; }
.search-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-topline p { margin: 2px 0 0; color: var(--muted); }
.preset-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preset-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--content); border: 1px solid var(--border); color: var(--deep); font-weight: 700; }
.layer-open { overflow: hidden; }
.mobile-bottom { display: none; }

.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.center-actions { justify-content: center; }
.centered-hero { text-align: center; max-width: 760px; }
.max-actions { max-width: 850px; }

.breadcrumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.breadcrumbs a { color: var(--purple); }
.section-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--deep-bg); color: var(--deep); font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.stateless-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stateless-list li { background: var(--secondary); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 760px) {
    :root { --top-total: 76px; }
    .shell { width: min(100% - 32px, 1000px); }
    .section-tabs { display: none; }
    .window-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
    .brand-home { min-width: 0; overflow: hidden; }
    .brand-logo { max-width: 118px; }
    .brand-text { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
    .app-entry, .drawer-button { padding: 0 10px; font-size: 13px; }
    .site-main { padding-top: calc(var(--top-total) + 24px); padding-bottom: 82px; }
    .dual-panel, .compare-grid, .contact-grid, .home-faq { grid-template-columns: 1fr; }
    .path-row { grid-template-columns: 1fr; }
    .center-cards { grid-template-columns: 1fr; }
    .tool-item { grid-template-columns: 1fr; gap: 6px; }
    .stair-card:nth-child(2) { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .tool-drawer { right: 4%; bottom: calc(58px + env(safe-area-inset-bottom)); width: 92%; max-height: 70vh; }
    .search-layer { inset: 22px 0 0 0; top: 22px; background: var(--deep); color: var(--warm); }
    .search-card { width: 100%; min-height: calc(100vh - 22px); border: 0; border-radius: 0; background: var(--deep); color: var(--warm); padding: 22px 16px 88px; }
    .search-topline { align-items: flex-start; }
    .search-topline strong { color: var(--warm); }
    .search-topline p { color: rgba(247,248,253,.8); }
    .search-close { background: transparent; color: var(--warm); border-color: rgba(247,248,253,.3); }
    .preset-links { display: grid; grid-template-columns: 1fr 1fr; }
    .preset-links a { background: rgba(247,248,253,.08); color: var(--warm); border-color: rgba(247,248,253,.2); }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; 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(--content); border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--deep); }
    .mobile-bottom a.is-current { background: var(--purple); color: var(--warm); }
    .page-overlay { z-index: 1250; }
    .tool-drawer, .search-layer { z-index: 1300; }
    .product-card { padding: 18px; }
    .app-media { height: 280px; }
}
@media (max-width: 460px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .narrow-window .window-body, .surface, .dual-card, .center-card, .product-card, .reading-sheet, .term-block, .compare-side { padding: 18px; }
    .preset-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
