/* ============================================================
   《OPC 多人分享》道法术器拆解 — 东方水墨 / 宣纸 视觉系统
   浅色米底 · 赭金强调 · 国画四色锚点
   ============================================================ */

:root {
  /* —— 宣纸底色 —— */
  --paper:      #f3ede0;   /* 宣纸主底 */
  --paper-warm: #efe7d6;   /* 略深的纸 */
  --card:       #fbf7ee;   /* 卡片/浮起纸面 */
  --card-2:     #f7f1e4;

  /* —— 墨色 —— */
  --ink:       #2a251e;
  --ink-soft:  #4b4438;
  --ink-mute:  #897f6d;
  --ink-faint: #b3a991;

  /* —— 线 —— */
  --line:      #ddd2bb;
  --line-soft: #e8dfcc;

  /* —— 赭金强调 —— */
  --gold:      #b5893f;
  --gold-deep: #8f6a2c;
  --gold-soft: #e6d6b2;
  --gold-tint: #f4ead2;

  /* —— 朱砂印 —— */
  --seal:      #b0392c;

  /* —— 国画四色：道·法·术·器 —— */
  --c-dao: #2c2e36;   /* 墨玄 */
  --c-fa:  #38566a;   /* 黛蓝 */
  --c-shu: #9c5a33;   /* 赭石 */
  --c-qi:  #5f6c47;   /* 苔绿 */
  --c-dao-tint: #e7e5e2;
  --c-fa-tint:  #e2e7ea;
  --c-shu-tint: #efe2d6;
  --c-qi-tint:  #e6e8dd;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, sans-serif;

  --measure: 760px;
  --shell:   1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.92;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* 纸纹颗粒 + 暖角晕染 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(181,137,63,0.05), transparent 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(60,50,30,0.05), transparent 60%);
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 84px 40px 140px;
}

/* 内容主列宽度 */
.col { max-width: var(--measure); margin-left: auto; margin-right: auto; }

::selection { background: var(--gold-soft); color: var(--ink); }

a { color: inherit; }

/* ============================================================
   印章 / 装饰元件
   ============================================================ */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background: var(--seal);
  color: #fdf3ec;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(253,243,236,0.32),
              0 2px 0 rgba(120,30,22,0.25);
  letter-spacing: 0;
  user-select: none;
}
.seal.sm { width: 38px; height: 38px; flex-basis: 38px; font-size: 20px; border-radius: 4px; }

.rule-gold {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(181,137,63,0));
  border: 0;
  margin: 0;
}

/* 顶部细金线 */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 5;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 45%, var(--gold-soft) 100%);
}

/* ============================================================
   封面
   ============================================================ */
header.cover {
  margin-bottom: 64px;
  position: relative;
}
.cover-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 26px;
}
.cover-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
header.cover h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.22;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: var(--ink);
}
header.cover h1 .q {
  color: var(--gold-deep);
  font-weight: 700;
}
.cover-sub {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-mute);
  letter-spacing: 3px;
  margin: 0 0 40px;
}

/* 四字锚点图例 */
.glyphs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 48px;
}
.glyph {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 20px 20px;
  background: var(--card);
  overflow: hidden;
}
.glyph::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gc, var(--ink));
}
.glyph .big {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 58px;
  line-height: 1;
  color: var(--gc, var(--ink));
  margin-bottom: 14px;
}
.glyph .en {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.glyph .zh {
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 1px;
}
.glyph.dao { --gc: var(--c-dao); }
.glyph.fa  { --gc: var(--c-fa); }
.glyph.shu { --gc: var(--c-shu); }
.glyph.qi  { --gc: var(--c-qi); }

/* 元信息 */
.cover-meta {
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 8px 4px;
}
.cover-meta .row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 12px 24px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.cover-meta .row + .row { border-top: 1px dashed var(--line-soft); }
.cover-meta .k {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 2px;
  font-size: 14px;
}

/* ============================================================
   目录
   ============================================================ */
.toc {
  margin: 0 auto 92px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 36px 34px;
}
.toc h3 {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 10px;
  color: var(--gold-deep);
  margin: 0 0 20px;
  font-weight: 600;
  padding-left: 4px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}
.toc li {
  break-inside: avoid;
  margin: 0;
}
.toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  transition: color .2s, padding .2s;
}
.toc li:last-child a, .toc li:nth-child(4) a { }
.toc a .n {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
  min-width: 22px;
}
.toc a .t { flex: 1; }
.toc a:hover {
  color: var(--gold-deep);
  padding-left: 12px;
}

/* ============================================================
   讲者：卡头
   ============================================================ */
section.guest {
  margin: 0 auto 110px;
  scroll-margin-top: 28px;
}
.guest-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.guest-head .idx {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 60px;
  line-height: 0.82;
  color: var(--gold);
  letter-spacing: 0;
}
.guest-head .name-wrap { flex: 1; }
.guest-head .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  letter-spacing: 1px;
}
.guest-head .role {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--ink-mute);
  margin-top: 8px;
  font-family: var(--serif);
}

/* 身份介绍 */
.intro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 28px;
  margin: 26px 0 44px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
  position: relative;
}
.intro::before {
  content: "身份";
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--gold);
  color: #fdf6e9;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 2px 12px;
  border-radius: 3px;
}
.intro strong { color: var(--ink); font-weight: 600; }
.intro > strong:first-child { display: none; } /* 原"身份"标签已由角标承担 */

/* ============================================================
   四层：道·法·术·器
   ============================================================ */
.layer {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  margin: 46px 0;
  position: relative;
}
.layer-marker {
  position: relative;
  text-align: center;
}
.layer-char {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  color: var(--lc, var(--ink));
  display: block;
}
.layer-marker .en {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 10px;
}
.layer-marker .sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 1px;
}
.layer-marker::after {
  content: "";
  position: absolute;
  top: 96px; bottom: -6px;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--lc, var(--line)), transparent);
  opacity: .35;
}
.layer-body { padding-top: 4px; }
.layer.dao { --lc: var(--c-dao); }
.layer.fa  { --lc: var(--c-fa); }
.layer.shu { --lc: var(--c-shu); }
.layer.qi  { --lc: var(--c-qi); }

.layer-body h4 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  margin: 30px 0 14px;
  color: var(--ink);
  font-weight: 700;
  padding-left: 16px;
  border-left: 3px solid var(--lc, var(--gold));
}
.layer-body h4:first-child { margin-top: 0; }
.layer-body p {
  margin: 12px 0;
  color: var(--ink-soft);
}
.layer-body p strong {
  color: var(--lc, var(--gold));
  font-weight: 700;
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--lc, var(--gold)) 16%, transparent) 0);
}

/* 术 列表 */
.shu-list {
  background: var(--c-shu-tint);
  border: 1px solid color-mix(in srgb, var(--c-shu) 22%, var(--line));
  border-radius: 4px;
  padding: 8px 4px;
  margin: 6px 0;
}
.shu-list ul { list-style: none; margin: 0; padding: 0; }
.shu-list li {
  position: relative;
  padding: 14px 24px 14px 44px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
}
.shu-list li + li { border-top: 1px dashed color-mix(in srgb, var(--c-shu) 24%, transparent); }
.shu-list li::before {
  content: "";
  position: absolute;
  left: 22px; top: 22px;
  width: 8px; height: 8px;
  background: var(--c-shu);
  transform: rotate(45deg);
}
.shu-list li strong { color: var(--ink); font-weight: 700; }

/* 器 标签 */
.qi-list { margin: 6px 0; }
.qi-list ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.qi-list li {
  font-size: 14px;
  color: var(--c-qi);
  background: var(--c-qi-tint);
  border: 1px solid color-mix(in srgb, var(--c-qi) 30%, transparent);
  padding: 6px 16px;
  border-radius: 40px;
  letter-spacing: .5px;
}

/* ============================================================
   金句：设计感引用块
   ============================================================ */
.quotes {
  position: relative;
  margin: 48px 0 8px;
  padding: 36px 40px 34px;
  background:
    linear-gradient(180deg, var(--gold-tint), var(--card));
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  overflow: hidden;
}
.quotes::before {
  content: "\201C";
  position: absolute;
  top: -34px; right: 18px;
  font-family: var(--serif);
  font-size: 200px;
  line-height: 1;
  color: var(--gold);
  opacity: .12;
  pointer-events: none;
}
.quotes-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 8px;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 22px;
}
.quotes-title::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
}
.quotes blockquote {
  position: relative;
  margin: 0;
  padding: 13px 0 13px 26px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.78;
  letter-spacing: .3px;
}
.quotes blockquote + blockquote { border-top: 1px dashed var(--gold-soft); }
.quotes blockquote::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ============================================================
   跨内容连接（综合）
   ============================================================ */
section.bridge {
  margin: 40px auto 100px;
  max-width: var(--measure);
  scroll-margin-top: 28px;
}
.panel-head {
  text-align: center;
  margin-bottom: 40px;
}
.panel-head .eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 8px;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.panel-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 38px;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: 2px;
}
.panel-head .lead {
  color: var(--ink-mute);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.panel-head .ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 22px;
}
.panel-head .ornament span {
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold);
}
.panel-head .ornament i {
  height: 1px; width: 60px; background: var(--line); display: block;
}

.bridge-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 34px;
  margin: 22px 0;
}
.bridge-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.5;
  font-weight: 700;
}
.bridge-item h3::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  align-self: stretch;
  background: var(--gold);
  border-radius: 3px;
}
.bridge-item ul {
  list-style: none;
  margin: 0; padding: 0;
}
.bridge-item li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.78;
}
.bridge-item li::before {
  content: "";
  position: absolute;
  left: 2px; top: 18px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.bridge-item li strong { color: var(--ink); font-weight: 700; }
.bridge-item p {
  color: var(--ink-soft);
  margin: 12px 0;
}
.bridge-item .tip {
  position: relative;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: 18px 22px 18px 24px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.82;
}
.bridge-item .tip::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.bridge-item .tip strong { color: var(--gold-deep); font-weight: 700; }

/* ============================================================
   行动清单（收尾）
   ============================================================ */
section.action {
  margin: 40px auto 40px;
  max-width: var(--measure);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-top: 4px solid var(--c-dao);
  border-radius: 6px;
  padding: 48px 44px 44px;
  scroll-margin-top: 28px;
}
section.action > h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 32px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: 2px;
}
.action h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 18px;
  margin: 38px 0 18px;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 2px;
}
.action h3::before {
  content: "";
  width: 30px; height: 2px; background: var(--gold);
}
.action ol, .action ul {
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.action ol li, .action ul li {
  position: relative;
  padding: 13px 0 13px 44px;
  color: var(--ink-soft);
  line-height: 1.88;
  font-size: 15.5px;
}
.action ol li + li, .action ul li + li {
  border-top: 1px dashed var(--line-soft);
}
.action ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: #fdf6e9;
  background: var(--gold);
  border-radius: 50%;
}
.action ul li::before {
  content: "";
  position: absolute;
  left: 8px; top: 23px;
  width: 8px; height: 8px;
  transform: rotate(45deg);
  border: 2px solid var(--gold);
}
.action li strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   页脚
   ============================================================ */
footer.end {
  text-align: center;
  margin: 96px auto 0;
  max-width: var(--measure);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
footer.end .seal-row {
  display: flex; justify-content: center; margin-bottom: 20px;
}
footer.end .meta {
  font-family: var(--serif);
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 6px;
}
footer.end .meta .dot { color: var(--gold); }

/* ============================================================
   滚动微动效
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 760px) {
  .wrap { padding: 56px 22px 90px; }
  .glyphs { grid-template-columns: repeat(2, 1fr); }
  .glyph .big { font-size: 48px; }
  .toc ol { columns: 1; }
  .cover-meta .row { grid-template-columns: 1fr; gap: 4px; }
  .layer { grid-template-columns: 64px 1fr; gap: 18px; }
  .layer-char { font-size: 50px; }
  .layer-marker .en, .layer-marker .sub { display: none; }
  .guest-head .idx { font-size: 44px; }
  .guest-head .name { font-size: 26px; }
  .bridge-item, section.action { padding: 26px 20px; }
  .panel-head h2 { font-size: 30px; }
}
