:root {
    --bg: #0B0B1A;
    --deep: #080812;
    --panel: #12121F;
    --panel-2: #1A1A2A;
    --white: #FFFFFF;
    --text: #E8E8F0;
    --muted: #A0A0B8;
    --dim: #6B6B80;
    --pink: #FF2D6A;
    --pink-2: #FF4D8A;
    --rose: #E6005C;
    --purple: #7B2CBF;
    --purple-2: #9B4DFF;
    --soft: #FFB3C9;
    --border: rgba(255,45,106,.18);
    --border-strong: rgba(255,77,138,.45);
    --shadow: 0 16px 48px rgba(0,0,0,.55);
    --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.75; overflow-x: hidden; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; }
.peel-bar { height: 22px; background: var(--purple); color: var(--white); font-size: 12px; }
.peel-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.peel-search { border: 0; background: transparent; color: var(--white); min-width: 52px; height: 22px; cursor: pointer; padding: 0 6px; }
.stall-bar { height: 68px; background: #090910; border-bottom: 1px solid var(--border); }
.stall-inner { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .footer-logo, .basket-logo { width: auto; object-fit: contain; object-position: left center; }
.brand-logo { max-height: 36px; max-width: 180px; }
.brand-fallback { color: var(--white); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.basket-toggle, .app-link, .btn-primary, .btn-secondary { min-height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.basket-toggle { justify-self: center; border: 1px solid var(--border-strong); color: var(--white); background: var(--panel); padding: 0 24px; }
.app-link { justify-self: end; padding: 0 20px; color: var(--white); background: linear-gradient(135deg,#FF4D8A 0%,#FF2D6A 50%,#E6005C 100%); font-weight: 700; }
.basket-toggle:hover, .app-link:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); }
.seed-bar { height: 44px; background: #15151B; border-bottom: 1px solid var(--border); }
.seed-inner { height: 44px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.seed-link { min-height: 32px; padding: 4px 13px; border-radius: 8px; color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; }
.seed-link:hover { color: var(--white); background: var(--panel-2); }
.seed-link.is-current { color: var(--white); background: var(--pink); }
.page-main { padding-top: 134px; min-height: 70vh; }
.page-section { padding: 54px 0; }
.page-section.compact { padding: 34px 0; }
.page-section + .page-section { border-top: 1px solid rgba(255,255,255,.04); }
.hero-block { padding-top: 34px; }
.hero-media, .media-slot { width: 100%; background: linear-gradient(135deg, #151329, #1c1028); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-media { min-height: 180px; max-height: 300px; aspect-ratio: 16/6; }
.hero-media .media-img, .hero-media img { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.media-slot { min-height: 180px; aspect-ratio: 16/9; }
.media-slot .media-img, .media-slot img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; object-position: center; }
.media-slot.tall { aspect-ratio: 4/5; max-height: 420px; }
.media-slot.tall .media-img, .media-slot.tall img { max-height: 420px; }
.eyebrow { color: var(--soft); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--white); line-height: 1.3; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 16px; }
h2 { font-size: clamp(22px, 3vw, 27px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.lead { color: var(--text); font-size: 17px; max-width: 880px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hero-copy { padding: 24px 0 0; }
.hero-copy .mini-title { color: var(--soft); font-weight: 700; margin-bottom: 6px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-primary, .btn-secondary { padding: 0 18px; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg,#FF4D8A 0%,#FF2D6A 50%,#E6005C 100%); color: var(--white); border: 1px solid transparent; }
.btn-secondary { background: var(--deep); color: var(--white); border: 1px solid var(--border-strong); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0; }
.seed-grid, .card-grid, .topic-grid, .faq-grid, .footer-groups { display: grid; gap: 16px; }
.seed-grid { grid-template-columns: repeat(6, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two, .faq-grid { grid-template-columns: repeat(2, 1fr); }
.topic-grid { grid-template-columns: repeat(3, 1fr); }
.seed-card, .content-card, .topic-card, .note-card, .policy-card, .faq-card, .shelf-item, .stage-item { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.seed-card { padding: 16px; position: relative; overflow: hidden; }
.seed-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--pink); }
.seed-card:nth-child(even)::before { background: var(--purple-2); }
.seed-card h3 { margin-bottom: 6px; }
.seed-card p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.seed-card a, .text-link { color: var(--soft); font-weight: 700; }
.content-card { overflow: hidden; }
.content-card .card-body { padding: 20px; }
.content-card p, .topic-card p, .note-card p, .policy-card p, .faq-card p { color: var(--muted); }
.number-list { display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.number-item .num { color: var(--pink-2); font-size: 30px; font-weight: 900; line-height: 1; }
.number-item p { margin: 4px 0 0; color: var(--muted); }
.number-item a { color: var(--soft); font-weight: 800; }
.catalog-list { display: grid; gap: 10px; }
.catalog-item { padding: 18px 20px; background: linear-gradient(90deg, rgba(255,45,106,.08), transparent); border: 1px solid var(--border); border-radius: 12px; }
.catalog-item strong { color: var(--white); }
.catalog-item span { color: var(--muted); margin-left: 10px; }
.topic-card, .note-card, .policy-card, .faq-card, .stage-item { padding: 20px; }
.topic-card a { color: var(--soft); font-weight: 700; }
.shelf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shelf-item { padding: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.shelf-item .shelf-tag { color: var(--white); background: var(--purple); border-radius: 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 800; padding: 8px; text-align: center; }
.shelf-item p { color: var(--muted); margin: 0; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--pink), var(--purple-2)); }
.timeline-item { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink-2); box-shadow: 0 0 0 4px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 2px 10px; border-radius: 8px; background: var(--purple); color: var(--white); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.editorial { border-left: 4px solid var(--pink); padding-left: 18px; }
.editorial .label { display: inline-block; color: var(--soft); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.prose { max-width: 920px; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 24px; }
.policy-list { display: grid; gap: 14px; }
.policy-card h2 { font-size: 20px; }
.faq-card h2 { font-size: 18px; }
.faq-card p:last-child, .policy-card p:last-child { margin-bottom: 0; }
.app-layout { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 32px; align-items: center; }
.app-icon-row { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.app-icon-row img { width: 64px; height: 64px; object-fit: contain; }
.app-icon-fallback { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg,var(--pink-2),var(--purple-2)); display: grid; place-items: center; color: var(--white); font-weight: 900; }
.notice { padding: 16px 18px; border: 1px solid var(--border-strong); border-radius: 12px; background: rgba(255,45,106,.06); color: var(--text); }
.site-footer { background: #05050A; color: #C8C8D8; padding: 42px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.footer-brand-row { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; padding-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { max-height: 32px; max-width: 150px; }
.footer-brand strong { display: block; color: var(--white); }
.footer-brand span { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.footer-brand-row p { margin: 0; color: var(--muted); }
.footer-groups { grid-template-columns: repeat(4, 1fr); padding: 28px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-group h2 { font-size: 15px; color: var(--soft); margin-bottom: 12px; }
.footer-group a { display: block; color: #C8C8D8; padding: 4px 0; }
.footer-group a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 22px; font-size: 14px; color: var(--dim); }
.footer-bottom a { color: var(--muted); }
.basket-panel { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: min(420px, 86vw); background: var(--deep); box-shadow: var(--shadow); border-right: 1px solid var(--border-strong); transform: translateX(-104%); visibility: hidden; pointer-events: none; transition: transform .28s ease, visibility .28s ease; }
.basket-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.basket-head { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.basket-brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.basket-logo { max-height: 30px; max-width: 140px; }
.icon-close { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--white); cursor: pointer; }
.basket-scroll { height: calc(100% - 72px); overflow-y: auto; padding: 14px 18px 28px; }
.basket-group { padding: 12px 0; }
.basket-group h2 { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.basket-group a { display: block; padding: 12px; border-radius: 12px; border: 1px solid transparent; }
.basket-group a:hover { background: var(--panel); border-color: var(--border); }
.basket-group strong { display: block; color: var(--white); font-size: 15px; }
.basket-group span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.site-overlay { position: fixed; z-index: 70; inset: 0; background: rgba(0,0,0,.68); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.site-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.search-layer { position: fixed; z-index: 85; left: 0; right: 0; top: 90px; visibility: hidden; pointer-events: none; transform: translateY(-14px); opacity: 0; transition: .22s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { width: min(920px, calc(100% - 32px)); margin: 0 auto; background: var(--deep); border: 1px solid var(--border-strong); border-radius: 0 0 18px 18px; box-shadow: var(--shadow); padding: 24px; }
.search-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.search-head h2 { margin: 4px 0 0; }
.search-appearance { min-height: 52px; display: flex; align-items: center; padding: 0 16px; margin: 18px 0; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); }
.search-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); color: var(--white); background: var(--panel-2); }
.search-presets a:hover { border-color: var(--border-strong); }
.mobile-bottom { display: none; }
@media (max-width: 980px) {
    .seed-grid { grid-template-columns: repeat(3, 1fr); }
    .card-grid.three, .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand-row { grid-template-columns: 1fr; }
    .footer-groups { grid-template-columns: repeat(2, 1fr); }
    .search-presets { grid-template-columns: repeat(3, 1fr); }
    .app-layout { grid-template-columns: 300px 1fr; }
}
@media (max-width: 720px) {
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .shell { width: calc(100% - 32px); }
    .seed-bar { display: none; }
    .page-main { padding-top: 90px; }
    .stall-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .brand-logo { max-width: 125px; max-height: 32px; }
    .brand-fallback { font-size: 19px; }
    .basket-toggle { padding: 0 14px; min-width: 70px; }
    .app-link { padding: 0 12px; justify-self: end; }
    .page-section { padding: 38px 0; }
    .hero-block { padding-top: 24px; }
    .hero-media { aspect-ratio: 16/9; min-height: 150px; }
    .section-head { align-items: start; flex-direction: column; gap: 8px; }
    .seed-grid, .card-grid.three, .card-grid.two, .topic-grid, .faq-grid, .shelf-grid, .footer-groups { grid-template-columns: 1fr; }
    .number-item { grid-template-columns: 52px 1fr; }
    .number-item > a { grid-column: 2; }
    .shelf-item { grid-template-columns: 92px 1fr; }
    .app-layout { grid-template-columns: 1fr; }
    .app-layout .media-slot.tall { max-width: 320px; justify-self: center; width: 100%; }
    .footer-brand-row { padding-bottom: 22px; }
    .site-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .search-layer { inset: 0; top: 0; background: #08080D; }
    .search-card { width: 100%; min-height: 100%; border: 0; border-radius: 0; padding: calc(24px + env(safe-area-inset-top)) 16px 24px; }
    .search-presets { grid-template-columns: repeat(2, 1fr); }
    .mobile-bottom { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(5,5,10,.98); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); }
    .mobile-bottom a { min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
    .mobile-bottom a.is-current { color: var(--white); background: var(--pink); }
}
@media (max-width: 420px) {
    .peel-inner { font-size: 11px; }
    .app-link { font-size: 13px; padding: 0 9px; }
    .basket-toggle { min-width: 64px; font-size: 14px; }
    .shelf-item { grid-template-columns: 1fr; }
}
.hero-fallback { min-height: 180px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--white); text-align: center; }
.hero-fallback strong { font-size: 30px; letter-spacing: .06em; }
.hero-fallback span { color: var(--soft); font-size: 13px; letter-spacing: .16em; }
