:root {
    --page: #F5FAFE;
    --deep-bg: #E7F2FA;
    --surface: #FFFFFF;
    --secondary: #D7EAF6;
    --title: #16324A;
    --text: #2A4156;
    --muted: #4E6A80;
    --helper: #6E8899;
    --brand: #4AA3E0;
    --bright: #6BB8EC;
    --deep: #1B4A6E;
    --mist: #EAF5FC;
    --border: rgba(74,163,224,0.16);
    --border-strong: rgba(74,163,224,0.42);
    --shadow: 0 12px 28px rgba(27,74,110,0.08);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body { margin: 0; background: var(--page); 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; }
body.is-locked { overflow: hidden; }
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(74,163,224,.34); outline-offset: 2px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; }
.thin-line { height: 22px; background: var(--deep); color: #fff; font-size: 12px; }
.top-inner, .masthead-inner, .tab-inner, .section-shell, .footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plain-button { border: 0; background: transparent; color: inherit; padding: 0 6px; min-height: 22px; cursor: pointer; }
.masthead { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); }
.masthead-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand-link { justify-self: start; min-width: 72px; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-text-fallback { color: var(--title); font-size: 16px; font-weight: 800; letter-spacing: .06em; }
.drawer-trigger, .app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.drawer-trigger { border: 1px solid var(--border-strong); background: #fff; color: var(--deep); padding: 0 18px; cursor: pointer; font-size: 14px; }
.app-link { justify-self: end; background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); color: #fff; padding: 0 18px; font-size: 14px; }
.app-link:hover { color: #fff; filter: brightness(1.03); }
.tab-bar { height: 40px; background: var(--mist); border-bottom: 1px solid var(--border); }
.tab-inner { height: 40px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.tab-link { min-height: 32px; padding: 3px 18px; border-radius: 8px; font-size: 13px; display: inline-flex; align-items: center; color: var(--deep); }
.tab-link.is-current { background: var(--brand); color: #fff; }
.site-main { padding-top: 150px; min-height: 70vh; }
.section-shell { padding: 0 0 44px; }
.page-hero { padding: 34px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 28px; }
.page-kicker { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .08em; margin: 0 0 8px; }
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: 14px; }
h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 820px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button-primary, .button-secondary { height: 44px; min-width: 112px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; white-space: nowrap; }
.button-primary { background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); color: #fff; }
.button-primary:hover { color: #fff; }
.button-secondary { background: #fff; border: 1px solid var(--border-strong); color: var(--deep); }
.cover-slot { width: 100%; height: 260px; background: var(--mist); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.cover-slot img, .media-slot img, .media-slot-tall img, .media-slot-home img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot { height: 200px; background: var(--mist); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 16px; }
.media-slot-home { height: 180px; background: var(--mist); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.media-slot-tall { height: 340px; background: var(--mist); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 32px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card, .content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card p:last-child, .content-card p:last-child { margin-bottom: 0; }
.content-stack { display: grid; gap: 18px; }
.content-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.content-block.soft { background: var(--mist); }
.numbered-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.numbered-list li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 15px; }
.numbered-list .num { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.shelf-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.shelf-item { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 10px; padding: 18px; }
.timeline { position: relative; margin-left: 12px; padding-left: 24px; border-left: 2px solid var(--secondary); display: grid; gap: 18px; }
.timeline-item { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.timeline-item::before { content: ""; position: absolute; left: -31px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid var(--page); }
.status { display: inline-flex; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--deep); font-size: 12px; align-items: center; margin-bottom: 8px; }
.note-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.note-card { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 20px; }
.index-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.index-grid a { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; }
.index-grid strong { color: var(--title); margin-bottom: 4px; }
.index-grid span { color: var(--muted); font-size: 13px; }
.app-feature { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(220px,.65fr); gap: 24px; align-items: start; }
.icon-line { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.icon-slot { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.icon-slot img { width: 48px; height: 48px; object-fit: contain; object-position: center; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.faq-item h2 { font-size: 20px; margin-bottom: 8px; }
.callout { background: var(--deep); color: #fff; border-radius: 12px; padding: 22px; }
.callout h2, .callout h3, .callout a { color: #fff; }
.callout p { color: #fff; }
.site-footer { background: var(--deep); color: #E7F2FA; border-top: 1px solid rgba(234,245,252,.18); margin-top: 30px; }
.footer-inner { padding: 34px 0 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-brand div:last-child { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand span { font-size: 13px; color: #E7F2FA; }
.footer-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; border-top: 1px solid rgba(234,245,252,.15); border-bottom: 1px solid rgba(234,245,252,.15); padding: 22px 0; }
.footer-links section { display: flex; flex-direction: column; gap: 6px; }
.footer-links h2 { color: #fff; font-size: 13px; margin: 0 0 5px; }
.footer-links a { color: #E7F2FA; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-note, .copyright { font-size: 13px; color: #E7F2FA; }
.footer-note { margin-top: 20px; max-width: 860px; }
.copyright { margin-bottom: 0; }
.page-shade { position: fixed; inset: 0; background: rgba(22,50,74,.34); z-index: 90; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-shade.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-panel { position: fixed; z-index: 100; top: 0; right: 0; width: 400px; max-width: 86vw; height: 100dvh; background: #fff; transform: translateX(104%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; box-shadow: -18px 0 40px rgba(27,74,110,.14); }
.drawer-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding: 0 18px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.close-button { min-height: 44px; min-width: 60px; border: 1px solid var(--border-strong); background: #fff; color: var(--deep); border-radius: 10px; cursor: pointer; }
.drawer-scroll { height: calc(100dvh - 68px); overflow-y: auto; padding: 18px; }
.drawer-group { margin-bottom: 22px; }
.drawer-group h2 { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.drawer-item { display: block; padding: 12px 10px; border-radius: 10px; border-bottom: 1px solid var(--border); }
.drawer-item strong { display: block; color: var(--title); font-size: 15px; }
.drawer-item span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.search-panel { position: fixed; z-index: 110; top: 82px; left: 0; right: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.search-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { width: min(860px, calc(100% - 32px)); margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { color: var(--muted); margin: 3px 0 0; }
.search-presets { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--mist); color: var(--deep); }
.search-tip { color: var(--helper); font-size: 13px; margin: 14px 0 0; }
.mobile-bottom { display: none; }
.muted { color: var(--muted); }
.centered { text-align: center; }
.home-cover-copy { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 30px; }
.home-section { margin-bottom: 34px; }
.home-section > h2 { margin-bottom: 14px; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.home-app-copy { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }

@media (max-width: 820px) {
    .tab-bar { display: none; }
    .site-main { padding-top: 106px; }
    .masthead-inner { width: calc(100% - 24px); grid-template-columns: 1fr auto 1fr; }
    .brand-link { min-width: 44px; }
    .drawer-trigger { padding: 0 14px; }
    .app-link { padding: 0 12px; }
    .card-grid, .card-grid.two, .shelf-list, .note-list, .home-split, .app-feature { grid-template-columns: 1fr; }
    .index-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-panel { top: 0; bottom: 0; background: var(--deep); color: #fff; }
    .search-card { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; margin: 0; background: var(--deep); box-shadow: none; padding: 30px 16px 90px; }
    .search-head strong, .search-head p, .search-tip { color: #fff; }
    .search-panel .close-button { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
    .search-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-presets a { background: #fff; color: var(--deep); border-color: #fff; }
    .mobile-bottom { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border); }
    .mobile-bottom a { display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--deep); font-size: 12px; }
    .mobile-bottom a.is-current { background: var(--brand); color: #fff; }
    .site-footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .page-hero { padding: 24px 20px; }
    .media-slot-tall { height: 320px; }
}
@media (max-width: 520px) {
    .top-inner, .section-shell, .footer-inner { width: calc(100% - 32px); }
    .cover-slot { height: 260px; }
    .media-slot-home { height: 180px; }
    .media-slot { height: 200px; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 14px; }
    .index-grid { grid-template-columns: 1fr; }
    .numbered-list li { grid-template-columns: 40px 1fr; }
}
