/* ==========================================================================
   离尘的档案馆 · THE TIMEKEEPER'S ARCHIVE
   独立文章站全站样式（浅色纸感白主题 · 与主站站群同族的暗金视觉体系）
   ========================================================================== */

/* ---- 本地自包含字体 ---- */
@font-face {
  font-family: 'Siyin Song';
  src: url('../assets/fonts/SiyinSong-Regular.ttf') format('truetype'),
       url('../assets/fonts/SiyinSong-Regular.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Shanghai Modeng';
  src: url('../assets/fonts/ShanghaiModeng.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal; font-weight: 500;
  src: url('../assets/fonts/fonts.gstatic.com_s_cinzel_v26_8vIJ7ww63mVu7gt7-GT7LEc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal; font-weight: 500;
  src: url('../assets/fonts/fonts.gstatic.com_s_cinzel_v26_8vIJ7ww63mVu7gt79mT7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal; font-weight: 700;
  src: url('../assets/fonts/fonts.gstatic.com_s_cinzel_v26_8vIJ7ww63mVu7gt7-GT7LEc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal; font-weight: 700;
  src: url('../assets/fonts/fonts.gstatic.com_s_cinzel_v26_8vIJ7ww63mVu7gt79mT7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- 设计变量（浅色纸感白主题） ---- */
:root {
  --gold: #a9863f;            /* 主金：白底上保证可读的深金 */
  --gold-bright: #8a6a2c;     /* 强调金：标题/链接强调（浅色下为更深的金） */
  --gold-deep: #6f5522;
  --ink: #fbfaf7;             /* 纸感暖白底 */
  --paper-deep: #f4f0e8;
  --panel: rgba(255, 254, 251, .88);
  --line: rgba(169, 134, 63, .24);
  --line-strong: rgba(169, 134, 63, .5);
  --text: #43392b;
  --text-bright: #2c2519;
  --muted: #8a7c66;
  --serif: "Siyin Song", "Noto Serif SC", serif;
  --display: "Shanghai Modeng", "Siyin Song", "Noto Serif SC", serif;
  --latin: "Cinzel", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif); color: var(--text); background: var(--ink);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(169, 134, 63, .28); color: var(--text-bright); }
a { color: var(--gold); }
main { position: relative; z-index: 1; }

/* ---- 背景氛围（纸感白 + 淡金光晕 + 噪点 + 轻渐晕） ---- */
.bg-glow { position: fixed; inset: 0; z-index: -3; background: var(--ink); }
.bg-glow::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52% 38% at 50% 0%, rgba(169, 134, 63, .08) 0%, rgba(169, 134, 63, 0) 100%),
    radial-gradient(60% 42% at 82% 88%, rgba(151, 120, 66, .07) 0%, rgba(151, 120, 66, 0) 100%),
    radial-gradient(46% 36% at 10% 70%, rgba(140, 118, 84, .06) 0%, rgba(140, 118, 84, 0) 100%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 220px rgba(120, 95, 60, .14);
}
/* 顶部金色发丝线，贯穿全站的“档案封条”意象 */
.bg-hairline {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(169, 134, 63, .45) 30%, rgba(138, 106, 44, .75) 50%, rgba(169, 134, 63, .45) 70%, transparent);
  pointer-events: none;
}

/* ---- 入场动画 / 滚动显现 ---- */
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.anim-up { opacity: 0; animation: fade-up .85s cubic-bezier(.16,1,.3,1) forwards; }
.anim-down { opacity: 0; animation: fade-down .75s cubic-bezier(.16,1,.3,1) forwards; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- 导航 ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(251, 250, 247, .86) 0%, rgba(251, 250, 247, .55) 48%, rgba(251, 250, 247, 0) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(251, 250, 247, .95) 0%, rgba(251, 250, 247, .78) 60%, rgba(251, 250, 247, .3) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(169, 134, 63, .28);
  padding-top: 10px; padding-bottom: 10px;
}
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; }
.logo b { font-family: var(--display); color: var(--gold-bright); font-size: 26px;
  letter-spacing: .14em; font-weight: 400; line-height: 1.12; }
.logo small { font-family: var(--latin); color: #9a8d76; font-size: 10px;
  letter-spacing: .26em; font-weight: 600; }
.nav-center { display: flex; align-items: center; gap: 2px; height: 48px; }
.nav-center a {
  font-family: var(--serif); color: #5d523f; text-decoration: none; font-size: 14px;
  letter-spacing: 1.5px; padding: 7px 12px; border-radius: 8px; white-space: nowrap;
  transition: color .25s, background .25s;
}
.nav-center a:hover { color: var(--text-bright); background: rgba(169, 134, 63, .12); }
.nav-center a.here { color: var(--gold-bright); }

/* 下拉（关于） */
.nav-drop { position: relative; height: 48px; display: flex; align-items: center; }
.nav-drop-btn { display: flex; align-items: center; gap: 5px; cursor: default; }
.drop-arr { font-style: normal; font-size: 11px; color: var(--muted); transition: transform .3s; }
.nav-drop:hover .drop-arr { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 150px; padding: 8px; border-radius: 12px;
  background: rgba(255, 254, 250, .96); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(120, 95, 60, .18);
  opacity: 0; visibility: hidden; transition: opacity .28s, transform .28s, visibility .28s;
}
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a { display: block; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.nav-drop-menu a:hover { background: rgba(169, 134, 63, .12); color: var(--text-bright); }

/* 移动端菜单 */
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(255, 254, 250, .6); cursor: pointer;
  align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; stroke: var(--gold-bright); }
.mobile-menu { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.mobile-menu .mask { position: absolute; inset: 0; background: rgba(60, 48, 32, .35);
  opacity: 0; transition: opacity .35s; }
.mobile-menu .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
  background: rgba(252, 250, 246, .97); border-left: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 84px 30px 30px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.mobile-menu.open { pointer-events: auto; }
.mobile-menu.open .mask { opacity: 1; }
.mobile-menu.open .panel { transform: none; }
.mobile-menu .panel a { color: var(--text); text-decoration: none; font-size: 16px;
  letter-spacing: 2px; padding: 13px 6px; border-bottom: 1px solid rgba(169, 134, 63, .14); }
.mobile-menu .panel a:active { color: var(--gold-bright); }

/* ---- 导航登录区（共享主站会话） ---- */
.nav-actions { display: flex; gap: 8px; height: 48px; padding: 3px; border-radius: 12px;
  background: rgba(255, 254, 250, .55); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-nav {
  display: flex; align-items: center; padding: 0 18px; border-radius: 9px;
  font-family: var(--serif); font-size: 14px; letter-spacing: 2px;
  text-decoration: none; cursor: pointer; color: #5d523f;
  transition: background .25s, color .25s;
}
.btn-nav:hover { background: rgba(169, 134, 63, .12); color: var(--text-bright); }
.btn-nav.gold { background: linear-gradient(135deg, #b08c44, #8a6a2c); color: #fffdf8; font-weight: 600; }
.btn-nav.gold:hover { filter: brightness(1.08); color: #fff; }

.nav-user { position: relative; height: 48px; display: flex; align-items: center; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 9px;
  background: rgba(255, 254, 250, .6); border: 1px solid rgba(169, 134, 63, .35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--gold-bright); text-decoration: none; font-family: var(--serif);
  font-size: 14px; letter-spacing: 1.5px; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav-user-btn:hover { background: rgba(169, 134, 63, .13); color: var(--text-bright); }
.nav-user-btn .u-arr { font-size: 9px; opacity: .7; transition: transform .25s; }
.nav-user:hover .u-arr { transform: rotate(180deg); }
.nav-user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 176px; padding: 8px; border-radius: 12px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  background: rgba(255, 254, 250, .97); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(120, 95, 60, .18);
  transition: opacity .3s, transform .3s, visibility .3s; z-index: 120;
}
.nav-user-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-user:hover .nav-user-menu, .nav-user:focus-within .nav-user-menu { opacity: 1; visibility: visible; transform: none; }
.nav-user-menu .u-name {
  padding: 8px 14px; font-size: 12px; color: var(--muted); letter-spacing: 2px;
  border-bottom: 1px dashed rgba(169, 134, 63, .3); margin-bottom: 4px; white-space: nowrap;
}
.nav-user-menu a {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-size: 13.5px; letter-spacing: 2px;
  color: #5d523f; text-decoration: none;
  padding: 9px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-user-menu a::before { content: "◆"; font-size: 7px; color: var(--gold); opacity: .6; }
.nav-user-menu a:hover { color: var(--text-bright); background: rgba(169, 134, 63, .12); }

/* ==========================================================================
   列表页 · 馆藏检索目录
   ========================================================================== */

/* ---- 页头 ---- */
.hero {
  min-height: 58vh; display: flex; flex-direction: column; justify-content: center;
  padding: 150px clamp(24px, 7vw, 110px) 40px; position: relative;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow span {
  font-family: var(--latin); font-size: 12px; letter-spacing: .42em; font-weight: 600;
  color: var(--gold); text-transform: uppercase;
}
.eyebrow::after { content: ""; width: 88px; height: 1px;
  background: linear-gradient(90deg, rgba(169,134,63,.6), transparent); }
.hero h1 {
  font-family: var(--display); font-size: clamp(40px, 6.4vw, 72px); color: var(--text-bright);
  letter-spacing: .16em; font-weight: 400; line-height: 1.2;
}
.hero .sub { margin-top: 24px; max-width: 640px; font-size: 15px; line-height: 2.1;
  color: var(--muted); letter-spacing: .04em; }
.hero .stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 30px; font-size: 13px; letter-spacing: 2px; color: var(--muted); }
.hero .stats i { font-style: normal; color: rgba(169,134,63,.45); }
.hero .stats b { color: var(--gold-bright); font-weight: 400; font-size: 15px; }

/* ---- 检索工具栏 ---- */
.toolbar-wrap { position: sticky; top: 0; z-index: 90; padding: 14px 0 0; }
.toolbar {
  max-width: 1060px; margin: 0 auto; padding: 12px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: rgba(255, 254, 251, .9); border: 1px solid var(--line); border-radius: 14px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(120, 95, 60, .12);
}
.search-box { display: flex; align-items: center; gap: 9px; flex: 1 1 220px;
  min-width: 200px; padding: 9px 14px; border-radius: 10px;
  background: rgba(169,134,63,.06); border: 1px solid rgba(169,134,63,.2);
  transition: border-color .25s, background .25s; }
.search-box:focus-within { border-color: rgba(169,134,63,.55); background: rgba(169,134,63,.1); }
.search-box svg { width: 15px; height: 15px; stroke: var(--muted); flex: none; }
.search-box input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-family: var(--serif); font-size: 14px; color: var(--text-bright); letter-spacing: 1px;
}
.search-box input::placeholder { color: rgba(138, 124, 102, .8); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--serif); font-size: 12.5px; letter-spacing: 1.5px;
  color: #6d6047; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: rgba(169,134,63,.05); border: 1px solid rgba(169,134,63,.22);
  transition: color .22s, border-color .22s, background .22s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--gold-bright); border-color: rgba(169,134,63,.5); }
.chip.on { color: #fffdf8; background: linear-gradient(135deg, #b08c44, #8a6a2c);
  border-color: transparent; font-weight: 600; }
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chip-group .g-label { font-size: 11px; letter-spacing: 3px; color: var(--muted); margin-right: 2px; }
.chip-sep { width: 1px; height: 20px; background: rgba(169,134,63,.3); }

/* ---- 年份分组目录 ---- */
.catalog { max-width: 1060px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 32px) 30px; }
.year-block { margin-bottom: 34px; }
.year-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.year-head .yr { font-family: var(--latin); font-size: clamp(30px, 4vw, 44px); font-weight: 700;
  color: var(--gold-bright); letter-spacing: .06em; line-height: 1;
  text-shadow: 0 2px 26px rgba(169,134,63,.25); }
.year-head .yr-line { flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(169,134,63,.5), rgba(169,134,63,.06)); }
.year-head .yr-count { font-size: 12px; letter-spacing: 2px; color: var(--muted); white-space: nowrap; }

/* 索引卡条目 */
.entry {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 20px;
  padding: 20px 22px; margin-bottom: 12px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.entry::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, rgba(138,106,44,.9), rgba(169,134,63,.3));
  opacity: 0; transition: opacity .3s;
}
.entry:hover { border-color: var(--line-strong); background: rgba(255, 255, 252, .98);
  transform: translateY(-2px); box-shadow: 0 16px 44px rgba(120, 95, 60, .16); }
.entry:hover::before { opacity: 1; }
.e-date { display: flex; flex-direction: column; gap: 3px; border-right: 1px solid rgba(169,134,63,.2);
  padding-right: 16px; align-self: stretch; justify-content: center; }
.e-date .md { font-family: var(--latin); font-size: 21px; font-weight: 600; color: var(--gold);
  letter-spacing: .05em; line-height: 1.15; }
.e-date .rev { font-size: 10.5px; letter-spacing: 1px; color: var(--muted); }
.e-main { min-width: 0; }
.e-main h3 {
  font-family: var(--serif); font-size: 17.5px; font-weight: 600; color: var(--text-bright);
  letter-spacing: .03em; line-height: 1.65; margin-bottom: 7px;
  transition: color .25s;
}
.entry:hover .e-main h3 { color: #000; }
.e-main p { font-size: 13.5px; line-height: 1.9; color: var(--muted); letter-spacing: .02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.e-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.e-tag { font-size: 11px; letter-spacing: 2px; color: var(--gold-bright); white-space: nowrap;
  padding: 3px 10px; border: 1px solid rgba(169,134,63,.4); border-radius: 999px; }
.e-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.e-src { font-size: 11px; letter-spacing: 2px; color: var(--muted); white-space: nowrap; }
.e-arrow { font-family: var(--latin); font-size: 15px; color: var(--gold); letter-spacing: .1em;
  transition: transform .3s; }
.entry:hover .e-arrow { transform: translateX(5px); }

/* 空结果 */
.empty { display: none; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty.show { display: block; }
.empty .glyph { font-family: var(--latin); font-size: 40px; color: rgba(169,134,63,.4);
  letter-spacing: .3em; margin-bottom: 16px; }
.empty p { font-size: 14px; letter-spacing: 2px; line-height: 2; }
.empty .btn-clear { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: 2px;
  color: var(--gold-bright); text-decoration: none; padding: 9px 22px;
  border: 1px solid rgba(169,134,63,.5); border-radius: 999px; cursor: pointer;
  background: none; font-family: var(--serif); transition: background .25s, color .25s; }
.empty .btn-clear:hover { background: rgba(169,134,63,.12); }

/* 归档说明尾注 */
.tail-note { max-width: 1060px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 32px) 70px;
  text-align: center; }
.tail-note p { font-size: 13px; letter-spacing: 2px; color: var(--muted); line-height: 2.1;
  margin-bottom: 20px; }
.btn-line {
  display: inline-block; font-family: var(--serif); font-size: 13.5px; letter-spacing: 2px;
  color: var(--gold-bright); text-decoration: none; padding: 12px 30px;
  border: 1px solid rgba(169,134,63,.55); border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-line:hover { background: rgba(169,134,63,.12); border-color: rgba(169,134,63,.85); color: var(--text-bright); }

/* ==========================================================================
   文章页
   ========================================================================== */

/* 阅读进度条 */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 102;
  background: rgba(169,134,63,.14); pointer-events: none; }
.progress i { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #8a6a2c, #c9a35a);
  box-shadow: 0 0 10px rgba(169,134,63,.45); transition: width .1s linear; }

/* 文章页头 */
.art-hero { position: relative; min-height: 46vh; padding: 150px clamp(24px, 7vw, 110px) 44px; }
.art-hero > * { position: relative; z-index: 1; }

/* ---- 首屏背景视频（全站）：视频整体右移（核心人物落清晰区），左侧纯白 ---- */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video video {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 72%; height: 100%; object-fit: cover; object-position: center;
}
.hv-blur {
  filter: blur(12px) brightness(1.02) saturate(.85);
  transform: scale(1.06);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 60%);
}
.hv-sharp {
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, rgba(0,0,0,.7) 46%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 28%, rgba(0,0,0,.7) 46%, #000 62%);
}
.hv-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(251, 250, 247, .98) 0%,
    rgba(251, 250, 247, .94) 34%,
    rgba(251, 250, 247, .72) 50%,
    rgba(251, 250, 247, .32) 62%,
    rgba(251, 250, 247, 0) 74%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.art-hero h1 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 600; color: var(--text-bright); letter-spacing: .04em;
  line-height: 1.6; max-width: 920px; }
.art-meta { margin-top: 24px; font-size: 13.5px; letter-spacing: 2px; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.art-meta .dot { color: rgba(169,134,63,.5); font-style: normal; }
.art-meta a { color: var(--gold-bright); text-decoration: none;
  border-bottom: 1px solid rgba(169,134,63,.45); padding-bottom: 2px;
  transition: color .25s, border-color .25s; }
.art-meta a:hover { color: var(--text-bright); border-color: rgba(44,37,25,.7); }

/* 正文纸卷面板 */
.art-section { padding-top: 8px; }
.article-panel {
  max-width: 880px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: clamp(26px, 6vw, 64px);
  box-shadow: 0 24px 70px rgba(120, 95, 60, .14);
}
.article-body { font-size: 16px; line-height: 2.15; color: var(--text);
  letter-spacing: .02em; word-break: break-word; }
.article-body p { margin: 0 0 1.15em; }
.article-body p:last-child { margin-bottom: 0; }

.article-body img { max-width: 100%; height: auto; }
.article-body p > img:only-child {
  display: block; margin: 1.6em auto; border-radius: 8px;
  border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(120, 95, 60, .18);
  cursor: zoom-in; transition: box-shadow .3s;
}
.article-body p > img:only-child:hover { box-shadow: 0 14px 44px rgba(120, 95, 60, .24), 0 0 0 3px rgba(169,134,63,.18); }
.article-body span img {
  display: inline-block; vertical-align: middle; max-height: 150px;
  border-radius: 8px; margin: 0 4px;
}

/* 标题层级 */
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
  color: var(--gold-bright); letter-spacing: .08em; line-height: 1.6;
  margin: 1.7em 0 .8em; font-weight: 600;
}
.article-body h1 { font-size: 1.45em; }
.article-body h2 { font-size: 1.3em; }
.article-body h3 { font-size: 1.18em; padding-left: 12px; border-left: 3px solid rgba(169,134,63,.55); }
.article-body h4 { font-size: 1.06em; }
.article-body h5, .article-body h6 { font-size: 1em; color: #7a5f2a; }

/* 行内强调 */
.article-body strong, .article-body b { color: #7a5f2a; font-weight: 600; }
.article-body em, .article-body i { font-style: normal; color: var(--gold-bright); }
.article-body u { text-decoration-color: rgba(169,134,63,.6); text-underline-offset: 5px; }
.article-body s { opacity: .55; }
.article-body sup, .article-body sub { font-size: .72em; }

/* 引用 / 列表 / 分隔线 */
.article-body blockquote {
  margin: 1.5em 0; padding: .95em 1.35em;
  border-left: 2px solid rgba(169,134,63,.6);
  background: rgba(169,134,63,.07); border-radius: 0 8px 8px 0; color: #5c503b;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.25em; padding-left: 1.7em; }
.article-body li { margin: .5em 0; }
.article-body li::marker { color: var(--gold); }
.article-body hr {
  border: none; width: 56%; margin: 2.2em auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169,134,63,.55) 50%, transparent);
}

/* 链接 / 行内代码 */
.article-body a { color: var(--gold-bright); text-decoration: none;
  border-bottom: 1px solid rgba(169,134,63,.45); padding-bottom: 1px; }
.article-body a:hover { color: var(--text-bright); border-color: rgba(44,37,25,.7); }
.article-body code, .article-body pre {
  font-family: 'Source Code Pro', Consolas, 'Courier New', monospace;
}
.article-body code {
  font-size: .86em; color: #7a5f2a; background: rgba(169,134,63,.1);
  padding: .15em .5em; border-radius: 5px; border: 1px solid rgba(169,134,63,.18);
}

/* 代码块：保留暗底“代码胶片”质感，与纸面形成对比 */
.code-wrap { position: relative; margin: 1.5em 0; }
.code-wrap pre { margin: 0; }
.article-body pre {
  padding: 1.05em 1.3em; border-radius: 10px; overflow-x: auto;
  background: #211c14; border: 1px solid rgba(169,134,63,.3);
  font-size: 13.5px; line-height: 1.85; color: #d8cbae;
  box-shadow: inset 0 1px 0 rgba(201,163,90,.08), 0 10px 26px rgba(60, 46, 26, .18);
}
.article-body pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

/* 一键复制按钮 */
.copy-btn {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  font-family: var(--serif); font-size: 11.5px; letter-spacing: 2px;
  color: #d8cbae; background: rgba(201,163,90,.13);
  border: 1px solid rgba(201,163,90,.32); border-radius: 7px;
  padding: 5px 13px; cursor: pointer; white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.code-wrap:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; visibility: visible; }
.copy-btn:hover { background: rgba(201,163,90,.28); color: #f0e6cf; }
.copy-btn.done { color: #a8d09a; border-color: rgba(168,208,154,.55);
  background: rgba(168,208,154,.12); }
@media (hover: none), (pointer: coarse), (max-width: 480px) {
  .copy-btn { opacity: .85; visibility: visible; }
}

/* 表格 */
.article-body .table-wrap { overflow-x: auto; margin: 1.5em 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td {
  padding: .7em .95em; border: 1px solid rgba(169,134,63,.28); line-height: 1.7;
}
.article-body th { color: var(--gold-bright); background: rgba(169,134,63,.09);
  letter-spacing: 1px; font-weight: 600; white-space: nowrap; }
.article-body td { color: #5c503b; }

/* 尾部归档信息条 + 完结符 */
.art-tail { text-align: center; margin-top: 48px; padding-top: 26px;
  border-top: 1px solid rgba(169,134,63,.18);
  font-size: 12.5px; letter-spacing: 4px; color: var(--muted); }
.art-stamp {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  margin-top: 14px; font-size: 11.5px; letter-spacing: 2px; color: rgba(138,124,102,.9);
}
.art-stamp i { font-style: normal; color: rgba(169,134,63,.4); }
.art-stamp a { color: var(--muted); }

/* 上下篇导航 */
.art-nav { max-width: 880px; margin: 26px auto 0; padding: 0 clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nav-card {
  display: flex; flex-direction: column; gap: 9px; padding: 20px 22px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s, transform .3s;
}
.nav-card:hover { border-color: var(--line-strong); background: rgba(255,255,252,.98);
  transform: translateY(-2px); }
.nav-card .nc-label { font-size: 11px; letter-spacing: 3px; color: var(--muted); }
.nav-card .nc-title { font-size: 14.5px; line-height: 1.75; color: var(--text-bright);
  letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.nav-card:hover .nc-title { color: #000; }
.nav-card.next { text-align: right; align-items: flex-end; }
.art-back { grid-column: 1 / -1; text-align: center; padding-top: 4px; }

/* ==========================================================================
   批注与评论
   ========================================================================== */
.comments { max-width: 880px; margin: 40px auto 0; padding: 0 clamp(16px, 4vw, 32px); }
.cmt-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(169,134,63,.22); }
.cmt-title { font-size: 19px; font-weight: 600; letter-spacing: 4px; color: var(--text-bright); }
.cmt-count { font-size: 12px; letter-spacing: 2px; color: var(--gold-bright); }

.cmt-form { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; margin-bottom: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cmt-quote { display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; line-height: 1.8;
  background: rgba(169,134,63,.09); border-left: 2px solid rgba(169,134,63,.55); color: #6d5c3d; }
.cq-label { flex: none; font-size: 11px; letter-spacing: 2px; color: var(--gold-bright); }
.cq-text { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.cq-clear { flex: none; border: none; background: none; color: var(--muted);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 4px; }
.cq-clear:hover { color: #b04a3a; }
.cmt-form textarea { width: 100%; resize: vertical; min-height: 74px; max-height: 220px;
  font-family: var(--serif); font-size: 14.5px; line-height: 1.9; letter-spacing: .03em;
  color: var(--text-bright); background: rgba(169,134,63,.05);
  border: 1px solid rgba(169,134,63,.25); border-radius: 9px; padding: 11px 13px; outline: none;
  transition: border-color .25s, background .25s; }
.cmt-form textarea:focus { border-color: rgba(169,134,63,.6); background: rgba(169,134,63,.09); }
.cmt-foot { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 11px; flex-wrap: wrap; }
.cmt-rule { font-size: 11.5px; letter-spacing: 1.5px; color: var(--muted); }
.cmt-btn { padding: 9px 26px; cursor: pointer; background: none; font-size: 13px; }
.cmt-btn:disabled { opacity: .5; cursor: not-allowed; }
.cmt-msg { min-height: 20px; margin-top: 8px; font-size: 12.5px; letter-spacing: 1px;
  color: #b04a3a; }
.cmt-msg.ok { color: #5a7d4a; }

.cmt-login { text-align: center; padding: 34px 20px; background: var(--panel);
  border: 1px dashed rgba(169,134,63,.35); border-radius: 12px; }
.cmt-login p { font-size: 13.5px; letter-spacing: 2px; color: var(--muted); margin-bottom: 16px; }

.cmt-list { display: flex; flex-direction: column; gap: 12px; }
.cmt { display: flex; gap: 13px; padding: 15px 17px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.cmt-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fffdf8;
  background: linear-gradient(135deg, #b08c44, #8a6a2c); }
.cmt-main { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cmt-meta b { font-size: 13.5px; font-weight: 600; color: var(--gold-bright); letter-spacing: 1px; }
.cmt-badge { font-size: 10.5px; letter-spacing: 2px; color: #7a5f2a;
  padding: 2px 8px; border-radius: 999px; background: rgba(169,134,63,.14);
  border: 1px solid rgba(169,134,63,.35); }
.cmt-meta time { font-size: 11.5px; letter-spacing: 1px; color: var(--muted); }
.cmt-quote-line { margin: 8px 0; padding: 7px 11px; font-size: 12.5px; line-height: 1.8;
  color: #6d5c3d; border-left: 2px solid rgba(169,134,63,.5);
  background: rgba(169,134,63,.07); border-radius: 0 7px 7px 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmt-main p { margin-top: 7px; font-size: 14px; line-height: 1.95; color: var(--text);
  letter-spacing: .02em; word-break: break-word; }
.cmt-empty { text-align: center; padding: 34px 16px; font-size: 13px; letter-spacing: 2px;
  color: var(--muted); background: var(--panel);
  border: 1px dashed rgba(169,134,63,.25); border-radius: 12px; }

/* 划词批注浮动按钮 */
.note-fab { position: absolute; z-index: 150; transform: translateX(-50%);
  font-family: var(--serif); font-size: 12.5px; letter-spacing: 3px;
  color: #fffdf8; background: linear-gradient(135deg, #b08c44, #8a6a2c);
  border: none; border-radius: 999px; padding: 7px 17px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(120, 95, 60, .3);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.note-fab.show { opacity: 1; visibility: visible; }

/* 灯箱（看图保留暗底） */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center;
  justify-content: center; padding: 30px; background: rgba(24, 19, 13, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 88vh; border-radius: 8px;
  border: 1px solid rgba(201,163,90,.25); box-shadow: 0 30px 90px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.lightbox.open img { transform: scale(1); }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 26px; font-size: 30px; line-height: 1;
  color: rgba(240,230,207,.85); cursor: pointer; font-family: var(--latin);
  transition: color .25s, transform .25s;
}
.lightbox .lb-close:hover { color: #fff; transform: rotate(90deg); }

/* ---- 页脚 ---- */
.site-foot {
  margin-top: 30px; padding: 44px clamp(20px, 5vw, 60px) 40px;
  border-top: 1px solid rgba(169,134,63,.18);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.site-foot span { font-size: 12.5px; letter-spacing: 2px; color: var(--muted); line-height: 2; }
.site-foot a { color: #7a6c54; text-decoration: none; border-bottom: 1px solid rgba(169,134,63,.4);
  padding-bottom: 1px; transition: color .25s; }
.site-foot a:hover { color: var(--gold-bright); }
.site-foot .foot-notice { font-size: 11.5px; color: rgba(138,124,102,.8); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 900px) {
  /* 首屏视频：小屏文字纵向排列，视频恢复全宽，遮罩改为上白下透的纵向渐变 */
  .hero-video video { width: 100%; }
  .hv-veil { background: linear-gradient(180deg,
    rgba(251, 250, 247, .97) 0%, rgba(251, 250, 247, .9) 42%,
    rgba(251, 250, 247, .5) 74%, rgba(251, 250, 247, .18) 100%); }
  .hv-sharp { -webkit-mask-image: linear-gradient(180deg, transparent 34%, rgba(0,0,0,.55) 66%, #000 88%);
    mask-image: linear-gradient(180deg, transparent 34%, rgba(0,0,0,.55) 66%, #000 88%); }
  .hv-blur { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 32%, transparent 62%);
    mask-image: linear-gradient(180deg, #000 0%, #000 32%, transparent 62%); }
  .nav-center { display: none; }
  .menu-toggle { display: flex; }
  .hero { min-height: 46vh; padding-top: 120px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { flex: 1 1 auto; }
  .chip-groups { display: flex; flex-direction: column; gap: 8px; }
  .entry { grid-template-columns: 64px 1fr; gap: 14px; padding: 17px 16px; }
  .e-side { grid-column: 2; flex-direction: row; align-items: center;
    justify-content: space-between; }
  .e-date { padding-right: 12px; }
  .e-date .md { font-size: 17px; }
  .art-nav { grid-template-columns: 1fr; }
  .nav-card.next { text-align: left; align-items: flex-start; }
}
@media (max-width: 480px) {
  .logo b { font-size: 21px; }
  .logo small { font-size: 8.5px; letter-spacing: .2em; }
  .hero h1 { letter-spacing: .1em; }
  .e-main h3 { font-size: 16px; }
  .chip { font-size: 12px; padding: 6px 12px; }
  .art-hero { padding-top: 130px; }
  .copy-btn { padding: 4px 11px; }
}
