@charset "UTF-8";
/* ==========================================================================
   WhatsApp 网页版 · 角色档案（Role Files）
   设计方向：活页档案 / 工牌
   米灰桌面 + 纸张卡片 + 左侧装订孔 + 赭红编号 + 橄榄标签 + 荧光笔标注
   无圆角、无渐变装饰。
   ========================================================================== */

:root {
  --desk: #e6e2d6;
  --page: #fbfaf6;
  --card: #ffffff;
  --ink: #1a1a18;
  --ink-2: #45453e;
  --muted: #7d7c72;
  --line: #d6d1c1;
  --line-2: #bdb7a4;
  --rust: #a63d2f;
  --rust-soft: #f4e7e3;
  --olive: #4a5d3a;
  --olive-soft: #e8ece2;
  --mark: #f7e9a6;

  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --fs-xxs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-h3: clamp(1rem, 1.5vw, 1.13rem);
  --fs-h2: clamp(1.4rem, 2.8vw, 2rem);
  --fs-hero: clamp(2rem, 4.8vw, 3.4rem);

  --wrap: 1060px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
a:hover { color: var(--rust); border-bottom-color: var(--rust); }

strong { font-weight: 700; }
em { font-style: normal; }

mark, .mark {
  background: var(--mark);
  color: var(--ink);
  padding: 0.02em 0.2em;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #f2efe6;
  border: 1px solid var(--line);
  padding: 0.05em 0.32em;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.2; letter-spacing: -0.012em; }

/* ---------- 活页纸 ---------- */
.page {
  position: relative;
  max-width: 1180px;
  margin: clamp(0px, 2vw, 26px) auto;
  background: var(--page);
  border: 1px solid var(--line-2);
  padding-left: clamp(0px, 5vw, 66px);
}
.holes {
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
  background-image: radial-gradient(circle at 13px 13px, #e2ddcd 7px, #cdc7b4 7.5px, transparent 8px);
  background-size: 26px 72px;
  background-repeat: repeat-y;
  background-position: 0 28px;
}
@media (max-width: 760px) { .holes { display: none; } }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.4rem);
}

/* ---------- 顶栏 ---------- */
.top {
  border-bottom: 1px solid var(--line-2);
  background: var(--page);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  border-bottom: 0;
  flex: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--page);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: -0.02em;
}
.brand-text {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.brand-text span {
  display: block;
  font-weight: 400;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav { display: none; gap: 1.1rem; }
.nav a {
  font-size: var(--fs-sm);
  border-bottom: 0;
  color: var(--ink-2);
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.nav a[aria-current="page"] { color: var(--rust); font-weight: 700; border-bottom-color: var(--rust); }

.top-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--ink);
  border-bottom-width: 1px;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.top-cta:hover { background: var(--ink); color: var(--page); border-color: var(--ink); }

@media (min-width: 940px) { .nav { display: flex; } }
@media (max-width: 939px) {
  .top-cta { display: none; }
  .top-in { flex-wrap: wrap; padding-block: 0.55rem; gap: 0.4rem 1rem; }
  .nav { display: flex; flex-wrap: wrap; order: 3; width: 100%; gap: 0.8rem; }
  .nav a { font-size: var(--fs-xs); }
}

/* ---------- 首屏 ---------- */
.hero { padding-block: clamp(1.8rem, 4vw, 3.2rem) clamp(1.2rem, 2.5vw, 2rem); }
.kicker {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 20em;
}
.hero-lead {
  margin-top: 1.1rem;
  max-width: 42em;
  font-size: var(--fs-md);
  color: var(--ink-2);
  line-height: 1.8;
}
.hero-acts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.btn:hover { background: var(--ink); color: var(--page); border-color: var(--ink); }
.btn-solid { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-solid:hover { background: #8c3125; border-color: #8c3125; color: #fff; }

/* ---------- 角色卡 ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
}
.role {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-2);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border-bottom-width: 1px;
  position: relative;
}
.role:hover { border-color: var(--ink); color: var(--ink); }
.role:hover .role-no { color: var(--rust); }
.role-no {
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.16em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}
.role h3 { font-size: var(--fs-md); margin-bottom: 0.35rem; }
.role p { font-size: var(--fs-sm); color: var(--ink-2); }
.role .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.06em;
  padding: 0.08rem 0.4rem;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.tag-olive { color: var(--olive); border-color: #b9c4ac; background: var(--olive-soft); }
.tag-rust { color: var(--rust); border-color: #dcc0b8; background: var(--rust-soft); }

/* ---------- 章节 ---------- */
.sec { padding-block: clamp(1.9rem, 3.6vw, 2.8rem); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(1rem, 2vw, 1.6rem); }
.sec-no {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.45rem;
}
.sec-title { font-size: var(--fs-h2); letter-spacing: -0.018em; line-height: 1.22; text-wrap: balance; }
.sec-sub { margin: 0.6rem 0 0; max-width: 44em; color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- 典型一天 ---------- */
.day { border-left: 2px solid var(--line-2); margin-left: 4px; }
.day-item { position: relative; padding: 0 0 1.4rem 1.5rem; }
.day-item:last-child { padding-bottom: 0; }
.day-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--page);
  border: 2px solid var(--rust);
  border-radius: 50%;
}
.day-time {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.1em;
  color: var(--rust);
  margin-bottom: 0.2rem;
}
.day-item h3 { font-size: var(--fs-h3); margin-bottom: 0.25rem; }
.day-item p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 44em; }

/* ---------- 设置三条 ---------- */
.settings { display: grid; gap: 0; border-top: 1px solid var(--line); }
.setting {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: clamp(0.6rem, 1.8vw, 1.2rem);
  padding-block: clamp(0.9rem, 1.8vw, 1.3rem);
  border-bottom: 1px solid var(--line);
}
.setting-no { font-family: var(--mono); font-size: var(--fs-xs); color: var(--rust); padding-top: 0.2rem; }
.setting h3 { font-size: var(--fs-h3); margin-bottom: 0.3rem; }
.setting p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 44em; }
.setting p + p { margin-top: 0.45rem; }

/* ---------- 坑 ---------- */
.pitfall {
  background: var(--rust-soft);
  border: 1px solid #e2c9c1;
  border-left: 4px solid var(--rust);
  padding: 1rem 1.1rem;
  margin-block: 1.6rem;
}
.pitfall b {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.pitfall p { font-size: var(--fs-sm); color: #5a3a33; }
.pitfall p + p { margin-top: 0.55rem; }

.note {
  background: #f4f2e9;
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive);
  padding: 0.9rem 1rem;
  margin-block: 1.4rem;
}
.note b {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  color: var(--olive);
  margin-bottom: 0.3rem;
}
.note p { font-size: var(--fs-sm); color: var(--ink-2); }
.note p + p { margin-top: 0.5rem; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line-2); background: var(--card); }
.tbl { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: var(--fs-sm); text-align: left; }
.tbl th {
  padding: 0.6rem 0.8rem;
  background: #f2efe5;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.tbl td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td strong { color: var(--ink); }
.tbl .rn { width: 2.6rem; font-family: var(--mono); font-size: var(--fs-xxs); color: var(--muted); }

/* ---------- 问答 ---------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--fs-base);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); color: var(--rust); flex: none; font-weight: 400; }
.qa details[open] summary::after { content: "−"; }
.ans { padding: 0 0 1rem; font-size: var(--fs-sm); color: var(--ink-2); }
.ans p + p { margin-top: 0.55rem; }

/* ---------- 相关 ---------- */
.related { margin-top: clamp(1.4rem, 2.6vw, 2rem); }
.related h2 {
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.related a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.related a:hover { border-color: var(--ink); color: var(--ink); }
.related a i { font-family: var(--mono); font-style: normal; font-size: var(--fs-xxs); color: var(--muted); flex: none; }

/* ---------- 页面头 ---------- */
.page-head { padding-block: 0.9rem 0; }
.crumb { font-family: var(--mono); font-size: var(--fs-xxs); letter-spacing: 0.06em; color: var(--muted); padding-block: 0.8rem; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-2); }
.crumb a { color: var(--muted); border-bottom: 0; }
.crumb a:hover { color: var(--rust); }
.crumb [aria-current] { color: var(--ink-2); }

.page-head h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.14; letter-spacing: -0.025em; text-wrap: balance; }
.page-head .lead { margin-top: 0.9rem; max-width: 40em; color: var(--ink-2); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 1.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 档案头（角色页专用） ---------- */
.dossier {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line-2);
  background: var(--card);
  padding: clamp(1rem, 2.2vw, 1.4rem);
  margin-block: 1.2rem 0;
}
.dossier-id {
  border-right: 1px dashed var(--line-2);
  padding-right: clamp(0.8rem, 1.8vw, 1.2rem);
}
.dossier-id b {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--rust);
  line-height: 1;
}
.dossier-id span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.dossier-body h2 { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.dossier-body p { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line-2); margin-top: clamp(1.6rem, 3vw, 2.4rem); background: #f5f3ea; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  padding-block: clamp(1.4rem, 2.8vw, 2rem);
}
.foot h2 {
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.foot p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 24em; }
.foot li + li { margin-top: 0.35rem; }
.foot li a { font-size: var(--fs-sm); color: var(--ink-2); border-bottom: 0; }
.foot li a:hover { color: var(--rust); }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-block: 0.8rem;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.err { min-height: 54vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; padding-block: 2.2rem; }
.err-code { font-family: var(--mono); font-size: clamp(3.4rem, 13vw, 7rem); letter-spacing: -0.05em; color: var(--rust); line-height: 1; }
.err h1 { font-size: var(--fs-h2); margin-top: 1rem; }
.err .lead { margin-top: 0.7rem; color: var(--ink-2); max-width: 32em; }
.err .hero-acts { justify-content: center; }

/* ---------- 工具 ---------- */
.dim { color: var(--muted); }
.mt-5 { margin-top: 1.4rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier { grid-template-columns: minmax(0, 1fr); }
  .dossier-id { border-right: 0; border-bottom: 1px dashed var(--line-2); padding: 0 0 0.7rem; }
}

@media (max-width: 620px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .related ul { grid-template-columns: minmax(0, 1fr); }
  .setting { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .day-item { padding-left: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
