/* ============================================================
   文学馆 · 武侠馆 — 样式系统 v3「玄纸黑白」
   黑为主 · 白为底 · 朱砂一点红
   卷首墨黑如夜行衣，正文素白如宣纸，朱砂印章是唯一的亮色
   ============================================================ */

:root {
  --paper: #f6f6f3;        /* 素白纸 */
  --paper2: #ececea;
  --paper3: #deded9;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --ink: #171715;          /* 浓墨黑 */
  --ink2: #2e2e2b;         /* 常墨 */
  --muted: #56564f;        /* 灰墨 */
  --faint: #8b8b82;        /* 淡墨 */
  --cinnabar: #b03a2a;     /* 朱砂（唯一亮色） */
  --cinnabar2: #c44a37;
  --cinnabar-soft: rgba(176, 58, 42, 0.10);
  --gold: #9a7b3f;
  --line: rgba(23, 23, 21, 0.38);        /* 墨线 */
  --line-soft: rgba(23, 23, 21, 0.16);
  --radius: 3px;
  --brush: "Xingkai SC", "STXingkai", "Kaiti SC", "STKaiti", "KaiTi", "Baoli SC", "STBaoli", "Weibei SC", "STWeibei", "Noto Serif SC", "Source Han Serif SC", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "STKaiti", "Noto Serif SC", "Source Han Serif SC", serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- 黑白水墨背景（data-URI，墨色群山于白纸之上） ---------- */
body {
  font-family: var(--kai);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 620' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='%23171715'%3E%3Cpath d='M-60,520 Q140,400 340,500 Q500,430 660,500 Q820,420 1000,500 Q1160,440 1500,510 L1500,620 L-60,620 Z' opacity='.05'/%3E%3Cpath d='M200,540 Q420,420 640,520 Q820,460 1000,530 Q1180,470 1500,540 L1500,620 L200,620 Z' opacity='.08'/%3E%3Cpath d='M520,550 Q760,440 1000,530 Q1160,480 1320,540 Q1420,510 1500,540 L1500,620 L520,620 Z' opacity='.045'/%3E%3C/g%3E%3Cg fill='none' stroke='%23171715' stroke-linecap='round'%3E%3Cpath d='M60,120 q7,-6 14,0 q7,-6 14,0' stroke-width='1.4' opacity='.13'/%3E%3Cpath d='M1280,90 q7,-6 14,0 q7,-6 14,0' stroke-width='1.2' opacity='.10'/%3E%3Cpath d='M1360,150 q6,-5 12,0 q6,-5 12,0' stroke-width='1' opacity='.09'/%3E%3Cpath d='M90,200 q6,-5 12,0 q6,-5 12,0' stroke-width='1' opacity='.08'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--paper) 0%, var(--paper2) 55%, var(--paper3) 100%);
  background-repeat: no-repeat;
  background-position: center bottom, center top;
  background-size: 100% 620px, 100% 100%;
  background-attachment: fixed;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 宣纸纤维噪点 */
.paper-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(20, 20, 18, .018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(20, 20, 18, .016) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 30px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(176, 58, 42, .2); }

/* ============================================================
   顶栏：墨线 + 朱砂印
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(23, 23, 21, .06);
}
.topbar .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); }
.brand .t1 { font-size: 19px; letter-spacing: 5px; font-weight: 700; font-family: var(--brush); }
.brand .t2 { font-size: 12px; letter-spacing: 2px; color: var(--cinnabar); font-family: var(--kai); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); font-family: var(--kai); }
.nav a { transition: color .2s; letter-spacing: 2px; padding: 4px 2px; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--cinnabar); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--ink); }

/* ============================================================
   卷首 hero —— 墨黑底：夜行衣一般的黑
   ============================================================ */
.hero {
  padding: 92px 0 58px; text-align: center; position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #141412 0%, #232220 70%, #2b2a26 100%);
  border-bottom: 3px solid var(--ink);
  color: #f3f3ef;
  overflow: hidden;
}
/* 背景巨字 —— 白墨行楷“侠” */
.hero::before {
  content: "侠";
  position: absolute; top: -10px; right: -18px;
  font-family: var(--brush); font-weight: 700;
  font-size: clamp(300px, 44vw, 560px);
  line-height: 1; color: rgba(243, 243, 239, 0.06);
  pointer-events: none; user-select: none; z-index: 0;
}
/* 底部白色墨山剪影 */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23f3f3ef' stroke-linecap='round'%3E%3Cpath d='M-20,120 Q180,60 380,105 Q520,70 680,110 Q840,78 1000,112 Q1180,84 1460,118' stroke-width='2.6' opacity='.22'/%3E%3Cpath d='M120,130 Q360,66 620,118 Q840,88 1080,122 Q1260,100 1460,124' stroke-width='3.4' opacity='.15'/%3E%3Cpath d='M420,138 Q700,84 980,124 Q1180,104 1460,130' stroke-width='2.2' opacity='.10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* 朱砂印章 —— 黑底上唯一的一抹亮色 */
.seal {
  position: absolute; z-index: 2;
  top: 34px; left: calc(50% - 268px);
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cinnabar);
  color: #faf6ee;
  font-family: var(--brush); font-size: 17px; letter-spacing: 1px;
  writing-mode: vertical-rl;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(250, 246, 238, .35), inset 0 0 0 4px var(--cinnabar), 0 3px 14px rgba(0, 0, 0, .45);
  transform: rotate(-2deg);
  line-height: 1.15;
}
.seal::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(250, 246, 238, .5);
  border-radius: 2px;
}

/* 竖排题款 —— 朱砂 */
.vquote {
  position: absolute; z-index: 2;
  top: 44px; right: calc(50% - 292px);
  writing-mode: vertical-rl;
  font-family: var(--brush);
  font-size: 15px; letter-spacing: 10px;
  color: #d96a55; opacity: .95;
  line-height: 1.5;
  text-shadow: 0 0 18px rgba(176, 58, 42, .35);
}
.vquote::before {
  content: ""; position: absolute; top: -14px; bottom: -14px; left: -10px;
  border-left: 1px solid rgba(217, 106, 85, .5);
}

.hero .kicker {
  display: inline-block; font-size: 11px; letter-spacing: 7px; color: rgba(243,243,239,0.72);
  border: 1px solid rgba(243,243,239,0.4); border-radius: 2px;
  padding: 5px 18px 4px; margin-bottom: 30px;
  font-family: var(--serif);
}
.hero h1 {
  font-family: var(--brush); font-weight: 700;
  font-size: clamp(46px, 7vw, 78px);
  letter-spacing: 14px; line-height: 1.12; color: #f6f6f2;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5);
}
.hero h1 em { font-style: normal; color: var(--cinnabar); text-shadow: 0 2px 22px rgba(176, 58, 42, .45); }
.hero .subtitle {
  margin: 24px auto 0; max-width: 660px;
  color: rgba(246, 246, 242, 0.88); font-size: 17px; letter-spacing: 3px; font-family: var(--brush);
}
.hero .subtitle b { color: #e0654e; font-weight: 600; }
.hero .oneline { margin: 16px auto 0; max-width: 700px; color: rgba(246, 246, 242, 0.55); font-size: 14.5px; font-family: var(--kai); }

/* 数据统计 —— 白线分隔 */
.stats { display: flex; justify-content: center; margin-top: 46px; flex-wrap: wrap; position: relative; z-index: 1; }
.stat { padding: 0 40px; border-right: 1px solid rgba(243, 243, 239, 0.28); }
.stat:first-child { border-left: 1px solid rgba(243, 243, 239, 0.28); }
.stat b {
  display: block; font-family: var(--brush); font-size: 34px; color: #e0654e;
  font-weight: 700; letter-spacing: 2px; text-shadow: 0 0 18px rgba(224, 101, 78, .4);
}
.stat span { font-size: 12px; color: rgba(243, 243, 239, 0.6); letter-spacing: 3px; font-family: var(--kai); }

/* ============================================================
   通用 section：墨线 + 朱砂角章
   ============================================================ */
section.block { padding: 58px 0; border-top: 1px solid var(--line); position: relative; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: 7px; color: var(--cinnabar);
  font-family: var(--serif); position: relative; padding: 0 18px;
}
.sec-head .kicker::before, .sec-head .kicker::after {
  content: ""; position: absolute; top: 50%; width: 34px; height: 1px; background: rgba(176, 58, 42, .45);
}
.sec-head .kicker::before { left: -34px; } .sec-head .kicker::after { right: -34px; }
.sec-head h2 {
  font-family: var(--brush); font-size: 38px; letter-spacing: 8px; margin-top: 10px;
  color: var(--ink); font-weight: 700;
}
.sec-head h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--cinnabar) 30%, var(--cinnabar) 70%, transparent);
}
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 660px; margin-left: auto; margin-right: auto; font-family: var(--kai); }

/* ---------- 进馆三问：白纸墨框 + 朱砂章号 ---------- */
.reverse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.r-card {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; position: relative;
  box-shadow: 3px 4px 0 rgba(23, 23, 21, .09);
}
.r-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar) 0 22%, transparent 22%);
}
.r-card .no {
  font-family: var(--brush); font-size: 15px; color: #faf6ee; font-weight: 700;
  background: var(--cinnabar); border-radius: 3px;
  display: inline-block; padding: 3px 12px; margin-bottom: 16px;
  letter-spacing: 3px; box-shadow: 2px 2px 0 rgba(0, 0, 0, .3);
}
.r-card h3 { font-family: var(--brush); font-size: 21px; letter-spacing: 3px; margin-bottom: 12px; }
.r-card p { font-size: 14px; color: var(--ink2); font-family: var(--kai); }

/* ---------- 时间轴：墨笔竖线 + 朱砂节点 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px;
  background:
    linear-gradient(180deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent);
  border-radius: 2px;
  opacity: .5;
}
.tnode { position: relative; padding: 0 0 34px 30px; }
.tnode::before {
  content: ""; position: absolute; left: -37px; top: 7px;
  width: 16px; height: 16px;
  background: var(--cinnabar); border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(176, 58, 42, .15), 0 0 0 7px var(--paper);
}
.tnode .when {
  display: inline-block; font-family: var(--kai); color: var(--cinnabar);
  font-size: 13px; letter-spacing: 2px; border-bottom: 1px solid rgba(176, 58, 42, .4); padding-bottom: 2px;
}
.tnode h4 { font-family: var(--brush); font-size: 23px; margin: 8px 0 8px; letter-spacing: 2px; font-weight: 700; }
.tnode p { font-size: 14.5px; color: var(--ink2); max-width: 660px; font-family: var(--kai); }
.tnode .tag {
  display: inline-block; font-size: 12px; color: var(--muted);
  background: rgba(176, 58, 42, .08); border: 1px solid rgba(176, 58, 42, .3);
  border-radius: 2px; padding: 1px 10px; margin-right: 6px; margin-top: 8px;
  font-family: var(--kai);
}

/* ---------- 四家合流 ---------- */
.sources { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr 1fr; gap: 18px 28px; align-items: stretch; }
.src-center { grid-row: 1 / 3; grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.src-big {
  width: 176px; height: 176px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--brush); font-size: 88px; color: #f6f6f2; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #3a3a36, #141412);
  box-shadow: 0 16px 44px rgba(10, 10, 8, .45), inset 0 0 0 7px var(--cinnabar), inset 0 0 0 9px rgba(246, 246, 242, .35);
}
.src-center .cap { margin-top: 18px; font-family: var(--brush); letter-spacing: 5px; color: var(--ink); font-size: 16px; }
.src-center .cap small { display: block; color: var(--muted); letter-spacing: 2px; font-size: 12px; margin-top: 5px; font-family: var(--kai); }
.src-card {
  background: var(--panel-solid); border: 1px solid var(--line); border-left: 4px solid var(--cinnabar);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: 3px 4px 0 rgba(23, 23, 21, .09);
}
.src-card .who { font-family: var(--brush); font-size: 20px; color: var(--cinnabar); letter-spacing: 3px; }
.src-card .role { font-size: 12px; color: var(--gold); letter-spacing: 1px; margin: 3px 0 9px; font-family: var(--kai); }
.src-card p { font-size: 13.5px; color: var(--ink2); font-family: var(--kai); }
.genes { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.gene {
  font-family: var(--kai); font-size: 14px; letter-spacing: 1px; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--panel-solid); color: var(--ink2);
}
.gene b { color: var(--cinnabar); font-weight: 600; }

/* ---------- 母题九宫格 ---------- */
.motifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.motif {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
}
.motif::after {
  content: ""; position: absolute; right: 12px; bottom: 10px;
  width: 34px; height: 34px; opacity: .55; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23a33124' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 6 L24 14 L20 34 L16 14 Z'/%3E%3Cpath d='M14 12 H26'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}
.motif:hover { transform: translateY(-4px); border-color: var(--cinnabar); box-shadow: 0 12px 26px rgba(20, 20, 16, .16); }
.motif .ic {
  display: inline-block; font-family: var(--brush); font-size: 14px; letter-spacing: 2px;
  color: #f6f6f2; background: var(--ink); border-radius: 2px;
  padding: 3px 11px; margin-bottom: 14px;
}
.motif h4 { font-family: var(--brush); font-size: 20px; letter-spacing: 2px; margin: 0 0 8px; font-weight: 700; }
.motif p { font-size: 13.5px; color: var(--ink2); font-family: var(--kai); padding-right: 30px; }

/* ---------- 金庸厅：黑底金字朱砂 ---------- */
.jinyong {
  background:
    linear-gradient(160deg, rgba(176, 58, 42, 0.10), rgba(154, 123, 63, 0.08)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='none' stroke='%23f3f3ef' stroke-linecap='round'%3E%3Cpath d='M0,150 Q200,70 420,130 Q600,80 820,140 Q1000,100 1200,140' stroke-width='3' opacity='.14'/%3E%3Cpath d='M100,170 Q360,90 660,150 Q900,110 1200,158' stroke-width='2' opacity='.09'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #1b1a18 0%, #262420 100%);
  background-repeat: no-repeat; background-size: 100% 100%, cover, cover;
  border: 1px solid #3a3833; border-radius: 6px;
  padding: 54px 36px; text-align: center; position: relative;
  color: #f0efea;
  box-shadow: 0 18px 44px rgba(10, 10, 8, .35);
}
.couplet {
  font-family: var(--brush); font-size: clamp(28px, 4.6vw, 44px); letter-spacing: 10px; line-height: 1.8;
  color: #f6f6f2; font-weight: 700; text-shadow: 0 0 30px rgba(246, 246, 242, .18);
}
.couplet .r { color: #e0654e; }
.jinyong .note { margin-top: 18px; color: rgba(240, 239, 234, 0.6); font-size: 14px; font-family: var(--kai); letter-spacing: 1px; }
.jy-years { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 30px; }
.jy-year {
  font-family: var(--kai); font-size: 13.5px; padding: 6px 13px;
  border: 1px solid rgba(243, 243, 239, 0.3); border-radius: 2px;
  background: rgba(255, 255, 255, 0.06); color: rgba(240, 239, 234, 0.85);
}
.jy-year b { color: #e0654e; margin-right: 4px; font-weight: 600; }

/* ---------- 作家网格：水墨相框 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 20px; padding-bottom: 40px; }
.acard {
  position: relative; background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 18px; transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden; display: block; box-shadow: 3px 4px 0 rgba(23, 23, 21, .09);
}
.acard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--mood, var(--cinnabar)); opacity: .85;
}
.acard::after {
  content: "侠"; position: absolute; right: -14px; bottom: -26px;
  font-family: var(--brush); font-size: 96px; color: rgba(23, 23, 21, .04);
  pointer-events: none; line-height: 1;
}
.acard:hover { transform: translateY(-4px); border-color: var(--cinnabar); box-shadow: 0 12px 28px rgba(20, 20, 16, .18); }
.acard .avatar {
  width: 76px; height: 76px; border-radius: 3px; object-fit: cover;
  border: 2px solid var(--ink); outline: 1px solid #fff; outline-offset: -4px;
  box-shadow: 3px 4px 0 rgba(23, 23, 21, .25); margin-bottom: 14px;
  background: #e8e8e4;
}
.avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--brush); font-size: 38px; color: #f6f6f2; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #3a3a36, #141412);
  border: 2px solid var(--ink); outline: 1px solid #fff; outline-offset: -4px;
  box-shadow: 3px 4px 0 rgba(23, 23, 21, .25);
}
.author-hero .avatar-lg.avatar-fallback { width: 172px; height: 172px; font-size: 80px; }
.acard h3 { font-family: var(--brush); font-size: 22px; letter-spacing: 2px; font-weight: 700; }
.acard .real { font-size: 12.5px; color: var(--faint); font-family: var(--kai); }
.acard .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-family: var(--kai); }
.acard .locus {
  font-size: 13px; color: var(--ink2); margin-top: 12px;
  border-top: 1px dashed var(--line); padding-top: 11px; font-family: var(--kai);
}
.acard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; font-size: 12.5px; color: var(--faint); font-family: var(--kai); }
.acard .foot span:last-child { color: var(--cinnabar); }

/* 徽章：印章式 */
.badge {
  display: inline-block; font-size: 11px; letter-spacing: 2px; padding: 2px 10px; border-radius: 2px;
  border: 1px solid var(--cinnabar); color: var(--cinnabar); background: var(--cinnabar-soft);
  font-family: var(--kai);
}
.badge.大家 { border-color: var(--gold); color: var(--gold); background: rgba(154, 123, 63, .1); }
.badge.名家 { border-color: var(--muted); color: var(--muted); background: rgba(86, 86, 79, .08); }

.era-band {
  font-family: var(--brush); font-size: 25px; letter-spacing: 5px;
  margin: 40px 0 18px; padding-left: 14px; font-weight: 700;
  border-left: 5px solid var(--cinnabar); position: relative;
}
.era-band small { font-family: var(--kai); font-size: 12.5px; color: var(--muted); letter-spacing: 1px; margin-left: 12px; }

/* ---------- 作品卡 ---------- */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.wcard {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; box-shadow: 2px 3px 0 rgba(23, 23, 21, .08);
}
.wcard::after {
  content: "书"; position: absolute; right: -10px; bottom: -18px;
  font-family: var(--brush); font-size: 72px; color: rgba(23, 23, 21, .035);
  pointer-events: none; line-height: 1;
}
.wcard:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20, 20, 16, .18); border-color: var(--cinnabar); }
.wcard .fmt {
  position: absolute; top: 13px; right: 13px; font-size: 10px; letter-spacing: 1px;
  padding: 1px 8px; border-radius: 2px; font-weight: 700; font-family: var(--kai);
}
.wcard .fmt.epub { background: #2e5e4e; color: #e9f2ec; }
.wcard .fmt.pdf { background: var(--cinnabar); color: #f6e6e3; }
.wcard .wt { font-family: var(--serif); font-size: 16.5px; letter-spacing: .5px; line-height: 1.5; padding-right: 44px; font-weight: 600; }
.wcard .vol { font-size: 12.5px; color: var(--gold); margin-top: 5px; font-family: var(--kai); }
.wcard .wa { font-size: 12.5px; color: var(--muted); margin-top: 9px; border-top: 1px dashed var(--line-soft); padding-top: 9px; font-family: var(--kai); }
.wcard .open-hint { font-size: 12px; color: var(--cinnabar); margin-top: 9px; opacity: .85; font-family: var(--kai); }

/* ---------- 筛选区 ---------- */
.filterbar { margin: 10px 0 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tabs { display: flex; gap: 9px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); border-radius: 2px; padding: 6px 17px; font-size: 13.5px;
  color: var(--muted); cursor: pointer; background: transparent; transition: all .2s;
  font-family: var(--kai); letter-spacing: 1px;
}
.tab:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.tab.on { color: #f6f6f2; background: var(--ink); border-color: var(--ink); font-weight: 600; }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 2px; padding: 6px 16px; background: var(--panel-solid);
}
.search input { background: none; border: none; outline: none; color: var(--ink); font-size: 13.5px; width: 172px; font-family: var(--kai); }
.search input::placeholder { color: var(--faint); }
.count-line { width: 100%; font-size: 12.5px; color: var(--faint); letter-spacing: 1px; font-family: var(--kai); }

/* ---------- 作者主页 ---------- */
.author-hero {
  display: flex; gap: 38px; align-items: center; padding: 54px 0 34px; flex-wrap: wrap;
  position: relative;
}
/* 作者页背景巨字 */
.author-hero::before {
  content: "侠"; position: absolute; top: -24px; right: -10px;
  font-family: var(--brush); font-weight: 700;
  font-size: clamp(220px, 30vw, 420px); line-height: 1;
  color: rgba(23, 23, 21, .045); pointer-events: none; z-index: 0;
}
.author-hero > * { position: relative; z-index: 1; }
.author-hero .avatar-lg {
  width: 176px; height: 176px; border-radius: 4px; object-fit: cover;
  border: 3px solid var(--ink); outline: 1px solid #fff; outline-offset: -6px;
  box-shadow: 8px 10px 0 rgba(23, 23, 21, .13);
  background: #e8e8e4;
}
.author-hero .info h1 { font-family: var(--brush); font-size: 46px; letter-spacing: 5px; font-weight: 700; }
.author-hero .info .real { color: var(--muted); font-size: 14.5px; margin-top: 5px; font-family: var(--kai); letter-spacing: 1px; }
.author-hero .info .meta { margin-top: 14px; display: flex; gap: 9px; flex-wrap: wrap; }

.bio-cols { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 10px 0 8px; }
.bio-block {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: 3px 4px 0 rgba(23, 23, 21, .09); position: relative;
}
.bio-block::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cinnabar); opacity: .8;
}
.bio-block h3 {
  font-family: var(--brush); font-size: 20px; letter-spacing: 4px; color: var(--cinnabar);
  margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.bio-block p { font-size: 15px; color: var(--ink2); font-family: var(--kai); }
.quote-block {
  font-family: var(--brush); font-size: 22px; line-height: 2; color: var(--ink);
  border-left: 4px solid var(--cinnabar); padding: 6px 0 6px 24px; margin: 10px 0;
  letter-spacing: 2px;
}
.works-of-author { margin-top: 28px; }

/* ---------- 从侠到仙 ---------- */
.bridge {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: 3px 4px 0 rgba(23, 23, 21, .09);
}
.bridge .arrow { font-size: 34px; color: var(--cinnabar); text-align: center; font-family: var(--brush); }
.bridge h4 { font-family: var(--brush); letter-spacing: 2px; margin-bottom: 7px; font-size: 18px; }
.bridge p { font-size: 14px; color: var(--ink2); font-family: var(--kai); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 38px; margin-top: 30px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--faint); letter-spacing: 1px; flex-wrap: wrap; gap: 10px; font-family: var(--kai); }
.footer .dot { color: var(--cinnabar); }
.footer span:last-child::before {
  content: "江湖再见"; margin-right: 10px; color: var(--cinnabar);
  font-family: var(--brush); font-size: 15px; letter-spacing: 3px;
  border: 1px solid rgba(176, 58, 42, .5); border-radius: 2px; padding: 2px 9px;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 11px 24px; border-radius: 3px;
  font-size: 14px; letter-spacing: 1px; opacity: 0; pointer-events: none;
  transition: all .3s; z-index: 99; font-family: var(--kai);
}
#toast.show { opacity: .95; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .seal { left: 18px; }
  .vquote { display: none; }
  .hero::before { right: -60px; }
}
@media (max-width: 860px) {
  .reverse, .motifs, .sources { grid-template-columns: 1fr; }
  .src-center { grid-row: auto; grid-column: auto; }
  .bridge { grid-template-columns: 1fr; }
  .bridge .arrow { transform: rotate(90deg); }
  .author-hero .avatar-lg { width: 132px; height: 132px; }
  .stat { padding: 0 22px; }
  .nav { gap: 16px; font-size: 13px; }
  .hero { padding-top: 74px; }
  .hub { grid-template-columns: 1fr; }
}

/* ---------- 门户主页 · 五重门模块入口 ---------- */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.hub-card { position: relative; display: block; background: var(--paper);
  border: 1px solid var(--line); padding: 26px 22px 56px; text-decoration: none;
  color: var(--ink); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.hub-card:hover { transform: translateY(-4px); border-color: var(--cinnabar);
  box-shadow: 0 12px 26px rgba(23, 23, 21, .14); background: var(--paper2); }
.hub-card .hub-no { position: absolute; top: 16px; right: 18px; font-family: var(--kai);
  font-size: 24px; color: var(--cinnabar); opacity: .9; }
.hub-card h3 { font-family: var(--kai); font-size: 21px; letter-spacing: 3px; margin: 4px 0 12px; color: var(--ink); }
.hub-card p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 12px; }
.hub-card .hub-meta { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--faint);
  border-top: 1px dashed var(--line-soft); padding-top: 9px; }
.hub-card .hub-arrow { position: absolute; left: 22px; bottom: 15px; font-size: 12px;
  letter-spacing: 3px; color: var(--cinnabar); font-family: var(--kai); transition: letter-spacing .18s ease; }
.hub-card:hover .hub-arrow { letter-spacing: 5px; }

/* ---------- 金庸厅 · 十五部 ---------- */
.jy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.jy-card { position: relative; background: var(--paper); border: 1px solid var(--line);
  padding: 20px 18px 16px; transition: border-color .18s ease, transform .18s ease; }
.jy-card:hover { border-color: var(--cinnabar); transform: translateY(-3px); }
.jy-card .jy-zi { position: absolute; top: 8px; right: 14px; font-family: var(--kai);
  font-size: 32px; color: var(--cinnabar); opacity: .85; }
.jy-card h4 { font-family: var(--kai); font-size: 19px; letter-spacing: 2px; margin: 2px 0 4px; color: var(--ink); }
.jy-card .jy-yr { font-size: 11px; color: var(--faint); letter-spacing: 1px; }
.jy-card p { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 860px) {
  .jy-grid { grid-template-columns: 1fr; }
}

/* ================= 门户首页 · 全屏卷首 ================= */
.hero-home { min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative; text-align: center; padding: 120px 26px 80px; }
.hero-home .hh-brand { position: absolute; top: 28px; left: 0; display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.hero-home .hh-brand .t1 { font-family: var(--kai); font-size: 18px; color: #f4f2ec; letter-spacing: 4px; }
.hero-home .hh-brand .t2 { font-size: 11px; letter-spacing: 2px; color: rgba(244, 242, 236, .55); }
.hero-home .vquote { position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--kai); font-size: 22px; letter-spacing: 9px; color: var(--cinnabar); opacity: .92; }
.hero-home .kicker { position: absolute; left: 36px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: 7px; color: rgba(244, 242, 236, .4); }
.hero-home h1 { font-family: var(--kai); font-size: 108px; color: #f4f2ec; letter-spacing: 16px; margin: 8px 0 14px; }
.hero-home h1 em { font-style: normal; }
.hero-home .subtitle { font-family: var(--kai); font-size: 20px; color: #d8d4ca; letter-spacing: 6px; margin: 0 0 16px; }
.hero-home .subtitle b { color: var(--cinnabar); }
.hero-home .oneline { font-size: 13px; letter-spacing: 2px; color: rgba(244, 242, 236, .6); line-height: 2; }
.hh-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; max-width: 1080px; margin-top: 76px; }
.hh-nav a { position: relative; display: block; text-align: left; padding: 22px 22px 24px;
  border: 1px solid rgba(244, 242, 236, .32); color: #f4f2ec; text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.hh-nav a:hover { border-color: var(--cinnabar); background: rgba(176, 58, 42, .14); transform: translateY(-3px); }
.hh-nav b { display: block; font-family: var(--kai); font-size: 28px; letter-spacing: 7px; margin-bottom: 9px; font-weight: normal; }
.hh-nav span { display: block; font-size: 12px; letter-spacing: 2px; color: rgba(244, 242, 236, .6); }
.hh-nav i { position: absolute; right: 16px; bottom: 13px; font-style: normal; color: var(--cinnabar);
  font-size: 15px; transition: right .2s ease; }
.hh-nav a:hover i { right: 9px; }

/* ================= 子页轻页头 ================= */
.pagehead { padding: 54px 0 32px; border-bottom: 1px solid var(--line-soft); margin-bottom: 32px; }
.pagehead .ph-kicker { display: block; font-size: 11px; letter-spacing: 5px; color: var(--cinnabar); margin-bottom: 10px; }
.pagehead h1 { font-family: var(--kai); font-size: 46px; letter-spacing: 9px; color: var(--ink); margin: 0 0 14px; font-weight: normal; }
.pagehead p { font-size: 14px; line-height: 1.95; color: var(--muted); max-width: 880px; margin: 0 0 20px; }
.ph-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.ph-stats span { font-size: 13px; letter-spacing: 1px; color: var(--faint); }
.ph-stats b { font-family: var(--kai); font-size: 27px; color: var(--cinnabar); margin-right: 7px; font-weight: normal; }

/* ================= 作者名录 · 英雄谱 ================= */
.roster { border-top: 1px solid var(--line-soft); }
.rrow { display: flex; align-items: center; gap: 24px; padding: 18px 8px; text-decoration: none;
  border-bottom: 1px dashed var(--line-soft); transition: background .18s ease; }
.rrow:hover { background: var(--paper2); }
.r-avatar { position: relative; flex: 0 0 106px; width: 106px; height: 106px;
  border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center;
  justify-content: center; overflow: hidden; }
.r-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.r-fb { display: none; font-family: var(--kai); font-size: 42px; color: var(--ink); opacity: .5; }
.r-avatar.fb .r-fb { display: block; }
.r-main { flex: 1; min-width: 0; }
.r-main b { font-family: var(--kai); font-size: 26px; letter-spacing: 3px; color: var(--ink); margin-right: 14px; font-weight: normal; }
.r-main i { font-style: normal; font-size: 12px; letter-spacing: 1px; color: var(--faint); }
.r-main em { display: block; font-style: normal; font-size: 13px; color: var(--muted);
  line-height: 1.7; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-side { flex: 0 0 auto; text-align: right; }
.r-side i { display: block; font-style: normal; font-size: 12px; color: var(--faint); margin-bottom: 9px; letter-spacing: 1px; }
.r-side b { display: inline-block; font-family: var(--kai); font-size: 13px; padding: 3px 13px;
  border: 1px solid var(--cinnabar); color: var(--cinnabar); letter-spacing: 3px; font-weight: normal; }
.r-arrow { flex: 0 0 auto; font-size: 20px; color: var(--line); margin-left: 8px; transition: transform .18s ease, color .18s ease; }
.rrow:hover .r-arrow { transform: translateX(5px); color: var(--cinnabar); }

/* ================= 作品一览 · 水墨书封墙 ================= */
.bookwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 30px 20px; }
.bk { cursor: pointer; text-align: center; }
.cover { position: relative; aspect-ratio: 3 / 4; background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 20px 14px; box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
  transition: transform .2s ease, box-shadow .2s ease; }
.bk:hover .cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 14px 28px rgba(0, 0, 0, .2); }
.cv-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 11px;
  background: linear-gradient(90deg, rgba(23, 23, 21, .34), rgba(23, 23, 21, .05)); }
.cover::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 78% 16%, rgba(23, 23, 21, .08), transparent 52%),
              radial-gradient(ellipse at 20% 90%, rgba(23, 23, 21, .06), transparent 46%); }
.bk.era-min .cover { background: #f1e8d8; }
.bk.era-hk .cover { background: #f7f7f4; }
.bk.era-main .cover { background: #ebe9e3; }
.bk.era-post .cover { background: #e3e7e3; }
.cv-title { writing-mode: vertical-rl; font-family: var(--kai); letter-spacing: 5px;
  color: var(--ink); line-height: 1.14; max-height: 100%; font-weight: normal; }
.cv-title.t-lg { font-size: 23px; }
.cv-title.t-md { font-size: 17px; }
.cv-title.t-sm { font-size: 13px; }
.cv-title.t-xs { font-size: 10.5px; }
.cv-vol { position: absolute; right: 15px; bottom: 42px; writing-mode: vertical-rl;
  font-size: 10px; color: var(--faint); letter-spacing: 2px; }
.cv-author { position: absolute; bottom: 13px; left: 17px; font-size: 10.5px; letter-spacing: 1px; color: var(--muted); }
.cv-seal { position: absolute; right: 13px; top: 12px; width: 23px; height: 23px;
  border: 1px solid var(--cinnabar); color: var(--cinnabar); font-family: var(--kai);
  font-size: 13px; display: flex; align-items: center; justify-content: center; opacity: .85; }
.cv-foot { position: absolute; bottom: 15px; right: 16px; font-size: 9px; letter-spacing: 2px; color: var(--faint); }
.bk-cap { margin-top: 11px; font-size: 12.5px; color: var(--ink); letter-spacing: 1px; }
.bk-cap span { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }

@media (max-width: 860px) {
  .hero-home { padding: 130px 18px 70px; }
  .hero-home h1 { font-size: 64px; letter-spacing: 10px; }
  .hero-home .vquote, .hero-home .kicker { display: none; }
  .hh-nav { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
  .pagehead h1 { font-size: 36px; }
  .rrow { flex-wrap: wrap; gap: 14px; }
  .r-avatar { flex-basis: 86px; width: 86px; height: 86px; }
  .r-side { display: none; }
  .bookwall { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); }
}
