/* ============================================================
   华夏异闻局 · 主题样式
   配色：玄夜金砂底 + 淡金黄描边 + 暗朱发光（神秘 / 玄幻向）
   基调说明：底色是"近墨的暖褐"而非紫黑，金走淡金（浅黄偏暖）不抢戏，
             红压成暗朱只用于异闻光点与告警，整体偏玄幻、不刺眼。
   ⚠ 坑13：具体规则里不写死十六进制，一律走这里的变量。
   ============================================================ */

:root {
  /* 底色：紫夜星穹（整体参考"紫空 + 红光点 + 红金法阵"的视觉锚点） */
  --bg-deep:      #0e0a1f;
  --bg-deep-2:    #191233;
  --bg-panel:     #191231;
  --bg-panel-2:   #221740;
  --bg-input:     #171028;

  /* 金：淡金黄（横额/描边维持暖金，与紫底互衬） */
  --gold:         #e3c583;
  --gold-bright:  #ffeab8;
  --gold-dim:     #a3854a;
  --gold-line:    rgba(227, 197, 131, .38);

  /* 红（异闻光点 / 强调）：炽朱红 */
  --red-glow:     #ff4636;
  --red-soft:     #ff5a48;
  --red-deep:     #7a1a12;

  /* 文字：暖调 */
  --text:         #f0e8da;
  --text-dim:     #c2b49a;
  --text-faint:   #8f8070;

  --line:         #3f2e5e;
  --line-soft:    rgba(227, 197, 131, .14);

  --ok:           #6fc98a;
  --warn:         #e8b84b;
  --err:          #e8655c;

  /* 玄幻光雾：紫红星云感（对照参考图：紫底泛红霞、红光透亮） */
  --aura-1:       #5a2d72;   /* 顶部紫红雾 */
  --aura-2:       #63308a;   /* 右下紫雾 */
  --aura-3:       #41235c;   /* 左下深紫 */
  --aura-line:    rgba(224, 150, 255, .09);
  --aura-inner:   rgba(190, 96, 235, .22);
  --aura-soft:    rgba(168, 76, 210, .16);
  --halo-1:       rgba(196, 88, 220, .5);
  --halo-2:       rgba(158, 66, 196, .44);

  --veil-1:       rgba(30, 20, 52, .92);   /* 卡片上沿 */
  --veil-2:       rgba(20, 13, 38, .96);   /* 卡片下沿 */
  --veil-3:       rgba(17, 11, 32, .97);   /* 侧栏下沿 */
  --veil-4:       rgba(9, 6, 18, .95);     /* 地图底 */
  --veil-5:       rgba(9, 6, 18, .6);      /* 页脚 */
  --veil-6:       rgba(11, 7, 22, .94);    /* 顶栏上沿 */
  --veil-7:       rgba(11, 7, 22, .78);    /* 顶栏下沿 */

  --hole:         #150e26;   /* 最暗的凹槽（缩略图 / 上传位） */
  --hole-2:       #1d1334;
  --hole-3:       #322050;   /* 头像 / 徽章底 */

  --text-soft:    #e9ddc9;   /* 长文正文 */
  --text-soft-2:  #ded0b2;   /* 次要长文 */
  --text-hole:    #6b5c78;   /* 占位符 / 最弱文字 */

  --radius:       6px;
  --radius-lg:    10px;

  /* 标题：毛笔书法（烫金字用）；正文：仿古宋体 */
  --font-title:   "STKaiti", "KaiTi", "Kaiti SC", "STXingkai", "Songti SC", "SimSun", serif;
  --font-body:    "Songti SC", "STSong", "SimSun", "NSimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-num:     "Times New Roman", Georgia, serif;

  --topbar-h:     64px;
  --maxw:         1500px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size:18.5px;
  font-weight:600;
  line-height: 1.9;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .18s; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 800; letter-spacing: .05em; margin: 0 0 .6em; }

::selection { background: rgba(227, 197, 131, .3); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dim), var(--gold-line));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   背景：星空 + 法阵光环
   ============================================================ */

.ink-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, var(--aura-1) 0%, transparent 62%),
    radial-gradient(ellipse 70% 50% at 12% 85%, var(--aura-3) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 88% 70%, var(--aura-2) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 50%, var(--bg-deep) 100%);
}

/* 雾：两团大而软的紫红雾，慢慢漂 —— 参考图里那种"星云气体"的通透感 */
.ink-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 34% 26% at 24% 30%, rgba(168, 92, 235, .17), transparent 70%),
    radial-gradient(ellipse 30% 24% at 76% 22%, rgba(140, 70, 220, .13), transparent 70%),
    radial-gradient(ellipse 26% 22% at 62% 76%, rgba(255, 90, 70, .09), transparent 72%),
    radial-gradient(ellipse 30% 24% at 16% 72%, rgba(190, 110, 255, .1), transparent 72%);
  animation: mistDrift 90s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.06); }
}

/* 光点：红橙粉的"灵光斑"散布全屏，缓慢明灭（参考图里最多的那种亮点） */
.ink-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(3px 3px at 14% 22%, rgba(255, 120, 90, .95) 30%, transparent 70%),
    radial-gradient(2.4px 2.4px at 34% 62%, rgba(255, 160, 120, .8) 30%, transparent 70%),
    radial-gradient(3.4px 3.4px at 55% 18%, rgba(255, 100, 80, .9) 30%, transparent 70%),
    radial-gradient(2.2px 2.2px at 72% 44%, rgba(255, 140, 170, .75) 30%, transparent 70%),
    radial-gradient(3px 3px at 86% 30%, rgba(255, 110, 80, .9) 30%, transparent 70%),
    radial-gradient(2.6px 2.6px at 8% 58%, rgba(230, 120, 255, .7) 30%, transparent 70%),
    radial-gradient(3.2px 3.2px at 44% 84%, rgba(255, 120, 90, .85) 30%, transparent 70%),
    radial-gradient(2.2px 2.2px at 66% 70%, rgba(255, 170, 130, .7) 30%, transparent 70%),
    radial-gradient(2.8px 2.8px at 92% 66%, rgba(255, 100, 140, .8) 30%, transparent 70%),
    radial-gradient(2.4px 2.4px at 24% 40%, rgba(255, 150, 200, .65) 30%, transparent 70%),
    radial-gradient(3px 3px at 78% 86%, rgba(255, 120, 90, .8) 30%, transparent 70%),
    radial-gradient(2.2px 2.2px at 50% 48%, rgba(255, 180, 150, .6) 30%, transparent 70%);
  animation: dotBreathe 6.5s ease-in-out infinite;
}
@keyframes dotBreathe {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
/* 手机端：光点层静态显示，不跑呼吸动画（省电） */
@media (max-width: 860px), (pointer: coarse) {
  .ink-bg::before { animation: none; }
  .ink-bg::after { animation: none; opacity: .8; }
}

/* 星点：用两层 radial-gradient 平铺出星野 */
.ink-stars {
  position: absolute;
  inset: -10%;
  opacity: .95;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 70% 12%, #ffe9c0 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 42% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 85% 55%, #ffe4b0 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 12% 78%, #ffd6f2 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 58% 88%, #ffe9c0 50%, transparent 51%),
    radial-gradient(1.7px 1.7px at 92% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 33% 8%,  #ffd6f2 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 78% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 5% 45%,  #dcd2ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 27% 55%, #ffe9c0 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 34%, #dcd2ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 48% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 88% 84%, #ffd6f2 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 15% 14%, #fff 50%, transparent 51%);
  background-size: 620px 620px, 480px 480px, 720px 720px, 560px 560px, 660px 660px,
                   520px 520px, 780px 780px, 600px 600px, 700px 700px, 540px 540px,
                   500px 500px, 640px 640px, 730px 730px, 580px 580px, 690px 690px;
  animation: starDrift 240s linear infinite;
}

/* 大颗亮星：几处带光晕的"主星"，缓慢明灭 —— 参考图里最亮的那几颗 */
.ink-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(7px 7px at 18% 26%, rgba(255, 240, 220, .9) 12%, rgba(255, 200, 160, .25) 45%, transparent 70%),
    radial-gradient(6px 6px at 74% 18%, rgba(255, 236, 250, .85) 12%, rgba(255, 170, 210, .25) 45%, transparent 70%),
    radial-gradient(8px 8px at 52% 74%, rgba(255, 244, 230, .8) 12%, rgba(255, 160, 120, .22) 45%, transparent 70%),
    radial-gradient(6px 6px at 88% 60%, rgba(255, 240, 255, .85) 12%, rgba(210, 160, 255, .25) 45%, transparent 70%),
    radial-gradient(7px 7px at 9% 66%, rgba(255, 246, 235, .8) 12%, rgba(255, 190, 140, .22) 45%, transparent 70%),
    radial-gradient(6px 6px at 38% 10%, rgba(255, 238, 255, .8) 12%, rgba(230, 170, 255, .24) 45%, transparent 70%);
  animation: starBreathe 5.2s ease-in-out infinite;
}
@keyframes starBreathe {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
@media (max-width: 860px), (pointer: coarse) {
  .ink-stars::after { animation: none; opacity: .85; }
}

@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-80px, -60px, 0); }
}

/* 法阵光环 */
.ink-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(227, 197, 131, .13);
  box-shadow: inset 0 0 90px var(--aura-soft);
}

.ink-ring::before,
.ink-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(227, 197, 131, .11);
}

.ink-ring::before { inset: 7%; }
.ink-ring::after  { inset: 16%; border-style: solid; border-color: rgba(255, 70, 54, .08); }

.ring-a {
  width: 1080px; height: 1080px;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  animation: ringSpin 300s linear infinite;
}

.ring-b {
  width: 1560px; height: 1560px;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  border-color: rgba(227, 197, 131, .07);
  animation: ringSpin 520s linear infinite reverse;
}

@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 内容层要盖在背景之上 */
.topbar, .page, .footer, .toast-wrap, .modal-wrap { position: relative; z-index: 1; }

/* ============================================================
   顶栏
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--veil-6), var(--veil-7));
  border-bottom: 1px solid var(--gold-line);
}

/* 毛玻璃只在"电脑 + 够宽"时才开。
   为什么：backdrop-filter 在手机上是最贵的一条样式 —— 每次滚动都要把背后的
   星空重算一遍模糊，滑动直接掉帧；而且需要底色半透明才有效果，
   会导致滚动中的合成成本飙升。
   窄屏改用不透明渐变，观感几乎一样，滚动就顺了。
   注意：下面这个渐变要比 --veil-6/7 更实一点，否则失去模糊后会看到文字穿透。 */
@media (min-width: 861px) and (pointer: fine) {
  .topbar {
    background: linear-gradient(180deg, var(--veil-6), var(--veil-7));
    backdrop-filter: blur(10px);
  }
}
@media (max-width: 860px) {
  .topbar {
    background: linear-gradient(180deg, rgba(16, 10, 32, .97), rgba(12, 8, 24, .93));
  }
}

/* 顶栏 · 游戏玄幻感：底部一线红光 + 下坠阴影 */
.topbar {
  border-bottom: 1px solid rgba(255, 140, 90, .32);
  box-shadow:
    0 2px 16px rgba(255, 70, 50, .14),
    0 8px 28px rgba(0, 0, 0, .5);
}

/* 横幅式顶栏：宽屏加高，给题字与副标留位置 */
@media (min-width: 861px) {
  :root { --topbar-h: 92px; }
}

/* 副标行：整条居中，压在题字与导航下方（参考横幅的排版） */
.topbar-sub {
  text-align: center;
  padding: 0 16px 7px;
  margin-top: -6px;
  font-size:14px;
  letter-spacing: .3em;
  color: rgba(233, 205, 160, .75);
  text-shadow: 0 0 14px rgba(255, 150, 80, .35), 0 1px 8px rgba(20, 8, 40, .9);
  pointer-events: none;
}
@media (max-width: 860px) {
  .topbar-sub { display: none; }   /* 手机保持一栏，不放副标 */
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--topbar-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
}

.brand:hover { color: var(--gold-bright); }

.brand-seal {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size:22.5px;
  font-weight:800;
  color: #1a0d08;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold) 45%, #a97d3a);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(227, 197, 131, .45), inset 0 0 8px rgba(255,255,255,.35);
  transform: rotate(-3deg);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-text b {
  font-family: var(--font-title);
  font-size:21px;
  letter-spacing: .1em;
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(227, 197, 131, .45);
}

.brand-text i {
  font-style: normal;
  font-size:12.5px;
  color: var(--text-faint);
  letter-spacing: .06em;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navlink {
  position: relative;
  padding: 8px 13px;
  color: var(--text-dim);
  font-size:16px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .22s, left .22s;
}

.navlink:hover { color: var(--gold-bright); }
.navlink:hover::after { width: 62%; left: 19%; }

.navlink.on { color: var(--gold-bright); }
.navlink.on::after { width: 62%; left: 19%; box-shadow: 0 0 8px var(--gold); }

/* ============================================================
   顶栏 · 游戏玄幻风（参考横幅：金字背光 / 朱印 / 红光递交钮）
   ============================================================ */

/* 站名题字：金色渐变字 + 背光感（透明字不能用 text-shadow，
   要用 filter 把辉光"垫"在字后面，光从字背透出来的感觉） */
.brand-text b {
  font-size:25.5px;
  letter-spacing: .16em;
  background: linear-gradient(180deg, #fff6dc 6%, #ffdf9a 34%, #f4b866 62%, #e8823e 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 4px rgba(255, 210, 150, .65))
    drop-shadow(0 0 12px rgba(255, 150, 80, .6))
    drop-shadow(0 0 30px rgba(255, 80, 50, .38));
}
/* 副标：暗金小字，贴参考图的"收集散世间……"一行 */
.brand-text i { color: rgba(233, 205, 160, .8); letter-spacing: .12em; }

/* 朱红印章：参考图左侧那枚红印，压金边、泛红光 */
.brand-seal {
  color: #ffe9d8;
  background: linear-gradient(145deg, #d24a32, #a02218 58%, #6e130c);
  border: 1px solid rgba(255, 150, 110, .5);
  box-shadow:
    0 0 16px rgba(255, 80, 50, .5),
    inset 0 0 9px rgba(255, 200, 160, .4);
}

/* 导航链接：金色微光 */
.navlink { color: #cdbd9d; }
.navlink:hover,
.navlink.on {
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(255, 200, 120, .55), 0 0 26px rgba(255, 120, 70, .25);
}

/* 顶栏里的「递交卷宗」：六角切角金框 + 红光呼吸（游戏 UI 质感），
   只作用于顶栏导航内，不影响正文里的金色按钮 */
.nav .btn-gold {
  position: relative;
  color: #ffe6b8;
  background:
    linear-gradient(180deg, rgba(150, 40, 34, .55), rgba(90, 22, 30, .75));
  border: 1px solid rgba(255, 190, 120, .75);
  box-shadow:
    0 0 14px rgba(255, 110, 60, .4),
    inset 0 0 0 1px rgba(120, 40, 30, .6),
    inset 0 0 16px rgba(255, 120, 70, .28);
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
  padding: 9px 26px;
  font-weight:800;
  animation: ctaGlow 3.4s ease-in-out infinite;
}
.nav .btn-gold:hover {
  color: #fff0d8;
  transform: translateY(-1px);
  animation-play-state: paused;
  box-shadow: 0 0 24px rgba(255, 110, 70, .65), inset 0 0 14px rgba(255, 140, 90, .35);
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 90, 60, .32), inset 0 0 10px rgba(255, 120, 70, .16); }
  50%      { box-shadow: 0 0 22px rgba(255, 100, 60, .55), inset 0 0 15px rgba(255, 130, 80, .28); }
}
/* 手机端停掉红光呼吸动画（省电） */
@media (max-width: 860px), (pointer: coarse) {
  .nav .btn-gold { animation: none; }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 38px;
  background: transparent;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  color: var(--gold);
  font-size:20px;
  cursor: pointer;
}

/* ============================================================
   按钮
   ============================================================ */

.btn-gold, .btn-ghost, .btn-danger, .btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size:15.5px;
  letter-spacing: .06em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-gold {
  color: #1a0d08;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, #b8873f);
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(227, 197, 131, .3);
  font-weight:700;
}

.btn-gold:hover {
  color: #120800;
  box-shadow: 0 0 26px rgba(243, 215, 155, .6);
  transform: translateY(-1px);
}

.btn-gold:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-ghost {
  color: var(--gold);
  background: transparent;
  border-color: var(--gold-line);
}

.btn-ghost:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(227,197,131,.07); }

.btn-danger {
  color: #ffd9de;
  background: rgba(122, 15, 34, .5);
  border-color: rgba(255, 70, 54, .45);
}

.btn-danger:hover { background: rgba(160, 20, 45, .65); color: #fff; }

.btn-plain {
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}

.btn-plain:hover { color: var(--text); border-color: var(--gold-dim); }

.btn-lg { padding: 12px 30px; font-size:18px; }
.btn-sm { padding: 5px 12px; font-size:14.5px; }

.btn-gold:focus-visible, .btn-ghost:focus-visible, .input:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.icon-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font-size:14.5px;
}

.icon-btn:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   布局
   ============================================================ */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 22px 60px;
}

body.wide .page { max-width: none; padding-left: 22px; padding-right: 22px; }

.card {
  position: relative;
  background:
    linear-gradient(180deg, var(--veil-1), var(--veil-2));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5), inset 0 0 60px var(--aura-soft);
}

/* 四角描金 */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--gold);
  opacity: .55;
  pointer-events: none;
}

.card::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.card::after  { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.center-card { max-width: 560px; margin: 40px auto; text-align: center; }
.auth-card { max-width: 520px; text-align: left; }
.auth-title {
  font-size:28.5px;
  color: var(--gold-bright);
  text-align: center;
  text-shadow: 0 0 20px rgba(227,197,131,.4);
  margin-bottom: 6px;
}
.auth-title::before, .auth-title::after { content: "◆"; font-size:13.5px; color: var(--gold-dim); margin: 0 10px; vertical-align: middle; }

.page-title {
  font-size:27.5px;
  color: var(--gold-bright);
  text-align: center;
  text-shadow: 0 0 22px rgba(227,197,131,.35);
  margin-bottom: 8px;
}

.page-title .orn { color: var(--gold-dim); font-size:14.5px; margin: 0 12px; vertical-align: middle; }

.page-desc { text-align: center; color: var(--text-dim); font-size:17.5px; font-weight:600; margin: 0 0 22px; }
.page-desc.center { text-align: center; }
.muted { color: var(--text-faint); font-size:14.5px; }
.lead { font-size:19px; color: var(--gold); text-align: center; font-family: var(--font-title); }

.err-code { font-family: var(--font-title); font-size:62px; color: var(--gold-dim); line-height: 1; }
.err-msg { color: var(--gold-bright); font-size:21px; margin-top: 10px; }

/* ============================================================
   首页：地图 + 卷宗列表
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
  min-height: calc(100vh - var(--topbar-h) - 120px);
}

.hero-map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  background:
    /* 三盏"射灯"：中上紫光 + 左右两抹红晕，把整幅地图托起来（紫夜风格）。 */
    radial-gradient(ellipse 62% 58% at 50% 40%, rgba(178, 118, 255, .17), transparent 72%),
    radial-gradient(ellipse 44% 40% at 22% 22%, rgba(255, 96, 80, .15), transparent 70%),
    radial-gradient(ellipse 46% 44% at 80% 74%, rgba(255, 110, 90, .13), transparent 72%),
    radial-gradient(ellipse 52% 52% at 50% 46%, var(--halo-1), transparent 70%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(16, 10, 30, .94), var(--veil-4));
  overflow: hidden;
  min-height: 460px;
  box-shadow:
    0 8px 50px rgba(0,0,0,.55),
    inset 0 0 130px var(--aura-inner),
    inset 0 0 34px var(--aura-line);

  /* 让地图容器自己变成一个 flex 容器，地图直接撑满。
     为什么不用 .cn-map { height: 100% }：
     百分比高度要求父元素高度是"确定值"，而这个 wrap 的高度由内容撑开，
     于是 100% 解析失败，ECharts 会按一个偏小的尺寸初始化——
     结果是 canvas 比容器矮一大截，地图放大后底部露出一条背景。
     用 flex 撑满就不依赖百分比解析了。 */
  display: flex;
  flex-direction: column;
}

/* ---------- 符文法阵（动态） ---------- */

.map-runes {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(138%, 1120px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  mix-blend-mode: screen;
}

/* SVG 要跟着容器缩放（去掉它自带的固定尺寸） */
.map-runes > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  /* 对照参考图：红金法阵、光穿透感更强（多层垫光，红金辉） */
  filter:
    hue-rotate(-24deg) saturate(1.55) brightness(1.38)
    drop-shadow(0 0 14px rgba(255, 170, 90, .6))
    drop-shadow(0 0 26px rgba(255, 110, 60, .6))
    drop-shadow(0 0 70px rgba(255, 60, 45, .45));
}

.map-runes .ring {
  transform-origin: 400px 400px;
}

/* 各层不同速度与方向，做出"法阵在运转"的感觉。
   每层再叠一个亮度呼吸，让金环看起来在"吐纳发光"，而不是一圈死线。 */
.map-runes .ring-outer {
  animation: runeSpin 96s linear infinite, runeGlow 6.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,234,184,.55)) drop-shadow(0 0 18px rgba(227,197,131,.35));
}
.map-runes .ring-runes {
  animation: runeSpin 64s linear infinite reverse, runeGlow 4.8s ease-in-out infinite .6s,
             runeBlink 3.1s linear infinite;
  filter: drop-shadow(0 0 7px rgba(255,234,184,.6)) drop-shadow(0 0 20px rgba(255,70,54,.28));
}
.map-runes .ring-stems {
  animation: runeSpin 112s linear infinite, runeGlow 8s ease-in-out infinite 1.2s;
  filter: drop-shadow(0 0 5px rgba(227,197,131,.5));
}
.map-runes .ring-inner {
  animation: runeSpin 46s linear infinite reverse, runeGlow 5.4s ease-in-out infinite .3s;
  filter: drop-shadow(0 0 6px rgba(255,234,184,.5)) drop-shadow(0 0 16px rgba(255,70,54,.22));
}
.map-runes .ring-corners {
  animation: runePulse 7s ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(255,234,184,.6));
}

@keyframes runeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 亮度呼吸：金线由暗转亮，像符阵在蓄势 */
@keyframes runeGlow {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

/* 偶发的一闪：短促提亮，像符文被点亮了一下 */
@keyframes runeBlink {
  0%, 7%, 100% { opacity: 1; }
  3.5%         { opacity: 1; }
  4%           { opacity: .35; }
  5%           { opacity: 1; }
}

@keyframes runePulse {
  0%, 100% { opacity: .18; }
  50%      { opacity: .52; }
}

@media (prefers-reduced-motion: reduce) {
  .map-runes .ring-outer,
  .map-runes .ring-runes,
  .map-runes .ring-stems,
  .map-runes .ring-inner,
  .map-runes .ring-corners { animation: none; opacity: .6; }
}

/* ---------- 浮空符文 / 光环 / 星尘（canvas） ---------- */

.map-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ECharts 画布必须在特效层之下，否则点不到光点 */
.hero-map-wrap > div[id^="cnMap"],
.map-full-wrap > div[id^="cnMap"] { position: relative; z-index: 1; }

.hero-map-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--gold-line) 0 1px, transparent 1px) 0 0 / 100% 100%,
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(227,197,131,.06) 100%);
}

/* 首页地图：flex 撑满父容器（父容器已是 flex 列） */
.hero-map-wrap > .cn-map {
  flex: 1 1 auto;
  min-height: 460px;
  width: 100%;
}

/* 全屏地图页：父容器高度由 .cn-map-full 自己的 height 决定 */
.cn-map { width: 100%; }

.cn-map-full { min-height: 72vh; height: 72vh; }

.map-legend {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 18px;
  font-size:14px;
  color: var(--text-dim);
  background: rgba(14, 9, 28, .82);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  padding: 7px 17px;
  box-shadow: 0 4px 22px rgba(0,0,0,.6);
  /* 没有 backdrop-filter 了：这块东西跟着地图一起滚动，
     模糊会在滚动过程中反复重算，手机上尤其明显。
     底色从 .78 提到 .82 补足对比度，看上去差别很小。 */
}

.map-legend span { display: flex; align-items: center; gap: 7px; }

/* ------------------------------------------------------------
   地图右上角的缩放提示 —— 半透明、楷体笔意、微微浮动
   ------------------------------------------------------------ */
.map-pinch-hint {
  position: absolute;
  top: 14px; right: 20px;
  z-index: 5;
  pointer-events: none;          /* 纯提示，不挡地图手势 */
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-style: italic;
  font-size:15.5px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: .5;
  text-shadow: 0 0 14px rgba(227,197,131,.35);
  animation: pinchFloat 5.2s ease-in-out infinite;
}

@keyframes pinchFloat {
  0%, 100% { opacity: .36; transform: translateY(0); }
  50%      { opacity: .62; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .map-pinch-hint { animation: none; }
}

.dot-glow, .dot-dim, .line-glow {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-glow {
  background: var(--red-glow);
  box-shadow: 0 0 10px var(--red-glow), 0 0 20px rgba(255,70,54,.7);
  animation: dotBreathe 2.4s ease-in-out infinite;
}

/* 手机上停掉"改 box-shadow"的呼吸动画
   —— 阴影动画每一帧都要重画，手机上几颗小点不值这个代价 */
@media (max-width: 860px), (pointer: coarse) {
  .dot-glow { animation: none; }
  .ink-stars { animation-duration: 0s; }
}

@keyframes dotBreathe {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 10px var(--red-glow), 0 0 20px rgba(255,70,54,.7); }
  50%      { transform: scale(1.3); box-shadow: 0 0 16px var(--red-glow), 0 0 30px rgba(255,70,54,1); }
}

.dot-dim { background: var(--line); }

/* 灵脉：一小段发光的金线 */
.line-glow {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 8px rgba(255,234,184,.9);
}

/* 图例里右侧那句操作提示 */
.legend-hint {
  color: var(--text-faint);
  font-size:13px;
  padding-left: 14px;
  border-left: 1px solid rgba(227,197,131,.28);
}

/* 正文里的金色强调 */
.hint-gold { color: var(--gold-bright); font-weight:700; }

.map-tip {
  position: absolute;
  z-index: 6;
  min-width: 180px;
  max-width: 290px;
  padding: 11px 14px;
  background: rgba(16, 9, 30, .97);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.75), 0 0 18px rgba(227,197,131,.2);
  pointer-events: none;
  font-size:14.5px;
}

.map-tip b { display: block; color: var(--gold-bright); font-family: var(--font-title); font-size:16px; margin-bottom: 4px; }
.map-tip .tip-place { color: var(--gold); font-size:13.5px; }
.map-tip .tip-count { color: var(--red-soft); font-size:13.5px; margin-left: 8px; }
.map-tip p { margin: 6px 0 0; color: var(--text-dim); font-size:14px; line-height: 1.6; }

/* 地图上的浮动提示（例如"有关联在视野之外，移动后可见"） */
.map-hint {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translate(-50%, 10px);
  z-index: 7;
  max-width: min(88%, 620px);
  padding: 9px 18px;
  border-radius: 20px;
  font-size:14px;
  line-height: 1.6;
  text-align: center;
  color: #ffd9a0;
  background: rgba(16, 9, 30, .95);
  border: 1px solid rgba(255,176,58,.45);
  box-shadow: 0 6px 26px rgba(0,0,0,.7), 0 0 16px rgba(255,176,58,.18);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, transform .3s;
}

.map-hint.on { opacity: 1; transform: translate(-50%, 0); }

/* 右侧卷宗列表 */

.hero-side {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--veil-1), var(--veil-3));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 16px 6px 12px 16px;
  box-shadow: 0 8px 50px rgba(0,0,0,.55);
  min-height: 0;
  overflow: hidden;
}

.side-title {
  font-size:20px;
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: .16em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  text-shadow: 0 0 16px rgba(227,197,131,.4);
  flex-shrink: 0;
}

.side-title .orn { color: var(--gold-dim); font-size:11px; margin: 0 8px; vertical-align: middle; }

.side-filter { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 10px; margin-bottom: 10px; flex-shrink: 0; }

/* 点击光点后出现的「同类关联」说明条 */
.relate-note {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 10px 10px 0;
  padding: 8px 12px;
  font-size:14px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,176,58,.16), rgba(255,176,58,.04));
  border: 1px solid rgba(255,176,58,.38);
  border-left: 2px solid #ffb03a;
  color: #ffd9a0;
  animation: noteIn .32s ease-out;
}

.relate-note[hidden] { display: none !important; }

.relate-note b { color: #ffc76b; font-weight:700; letter-spacing: .04em; }
.relate-note .rn-cat {
  color: #7fe3ff;
  border: 1px solid rgba(227,197,131,.35);
  border-radius: 3px;
  padding: 0 7px;
  font-size:13px;
}
.relate-note .rn-num { margin-left: auto; color: #c9a86a; font-size:13px; }

@keyframes noteIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 手机上类目较多时横向滚动，避免被裁掉 */
@media (max-width: 760px) {
  .side-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .side-filter::-webkit-scrollbar { display: none; }
  .side-filter .chip { flex: 0 0 auto; }
}

.chip {
  padding: 4px 12px;
  font-size:14px;
  color: var(--text-dim);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font-body);
}

.chip:hover { color: var(--gold); border-color: var(--gold-dim); }

.chip.on {
  color: #1a0d08;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  font-weight:700;
}

.scroll-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 0 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-gutter: stable;
}

.scroll-list li { border-bottom: 1px solid rgba(227,197,131,.08); }

.scroll-list li:last-child { border-bottom: 0; }

.scroll-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 6px 11px 2px;
  color: var(--text);
  transition: all .18s;
  border-radius: 4px;
}

.scroll-item:hover {
  background: linear-gradient(90deg, rgba(227,197,131,.14), transparent 85%);
  color: var(--gold-bright);
  padding-left: 8px;
}

.scroll-item .idx {
  flex-shrink: 0;
  font-family: var(--font-num);
  font-size:14px;
  color: var(--gold-dim);
  min-width: 20px;
  letter-spacing: -.02em;
}

.scroll-item .ti {
  flex: 1;
  min-width: 0;
  font-size:16px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scroll-item .meta { flex-shrink: 0; font-size:13px; color: var(--text-faint); }

/* 首页列表里的性质小标签 */
.scroll-item .li-nature {
  flex-shrink: 0;
  font-size:12px;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 0 5px;
  line-height: 1.5;
  opacity: .85;
}

.scroll-item:hover .li-nature { opacity: 1; border-color: var(--gold); }

.scroll-item.on {
  background: linear-gradient(90deg, rgba(227,197,131,.2), transparent 90%);
  color: var(--gold-bright);
  box-shadow: inset 2px 0 0 var(--gold);
}

.side-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 0 2px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size:14px;
  flex-shrink: 0;
}

/* 首页下方三栏 */

.home-strip {
  display: grid;
  /* 自适应：宽屏四栏（含新加的议事厅），窄屏自动落到两栏 / 一栏 */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.strip-col {
  background: linear-gradient(180deg, rgba(36, 25, 11, .85), var(--veil-3));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.strip-title {
  font-size:18px;
  color: var(--gold);
  letter-spacing: .12em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

/* 首页「局内议事」框：标注 + 进厅入口 */
.strip-title .strip-badge {
  flex: none;
  font-family: var(--font-body);
  font-size:13px;
  letter-spacing: .04em;
  color: #ffd8b8;
  padding: 2px 8px;
  border: 1px solid rgba(255, 150, 95, .45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 120, 60, .22), rgba(150, 40, 34, .18));
  box-shadow: 0 0 10px rgba(255, 120, 70, .25);
}

.strip-more {
  display: inline-block;
  margin-top: 10px;
  font-size:14.5px;
  color: var(--gold);
  letter-spacing: .06em;
}
.strip-more:hover { color: var(--gold-bright); text-shadow: 0 0 10px rgba(255, 180, 110, .5); }

.notice-list { list-style: none; margin: 0; padding: 0; }

.notice-list li {
  padding: 8px 0;
  font-size:17.5px;
  font-weight:600;
  color: #ded2b9;
  border-bottom: 1px dashed rgba(227,197,131,.08);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.notice-list li:last-child { border-bottom: 0; }
.notice-list a { color: var(--text-dim); }
.notice-list a:hover { color: var(--gold-bright); }
.notice-list .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list .d { flex-shrink: 0; font-size:13px; color: var(--text-faint); }

/* ============================================================
   档案库 / 卡片网格
   ============================================================ */

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.result-head {
  display: flex; font-size:17px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size:14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.scroll-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(40, 28, 68, .9), rgba(24, 16, 44, .95));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .22s;
  position: relative;
}

.scroll-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 12px 34px rgba(0,0,0,.6), 0 0 22px rgba(227,197,131,.12);
}

.scroll-card .thumb {
  height: 152px;
  background: linear-gradient(140deg, #332310, var(--hole-2) 60%, #2c1d09);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.scroll-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .93; }

.scroll-card .thumb .glyph {
  font-family: var(--font-title);
  font-size:54px;
  color: rgba(227, 197, 131, .2);
  text-shadow: 0 0 30px rgba(227,197,131,.18);
}

.scroll-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }

.scroll-card .cate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size:13px;
  color: var(--gold);
  background: rgba(227,197,131,.1);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 1px 8px;
  margin-bottom: 9px;
  align-self: flex-start;
}

.scroll-card h3 {
  font-size:22px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scroll-card:hover h3 { color: var(--gold-bright); }

.scroll-card .excerpt {
  font-size:18px;
  font-weight:600;
  color: #ded2b9;
  line-height: 1.85;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 卡片上的出处一行 */
.card-src {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-size:13px;
  min-height: 18px;
}

.cs-nature {
  flex-shrink: 0;
  color: #ffd9a0;
  border: 1px solid rgba(255,176,58,.36);
  background: rgba(255,176,58,.09);
  border-radius: 3px;
  padding: 0 6px;
}

.cs-note {
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-none { color: var(--text-hole); font-style: italic; }

.scroll-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(227,197,131,.1);
  font-size:13px;
  color: var(--text-faint);
}

.scroll-card .foot .st { display: flex; gap: 12px; }
.scroll-card .foot .pl { color: var(--gold-dim); }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size:13px;
  border: 1px solid;
}

.badge.pending  { color: var(--warn); border-color: rgba(232,184,75,.5); background: rgba(232,184,75,.1); }
.badge.approved { color: var(--ok); border-color: rgba(111,201,138,.45); background: rgba(111,201,138,.1); }
.badge.rejected { color: var(--err); border-color: rgba(232,101,92,.5); background: rgba(232,101,92,.1); }
.badge.hidden   { color: var(--text-faint); border-color: var(--line); background: rgba(255,255,255,.04); }

.skeleton-box, .skeleton {
  padding: 40px 0;
  text-align: center;
  color: var(--text-faint);
  font-size:15.5px;
  letter-spacing: .1em;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse { 0%,100% { opacity: .45; } 50% { opacity: .9; } }

.empty { padding: 46px 0; text-align: center; color: var(--text-faint); }
.empty b { display: block; font-family: var(--font-title); font-size:21.5px; color: var(--gold-dim); margin-bottom: 8px; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 7px; margin-top: 26px; flex-wrap: wrap; }

.pager button {
  min-width: 36px;
  padding: 6px 11px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size:15px;
}

.pager button:hover:not(:disabled) { color: var(--gold); border-color: var(--gold-dim); }
.pager button.on { color: #1a0d08; background: var(--gold); border-color: var(--gold-bright); font-weight:700; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ============================================================
   卷宗详情
   ============================================================ */

.scroll-detail { max-width: 880px; margin: 0 auto; }

.sd-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }

.sd-no {
  display: inline-block;
  font-family: var(--font-title);
  font-size:14px;
  letter-spacing: .16em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 2px 12px;
  margin-bottom: 14px;
  background: rgba(227,197,131,.06);
}

.sd-title {
  font-size:28px;
  color: var(--gold-bright);
  line-height: 1.4;
  margin: 0 0 14px;
  text-shadow: 0 0 26px rgba(227,197,131,.3);
}

.sd-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size:16px;
  color: var(--text-dim);
}

.sd-meta b { color: var(--gold); font-weight:700; }

.sd-content {
  font-family: var(--font-title);
  font-size:22px;
  font-weight:800;
  line-height: 2.1;
  color: #ecdfc6;
  padding: 4px 8px;
}

/* ---------- 出处卡片 ---------- */

.source-card {
  margin: 0 0 26px;
  padding: 15px 18px 14px;
  border: 1px solid rgba(227,197,131,.28);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(100deg, rgba(227,197,131,.09), rgba(227,197,131,.02) 70%);
}

.source-card.empty-source {
  border-left-color: var(--line);
  border-color: var(--line);
  background: rgba(255,255,255,.02);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  flex-wrap: wrap;
}

/* 小印章样式的「出处」 */
.sc-seal {
  font-family: var(--font-title);
  font-size:14.5px;
  letter-spacing: .14em;
  color: #1a0d08;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  border-radius: 3px;
  padding: 2px 10px;
  box-shadow: 0 0 12px rgba(227,197,131,.4);
}

.sc-tip { font-size:13px; color: var(--text-faint); }

.sc-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 0;
  font-size:15px;
}

.sc-list dt {
  color: var(--gold-dim);
  letter-spacing: .1em;
  white-space: nowrap;
  font-size:14px;
  padding-top: 1px;
}

.sc-list dd {
  margin: 0;
  color: var(--text-soft-2);
  line-height: 1.75;
  word-break: break-word;
}

.sc-list a { color: #7fe3ff; }
.sc-list a:hover { color: #b8f0ff; }

.sc-nature {
  color: #ffd9a0;
  border: 1px solid rgba(255,176,58,.42);
  background: rgba(255,176,58,.1);
  border-radius: 3px;
  padding: 1px 8px;
  font-size:14px;
}

.sc-none { font-size:14.5px; color: var(--text-faint); }

.sd-content p { margin: 0 0 1.5em; text-indent: 2em; }

.sd-content p::first-letter { font-size: 1.05em; }

/* 正文里的加粗：用金色而非纯加粗，和整体调性一致 */
.sd-content strong {
  color: var(--gold-bright);
  font-weight:700;
  text-shadow: 0 0 12px rgba(227,197,131,.35);
}

/* 段内的「·」条目：换行后稍微缩进，看起来像清单 */
.sd-content br + span { display: inline; }

.sd-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 26px 0; }

.sd-images img {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: all .2s;
  background: var(--hole);
  min-height: 90px;
}

.sd-images img:hover { border-color: var(--gold); box-shadow: 0 0 22px rgba(227,197,131,.25); }

.sd-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size:15px;
  transition: all .2s;
}

.act-btn:hover { color: var(--gold); border-color: var(--gold-dim); background: rgba(227,197,131,.08); }

.act-btn.on {
  color: #1a0d08;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  font-weight:700;
}

.act-btn .n { font-family: var(--font-num); font-size:14px; opacity: .85; }

.sd-note {
  max-width: 880px;
  margin: 0 auto 22px;
  padding: 12px 18px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(227,197,131,.05);
  color: var(--text-dim);
  font-size:14.5px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sd-note.reject { border-left-color: var(--err); background: rgba(232,101,92,.07); }
.sd-note.reject b { color: var(--err); }

/* ============================================================
   批注（评论）
   ============================================================ */

.comment-area { max-width: 880px; margin: 0 auto; }

.cm-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }

.cm-form textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
}

.cm-form .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.cm-item { padding: 14px 0; border-bottom: 1px dashed rgba(227,197,131,.09); }
.cm-item:last-child { border-bottom: 0; }

.cm-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }

.cm-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-title);
  font-size:15.5px;
  color: var(--gold-bright);
  background: linear-gradient(140deg, var(--hole-3), var(--hole-2));
  border: 1px solid var(--gold-line);
  flex-shrink: 0;
}

.cm-name { color: var(--gold); font-size:17.5px; font-weight:700; }
.cm-title { font-size:14px; color: var(--text-faint); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; }
.cm-time { margin-left: auto; font-size:14px; color: var(--text-faint); }

.cm-body { font-size:19px; font-weight:600; line-height: 1.9; color: #e8dcbf; padding-left: 39px; white-space: pre-wrap; word-break: break-word; }

.cm-body .at { color: var(--gold); }

.cm-acts { padding-left: 39px; margin-top: 6px; display: flex; gap: 14px; font-size:14px; }

.cm-acts button {
  background: none;
  border: 0;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  font-size:14px;
}

.cm-acts button:hover { color: var(--gold); }

.cm-replies {
  margin: 10px 0 0 39px;
  padding-left: 16px;
  border-left: 2px solid rgba(227,197,131,.14);
}

.cm-replies .cm-item { padding: 10px 0; }
.cm-replies .cm-avatar { width: 25px; height: 25px; font-size:13.5px; }
.cm-replies .cm-body, .cm-replies .cm-acts { padding-left: 34px; }

.cm-pending { font-size:13px; color: var(--warn); border: 1px solid rgba(232,184,75,.4); border-radius: 3px; padding: 0 6px; margin-left: 6px; }
.cm-hidden { opacity: .45; text-decoration: line-through; }

.cm-reply-box { margin: 8px 0 0 39px; display: none; }
.cm-reply-box.on { display: block; }

/* ============================================================
   表单
   ============================================================ */

.form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field > label { font-size:15px; color: var(--gold); letter-spacing: .05em; }

.field .req { color: var(--red-soft); }

.input {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size:16px;
  line-height: 1.7;
  transition: all .2s;
}

.input::placeholder { color: var(--text-hole); }

.input:hover { border-color: var(--gold-dim); }

.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,197,131,.13);
  background: var(--bg-panel-2);
}

textarea.input { min-height: 120px; resize: vertical; line-height: 1.85; }

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-dim) 50%),
                    linear-gradient(135deg, var(--gold-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}

select.input option { background: var(--bg-panel); color: var(--text); }

.hint { font-size:13.5px; color: var(--text-faint); display: flex; justify-content: space-between; gap: 10px; }
.counter { font-family: var(--font-num); flex-shrink: 0; }
.counter.over { color: var(--err); }

.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.check-line { display: flex; align-items: flex-start; gap: 9px; font-size:15px; color: var(--text-dim); line-height: 1.7; cursor: pointer; }
.check-line input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }

.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

.form-msg { font-size:15px; min-height: 20px; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }

.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1; }

.captcha-img {
  width: 150px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--hole);
  flex-shrink: 0;
}

/* 图片上传 */
.uploader { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius);
  color: var(--gold);
  cursor: pointer;
  font-size:15.5px;
  transition: all .2s;
}

.upload-btn:hover { border-color: var(--gold); background: rgba(227,197,131,.07); }
.upload-btn span { font-size:19px; line-height: 1; }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 12px; }

.thumb-item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hole);
}

.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.thumb-item .del {
  position: absolute;
  right: 4px; top: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.72);
  color: #ff8b98;
  cursor: pointer;
  font-size:14.5px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.thumb-item .del:hover { background: var(--red-deep); color: #fff; }

.thumb-item .cover-tag {
  position: absolute;
  left: 4px; bottom: 4px;
  font-size:12px;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(227,197,131,.9);
  color: #1a0d08;
  font-weight:700;
}

.thumb-item .prog {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  transition: width .2s;
}

/* ============================================================
   我的档案
   ============================================================ */

.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.pf-avatar {
  width: 84px; height: 84px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size:38px;
  color: var(--gold-bright);
  background: linear-gradient(145deg, var(--hole-3), var(--hole-2));
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 26px rgba(227,197,131,.2), inset 0 0 20px rgba(227,197,131,.08);
  flex-shrink: 0;
}

.pf-info { flex: 1; min-width: 240px; }

.pf-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

.pf-name b { font-family: var(--font-title); font-size:25.5px; color: var(--gold-bright); letter-spacing: .05em; }

.pf-title {
  font-size:14px;
  color: #1a0d08;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  border-radius: 3px;
  padding: 2px 10px;
  font-weight:700;
}

.pf-sub { font-size:14px; color: var(--text-faint); display: flex; gap: 16px; flex-wrap: wrap; }

.pf-progress { margin-top: 12px; }

.pf-bar {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.pf-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 0 12px rgba(227,197,131,.6);
  transition: width .6s;
}

.pf-bar-txt { font-size:13.5px; color: var(--text-faint); margin-top: 6px; display: flex; justify-content: space-between; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; margin-top: 22px; }

.stat-box {
  text-align: center;
  padding: 14px 8px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.stat-box b { display: block; font-family: var(--font-num); font-size:26.5px; color: var(--gold-bright); line-height: 1.2; }
.stat-box span { font-size:13.5px; color: var(--text-faint); }

.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.ladder .step {
  font-size:14px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--text-faint);
}

.ladder .step.reached { color: var(--gold); border-color: var(--gold-dim); background: rgba(227,197,131,.09); }
.ladder .step.cur { color: #1a0d08; background: var(--gold); border-color: var(--gold-bright); font-weight:700; }

.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0 18px; }

/* ============================================================
   地图页
   ============================================================ */

.map-full-card { padding-bottom: 28px; }

/* ============================================================
   地图页 · 紫夜星穹风格（整页铺满）
   ------------------------------------------------------------
   参考风格：深紫夜空底 + 星尘，地图不装框直接铺满，
   顶部一条华丽的卷首横额，右侧一栏"异闻卷宗"列表。
   ------------------------------------------------------------ */
body.page-map .page {
  max-width: none;
  padding: 0;
}

body.page-map {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(88, 44, 140, .38), transparent 70%),
    radial-gradient(ellipse 55% 45% at 14% 16%, rgba(120, 50, 150, .22), transparent 70%),
    radial-gradient(ellipse 55% 45% at 88% 82%, rgba(90, 40, 130, .2), transparent 72%),
    linear-gradient(180deg, #17102b 0%, #100a20 46%, #0b0718 100%);
  background-attachment: fixed;
}

.map-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  min-height: 480px;
}

/* ---- 卷首横额：参照古卷轴匾额 ---- */
.map-arch {
  position: relative;
  z-index: 7;
  flex: 0 0 auto;
  text-align: center;
  padding: 10px 16px 8px;
  pointer-events: none;
}
.map-arch .arch-inner {
  position: relative;
  display: inline-block;
  padding: 6px 46px 9px;
}
/* 横额两端的装饰角纹 */
.map-arch .arch-inner::before,
.map-arch .arch-inner::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 34px;
  border: 1px solid rgba(228, 186, 120, .5);
  pointer-events: none;
}
.map-arch .arch-inner::before { left: 0; border-right: none; border-radius: 6px 0 0 6px; }
.map-arch .arch-inner::after  { right: 0; border-left: none; border-radius: 0 6px 6px 0; }

.arch-title {
  margin: 0;
  font-family: 'Kaiti SC', 'STKaiti', KaiTi, serif;
  font-size: clamp(23.5px, 3.4vw, 34px);
  font-weight:800;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #ffe9b8 12%, #f3c46e 48%, #e08a4e 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 22px rgba(255, 150, 80, .35);
}
.arch-title .arch-sep { margin: 0 6px; color: #ff9d5c; -webkit-text-fill-color: #ff9d5c; }
.arch-title .arch-seal {
  font-size: .62em;
  vertical-align: middle;
  margin: 0 14px;
  color: #ff8f66;
  -webkit-text-fill-color: #ff8f66;
  text-shadow: 0 0 12px rgba(255, 110, 70, .8);
}
.arch-sub {
  margin: 3px 0 0;
  font-size: clamp(12.5px, 1.4vw, 15px);
  letter-spacing: 3px;
  color: rgba(233, 205, 240, .66);
  text-shadow: 0 1px 12px rgba(20, 8, 40, .9);
}

/* ---- 地图舞台：横额之下、卷宗栏在右 ---- */
.map-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

/* 紫夜星穹：撒一层若隐若现的星尘 */
.map-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 24%, rgba(236, 214, 255, .8), transparent 100%),
    radial-gradient(1.1px 1.1px at 28% 68%, rgba(220, 190, 255, .6), transparent 100%),
    radial-gradient(1.6px 1.6px at 41% 12%, rgba(255, 230, 250, .7), transparent 100%),
    radial-gradient(1.1px 1.1px at 57% 82%, rgba(226, 200, 255, .55), transparent 100%),
    radial-gradient(1.5px 1.5px at 66% 30%, rgba(240, 220, 255, .7), transparent 100%),
    radial-gradient(1.1px 1.1px at 74% 62%, rgba(214, 186, 250, .5), transparent 100%),
    radial-gradient(1.7px 1.7px at 85% 18%, rgba(255, 226, 246, .75), transparent 100%),
    radial-gradient(1.2px 1.2px at 92% 74%, rgba(224, 198, 255, .6), transparent 100%),
    radial-gradient(1.3px 1.3px at 8% 84%, rgba(230, 206, 255, .6), transparent 100%),
    radial-gradient(1.4px 1.4px at 48% 46%, rgba(244, 224, 255, .5), transparent 100%);
}
body.page-map .map-runes { opacity: .95; }

.map-hero .map-full-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  /* 紫夜底色垫在地图下面，法阵区域透出星穹 */
  background: transparent;
}

.map-hero .cn-map-full {
  height: 100%;
  min-height: 0;
}

/* ---- 右侧卷宗栏 ---- */
.map-side {
  position: relative;
  z-index: 6;
  flex: 0 0 272px;
  margin: 8px 12px 14px 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(220, 172, 110, .42);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(38, 22, 62, .86), rgba(22, 13, 40, .92));
  box-shadow: 0 6px 34px rgba(8, 4, 18, .6), inset 0 0 26px rgba(120, 60, 160, .14);
  overflow: hidden;
}
.side-head {
  padding: 11px 12px 9px;
  text-align: center;
  font-family: 'Kaiti SC', 'STKaiti', KaiTi, serif;
  font-size:19px;
  letter-spacing: 4px;
  color: #f6d492;
  border-bottom: 1px solid rgba(220, 172, 110, .3);
  background: linear-gradient(180deg, rgba(70, 34, 108, .55), rgba(38, 20, 66, .2));
  text-shadow: 0 0 14px rgba(255, 170, 90, .4);
}
.side-orn { color: #ff9d6c; font-size:13.5px; vertical-align: 2px; }

/* 分类筛选 chips（与档案库同款交互，尺寸收窄适配侧栏） */
.side-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 10px 7px;
  border-bottom: 1px solid rgba(220, 172, 110, .22);
}
.side-cat {
  border: 1px solid rgba(220, 172, 110, .38);
  background: rgba(60, 34, 96, .35);
  color: rgba(236, 217, 246, .85);
  font-size:13px;
  letter-spacing: .04em;
  padding: 2.5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.side-cat:hover { border-color: #ffb08a; color: #fff0d8; }
.side-cat.on {
  background: linear-gradient(160deg, #f3c46e, #e08a4e);
  border-color: #ffe0ae;
  color: #2a1108;
  font-weight:800;
}
.side-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 150, 220, .35) transparent;
}
.side-list::-webkit-scrollbar { width: 5px; }
.side-list::-webkit-scrollbar-thumb { background: rgba(200, 150, 220, .35); border-radius: 3px; }
.side-loading { padding: 18px; text-align: center; color: rgba(220, 195, 235, .55); font-size:14px; }
.side-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  color: #ecd9f6;
  text-decoration: none;
  font-size:15px;
  line-height: 1.55;
  border-left: 3px solid transparent;
  transition: background .18s, border-color .18s;
}
.side-list a:hover {
  background: linear-gradient(90deg, rgba(150, 70, 190, .28), rgba(150, 70, 190, .04));
  border-left-color: #ff9d6c;
}
.side-list .sl-no {
  flex: 0 0 auto;
  min-width: 22px;
  text-align: center;
  font-size:12px;
  color: #ffb08a;
  border: 1px solid rgba(255, 150, 100, .4);
  border-radius: 50%;
  padding: 1px 0;
  align-self: center;
}
.side-list .sl-title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-list .sl-place {
  flex: 0 0 auto;
  font-size:12.5px;
  color: rgba(220, 190, 240, .5);
}
@media (max-width: 980px) {
  .map-side { display: none; }   /* 手机上收起卷宗栏，保地图空间 */
  .map-arch .arch-inner { padding: 4px 26px 6px; }
  .map-arch .arch-seal { display: none; }  /* 小屏印章会挤换行 */
  .arch-title { letter-spacing: 2px; }
}

/* 标题与说明浮在地图上（备用：若之后想去掉横额可恢复） */
.map-hero-head {
  position: absolute;
  top: 10px; left: 0; right: 0;
  z-index: 6;
  text-align: center;
  pointer-events: none;
  opacity: .5;
  transition: opacity .35s;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6);
}
.map-hero-head:hover { opacity: .88; }
.map-hero-head .page-title { margin: 4px 0 2px; }
.map-hero-head .page-desc { margin: 0 auto; max-width: min(92vw, 760px); }

.map-hero .cn-map-full { min-height: 0; }

.map-full-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse 50% 60% at 50% 48%, var(--halo-2), transparent 70%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(16, 10, 30, .93), var(--veil-4));
  box-shadow: inset 0 0 120px var(--aura-inner);
}

/* ⚠ 通用规则：凡是用 HTML 的 hidden 属性控制显隐的元素，
   如果 CSS 里给它设了 display，[hidden] 就会被覆盖掉，元素会"隐形"地留在页面上。
   对 position:fixed 的元素来说，这等于在页面上盖了一层看不见的东西，点击全被吃掉。
   下面这条规则统一兜底（.modal-wrap / .map-drawer / .lightbox / .toast-wrap 都适用）。 */
.modal-wrap[hidden],
.map-drawer[hidden],
.lightbox[hidden],
.toast-wrap[hidden],
.is-hidden {
  display: none !important;
}

.map-drawer {
  position: fixed;
  right: 0; top: var(--topbar-h); bottom: 0;
  width: 380px;
  max-width: 88vw;
  background: linear-gradient(180deg, rgba(26, 17, 48, .98), rgba(14, 9, 28, .99));
  border-left: 1px solid var(--gold-line);
  box-shadow: -14px 0 44px rgba(0,0,0,.65);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 16px;
  transform: translateX(100%);
  transition: transform .3s;
}

.map-drawer.on { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.drawer-head b { font-family: var(--font-title); font-size:19px; color: var(--gold-bright); }

/* ============================================================
   公告 / 长文
   ============================================================ */

.prose { max-width: 860px; margin-left: auto; margin-right: auto; }
.prose h3 { color: var(--gold); font-size:19px; margin: 26px 0 10px; }
.prose p { color: var(--text-soft-2); margin: 0 0 1.15em; line-height: 1.95; }
.prose ul { padding-left: 22px; color: var(--text-soft-2); line-height: 2; }
.prose li { margin-bottom: .35em; }
.prose .muted { color: var(--text-faint); }

.announce-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.announce-item:last-child { border-bottom: 0; }
.announce-item .ah { display: flex; align-items: baseline; gap: 11px; margin-bottom: 8px; flex-wrap: wrap; }
.announce-item .ah b { font-family: var(--font-title); font-size:20px; color: var(--gold-bright); }
.announce-item .ah time { font-size:13.5px; color: var(--text-faint); margin-left: auto; }
.announce-item .ab { font-size:16px; color: var(--text-soft-2); line-height: 1.9; white-space: pre-wrap; }
.pin-tag { font-size:12.5px; color: #1a0d08; background: var(--gold); border-radius: 2px; padding: 0 6px; font-weight:700; }

/* ============================================================
   局座台
   ============================================================ */

.admin-wrap { max-width: 1420px; margin: 0 auto; padding: 20px 22px 60px; }

.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }

.admin-tabs a {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size:15.5px;
}

.admin-tabs a:hover { color: var(--gold); border-color: var(--gold-dim); }
.admin-tabs a.on { color: #1a0d08; background: var(--gold); border-color: var(--gold-bright); font-weight:700; }

.review-card { border-left: 2px solid var(--gold-dim); }
.review-card .rc-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.review-card .rc-head h3 { font-size:21.5px; color: var(--gold-bright); margin: 0; }
.review-card .rc-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size:14px; color: var(--text-faint); margin-bottom: 14px; }
.review-card .rc-content {
  font-family: var(--font-title);
  font-size:18px;
  line-height: 1.95;
  color: var(--text-soft);
  max-height: 260px;
  overflow-y: auto;
  padding: 14px 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.review-card .rc-content p { margin: 0 0 1em; text-indent: 2em; }
.review-card .rc-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }

table.tbl { width: 100%; border-collapse: collapse; font-size:15px; min-width: 720px; }

table.tbl th {
  text-align: left;
  padding: 11px 13px;
  background: rgba(227,197,131,.07);
  color: var(--gold);
  font-weight:600;
  font-size:14px;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

table.tbl td { padding: 10px 13px; border-bottom: 1px solid rgba(227,197,131,.07); color: var(--text-dim); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: rgba(227,197,131,.04); }
table.tbl a { color: var(--gold); }
table.tbl .strong { color: var(--text); }
table.tbl .acts { display: flex; gap: 6px; flex-wrap: wrap; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }

.stat-card {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(40,28,12,.85), rgba(24,17,7,.9));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  border-left: 2px solid var(--gold-dim);
}

.stat-card b { display: block; font-family: var(--font-num); font-size:28px; color: var(--gold-bright); line-height: 1.2; }
.stat-card span { font-size:14px; color: var(--text-faint); }

/* ============================================================
   灯箱 / 弹窗 / 提示
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 2, 10, .95);
  display: grid;
  place-items: center;
  padding: 30px;
  cursor: zoom-out;
}

.lightbox img { max-width: 96vw; max-height: 90vh; object-fit: contain; border: 1px solid var(--gold-line); border-radius: var(--radius); }

.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(227,197,131,.14);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size:21px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox .lb-nav:hover { background: rgba(227,197,131,.3); color: #fff; }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size:14.5px; color: var(--text-dim); }

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(4, 2, 10, .78);
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ⚠ 关键：没有弹窗时必须彻底隐藏。
   只写 HTML 的 hidden 属性是不够的 —— 浏览器的 [hidden]{display:none} 是元素默认样式，
   优先级低于这里的 .modal-wrap{display:grid}，结果弹窗容器会一直以整屏大小盖在页面上，
   把全站的点击全部吃掉（点导航、点卡片、点按钮全都没反应）。
   这类 bug 不报错、页面上也看不出异常，只有点击时才发现，所以必须显式处理。 */
.modal-wrap[hidden],
.modal-wrap.is-hidden {
  display: none !important;
}

.modal-box {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 20px 70px rgba(0,0,0,.8);
}

.modal-box h3 { color: var(--gold-bright); font-size:21.5px; margin-bottom: 10px; }
.modal-box .mb-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.toast-wrap {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 10px 22px;
  border-radius: 22px;
  font-size:15.5px;
  background: rgba(20, 11, 38, .97);
  border: 1px solid var(--gold-line);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  animation: toastIn .26s ease-out;
  max-width: 90vw;
  text-align: center;
}

.toast.ok  { border-color: rgba(111,201,138,.6); color: #b8f0d4; }
.toast.err { border-color: rgba(232,101,92,.6); color: #ffc4cc; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   页脚
   ============================================================ */

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--veil-5);
  padding: 26px 22px 40px;
}

.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }

.foot-note { color: var(--text-faint); font-size:14px; margin: 0 0 8px; }
.foot-meta { color: var(--text-faint); font-size:13.5px; margin: 3px 0; }
.foot-meta a { color: var(--text-faint); }
.foot-meta a:hover { color: var(--gold-dim); }

/* 页脚常驻链接（法规页入口在这里） */
.foot-links {
  margin: 10px 0 6px;
  display: flex;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--text-faint);
  font-size:14px;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover { color: var(--gold); border-bottom-color: var(--gold-dim); }

/* ============================================================
   禁止事项与法律依据
   ============================================================ */

.law-page { max-width: 940px; margin: 0 auto; }

.law-doc { padding: 34px 38px 40px; }

.law-h1 {
  font-size:28px;
  color: var(--gold-bright);
  text-align: center;
  text-shadow: 0 0 24px rgba(227,197,131,.35);
  margin-bottom: 8px;
}

.law-sub {
  text-align: center;
  color: var(--text-dim);
  font-size:15.5px;
  margin: 0 0 26px;
}

.law-intro {
  font-size:17px;
  line-height: 2;
  color: var(--text-soft-2);
  padding: 16px 20px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(227,197,131,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
}

.law-intro p { margin: 0 0 .9em; }
.law-intro p:last-child { margin-bottom: 0; }

/* ---------- 目录 ---------- */

.law-toc {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 34px;
  background: rgba(255,255,255,.02);
}

.toc-title {
  font-size:14px;
  color: var(--gold-dim);
  letter-spacing: .14em;
  margin-bottom: 10px;
}

.law-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--text-dim);
  font-size:15.5px;
  transition: all .18s;
}

.law-toc a:hover { background: rgba(227,197,131,.09); color: var(--gold-bright); }
.law-toc a.on { background: rgba(227,197,131,.14); color: var(--gold-bright); }

.toc-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-family: var(--font-title);
  font-size:14px;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  flex-shrink: 0;
}

.toc-level {
  margin-left: auto;
  font-size:12.5px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 7px;
  flex-shrink: 0;
}

/* ---------- 各节 ---------- */

.law-section {
  margin-bottom: 42px;
  scroll-margin-top: 84px;
}

.law-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size:21px;
  color: var(--gold-bright);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}

.law-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-family: var(--font-title);
  font-size:19px;
  color: #1a0d08;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(227,197,131,.4);
  flex-shrink: 0;
}

.law-level {
  margin-left: auto;
  font-size:13px;
  font-weight:500;
  color: #ffb8c4;
  border: 1px solid rgba(255,70,54,.45);
  background: rgba(255,70,54,.1);
  border-radius: 3px;
  padding: 1px 9px;
  letter-spacing: .04em;
}

.law-lead {
  font-size:16px;
  color: var(--text-dim);
  margin: 0 0 16px;
  padding-left: 2px;
}

.law-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.law-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size:16px;
  line-height: 1.85;
  color: var(--text-soft);
  border-bottom: 1px dashed rgba(227,197,131,.09);
}

.law-list li:last-child { border-bottom: 0; }

.law-list li::before {
  content: "◆";
  position: absolute;
  left: 2px;
  top: 9px;
  color: var(--red-soft);
  font-size:10px;
  line-height: 1.9;
}

.law-list strong { color: var(--gold-bright); font-weight:700; }

/* ---------- 法条引用 ---------- */

.law-cite {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(227,197,131,.2);
  border-left: 2px solid #7fe3ff;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(227,197,131,.045);
}

.lc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size:14.5px;
}

.lc-seal {
  font-family: var(--font-title);
  font-size:13px;
  letter-spacing: .12em;
  color: #06202b;
  background: #7fe3ff;
  border-radius: 3px;
  padding: 1px 8px;
  flex-shrink: 0;
}

.lc-head b { color: #b8f0ff; font-weight:600; }

.lc-link {
  font-size:13px;
  color: #7fe3ff;
  border-bottom: 1px dotted rgba(227,197,131,.5);
}

.lc-link:hover { color: #d8faff; }

.law-cite blockquote {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(227,197,131,.25);
  font-family: var(--font-title);
  font-size:15.5px;
  line-height: 1.95;
  color: #b9d8e8;
}

/* ---------- 补充说明 ---------- */

.law-note {
  margin: 18px 0 0;
  padding: 16px 20px;
  border: 1px solid rgba(255,176,58,.28);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255,176,58,.09), rgba(255,176,58,.02) 70%);
  font-size:15.5px;
  line-height: 1.95;
  color: var(--text-soft);
}

.law-note p { margin: 0 0 .9em; }
.law-note p:last-child { margin-bottom: 0; }
.law-note strong { color: #ffd9a0; font-weight:700; }

/* ---------- 页脚提醒 ---------- */

.law-footer-note {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid rgba(255,70,54,.3);
  border-radius: var(--radius);
  background: rgba(255,70,54,.06);
  font-size:15px;
  line-height: 1.9;
  color: #e8ccd2;
}

.law-footer-note p { margin: 0 0 .9em; }
.law-footer-note p:last-child { margin-bottom: 0; }
.law-footer-note strong { color: #ffb8c4; font-weight:700; }

/* ---------- 用户协议页里的引导条 ---------- */

.law-banner {
  margin: 0 0 26px;
  padding: 15px 19px;
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(227,197,131,.07);
}

.law-banner b {
  display: block;
  font-family: var(--font-title);
  color: var(--gold-bright);
  font-size:17px;
  margin-bottom: 6px;
  letter-spacing: .06em;
}

.law-banner p { margin: 0; font-size:15px; line-height: 1.85; color: var(--text-soft-2); }
.law-banner strong { color: var(--gold-bright); }

/* ---------- 手机端 ---------- */

@media (max-width: 760px) {
  .law-doc { padding: 22px 16px 28px; }
  .law-h1 { font-size:22.5px; }
  .law-title { font-size:19px; }
  .law-level { margin-left: 0; width: 100%; text-align: center; }
  .law-list li { font-size:15.5px; padding-left: 18px; }
  .law-cite { padding: 12px 13px; }
  .law-cite blockquote { font-size:15px; }
  .law-note, .law-footer-note { padding: 14px 15px; font-size:15px; }
  .law-toc a { font-size:15px; padding: 7px 8px; }
  .toc-level { display: none; }
}

/* ============================================================
   局内议事（论坛）
   ============================================================ */

.forum-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.forum-bar .tabs { margin: 0; }

/* 列表行 */

.thread-row {
  padding: 13px 10px 12px 6px;
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .18s, padding-left .18s;
}

.thread-row:last-child { border-bottom: 0; }

.thread-row:hover {
  background: linear-gradient(90deg, rgba(227,197,131,.12), transparent 88%);
  padding-left: 12px;
}

.tr-main {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.tr-title {
  font-family: var(--font-title);
  font-size:21.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .02em;
}

.thread-row:hover .tr-title { color: var(--gold-bright); }

.tr-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size:15px;
  color: var(--text-faint);
}

.tr-excerpt {
  margin-top: 5px;
  font-size:17.5px;
  font-weight:600;
  line-height: 1.85;
  color: #ded2b9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 类别小签：上报偏朱、交流偏金 */
.kind-report {
  color: #ffb9ae;
  border-color: rgba(255,70,54,.42);
  background: rgba(255,70,54,.09);
}

.kind-talk {
  color: var(--gold);
  border-color: var(--gold-line);
  background: rgba(227,197,131,.08);
}

/* 待勘验 */
.badge-pending {
  font-size:12.5px;
  color: var(--warn);
  border: 1px solid rgba(232,184,75,.45);
  background: rgba(232,184,75,.1);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.6;
}

/* 行内删除 */
.li-del {
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size:13.5px;
  cursor: pointer;
}

.li-del:hover { color: var(--err); }

/* 详情 */

.thread-title {
  font-family: var(--font-title);
  font-size:24.5px;
  color: var(--gold-bright);
  line-height: 1.5;
  margin: 16px 0 8px;
  text-shadow: 0 0 20px rgba(227,197,131,.32);
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size:15.5px;
  color: var(--text-faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

/* 详情页正文：长文要护眼，字号上一档、字重加粗，行距放宽 */
.thread-body {
  margin: 18px 0 6px;
  padding: 2px 4px;
  font-family: var(--font-body);
  font-size:20.5px;
  font-weight:600;
  line-height: 2.05;
  color: #ecdfc6;
  white-space: normal;
}

/* 详情内容收成一栏居中：宽屏下不能左贴边、右侧留一大片空白 */
#threadView .thread-title,
#threadView .thread-meta,
#threadView .thread-body,
#threadView .thread-actions,
#threadView .strip-title,
#threadView #replyList,
#threadView #replyForm {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
#threadView .thread-title { margin-top: 16px; margin-bottom: 8px; }
#threadView .thread-body { margin-top: 18px; margin-bottom: 6px; }
#threadView .thread-meta { margin-bottom: 0; }
#threadView .strip-title { margin-top: 26px; }
#threadView #replyForm { margin-top: 18px; }

.thread-body p { margin: 0 0 1em; text-indent: 0; }

.thread-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* 留言 */

.reply-row {
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.reply-row:last-child { border-bottom: 0; }

.rr-head {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.rr-head b { font-family: var(--font-title); font-size:18px; color: var(--gold); font-weight:800; }
.rr-head .li-del { margin-left: auto; }

.rr-body {
  font-size:19px;
  font-weight:600;
  line-height: 1.9;
  color: #e8dcbf;
  white-space: pre-wrap;
  word-break: break-word;
}

.rr-body p { margin: 0 0 .8em; }
.rr-body p:last-child { margin-bottom: 0; }

/* ============================================================
   页脚「虚构声明」
   —— 内容写死在 view.js，不可在后台改，视觉上做成盖印式的免责条
   ============================================================ */

.foot-fiction {
  max-width: 720px;
  margin: 0 auto 14px;
  padding: 9px 20px;
  font-family: var(--font-title);
  font-size:15.5px;
  letter-spacing: .08em;
  color: var(--gold-bright);
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(227,197,131,.1), rgba(227,197,131,.03));
  box-shadow: inset 0 0 24px var(--aura-soft), 0 0 18px rgba(0,0,0,.4);
}

.foot-fiction::before,
.foot-fiction::after {
  content: "◇";
  color: var(--gold-dim);
  font-size:12.5px;
  margin: 0 9px;
  vertical-align: middle;
}

/* ============================================================
   响应式 —— 手机端
   ============================================================ */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-map-wrap { min-height: 46vh; }
  .cn-map { min-height: 46vh; }
  .hero-side { max-height: 66vh; }
  .home-strip { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .search-input { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 58px; }

  body { font-size:16px; }

  .page { padding: 16px 13px 46px; }

  .topbar-inner { padding: 0 13px; gap: 10px; }

  .brand-text b { font-size:19px; }
  .brand-text i { display: none; }
  .brand-seal { width: 31px; height: 31px; font-size:20px; }

  .nav-toggle { display: grid; place-items: center; }

  .nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--topbar-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(14, 9, 28, .98);
    border-bottom: 1px solid var(--gold-line);
    padding: 8px 13px 16px;
    transform: translateY(-130%);
    transition: transform .28s;
    z-index: 49;
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
  }

  .nav.open { transform: translateY(0); }

  .navlink { padding: 12px 6px; border-bottom: 1px solid rgba(227,197,131,.1); font-size:17.5px; }
  .navlink::after { display: none; }
  .nav .btn-gold { margin-top: 12px; padding: 12px; }

  .card { padding: 19px 16px; }
  .page-title { font-size:22.5px; }
  .page-title .orn { display: none; }
  .sd-title { font-size:22.5px; }
  .sd-content { font-size:19px; line-height: 1.98; }
  .auth-title { font-size:23.5px; }

  .card-grid { grid-template-columns: 1fr; }
  .scroll-card .thumb { height: 170px; }

  .filter-bar { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr; }

  .hero-side { max-height: 74vh; padding: 13px 6px 11px 13px; }
  .side-title { font-size:18px; }
  .scroll-item .ti { font-size:15.5px; }
  .scroll-item .meta { display: none; }

  .forum-bar { gap: 10px; }
  .forum-bar .btn-gold { width: 100%; }
  .tr-title { font-size:18.5px; }
  .tr-excerpt { font-size:16px; }
  .tr-meta { gap: 10px; font-size:14px; }
  .thread-title { font-size:21.5px; }
  .thread-body { font-size:18.5px; }
  .foot-fiction { font-size:14px; letter-spacing: .03em; padding: 8px 14px; }
  .foot-fiction::before, .foot-fiction::after { margin: 0 6px; }

  .comment-area .cm-body, .comment-area .cm-acts { padding-left: 0; }
  .cm-replies { margin-left: 12px; }
  .cm-replies .cm-body, .cm-replies .cm-acts { padding-left: 0; }

  .profile-head { gap: 16px; }
  .pf-avatar { width: 62px; height: 62px; font-size:28px; }
  .pf-name b { font-size:21px; }

  .map-drawer { width: 100%; max-width: 100%; }
  .map-legend { left: 10px; bottom: 10px; gap: 11px; padding: 5px 12px; font-size:13px; }
  .map-pinch-hint { top: 10px; right: 12px; font-size:13.5px; letter-spacing: 2px; }
  .cn-map-full { height: 58vh; min-height: 320px; }

  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-box b { font-size:22.5px; }

  .toast-wrap { top: 68px; width: 94%; }
  .toast { width: 100%; font-size:15px; }

  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-gold, .form-actions .btn-ghost { width: 100%; }

  .table-wrap { border-radius: var(--radius); }
  .admin-tabs a { padding: 7px 13px; font-size:14.5px; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-text b { font-size:17.5px; letter-spacing: .04em; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 打印 */
@media print {
  .ink-bg, .topbar, .footer, .sd-foot, .comment-area, .toast-wrap { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; }
}

/* ============================================================
   加友入口（页脚一小条 + 右下角小圆钮）
   —— 默认关闭、默认收起、可一键关掉。绝不做整屏弹窗。
   ============================================================ */

.wx-join {
  max-width: 640px;
  margin: 22px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(227,197,131,.07), transparent);
}

.wx-join > summary {
  cursor: pointer;
  font-family: var(--font-title);
  font-size:15.5px;
  letter-spacing: .08em;
  color: var(--gold);
  list-style: none;
  outline: none;
}

.wx-join > summary::-webkit-details-marker { display: none; }
.wx-join > summary:hover { color: var(--gold-bright); }
.wx-join-orn { color: var(--text-faint); margin-right: 6px; }

/* 二维码卡 */
.wx-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 14px 2px 6px;
}

.wx-qr {
  width: 132px;
  height: 132px;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: #fff;      /* 二维码必须白底，否则微信扫不出 */
  padding: 6px;
}

.wx-side { flex: 1 1 220px; min-width: 200px; }

.wx-tip {
  margin: 2px 0 10px;
  font-size:15px;
  line-height: 1.85;
  color: var(--text-dim);
}

.wx-id-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.wx-id {
  font-family: var(--font-title);
  font-size:17px;
  letter-spacing: .06em;
  color: var(--text);
  border: 1px dashed var(--gold-line);
  border-radius: 4px;
  padding: 5px 10px;
  background: rgba(227,197,131,.06);
  user-select: all;
}

.wx-hint {
  margin: 9px 0 0;
  font-size:13.5px;
  color: var(--text-faint);
  line-height: 1.8;
}

/* 左侧中下部的圆钮
   —— fixed 定位，不随页面滚动；高度取视窗 62%（中下部）。
      弹窗从按钮右侧展开（按钮贴着左边缘，往左开会出屏）。 */
.wx-fab {
  position: fixed;
  left: 14px;
  right: auto;
  top: 70%;
  bottom: auto;
  z-index: 60;
}

.wx-fab-btn {
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(227,197,131,.16), rgba(12,9,5,.92));
  color: var(--gold);
  font-family: var(--font-title);
  font-size:17px;
  letter-spacing: 2px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(227,197,131,.22);
  transition: transform .2s, box-shadow .2s;
}

.wx-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(227,197,131,.36);
  color: var(--gold-bright);
}

.wx-fab-pop {
  position: absolute;
  left: 4px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  max-width: calc(100vw - 76px);
  padding: 14px 16px 12px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(12,9,5,.97);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

.wx-fab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-title);
  font-size:17px;
  color: var(--gold-bright);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.wx-fab-close {
  background: none;
  border: 0;
  color: var(--text-faint);
  font-size:21px;
  line-height: 1;
  cursor: pointer;
}

.wx-fab-close:hover { color: var(--err); }

.wx-fab-pop .wx-qr { width: 118px; height: 118px; }

/* 按钮已固定在左侧，地图页也放左边（左侧没有栏，右侧才是卷宗栏） */

@media (max-width: 760px) {
  .wx-fab { left: 10px; top: 66%; bottom: auto; }
  .wx-fab-btn { height: 42px; padding: 0 12px; font-size:14.5px; letter-spacing: 1px; }
  .wx-card { gap: 12px; }
  .wx-qr { width: 116px; height: 116px; }
}

/* ============================================================
   顶栏 · 横幅终版（对照参考图逐项复刻）
   大幅加高 / 书法题字 / 圆形朱印 / 大号金字导航 /
   金框红光递交钮 / 四周装饰边框 / 居中副标带侧线
   （仅宽屏生效；手机保持单栏紧凑布局）
   ============================================================ */
@media (min-width: 861px) {
  :root { --topbar-h: 130px; }

  /* 四周装饰边框：细金线内框 + 四角亮点 */
  .topbar::after {
    content: '';
    position: absolute;
    left: 10px; right: 10px; top: 7px; bottom: 5px;
    border: 1px solid rgba(255, 190, 120, .32);
    border-radius: 8px;
    pointer-events: none;
    background:
      radial-gradient(4px 4px at left 10px top 50%, rgba(255, 170, 110, .9), transparent 100%),
      radial-gradient(4px 4px at right 10px top 50%, rgba(255, 170, 110, .9), transparent 100%);
  }

  .topbar-inner {
    height: calc(var(--topbar-h) - 34px);
    padding: 0 28px;
    gap: 20px;
  }

  /* 圆形朱印：参考图左侧的红圆印 */
  .brand-seal {
    width: 56px; height: 56px;
    border-radius: 50%;
    font-size:32px;
    border: 2px solid rgba(255, 205, 155, .8);
    box-shadow:
      0 0 22px rgba(255, 80, 50, .65),
      0 0 48px rgba(255, 60, 40, .35),
      inset 0 0 14px rgba(255, 195, 155, .5);
    transform: none;
  }

  /* 书法题字：大号、金红渐变、四层背光（参考图里字号≈导航两倍，
     背光是红橙大范围辉光，光从字背后透出） */
  .brand-text b {
    font-size:42px;
    letter-spacing: .08em;
    background: linear-gradient(180deg, #fff8e2 4%, #ffe3a0 28%, #f2ac5a 56%, #d85a2e 94%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
      drop-shadow(0 0 3px rgba(255, 228, 180, .8))
      drop-shadow(0 0 10px rgba(255, 180, 110, .65))
      drop-shadow(0 0 22px rgba(255, 120, 70, .5))
      drop-shadow(0 0 52px rgba(255, 70, 45, .42));
  }

  /* 导航：大号书法金字（参考图里导航字很大、带暖金背光） */
  .navlink {
    font-family: var(--font-title);
    font-size:22.5px;
    letter-spacing: .04em;
    padding: 8px 9px;
    color: #ecc98e;
    text-shadow:
      0 0 8px rgba(255, 190, 110, .4),
      0 0 20px rgba(255, 120, 70, .28);
  }
  .navlink:hover,
  .navlink.on {
    color: #ffdf9a;
    text-shadow:
      0 0 10px rgba(255, 210, 130, .7),
      0 0 26px rgba(255, 140, 80, .5),
      0 0 48px rgba(255, 90, 55, .3);
  }
  .navlink.on::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb37a, transparent);
    box-shadow: 0 0 8px rgba(255, 140, 80, .8);
  }

  /* 递交卷宗：金框 + 红光内芯（参考图右侧的大号六角钮） */
  .nav .btn-gold {
    font-family: var(--font-title);
    font-size:21.5px;
    letter-spacing: .1em;
    padding: 10px 24px;
    color: #ffedc8;
    background:
      radial-gradient(ellipse 120% 160% at 50% 50%, rgba(255, 125, 62, .6) 0%, rgba(150, 35, 35, .82) 55%, rgba(80, 16, 26, .92) 100%);
    border: 1px solid rgba(255, 210, 150, .9);
    box-shadow:
      0 0 22px rgba(255, 110, 60, .55),
      inset 0 0 0 1px rgba(255, 228, 185, .4),
      inset 0 0 20px rgba(255, 135, 85, .4);
  }
  .nav .btn-gold:hover {
    box-shadow:
      0 0 34px rgba(255, 120, 60, .8),
      inset 0 0 0 1px rgba(255, 238, 205, .55),
      inset 0 0 24px rgba(255, 155, 95, .55);
  }

  /* 副标：两侧拉出渐隐长线 */
  .topbar-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 16px 10px;
    margin-top: -9px;
    font-family: var(--font-title);
    font-size:17px;
    letter-spacing: .34em;
    color: rgba(242, 214, 170, .88);
    text-shadow: 0 0 14px rgba(255, 150, 80, .45), 0 1px 8px rgba(20, 8, 40, .9);
  }
  .topbar-sub::before,
  .topbar-sub::after {
    content: '';
    flex: 0 1 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 180, 120, .55));
  }
  .topbar-sub::after { transform: scaleX(-1); }
}

/* ============================================================
   交互视觉 —— 选中鎏金 / 热点点击光效 / 暗沉克制
   ============================================================ */

/* 选中的卷宗条目：鎏金描边 + 鎏金辉光（宽屏与窄屏同效） */
.scroll-item.on {
  background: linear-gradient(90deg, rgba(255, 205, 130, .26), rgba(255, 160, 90, .1) 55%, transparent 95%);
  color: #fff2d6;
  font-weight:800;
  border-left: 3px solid rgba(255, 205, 130, .9);
  box-shadow:
    inset 0 0 14px rgba(255, 180, 110, .28),
    0 0 16px rgba(255, 160, 90, .22);
  text-shadow: 0 0 10px rgba(255, 200, 130, .55);
}
.scroll-item.on .idx { color: #ffdf9a; text-shadow: 0 0 10px rgba(255, 180, 110, .5); }

/* 选中的类目标签：鎏金浮起 */
.chip.on {
  color: #2a1305;
  font-weight: 800;
  background: linear-gradient(150deg, #fff4d6, #ffd78e 45%, #e3a253);
  border-color: #ffe9bd;
  box-shadow: 0 0 14px rgba(255, 190, 120, .45), inset 0 0 8px rgba(255, 255, 255, .5);
}
.side-cat.on {
  color: #2a1305;
  font-weight: 800;
  background: linear-gradient(150deg, #fff4d6, #ffd78e 45%, #e3a253);
  border-color: #ffe9bd;
  box-shadow: 0 0 14px rgba(255, 190, 120, .45), inset 0 0 8px rgba(255, 255, 255, .5);
}

/* 热点点击光效：一圈红光冲击波 + 中心一闪 */
.map-hit {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 216, 170, .95);
  box-shadow: 0 0 18px rgba(255, 120, 60, .9), 0 0 44px rgba(255, 70, 45, .55);
  animation: mapHit .85s ease-out forwards;
}
.map-hit::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 170, 110, .8);
  animation: mapHitRing .85s ease-out forwards;
}
@keyframes mapHit {
  0%   { transform: scale(.4); opacity: 1; }
  35%  { transform: scale(2.2); opacity: .95; }
  100% { transform: scale(3.1); opacity: 0; }
}
@keyframes mapHitRing {
  0%   { transform: scale(.3); opacity: .9; }
  100% { transform: scale(3.6); opacity: 0; }
}

/* 整体色调：再压暗一档，把亮度留给红光点与鎏金选中项 */
:root {
  --bg-deep:   #0a0718;
  --bg-deep-2: #150f2b;
  --bg-panel:  #150f2b;
  --bg-panel-2:#1c1338;
  --bg-input:  #130d24;
}

/* 一起收录：下沉到偏底部（避免压住卷宗列表与地图操作） */
.wx-fab {
  left: 14px;
  right: auto;
  top: auto;
  bottom: 84px;
}
.wx-fab-pop {
  left: 4px;
  right: auto;
  top: auto;
  bottom: 96px;
  transform: none;
}
@media (max-width: 760px) {
  .wx-fab { left: 10px; top: auto; bottom: 62px; }
  .wx-fab-pop { bottom: 74px; }
}

/* ============================================================
   全站字号整体加大后，宽屏顶栏一行放不下
   —— 这里只把顶栏单独收回一档，其余各处保持大字号
   ============================================================ */
@media (min-width: 861px) {
  .topbar-inner {
    gap: 14px;
    padding: 0 18px;
  }
  .brand-seal {
    width: 52px; height: 52px;
    font-size: 27px;
  }
  .brand-text b {
    font-size: 38px;
    letter-spacing: .06em;
  }
  .navlink {
    font-size: 20px;
    letter-spacing: .02em;
    padding: 7px 7px;
  }
  .nav .btn-gold {
    font-size: 16.5px;
    letter-spacing: .06em;
    padding: 9px 18px;
  }
  .topbar-sub {
    font-size: 13.5px;
    letter-spacing: .26em;
    gap: 12px;
  }
  .topbar-sub::before,
  .topbar-sub::after {
    flex: 0 1 150px;
  }
}

/* 背景装饰（光雾 / 法阵环 / 星点）刻意画得比屏幕大，
   手机上会把页面撑出横向滚动条 —— 这里统一裁掉横向溢出（页面无 sticky 元素，安全） */
html, body {
  overflow-x: hidden;
}

/* 中等宽屏（笔记本 1024 一类）：顶栏再收一档，避免横向溢出 */
@media (min-width: 861px) and (max-width: 1140px) {
  .topbar-inner {
    gap: 9px;
    padding: 0 12px;
  }
  .brand-seal {
    width: 44px; height: 44px;
    font-size: 23px;
  }
  .brand-text b {
    font-size: 31px;
    letter-spacing: .03em;
  }
  .navlink {
    font-size: 17px;
    letter-spacing: 0;
    padding: 6px 5px;
  }
  .nav .btn-gold {
    font-size: 14.5px;
    letter-spacing: .02em;
    padding: 8px 12px;
  }
  .topbar-sub {
    font-size: 12.5px;
    letter-spacing: .14em;
    gap: 10px;
  }
  .topbar-sub::before,
  .topbar-sub::after {
    flex: 0 1 90px;
  }
}
