/* ==========================================================================
   百利宫新站 · 共享样式 /assets/site.css
   坐标站：深空蓝底 · 朱砂行动色 · 鎏金刻度 · 青玉状态
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-void: #0B1B33;
  --ink-night: #071223;
  --ink-panel: #16294A;
  --fog: #F5F2EC;
  --fog-line: #E3DED2;
  --ink-text: #1C2531;
  --ink-muted: #5C6B7E;
  --cinnabar: #C63A2E;
  --cinnabar-soft: #E4695C;
  --gold: #D8A85A;
  --gold-soft: #F2D9A0;
  --jade: #3F8F86;

  --line-gold: rgba(216, 168, 90, 0.26);
  --line-gold-strong: rgba(216, 168, 90, 0.5);
  --on-dark: rgba(245, 242, 236, 0.76);
  --on-dark-dim: rgba(245, 242, 236, 0.54);

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shell: 1320px;
  --gutter: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-panel: 0 1px 0 rgba(245, 242, 236, 0.04), 0 20px 44px -30px rgba(0, 0, 0, 0.8);
  --shadow-float: 0 12px 30px -18px rgba(0, 0, 0, 0.9);

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif Display", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--ink-void);
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 { font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line-gold); margin: 2.4em 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(198, 58, 46, 0.38); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  transition: transform 0.16s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 4. 通用容器与分区 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding: clamp(46px, 7vw, 96px) 0; position: relative; }
.section--night { background: var(--ink-night); }
.section--fog { background: var(--fog); color: var(--ink-text); }
.section--fog .lead { color: var(--ink-muted); }
.section--fog .eyebrow { color: #8A6420; }
.section--edge { padding: clamp(28px, 4vw, 52px) 0; }

/* ---------- 5. 12 列非对称网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

/* ---------- 6. 排版组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(198, 58, 46, 0.18);
}

.display {
  margin: 0 0 0.35em;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.display em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  color: var(--gold-soft);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  margin: 0 0 1.2em;
  font-size: clamp(1rem, 1.1vw, 1.16rem);
  line-height: 1.85;
  color: var(--on-dark);
}

.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark-dim);
}
.section--fog .note { color: var(--ink-muted); }

.num {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cinnabar);
  border-color: var(--cinnabar-soft);
  color: #fff;
}
.btn--primary:hover { background: var(--cinnabar-soft); border-color: var(--gold-soft); }

.btn--ghost {
  background: rgba(11, 27, 51, 0.4);
  border-color: var(--line-gold-strong);
  color: var(--gold-soft);
}
.btn--ghost:hover { background: rgba(216, 168, 90, 0.14); border-color: var(--gold); }

.btn--ink {
  background: #fff;
  border-color: var(--fog-line);
  color: var(--ink-text);
}
.btn--ink:hover { border-color: var(--gold); color: #7C4A16; }

.btn--compact { padding: 9px 17px; font-size: 14px; }

/* ---------- 8. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 16px var(--gutter);
  background: linear-gradient(180deg, rgba(7, 18, 35, 0.94) 0%, rgba(7, 18, 35, 0.6) 58%, rgba(7, 18, 35, 0) 100%);
  transition: padding 0.18s var(--ease), background 0.18s var(--ease);
}
.site-header.is-condensed {
  padding-top: 8px;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(7, 18, 35, 0.98) 0%, rgba(7, 18, 35, 0.7) 70%, rgba(7, 18, 35, 0) 100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.island {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(22, 41, 74, 0.72);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.island:hover { border-color: var(--line-gold-strong); }

.island--brand { padding: 7px 18px 7px 10px; flex: 0 1 auto; min-width: 0; }
.island--actions { margin-left: auto; gap: 8px; padding: 6px 8px; flex: 0 0 auto; }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand__mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 50% 50%, rgba(216, 168, 90, 0.32), rgba(11, 27, 51, 0) 66%);
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--cinnabar);
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 1px;
  height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(216, 168, 90, 0) 0%, rgba(216, 168, 90, 0.65) 50%, rgba(216, 168, 90, 0) 100%);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fog);
  white-space: nowrap;
}
.brand__line {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--on-dark-dim);
  white-space: nowrap;
  transition: opacity 0.16s var(--ease);
}
.site-header.is-condensed .brand__line { opacity: 0; }

/* 胶囊导航 */
.capsule-nav {
  flex: 1 1 auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(22, 41, 74, 0.72);
  border: 1px solid var(--line-gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float);
}
.capsule-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.capsule-nav__item { margin: 0; }
.capsule-nav__link {
  position: relative;
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--on-dark);
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.capsule-nav__link:hover { color: #fff; background: rgba(245, 242, 236, 0.08); }
.capsule-nav__link[aria-current="page"] {
  color: var(--gold-soft);
  background: rgba(63, 143, 134, 0.22);
  box-shadow: inset 0 0 0 1px rgba(63, 143, 134, 0.6);
}
.capsule-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jade);
  transform: translateX(-50%);
  animation: coord-pulse 3s ease-in-out infinite;
}

@keyframes coord-pulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(0.85); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.25); }
}

/* 检索入口 */
.search-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 248px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: rgba(7, 18, 35, 0.6);
  font-size: 13.5px;
  color: var(--on-dark-dim);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}
.search-entry:hover { border-color: var(--gold); color: var(--fog); background: rgba(7, 18, 35, 0.85); }
.search-entry__icon {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
.search-entry__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}
.search-entry__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-gold-strong);
  background: transparent;
  color: var(--fog);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(216, 168, 90, 0.12); }
.nav-toggle__label { white-space: nowrap; }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: background 0.16s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.16s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-night);
  border-top: 1px solid var(--line-gold);
  color: var(--on-dark);
}
.site-footer__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 168, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 168, 90, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at 18% 0%, #000 0%, rgba(0, 0, 0, 0.2) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse at 18% 0%, #000 0%, rgba(0, 0, 0, 0.2) 62%, transparent 100%);
}
.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 36px;
}
.footer-brand__name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--fog);
  letter-spacing: 0.01em;
}
.footer-brand__line {
  margin: 0 0 14px;
  padding-left: 14px;
  position: relative;
  font-size: 13.5px;
  color: var(--gold);
}
.footer-brand__line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.footer-brand__note {
  margin: 0 0 20px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-col__title {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.footer-col__list { margin: 0; padding: 0; list-style: none; }
.footer-col__list li { margin: 0 0 10px; }
.footer-col__link {
  font-size: 14px;
  color: var(--on-dark);
  transition: color 0.16s var(--ease);
}
.footer-col__link:hover { color: var(--gold-soft); }
.footer-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(216, 168, 90, 0.18);
  font-size: 13px;
  color: var(--on-dark-dim);
}
.footer-meta__line { margin: 0; flex: 1 1 320px; }
.footer-legal { margin: 0; color: var(--gold); }
.footer-copy { margin: 0; }

/* ---------- 10. 面板 / 卡片 / 数据 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-m);
  background: var(--ink-panel);
  box-shadow: var(--shadow-panel);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.panel__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--fog);
}
.panel__body { font-size: 15px; line-height: 1.8; color: var(--on-dark); }

.card {
  padding: 22px;
  border: 1px solid var(--fog-line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: 0 16px 34px -30px rgba(28, 37, 49, 0.6);
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card__title { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink-text); }
.card__meta { margin: 0; font-size: 13px; color: var(--ink-muted); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold-soft);
}
.section--fog .stat__value { color: #A9752A; }
.stat__label { font-size: 13px; color: var(--on-dark-dim); }
.section--fog .stat__label { color: var(--ink-muted); }

/* ---------- 11. 标记 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-soft);
  background: rgba(216, 168, 90, 0.08);
  white-space: nowrap;
}
.tag--jade { border-color: rgba(63, 143, 134, 0.7); color: #8FD3C8; background: rgba(63, 143, 134, 0.16); }
.tag--gold { border-color: var(--gold); color: var(--gold-soft); }
.tag--cinnabar { border-color: rgba(228, 105, 92, 0.7); color: #F2A79C; background: rgba(198, 58, 46, 0.16); }

.search-hit {
  padding: 0 0.14em;
  border-radius: 3px;
  background: rgba(216, 168, 90, 0.32);
  color: inherit;
}

/* ---------- 12. 筛选与检索 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.filter-bar__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.filter-bar__status,
.inline-search__status {
  margin: 0;
  font-size: 13px;
  color: var(--on-dark-dim);
}
.section--fog .filter-bar__status,
.section--fog .inline-search__status { color: var(--ink-muted); }

.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: rgba(11, 27, 51, 0.5);
  color: var(--on-dark);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--fog); }
.chip[aria-pressed="true"] {
  background: rgba(63, 143, 134, 0.24);
  border-color: var(--jade);
  color: #A9E2D8;
}
.section--fog .chip {
  background: #fff;
  border-color: var(--fog-line);
  color: var(--ink-text);
}
.section--fog .chip[aria-pressed="true"] {
  background: rgba(63, 143, 134, 0.14);
  border-color: var(--jade);
  color: #256B62;
}

.inline-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-m);
  background: rgba(22, 41, 74, 0.6);
}
.section--fog .inline-search { background: #fff; border-color: var(--fog-line); }
.inline-search__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.section--fog .inline-search__label { color: #8A6420; }
.inline-search__field {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-gold-strong);
  background: rgba(7, 18, 35, 0.7);
  color: var(--fog);
  font-family: inherit;
  font-size: 15px;
}
.inline-search__field::placeholder { color: var(--on-dark-dim); }
.section--fog .inline-search__field {
  background: var(--fog);
  color: var(--ink-text);
  border-color: var(--fog-line);
}
.inline-search__field:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 2px; }

.is-filtered-out { display: none !important; }
[data-filter-item],
[data-search-item] { transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
[data-filter-item].is-entering { opacity: 0; transform: translateY(6px); }

/* ---------- 13. 索引列表 ---------- */
.index-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-gold); }
.index-list__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-gold);
  transition: background 0.16s var(--ease);
}
.index-list__item:hover { background: rgba(216, 168, 90, 0.06); }
.index-list__num {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--gold);
}
.index-list__title { font-size: 16.5px; font-weight: 600; color: var(--fog); }
.index-list__meta { font-size: 13px; color: var(--on-dark-dim); }

/* ---------- 14. 面包屑 ---------- */
.breadcrumbs { padding: 18px 0 4px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-dim); }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}
.breadcrumbs__link { color: var(--on-dark); transition: color 0.16s var(--ease); }
.breadcrumbs__link:hover { color: var(--gold-soft); }
.section--fog .breadcrumbs__link { color: var(--ink-text); }
.section--fog .breadcrumbs__item { color: var(--ink-muted); }

/* ---------- 15. 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-text);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: #8A2A20; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--cinnabar); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
  color: var(--ink-muted);
}
.prose table { font-size: 15px; margin: 1.6em 0; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--fog-line); text-align: left; }
.prose tbody tr:nth-child(even) { background: rgba(227, 222, 210, 0.35); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.42em;
  border-radius: 5px;
  background: rgba(28, 37, 49, 0.07);
}

/* ---------- 16. 图像容器（供页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-m);
  background:
    linear-gradient(135deg, rgba(22, 41, 74, 0.9) 0%, rgba(7, 18, 35, 0.95) 100%),
    repeating-linear-gradient(90deg, rgba(216, 168, 90, 0.14) 0 1px, transparent 1px 48px);
}
.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 18, 35, 0.78);
  border: 1px solid var(--line-gold);
  font-size: 12.5px;
  color: var(--gold-soft);
}

/* ---------- 17. 坐标装饰线 ---------- */
.coord-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(216, 168, 90, 0) 0%, rgba(216, 168, 90, 0.55) 22%, rgba(216, 168, 90, 0.55) 78%, rgba(216, 168, 90, 0) 100%);
}

/* ---------- 18. 入场动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 19. 断点 ---------- */
@media (max-width: 1180px) {
  .search-entry__label { display: none; }
  .search-entry { padding: 9px 11px; }
  .capsule-nav__link { padding: 8px 11px; font-size: 14px; }
}

@media (max-width: 1040px) {
  .brand__line { display: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  :root { --gutter: 18px; }

  .site-header { padding: 10px var(--gutter); }
  .site-header__inner { position: relative; flex-wrap: wrap; gap: 10px; }
  .island--brand { flex: 1 1 auto; }
  .island--actions { margin-left: auto; }

  .capsule-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex: none;
    padding: 10px;
    border-radius: var(--radius-l);
    background: rgba(7, 18, 35, 0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s linear;
  }
  .capsule-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .capsule-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .capsule-nav__link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15.5px;
  }
  .capsule-nav__link[aria-current="page"]::after {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    animation: none;
  }
  .nav-toggle { display: inline-flex; }

  .grid-12 { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: 1 / -1; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .index-list__item { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; }
  .index-list__meta { grid-column: 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .btn--compact { padding: 9px 14px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .inline-search { padding: 14px; }
  .media-frame__caption { position: static; display: inline-block; margin: 10px 14px 14px; }
}

/* ---------- 20. 无障碍与减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-filter-item].is-entering { opacity: 1; transform: none; }
  .capsule-nav__link[aria-current="page"]::after { animation: none; opacity: 1; }
}
