:root {
  --bg: #0C0B0A;
  --bg-deep: #161311;
  --surface: #1C1916;
  --surface-2: #26221D;
  --paper: #F3E6D2;
  --title: #FFF8F0;
  --text: #EDE4D8;
  --muted: #B7A898;
  --quiet: #8A7B6C;
  --red: #E11D2E;
  --red-hi: #FF4A4F;
  --wine: #8B1E2D;
  --rust: #E25A2A;
  --amber: #E2B14A;
  --border: rgba(226,177,74,.16);
  --border-strong: rgba(225,29,46,.40);
  --shadow: 0 18px 44px rgba(0,0,0,.46);
  --footer: #080706;
  --footer-text: #D8CBBA;
  --max: 1280px;
  --reading: 790px;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
[hidden] { display: none !important; pointer-events: none !important; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 9px 14px;
  background: var(--paper);
  color: #211711;
  border-radius: 6px;
}
.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; min-width: 0; }
.site-main { min-width: 0; }

.brand-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  background: rgba(12,11,10,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.brand-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo, .dialog-logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; object-position: center; flex: 0 0 auto; }
.brand-textmark { display: inline-grid; place-items: center; min-width: 76px; height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 4px; font-weight: 800; letter-spacing: .08em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-copy strong { color: var(--title); font-size: 17px; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .16em; margin-top: 5px; }
.desktop-actions, .mobile-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.mobile-actions { display: none; }
.header-link, .header-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.header-link:hover, .header-button:hover, .header-link:focus-visible, .header-button:focus-visible { border-color: var(--border-strong); color: var(--title); outline: none; }

.channel-nav { border-bottom: 1px solid var(--border); background: var(--bg-deep); }
.channel-nav__desktop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.channel-group { min-width: 0; padding: 18px 24px; border-right: 1px solid var(--border); }
.channel-group:first-child { padding-left: 0; }
.channel-group:last-child { border-right: 0; padding-right: 0; }
.channel-group__title { display: block; color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .18em; margin-bottom: 8px; }
.channel-group__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.channel-link { position: relative; min-height: 36px; display: flex; align-items: center; padding-left: 12px; color: var(--muted); overflow-wrap: anywhere; }
.channel-link::before { content: ""; position: absolute; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--quiet); pointer-events: none; }
.channel-link:hover, .channel-link:focus-visible { color: var(--title); outline: none; }
.channel-link.is-current { color: var(--title); font-weight: 700; }
.channel-link.is-current::before { width: 5px; height: 16px; border-radius: 2px; background: var(--red); }
.channel-nav__mobile { display: none; }

.page-shell { padding-block: 34px 72px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--quiet); font-size: 14px; margin-bottom: 26px; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--paper); outline: none; }
.breadcrumb span[aria-current="page"] { color: var(--muted); }
.section-kicker { margin: 0 0 10px; color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.28; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 16px; letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 2.1vw, 28px); margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 10px; }
h2[id], h3[id], section[id] { scroll-margin-top: calc(var(--header-h) + 22px); }
p { margin: 0 0 1em; }
.lead { color: var(--paper); font-size: 18px; line-height: 1.85; }
.muted { color: var(--muted); }
.quiet { color: var(--quiet); }
.article-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 44px; align-items: center; padding: 34px 0 46px; border-bottom: 1px solid var(--border); }
.article-hero.no-media { grid-template-columns: minmax(0, var(--reading)); }
.article-intro { max-width: 760px; }
.media-frame { min-width: 0; display: flex; justify-content: center; align-items: center; padding: 16px; background: #11100F; border: 1px solid var(--border); border-radius: 8px; }
.content-image { width: auto; height: auto; max-width: 100%; max-height: 240px; object-fit: contain; object-position: center; }
.cover-image { width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.app-image { width: auto; height: auto; max-width: 100%; max-height: 420px; object-fit: contain; object-position: center; }
.mark-image { width: auto; height: auto; max-width: 72px; max-height: 72px; object-fit: contain; object-position: center; }
.section-block { padding: 46px 0; border-bottom: 1px solid var(--border); }
.section-block:last-child { border-bottom: 0; }
.reading-column { width: min(100%, var(--reading)); }
.reading-column p { color: var(--text); }
.reading-column strong { color: var(--paper); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.six-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.split-wide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 34px; align-items: start; }
.editorial-card, .topic-unit, .status-card, .policy-card, .service-card {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.editorial-card > :last-child, .topic-unit > :last-child, .status-card > :last-child, .policy-card > :last-child, .service-card > :last-child { margin-bottom: 0; }
.topic-unit { border-left: 3px solid var(--wine); }
.topic-unit:nth-child(2n) { border-left-color: var(--rust); }
.topic-unit:nth-child(3n) { border-left-color: var(--amber); }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary-button, .secondary-button, .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-weight: 700;
}
.primary-button { padding: 0 18px; color: #fffaf3; background: linear-gradient(135deg,#FF4A4F 0%,#E11D2E 46%,#E25A2A 100%); box-shadow: 0 10px 24px rgba(225,29,46,.18); }
.secondary-button { padding: 0 18px; background: var(--paper); color: #2B1B13; }
.text-link { color: var(--paper); border-bottom: 1px solid var(--border-strong); border-radius: 0; }
.primary-button:hover, .secondary-button:hover, .text-link:hover,
.primary-button:focus-visible, .secondary-button:focus-visible, .text-link:focus-visible { filter: brightness(1.05); outline: 2px solid var(--amber); outline-offset: 3px; }
.clean-list, .check-list, .timeline, .anchor-list { margin: 0; padding: 0; list-style: none; }
.clean-list li, .check-list li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--border); }
.clean-list li:last-child, .check-list li:last-child { border-bottom: 0; }
.clean-list li::before, .check-list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); pointer-events: none; }
.small-label, .status-label { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 9px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.status-card { position: relative; padding-top: 50px; }
.status-card::before { content: ""; position: absolute; top: 22px; left: 22px; width: 28px; height: 4px; background: var(--red); pointer-events: none; }
.status-card:nth-child(2)::before { background: var(--amber); }
.status-card:nth-child(3)::before { background: var(--quiet); }
.status-card:nth-child(4)::before { background: var(--rust); }
.status-card:nth-child(5)::before { background: var(--wine); }
.status-card:nth-child(6)::before { background: var(--paper); }
.note-box { padding: 20px 22px; background: var(--surface-2); border-left: 4px solid var(--red); color: var(--paper); }
.editor-observation { padding: 20px 22px; background: #211815; border: 1px solid var(--border-strong); }
.editor-observation strong { color: var(--red-hi); }
.paper-panel { background: var(--paper); color: #33231A; border-radius: 8px; padding: 24px; }
.paper-panel h2, .paper-panel h3 { color: #1C140F; }
.paper-panel a { color: #6A1722; font-weight: 700; }
.accent-band { padding: 28px; background: linear-gradient(115deg, #351214, #190F0E 72%); border: 1px solid var(--border-strong); border-radius: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface); }
.anchor-list { display: grid; gap: 8px; }
.anchor-list a { display: block; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); }
.anchor-list a:hover, .anchor-list a:focus-visible { color: var(--title); border-color: var(--border-strong); outline: none; }
.timeline li { position: relative; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(225,29,46,.12); pointer-events: none; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 1px; background: var(--border); pointer-events: none; }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 5px; }
.section-index { position: sticky; top: calc(var(--header-h) + 18px); }

.home-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--border); }
.home-hero__copy { width: min(100%, 820px); }
.home-hero h1 { font-size: clamp(36px, 5.3vw, 68px); margin-bottom: 12px; }
.home-hero__statement { font-size: clamp(22px, 3vw, 38px); line-height: 1.35; color: var(--paper); margin: 0 0 18px; }
.home-cover { margin-top: 30px; display: flex; justify-content: center; align-items: center; padding: 18px; min-height: 120px; background: #12100F; border: 1px solid var(--border); border-radius: 8px; }
.home-cover--text { min-height: 180px; background: linear-gradient(120deg, #281012, #0D0C0B 70%); text-align: center; }
.home-cover--text strong { font-size: clamp(28px, 5vw, 52px); letter-spacing: .08em; }
.home-cover--text span { display: block; margin-top: 8px; color: var(--muted); letter-spacing: .16em; }
.home-section { padding: 54px 0; border-bottom: 1px solid var(--border); }
.home-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.home-section__head p { max-width: 620px; color: var(--muted); margin: 0; }
.media-with-copy { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: center; }
.media-with-copy.reverse { grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); }
.media-with-copy.reverse .media-frame { order: 2; }
.reading-points { display: grid; gap: 10px; margin-top: 18px; }
.reading-point { padding: 14px 0; border-top: 1px solid var(--border); }
.reading-point strong { display: block; color: var(--paper); margin-bottom: 4px; }
.compact-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.compact-grid > * { padding: 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.compact-grid h3 { font-size: 17px; }

.faq-list { width: min(100%, 900px); display: grid; gap: 10px; }
details { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
summary { min-height: 52px; padding: 13px 48px 13px 16px; display: flex; align-items: center; color: var(--title); font-weight: 800; cursor: pointer; position: relative; }
summary::after { content: "+"; position: absolute; right: 18px; font-size: 22px; color: var(--red-hi); pointer-events: none; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 18px 18px; color: var(--text); }

.site-footer { background: var(--footer); color: var(--footer-text); border-top: 1px solid var(--border-strong); padding: 44px 0 30px; }
.footer-brand { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: start; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer-brand p { margin: 0; color: var(--muted); max-width: 700px; }
.footer-directory { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.footer-group { min-width: 0; }
.footer-group h2 { font-size: 14px; margin: 0 0 10px; color: var(--paper); }
.footer-group ul { margin: 0; padding: 0; list-style: none; }
.footer-group a { min-height: 36px; display: flex; align-items: center; color: var(--quiet); font-size: 14px; overflow-wrap: anywhere; }
.footer-group a:hover, .footer-group a:focus-visible, .footer-group a.is-current { color: var(--red-hi); outline: none; }
.footer-note { display: flex; justify-content: space-between; gap: 28px; padding-top: 24px; color: var(--quiet); font-size: 13px; }
.footer-note p:first-child { max-width: 820px; }
.mobile-bottom-nav { display: none; }

.site-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.site-dialog { position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(calc(100% - 40px), 960px); max-height: min(86vh, 820px); overflow: auto; overscroll-behavior: contain; background: #13110F; border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 24px; }
.search-dialog { width: min(calc(100% - 40px), 680px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.dialog-head > div { display: flex; flex-direction: column; min-width: 0; }
.dialog-head strong { color: var(--title); font-size: 20px; }
.dialog-head span { color: var(--muted); font-size: 13px; }
.dialog-brand { flex-direction: row !important; align-items: center; gap: 12px; }
.dialog-close { min-width: 64px; min-height: 44px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; cursor: pointer; }
.dialog-close:hover, .dialog-close:focus-visible { border-color: var(--red); outline: 2px solid var(--amber); outline-offset: 2px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding-top: 20px; }
.directory-group { min-width: 0; }
.directory-group h2 { font-size: 15px; color: var(--amber); margin-bottom: 8px; }
.directory-item { display: block; min-height: 72px; padding: 10px 10px 10px 12px; border-left: 2px solid transparent; }
.directory-item strong { display: block; color: var(--title); font-size: 15px; }
.directory-item span { display: block; color: var(--quiet); font-size: 13px; line-height: 1.55; margin-top: 2px; }
.directory-item:hover, .directory-item:focus-visible, .directory-item.is-current { background: var(--surface); border-left-color: var(--red); outline: none; }
.search-box { padding: 22px 0 16px; }
.search-box label { display: block; color: var(--paper); font-weight: 700; margin-bottom: 8px; }
.search-box input { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); background: #090807; color: var(--title); outline: none; }
.search-box input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.15); }
.search-hint { color: var(--quiet); font-size: 13px; margin: 8px 0 0; }
.search-results { display: grid; gap: 8px; padding-bottom: 4px; }
.search-result { display: block; min-height: 68px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 6px; }
.search-result strong { display: block; color: var(--title); }
.search-result span { display: block; color: var(--muted); font-size: 13px; }
.search-result:hover, .search-result:focus-visible { border-color: var(--border-strong); background: var(--surface); outline: none; }
.search-empty { padding: 12px; color: var(--amber); background: var(--surface-2); border-radius: 6px; }

@media (max-width: 1100px) {
  .footer-directory { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .compact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .desktop-actions { display: none; }
  .mobile-actions { display: flex; }
  .brand-header__inner { gap: 10px; }
  .brand-copy { display: none; }
  .brand-logo { max-width: 130px; height: 30px; }
  .channel-nav__desktop { display: none; }
  .channel-nav__mobile { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; padding-block: 8px; }
  .mobile-channel-link { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); border-right: 1px solid var(--border); font-size: 14px; }
  .mobile-channel-link:last-child { border-right: 0; }
  .mobile-channel-link.is-current { color: var(--title); box-shadow: inset 0 -3px 0 var(--red); }
  .article-hero, .media-with-copy, .media-with-copy.reverse, .footer-brand { grid-template-columns: 1fr; }
  .media-with-copy.reverse .media-frame { order: initial; }
  .split-wide { grid-template-columns: 1fr; }
  .section-index { position: static; }
  .three-col, .six-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .directory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-note { flex-direction: column; }
}

@media (max-width: 700px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .page-shell { padding-block: 26px 46px; }
  .home-hero { padding-block: 40px 36px; }
  .home-section, .section-block { padding-block: 34px; }
  .home-section__head { display: block; }
  .two-col, .three-col, .six-grid { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: 1fr 1fr; }
  .footer-directory { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    min-height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8,7,6,.98);
    border-top: 1px solid var(--border-strong);
  }
  .mobile-bottom-nav a { min-height: 56px; display: flex; align-items: center; justify-content: center; color: var(--quiet); font-size: 13px; position: relative; }
  .mobile-bottom-nav a.is-current { color: var(--title); font-weight: 800; }
  .mobile-bottom-nav a.is-current::before { content: ""; position: absolute; left: 24%; right: 24%; top: 0; height: 3px; background: var(--red); pointer-events: none; }
  .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .site-dialog { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 88dvh; max-height: 88vh; border-radius: 12px 12px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .search-dialog { top: 0; bottom: 0; max-height: none; height: 100dvh; height: 100vh; border-radius: 0; }
  .directory-grid { grid-template-columns: 1fr; }
  .content-image { max-height: 220px; }
  .app-image { max-height: 360px; }
  .article-hero { gap: 26px; padding: 18px 0 34px; }
}

@media (max-width: 430px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .brand-logo { max-width: 108px; }
  .header-button { padding-inline: 10px; }
  .channel-nav__mobile { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-channel-link:nth-child(2n) { border-right: 0; }
  .mobile-channel-link:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .compact-grid { grid-template-columns: 1fr; }
  .footer-directory { grid-template-columns: 1fr 1fr; }
  .footer-brand { gap: 18px; }
  .dialog-head { align-items: flex-start; }
  .dialog-brand .dialog-logo { max-width: 100px; }
}

@media (max-width: 340px) {
  .brand-logo { max-width: 92px; }
  .header-button { min-width: 48px; padding-inline: 7px; font-size: 14px; }
  .footer-directory { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.media-with-copy.no-media { grid-template-columns: minmax(0, var(--reading)); }
