:root {
    --bg: #0F0E0A;
    --bg-deep: #090807;
    --surface: #17150F;
    --surface-2: #1F1B12;
    --title: #F6E7B8;
    --text: #E4D4A2;
    --muted: #B39A5E;
    --assist: #8C7744;
    --gold: #E0B12A;
    --gold-bright: #F0C84A;
    --gold-deep: #A37A14;
    --sand: #F3E6C4;
    --border: rgba(224,177,42,.18);
    --border-strong: rgba(224,177,42,.46);
    --shadow: 0 12px 28px rgba(0,0,0,.35);
    --max: 1120px;
    --top-desktop: 122px;
    --top-mobile: 82px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",Arial,sans-serif; font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.ui-locked { overflow: hidden; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.gold-line { height: 22px; background: #090807; border-bottom: 1px solid var(--border); color: var(--gold-bright); font-size: 12px; line-height: 22px; }
.bar-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.gold-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.micro-brand { white-space: nowrap; }
.text-action { border: 0; background: transparent; color: var(--gold-bright); min-width: 44px; height: 22px; cursor: pointer; padding: 0 4px; }
.scroll-bar { height: 60px; background: #090807; border-bottom: 1px solid var(--border-strong); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.scroll-bar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.roll-logo { justify-self: start; min-height: 44px; display: flex; align-items: center; color: var(--title); font-weight: 800; font-size: 16px; }
.roll-logo img, .footer-brand img, .drawer-brand img { height: 28px; width: auto; object-fit: contain; object-position: center; }
.drawer-trigger, .app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 700; }
.drawer-trigger { justify-self: center; min-width: 88px; border: 1px solid var(--border-strong); color: var(--sand); background: var(--surface); cursor: pointer; }
.app-link { justify-self: end; padding: 0 18px; background: linear-gradient(135deg,#F0C84A 0%,#E0B12A 55%,#A37A14 100%); color: #1A1406; }
.tag-strip { height: 40px; background: var(--gold-deep); border-bottom: 1px solid var(--border-strong); }
.tag-strip-inner { height: 40px; display: flex; align-items: stretch; justify-content: center; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.tag-strip a { min-width: 132px; display: inline-flex; align-items: center; justify-content: center; color: var(--sand); font-size: 13px; padding: 0 18px; }
.tag-strip a:hover, .tag-strip a.is-current { background: var(--gold); color: #1A1406; }
.site-main { min-height: 70vh; padding: calc(var(--top-desktop) + 30px) 0 70px; }
.page-shell, .home-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.page-hero { padding: 30px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--gold-bright); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { color: var(--title); margin: 0; line-height: 1.3; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 14px; }
.lead { margin-top: 14px; max-width: 850px; color: var(--sand); }
.section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card:hover { border-color: var(--border-strong); }
.media-slot { width: 100%; min-height: 180px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 260px; }
.section-media { height: 200px; }
.card-media { height: 180px; margin-bottom: 14px; }
.app-media { height: 340px; }
.icon-slot { width: 64px; height: 64px; min-height: 64px; border-radius: 14px; }
.icon-slot img { width: 48px; height: 48px; object-fit: contain; }
.cover-copy { background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 14px 14px; padding: 22px; }
.cover-copy h1 { margin-bottom: 10px; }
.cover-copy .brand-mark { color: var(--gold-bright); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.cover-copy .tagline { color: var(--sand); font-size: 18px; font-weight: 800; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; 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,#F0C84A 0%,#E0B12A 55%,#A37A14 100%); color: #1A1406; }
.btn-secondary { background: #0C0B08; color: var(--sand); border: 1px solid var(--border-strong); }
.btn:hover { transform: translateY(-1px); }
.number-list, .shelf-list, .timeline, .article-list { list-style: none; margin: 0; padding: 0; }
.number-list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.number-list li:first-child { border-top: 0; }
.number { color: var(--gold-bright); font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.number-list h3 { margin: 0 0 5px; }
.number-list p { margin: 0; color: var(--muted); }
.shelf-list li { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.shelf-list li:first-child { border-top: 0; }
.shelf-tag { color: var(--gold-bright); font-size: 13px; font-weight: 800; }
.shelf-list a { color: var(--sand); font-weight: 800; }
.status { color: var(--muted); font-size: 13px; white-space: nowrap; }
.timeline { border-left: 1px solid var(--border-strong); margin-left: 8px; padding-left: 24px; }
.timeline li { position: relative; padding: 0 0 24px; }
.timeline li::before { content: ''; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(224,177,42,.10); }
.timeline h3 { margin-bottom: 6px; }
.timeline .status { display: inline-block; margin-bottom: 4px; color: var(--gold-bright); }
.prose { max-width: 860px; }
.prose h2 { margin: 30px 0 12px; }
.prose h3 { margin: 22px 0 9px; }
.prose p { color: var(--text); }
.note-box { margin: 20px 0; padding: 16px 18px; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 12px; color: var(--sand); }
.method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.method-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.method-item h2, .method-item h3 { margin-bottom: 8px; }
.index-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.index-grid a { display: block; min-height: 112px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.index-grid b { display: block; color: var(--title); margin-bottom: 6px; }
.index-grid span { color: var(--muted); font-size: 13px; }
.app-split { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; align-items: center; }
.icon-row { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px; padding: 0 16px; }
.faq-list summary { cursor: pointer; color: var(--title); font-weight: 800; padding: 14px 0; }
.faq-list details p { padding: 0 0 15px; color: var(--text); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.quick-links a:hover { border-color: var(--border-strong); color: var(--gold-bright); }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-strong); color: var(--text); font-size: 13px; padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--title); margin-bottom: 22px; }
.footer-logo-link { display: inline-flex; min-height: 44px; align-items: center; }
.footer-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.footer-columns h2 { font-size: 13px; color: var(--gold-bright); margin: 0 0 8px; }
.footer-columns a { display: block; min-height: 30px; padding: 4px 0; color: var(--text); }
.footer-columns a:hover { color: var(--gold-bright); }
.footer-note { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; color: var(--muted); max-width: 880px; }
.copyright { color: var(--assist); margin: 8px 0 0; }
.site-overlay { position: fixed; inset: 0; z-index: 88; background: rgba(0,0,0,.62); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.drawer-open .site-overlay, .search-open .site-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; inset: 0 auto 0 0; z-index: 92; width: 400px; max-width: 86vw; background: #0B0A07; border-right: 1px solid var(--border-strong); box-shadow: var(--shadow); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; }
.drawer-open .site-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.close-btn { min-width: 64px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: #0C0B08; color: var(--sand); cursor: pointer; }
.drawer-scroll { height: calc(100vh - 66px); overflow-y: auto; padding: 10px 16px 30px; }
.drawer-group { padding: 14px 0; border-bottom: 1px solid var(--border); }
.drawer-group h2 { font-size: 13px; color: var(--gold-bright); margin: 0 0 8px; }
.drawer-group a { display: block; padding: 10px 0; }
.drawer-group b { display: block; color: var(--title); }
.drawer-group span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.search-layer { position: fixed; z-index: 93; left: 0; right: 0; top: 82px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.search-open .search-layer { visibility: visible; opacity: 1; pointer-events: auto; }
.search-card { width: min(760px, calc(100% - 32px)); margin: 0 auto; background: #0B0A07; border: 1px solid var(--border-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--title); }
.search-card > p { color: var(--muted); margin: 10px 0 12px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--sand); background: var(--surface); }
.mobile-bottom { display: none; }
@media (max-width: 860px) {
    .card-grid, .footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .index-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-split { grid-template-columns: 1fr; }
    .app-media { max-width: 360px; }
}
@media (max-width: 640px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .bar-inner { width: calc(100% - 24px); }
    .tag-strip { display: none; }
    .site-main { padding-top: calc(var(--top-mobile) + 22px); padding-bottom: 50px; }
    .scroll-bar-inner { gap: 8px; }
    .roll-logo { min-width: 0; overflow: hidden; }
    .roll-logo img { max-width: 96px; }
    .drawer-trigger { min-width: 72px; }
    .app-link { padding: 0 10px; }
    .page-shell, .home-shell, .footer-inner { width: calc(100% - 32px); }
    .card-grid, .card-grid.two, .method-grid, .footer-columns { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .shelf-list li { grid-template-columns: 1fr; gap: 4px; }
    .index-grid { grid-template-columns: 1fr 1fr; }
    .banner-slot { height: 260px; }
    .site-drawer { width: 86vw; max-width: 86vw; }
    .search-layer { inset: 0; top: 0; background: #090807; }
    .search-card { width: 100%; height: 100%; border: 0; border-radius: 0; margin: 0; padding: calc(18px + env(safe-area-inset-top)) 16px 24px; overflow-y: auto; }
    .search-presets { display: grid; grid-template-columns: 1fr 1fr; }
    .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(5,1fr); background: #090807; border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-width: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sand); }
    .mobile-bottom a.is-current { background: var(--gold); color: #1A1406; font-weight: 800; }
    .drawer-open .mobile-bottom, .search-open .mobile-bottom { z-index: 70; }
}
@media (max-width: 420px) {
    .index-grid { grid-template-columns: 1fr; }
    .search-presets { grid-template-columns: 1fr; }
    .cover-copy { padding: 18px; }
    .number-list li { grid-template-columns: 44px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
