:root {
    --page-bg: #EEF0F8;
    --deep-bg: #E0E4F2;
    --content-bg: #F7F8FD;
    --sub-bg: #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);
    --strong-border: rgba(91, 75, 219, 0.42);
    --shadow: 0 12px 28px rgba(28, 26, 58, 0.08);
    --max: 1000px;
    --top-h: 118px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}
body.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-shell { position: fixed; inset: 0 0 auto; z-index: 1000; }
.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; }
.plain-trigger { min-height: 22px; padding: 0 4px; background: transparent; border: 0; color: var(--warm); cursor: pointer; }
.window-bar { height: 54px; background: var(--deep-bg); border-bottom: 1px solid var(--strong-border); }
.window-inner { height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .footer-logo { height: 24px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--title); }
.top-app-link, .drawer-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
}
.top-app-link { justify-self: center; color: var(--purple); font-weight: 700; }
.drawer-button { justify-self: end; border: 1px solid var(--strong-border); background: var(--content-bg); color: var(--deep); cursor: pointer; }
.tab-strip { height: 42px; background: var(--warm); border-bottom: 1px solid var(--border); }
.tab-inner { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 5px 0; }
.tab-link { min-height: 32px; padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--deep); }
.tab-link:hover, .tab-link:focus-visible { background: var(--sub-bg); outline: none; }
.tab-link.is-current { background: var(--purple); color: var(--warm); }
.page-main { padding-top: calc(var(--top-h) + 34px); min-height: 70vh; }
.page-section { width: min(calc(100% - 32px), var(--max)); margin: 0 auto 30px; }
.page-section + .page-section { margin-top: 30px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--purple); font-weight: 800; margin: 0 0 8px; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 760px; }
.btn-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;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, #8AA4E0 0%, #5B4BDB 55%, #3A6BD4 100%); color: var(--warm); box-shadow: var(--shadow); }
.btn-secondary { background: var(--content-bg); color: var(--deep); border-color: var(--strong-border); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .drawer-button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(91, 75, 219, .22); outline-offset: 2px; }
.panel { background: var(--content-bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.soft-panel { background: var(--sub-bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.deep-panel { background: var(--deep); color: var(--warm); border-radius: 14px; padding: 22px; }
.deep-panel h2, .deep-panel h3 { color: var(--warm); }
.media-slot {
    width: 100%;
    background: var(--sub-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.slot-banner { height: 168px; }
.slot-wide { height: 176px; }
.slot-medium { height: 190px; }
.slot-app { height: 300px; max-width: 420px; margin: 0 auto; }
.slot-icon { width: 48px; height: 48px; border-radius: 12px; }
.hero-window { background: linear-gradient(145deg, var(--content-bg), var(--sub-bg)); border: 1px solid var(--strong-border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.hero-window .media-slot { margin-bottom: 18px; }
.longread { background: var(--content-bg); border-left: 4px solid var(--purple); padding: 24px; border-radius: 0 14px 14px 0; }
.longread .media-slot { margin-bottom: 18px; }
.stair-stack { display: grid; gap: 14px; }
.stair-card { width: calc(100% - 24px); background: var(--content-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.stair-card:nth-child(2) { margin-left: 24px; }
.wrap-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.wrap-tags span, .wrap-tags a { background: var(--deep-bg); color: var(--deep); border: 1px solid var(--border); border-radius: 999px; padding: 8px 13px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-pane { background: var(--content-bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.path-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.path-step { background: var(--deep-bg); color: var(--deep); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.path-step strong { display: block; margin-bottom: 6px; color: var(--title); }
.center-cards { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.center-card { width: min(100%, 430px); background: var(--content-bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); text-align: center; }
.product-card { max-width: 760px; margin: 0 auto; text-align: center; background: var(--content-bg); border: 1px solid var(--strong-border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.product-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px; background: var(--deep-bg); overflow: hidden; }
.product-mark img { width: 48px; height: 48px; object-fit: contain; }
.note-list { display: grid; gap: 12px; }
.note-item { background: var(--content-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.tool-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool-item { background: var(--content-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.clause-list { display: grid; gap: 14px; }
.clause { background: var(--content-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--content-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.link-list { display: grid; gap: 10px; }
.link-list a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--content-bg); }
.link-list a::after { content: '→'; color: var(--purple); font-weight: 800; }
.split-copy { columns: 2; column-gap: 28px; }
.split-copy p { break-inside: avoid; }
.site-footer { margin-top: 48px; background: var(--deep); color: var(--warm); border-top: 1px solid rgba(138, 164, 224, .45); font-size: 13px; padding: 34px 0 80px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 24px; }
.footer-grid section { min-width: 0; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand p { line-height: 1.5; }
.footer-brand span { color: #c8d3f3; }
.footer-grid h2 { color: var(--warm); font-size: 13px; margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 30px; color: #dbe2f7; }
.footer-grid a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(138, 164, 224, .25); margin-top: 22px; padding-top: 18px; color: #cbd4ef; }
.footer-note p:last-child { margin-bottom: 0; }
.screen-mask { position: fixed; inset: 0; background: rgba(28, 26, 58, .48); z-index: 1090; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease; }
.screen-mask.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.tool-drawer { position: fixed; right: 18px; bottom: 18px; width: 360px; max-height: 70vh; overflow: auto; z-index: 1110; background: var(--content-bg); border: 1px solid var(--strong-border); border-radius: 14px; box-shadow: 0 22px 50px rgba(28, 26, 58, .22); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px) scale(.98); transition: .2s ease; }
.tool-drawer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.drawer-head { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; background: var(--content-bg); border-bottom: 1px solid var(--border); z-index: 2; }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand img { height: 24px; width: auto; object-fit: contain; }
.drawer-brand div { display: grid; line-height: 1.25; }
.drawer-brand span { font-size: 11px; color: var(--muted); }
.drawer-close, .search-close { min-height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--strong-border); background: var(--warm); cursor: pointer; }
.drawer-groups { padding: 12px; }
.drawer-groups section + section { margin-top: 14px; }
.drawer-groups h2 { font-size: 13px; color: var(--purple); margin: 0 0 6px; }
.drawer-groups a { display: grid; gap: 2px; padding: 10px 11px; border-radius: 10px; }
.drawer-groups a:hover { background: var(--sub-bg); }
.drawer-groups strong { font-size: 14px; color: var(--title); }
.drawer-groups span { font-size: 12px; color: var(--muted); }
.search-layer { position: fixed; left: 0; right: 0; top: 76px; z-index: 1100; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: .2s ease; }
.search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.search-card { width: min(calc(100% - 32px), 760px); margin: 0 auto; background: var(--deep-bg); border: 1px solid var(--strong-border); border-radius: 0 0 14px 14px; padding: 18px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.search-head p { margin: 4px 0 0; color: var(--muted); }
.search-input-wrap { display: block; margin-top: 14px; }
.search-input-wrap input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--strong-border); background: var(--content-bg); color: var(--deep); padding: 0 13px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-presets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--content-bg); color: var(--deep); }
.mobile-bottom { display: none; }
.reading-copy { max-width: 760px; margin: 0 auto; }
.reading-copy p + p { margin-top: 14px; }
.window-demo { background: var(--deep); color: var(--warm); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.window-demo-top { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #2d2a55; }
.window-demo-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); display: block; }
.window-demo-body { padding: 22px; background: var(--content-bg); color: var(--text); }
.center-copy { text-align: center; max-width: 720px; margin: 0 auto; }
.center-actions { justify-content: center; }
.eyebrow-on-deep { color: #cbd4ef; }
.top-gap-18 { margin-top: 18px; }
.top-gap-20 { margin-top: 20px; }


@media (max-width: 760px) {
    :root { --top-h: 76px; }
    .shell-inner, .page-section { width: calc(100% - 32px); }
    .tab-strip { display: none; }
    .page-main { padding-top: calc(var(--top-h) + 24px); padding-bottom: 58px; }
    .window-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .brand-link { min-width: 0; }
    .brand-logo { max-width: 132px; }
    .top-app-link, .drawer-button { padding: 0 10px; }
    .compare-grid, .tool-list, .path-band, .footer-grid { grid-template-columns: 1fr; }
    .stair-card, .stair-card:nth-child(2) { width: 100%; margin-left: 0; }
    .split-copy { columns: 1; }
    .site-footer { padding-bottom: 86px; }
    .footer-brand { margin-bottom: 4px; }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1010; min-height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--warm); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--deep); font-size: 13px; }
    .mobile-bottom a.is-current { background: var(--purple); color: var(--warm); }
    .tool-drawer { width: 92%; right: 4%; bottom: calc(58px + env(safe-area-inset-bottom)); max-height: 70vh; }
    .search-layer { inset: 0; top: 0; background: var(--deep); display: flex; align-items: flex-start; padding: 86px 16px 20px; }
    .search-card { width: 100%; margin: 0; background: var(--deep); color: var(--warm); border: 0; border-radius: 0; box-shadow: none; padding: 0; }
    .search-head strong { color: var(--warm); }
    .search-head p { color: #d5dcf2; }
    .search-close { background: transparent; color: var(--warm); border-color: rgba(247,248,253,.35); }
    .search-input-wrap input { background: var(--warm); color: var(--deep); }
    .search-presets a { background: #2b2854; color: var(--warm); border-color: rgba(247,248,253,.18); }
    .slot-app { height: 280px; }
}
