

:root {
  --bg: #faf7f0;
  --bg-2: #f3ecdd;
  --card: #ffffff;
  --ink: #2c2416;
  --ink-2: #5c5040;
  --ink-3: #7c7060;
  --gold: #b8964a;
  --gold-soft: rgba(184, 150, 74, 0.12);
  --red: #8b3a3a;
  --red-deep: #6b2a2a;
  --green: #5b7a6a;
  --line: #e6dcc8;
  --line-2: #d9cbb0;
  --cream: #f0e8d8;
  --shadow-sm: 0 2px 14px rgba(28, 20, 12, 0.05);
  --shadow-md: 0 10px 30px rgba(28, 20, 12, 0.08);
  --shadow-lg: 0 18px 50px rgba(28, 20, 12, 0.1);
  --radius: 14px;
  --radius-lg: 20px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --kai: "Kaiti SC", KaiTi, STKaiti, "Noto Serif SC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1060px;
  --head-h: 64px;
}

body.dark {
  --bg: #16120e;
  --bg-2: #1c1814;
  --card: #221e18;
  --ink: #e8dcc8;
  --ink-2: #c4b896;
  --ink-3: #9b8e7c;
  --line: #3a3028;
  --line-2: #4a4030;
  --cream: #2a241e;
  --gold-soft: rgba(212, 160, 64, 0.14);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--head-h) + 14px); }
body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: var(--head-h);
  transition: background 0.4s, color 0.4s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { display: block; }
svg.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.ic-f { fill: currentColor; stroke: none; }
.ubtn svg { width: 16px; height: 16px; }
.mact { background: none; border: none; padding: 0; font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: color 0.3s; }
.mact:hover { color: var(--red); }
::selection { background: rgba(139, 58, 58, 0.22); }

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 3000;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-size: 0.88rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}
body.dark :focus-visible { outline-color: var(--gold); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 15% 20%, rgba(28, 20, 12, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 85% 75%, rgba(28, 20, 12, 0.5) 1px, transparent 1px);
  background-size: 180px 180px, 200px 200px;
}
body.dark::before { opacity: 0.25; }

.pbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  z-index: 1001;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
body.dark .header { background: rgba(22, 18, 14, 0.9); }
.header.scrolled {
  height: 56px;
  background: rgba(250, 247, 240, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(28, 20, 12, 0.05);
}
body.dark .header.scrolled { background: rgba(22, 18, 14, 0.96); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo .icon { width: 26px; height: 26px; color: var(--red); transition: transform 0.5s var(--ease); }
.logo:hover .icon { transform: rotate(-10deg) scale(1.2); }
.logo span { font-size: 1.25rem; font-weight: 900; letter-spacing: 2px; }
.head-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); background: rgba(139, 58, 58, 0.07); }
body.dark .nav-links a:hover, body.dark .nav-links a.active { background: rgba(212, 160, 64, 0.12); color: var(--gold); }

.ubtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s var(--ease);
  flex: none;
}
.ubtn:hover { background: var(--red-deep); transform: scale(1.08); }
.udrop {
  position: absolute;
  top: calc(var(--head-h) - 4px);
  right: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  min-width: 152px;
  display: none;
  z-index: 1002;
}
.udrop.show { display: block; }
.udrop a { display: flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 0.88rem; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.udrop a:hover { background: var(--bg-2); color: var(--red); }
.udrop a svg { width: 15px; height: 15px; }

.mbtn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  justify-content: center;
  align-items: center;
}
.mbtn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.35s var(--ease); }
.mbtn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mbtn.active span:nth-child(2) { opacity: 0; }
.mbtn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mnav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(250, 247, 240, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
body.dark .mnav { background: rgba(22, 18, 14, 0.98); }
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav a {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 13px 28px;
  border-radius: 30px;
  color: var(--ink);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s, color 0.3s;
}
.mnav.open a { transform: translateY(0); opacity: 1; }
.mnav.open a:nth-child(1) { transition-delay: 0.05s; }
.mnav.open a:nth-child(2) { transition-delay: 0.1s; }
.mnav.open a:nth-child(3) { transition-delay: 0.15s; }
.mnav.open a:nth-child(4) { transition-delay: 0.2s; }
.mnav.open a:nth-child(5) { transition-delay: 0.25s; }
.mnav.open a:nth-child(6) { transition-delay: 0.3s; }
.mnav.open a:nth-child(7) { transition-delay: 0.35s; }
.mnav.open a:nth-child(8) { transition-delay: 0.4s; }
.mnav a:hover { color: var(--red); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--head-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 60% 40%, var(--gold-soft) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(91, 122, 106, 0.06) 0%, transparent 50%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
}
.herop { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.herop div {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: drift linear infinite;
  opacity: 0;
}
@keyframes drift {
  0% { transform: translateY(105vh) scale(0); opacity: 0; }
  15% { opacity: 0.5; }
  85% { opacity: 0.3; }
  100% { transform: translateY(-10vh) translateX(40px) scale(1.2); opacity: 0; }
}
.hc { position: relative; z-index: 1; max-width: 640px; }
.hc .seal-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.hc .seal-row span {
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 3px;
  padding: 3px 12px 3px 15px;
  border-radius: 3px;
}
body.dark .hc .seal-row span { color: var(--gold); border-color: var(--gold); }
.hc h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1.25;
  margin-bottom: 18px;
}
.hc h1 .ch { display: inline-block; animation: chin 0.55s var(--ease) forwards; opacity: 0; transform: translateY(30px); }
@keyframes chin { to { opacity: 1; transform: translateY(0); } }
.hero .sub {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.9;
  animation: fu 0.8s 0.6s var(--ease) forwards;
  opacity: 0;
  transform: translateY(20px);
}
.hero .btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fu 0.8s 0.9s var(--ease) forwards;
  opacity: 0;
  transform: translateY(20px);
}
@keyframes fu { to { opacity: 1; transform: translateY(0); } }

.sec { position: relative; z-index: 1; padding: clamp(56px, 8vw, 88px) 16px; }
.sec.bw { background: var(--card); }
.sec.bp { background: var(--bg); }
.si { max-width: var(--maxw); margin: 0 auto; }
.st { text-align: center; margin-bottom: clamp(34px, 5vw, 52px); }
.st .tag {
  display: block;
  font-size: 0.76rem;
  color: var(--gold);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.st h2 {
  display: inline-block;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 3px;
}
.st h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 0;
  border-radius: 2px;
}
.st .desc { margin-top: 14px; font-size: 0.9rem; color: var(--ink-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s, border-color 0.3s;
}
.btn svg { width: 15px; height: 15px; }
.btn-d { background: var(--ink); color: #fff; }
body.dark .btn-d { background: var(--gold); color: #1c1814; }
.btn-d:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28, 20, 12, 0.2); }
body.dark .btn-d:hover { background: var(--red); color: #fff; }
.btn-l { background: transparent; color: var(--ink); border: 2px solid var(--line-2); }
.btn-l:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }
body.dark .btn-l { color: var(--ink); }
body.dark .btn-l:hover { background: var(--ink); color: var(--bg); }

.rv, .rl, .rr, .rs { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv { transform: translateY(30px); }
.rl { transform: translateX(-30px); }
.rr { transform: translateX(30px); }
.rs { transform: scale(0.94); }
.rv.on, .rl.on, .rr.on, .rs.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

.ag { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 48px); align-items: center; }
.ag p { margin-bottom: 14px; color: var(--ink-2); font-size: 0.98rem; }
.art-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(184, 150, 74, 0.18), transparent 55%),
    radial-gradient(circle at 25% 80%, rgba(91, 122, 106, 0.14), transparent 50%),
    linear-gradient(150deg, var(--cream), var(--bg-2));
  border: 10px solid var(--cream);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease);
}
.art-panel:hover { transform: translateY(-6px); }
.art-panel svg { width: 62%; height: auto; color: var(--red); }
body.dark .art-panel svg { color: var(--gold); }
.art-panel .art-cap {
  position: absolute;
  bottom: 12px; left: 14px;
  font-family: var(--kai);
  font-size: 0.85rem;
  color: var(--ink-3);
  letter-spacing: 2px;
}

.sw { position: relative; max-width: 480px; margin: 0 auto 30px; }
.sw input {
  width: 100%;
  padding: 13px 46px 13px 22px;
  border: 2px solid var(--line);
  border-radius: 30px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sw input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-soft); }
.sw .s-ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.sr {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 360px;
  overflow-y: auto;
  z-index: 60;
}
.sr.show { display: block; }
.sr .item { padding: 12px 18px; border-bottom: 1px solid var(--cream); cursor: pointer; transition: background 0.2s; }
.sr .item:last-child { border-bottom: none; }
.sr .item:hover { background: var(--bg-2); }
.sr .item .tt { font-weight: 700; color: var(--red); font-size: 0.95rem; }
.sr .item .mm { font-size: 0.76rem; color: var(--ink-3); margin-top: 2px; }
.sr .hint, .sr .loading { padding: 14px; text-align: center; color: var(--ink-3); font-size: 0.85rem; }
.hl { background: rgba(184, 150, 74, 0.32); font-weight: 700; border-radius: 2px; }

.fs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.fs button {
  padding: 8px 20px;
  border-radius: 25px;
  border: 1.5px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.fs button.on, .fs button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
body.dark .fs button.on, body.dark .fs button:hover { background: var(--gold); color: #1c1814; border-color: var(--gold); }

.wg { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.wc {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.wc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.wci { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--cream); }
.wci svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.wc:hover .wci svg { transform: scale(1.05); }
.wcbadge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(139, 58, 58, 0.92);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 1px;
}
.wcb { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.wcb h3 { color: var(--red); font-size: 1.05rem; margin-bottom: 6px; }
body.dark .wcb h3 { color: var(--gold); }
.wcm { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 10px; }
.wce { font-size: 0.87rem; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wcs { display: flex; gap: 16px; margin-top: 14px; font-size: 0.8rem; color: var(--ink-3); }
.wcs span { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: color 0.3s; background: none; border: none; padding: 0; font-family: inherit; }
.wcs span:hover, .wcs span.liked { color: var(--red); }
.wcs svg { width: 14px; height: 14px; }
.empty-grid { text-align: center; color: var(--ink-3); grid-column: 1 / -1; padding: 60px 20px; font-family: var(--kai); }
#loadMoreWrap { text-align: center; margin-top: 28px; }

.el { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 0 auto; }
.ec {
  display: flex;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.ec:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ed {
  background: linear-gradient(145deg, #3a2a18, #5a4030);
  color: #fff;
  padding: 20px;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.ed .day { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ed .mon { font-size: 0.78rem; letter-spacing: 2px; margin-top: 4px; opacity: 0.85; }
.eb { padding: 18px 22px; flex: 1; display: flex; flex-direction: column; }
.eb h3 { color: var(--red); margin-bottom: 4px; font-size: 1.08rem; }
body.dark .eb h3 { color: var(--gold); }
.eb p { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 3px; }
.eb p strong { color: var(--ink-3); font-weight: 600; }
.cdw { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }
.cdw > div {
  background: var(--card);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 46px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}
.cdw .val { font-weight: 700; color: var(--red); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
body.dark .cdw .val { color: var(--gold); }
.cdw .lbl { font-size: 0.68rem; color: var(--ink-3); }
.ev-note { text-align: center; font-size: 0.78rem; color: var(--ink-3); margin-top: 18px; }

.mg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.mc {
  background: var(--card);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.mc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.mc:hover::before { transform: scaleX(1); }
.mc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mav {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #fff;
  border: 4px solid var(--cream);
  font-weight: 700;
  transition: transform 0.4s var(--ease);
}
.mc:hover .mav { transform: scale(1.08) rotate(-6deg); }
.mc h3 { font-size: 1.05rem; margin-bottom: 2px; }
.mrole { color: var(--red); font-size: 0.82rem; font-style: italic; margin-bottom: 8px; }
body.dark .mrole { color: var(--gold); }
.mq { color: var(--ink-3); font-size: 0.85rem; font-style: italic; }
.mbio { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 0.8rem; color: var(--ink-3); }

.fc {
  background: var(--cream);
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.fc h3 { text-align: center; color: var(--red); margin-bottom: 24px; font-size: 1.12rem; letter-spacing: 2px; }
body.dark .fc h3 { color: var(--gold); }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-weight: 700; font-size: 0.82rem; margin-bottom: 5px; color: var(--ink-2); }
.fg input, .fg textarea, .fg select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}
.fg textarea { min-height: 140px; resize: vertical; }
.fok {
  display: none;
  background: rgba(91, 122, 106, 0.15);
  border: 1px solid rgba(91, 122, 106, 0.4);
  color: var(--green);
  padding: 12px;
  border-radius: 10px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}
body.dark .fok { color: #8fb8a3; }

.pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pc {
  background: var(--card);
  padding: 24px 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.pc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.pc .pico {
  width: 46px; height: 46px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc .pico svg { width: 21px; height: 21px; }
.pc h3 { font-size: 0.95rem; color: var(--red); margin-bottom: 4px; }
body.dark .pc h3 { color: var(--gold); }
.pc p { font-size: 0.76rem; color: var(--ink-3); flex: 1; margin-bottom: 10px; }
.pc .lt { font-weight: 700; font-size: 0.78rem; color: var(--ink-2); }
.pc:hover .lt { color: var(--red); }

.cg { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 44px); align-items: start; }
.ci h3 { margin-bottom: 10px; font-size: 1.15rem; }
.ci > p { color: var(--ink-2); margin-bottom: 20px; font-size: 0.92rem; }
.cit { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; transition: transform 0.3s var(--ease); }
.cit:hover { transform: translateX(6px); }
.cii {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a2a18, #5a4030);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.4s var(--ease);
}
.cii svg { width: 15px; height: 15px; }
.cit:hover .cii { transform: scale(1.1) rotate(4deg); }
.cit h4 { font-size: 0.88rem; margin-bottom: 2px; }
.cit p { font-size: 0.82rem; color: var(--ink-2); }
.cit a { color: var(--red); font-weight: 600; }
body.dark .cit a { color: var(--gold); }
.cit a:hover { text-decoration: underline; }

footer {
  background: #1c1814;
  color: #d4c8b0;
  text-align: center;
  padding: 50px 16px 30px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
footer h3 { font-size: 1.3rem; letter-spacing: 4px; margin-bottom: 4px; }
footer .tl { font-size: 0.82rem; letter-spacing: 3px; color: var(--ink-3); margin-bottom: 22px; }
.fsoc { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.fsoc a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #c4b896;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.fsoc a:hover { background: var(--red); color: #fff; transform: translateY(-4px); border-color: var(--red); }
.fsoc svg { width: 16px; height: 16px; }
footer .copy { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 16px; font-size: 0.76rem; color: var(--ink-3); }

.btop, .dkbtn {
  position: fixed;
  border: none;
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s, transform 0.35s var(--ease), background 0.3s;
}
.btop {
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(28, 20, 12, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}
.btop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.btop:hover { background: var(--red); transform: translateY(-4px); }
.btop svg { width: 16px; height: 16px; }
.dkbtn {
  bottom: 76px; right: 24px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.dkbtn:hover { transform: scale(1.1); }
.dkbtn svg { width: 16px; height: 16px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 14, 8, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s var(--ease);
}
.modal.open .modal-box { transform: translateY(0) scale(1); }
.mclose {
  position: absolute;
  top: 12px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(139, 58, 58, 0.08);
  color: var(--red);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s var(--ease);
  line-height: 1;
}
.mclose:hover { background: rgba(139, 58, 58, 0.18); transform: rotate(90deg); }
.modal-box h2 { color: var(--red); margin-bottom: 6px; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 1.3rem; padding-right: 36px; }
body.dark .modal-box h2 { color: var(--gold); }
.mmeta { font-size: 0.8rem; color: var(--ink-3); margin-bottom: 14px; }
.mart { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--cream); }
.mart svg { width: 100%; height: 100%; }
.mbody { line-height: 1.95; font-size: 0.95rem; color: var(--ink-2); }
.mbody p { margin-bottom: 12px; text-indent: 2em; }
.mbody p:empty { display: none; }
.macts {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-3);
}
.macts button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.macts button:hover { color: var(--red); }
.macts button.on { color: var(--red); font-weight: 700; }
.macts button.on.gold { color: var(--gold); }
.macts svg { width: 15px; height: 15px; }
#comments-section { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--line); }
#comments-section h4 { margin-bottom: 10px; font-size: 0.95rem; }
.comment-item { padding: 10px 0; border-bottom: 1px solid var(--cream); }
.comment-item:last-of-type { border-bottom: none; }
.comment-item strong { font-size: 0.88rem; }
.comment-item .cmt-time { color: var(--ink-3); font-size: 0.72rem; margin-left: 6px; }
.comment-item .cmt-content { margin-top: 4px; font-size: 0.88rem; color: var(--ink-2); }
.cmt-input-row { display: flex; gap: 6px; margin-top: 12px; }
.cmt-input-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--card);
  color: var(--ink);
}
.cmt-input-row input:focus { outline: none; border-color: var(--gold); }
.cmt-input-row .btn { padding: 8px 18px; font-size: 0.82rem; white-space: nowrap; }
.cmt-login-hint { color: var(--ink-3); margin-top: 10px; font-size: 0.85rem; }
.cmt-login-hint a { color: var(--red); font-weight: 600; }
body.dark .cmt-login-hint a { color: var(--gold); }

.qr-pattern {
  width: 150px; height: 150px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  padding: 10px;
  background: #fff;
  border: 6px solid var(--cream);
  border-radius: 10px;
}
.qr-pattern i { background: transparent; border-radius: 1px; }
.qr-pattern i.b { background: #1c1814; }

.toast {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s, transform 0.35s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-ok { background: var(--green); }
.toast-err { background: var(--red); }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 30px;
}
.login-card .logo { justify-content: center; margin-bottom: 8px; }
.login-card .logo span { font-size: 1.15rem; }
.login-sub { text-align: center; font-size: 0.82rem; color: var(--ink-3); margin-bottom: 26px; letter-spacing: 1px; }
.login-tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 30px; margin-bottom: 24px; }
.login-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.login-tabs button.on { background: var(--card); color: var(--red); box-shadow: var(--shadow-sm); }
.login-note {
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--ink-3);
  background: var(--bg-2);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}
.login-back { display: block; text-align: center; margin-top: 18px; font-size: 0.84rem; color: var(--ink-3); }
.login-back:hover { color: var(--red); }

@media (max-width: 1024px) {
  .wg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .mg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .pg { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mbtn { display: flex; }
  .sec { padding: 52px 14px; }
  .ag, .cg { grid-template-columns: 1fr; gap: 28px; }
  .art-panel { aspect-ratio: 3 / 2; order: -1; }
  .wg { grid-template-columns: 1fr; gap: 14px; }
  .mg { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pg { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fr { grid-template-columns: 1fr; }
  .ec { flex-direction: column; }
  .ed { flex-direction: row; gap: 8px; padding: 12px; min-width: auto; }
  .ed .day { font-size: 1.5rem; }
  .hero { min-height: 78vh; padding-top: 70px; }
  .hc h1 { letter-spacing: 3px; }
  .hero .sub { font-size: 0.88rem; }
  .btop { bottom: 16px; right: 14px; width: 38px; height: 38px; }
  .dkbtn { bottom: 62px; right: 14px; width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  .mg { grid-template-columns: 1fr; }
  .pg { grid-template-columns: 1fr; }
  .hero .btns { flex-direction: column; align-items: stretch; }
  .hc h1 { font-size: 1.75rem; letter-spacing: 2px; }
  .logo span { font-size: 1.05rem; }
  .macts { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.src-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  background: var(--card);
  white-space: nowrap;
}
.src-badge.src-on { color: var(--green); border-color: rgba(91, 122, 106, 0.45); }
.src-badge.src-managed { color: var(--gold); border-color: rgba(184, 150, 74, 0.55); }
.src-badge.src-loading { color: var(--gold); border-color: rgba(184, 150, 74, 0.45); }
.src-badge.src-loading::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 6px;
  animation: pulse 1s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

.sk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sk-art { aspect-ratio: 4 / 3; }
.sk-line { height: 14px; margin: 14px 20px 0; border-radius: 4px; }
.sk-line.short { width: 45%; margin-bottom: 18px; }
.sk-art, .sk-line {
  background: linear-gradient(90deg, var(--cream) 25%, var(--bg-2) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.like-btn, .bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s;
}
.like-btn:hover, .bookmark-btn:hover, .like-btn.liked, .bookmark-btn.liked { color: var(--red); }
.wk-acts .like-btn, .wk-acts .bookmark-btn { font-size: 0.9rem; color: var(--ink-2); }
.wk-acts .like-btn .n, .wk-acts .bookmark-btn .n { font-variant-numeric: tabular-nums; }

.wc-date { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.works-all { text-align: center; color: var(--ink-3); font-size: 0.85rem; margin: 18px 0 0; }
.cmt-empty { color: var(--ink-3); font-size: 0.85rem; padding: 6px 0; }

.pf-head { text-align: center; padding: 16px 0 6px; }
.pf-av {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 12px;
}
.pf-head h3 { font-size: 1.15rem; }
.pf-mail { color: var(--ink-3); font-size: 0.82rem; }
.pf-stats { display: flex; gap: 36px; justify-content: center; padding: 16px 0; border-top: 1px solid var(--line); }
.pf-stats strong { font-size: 1.25rem; color: var(--red); }
body.dark .pf-stats strong { color: var(--gold); }
.pf-stats small { color: var(--ink-3); }
.pf-note { font-size: 0.78rem; color: var(--ink-3); margin-top: 8px; }

.qr-title { color: var(--red); margin-bottom: 14px; font-size: 1.05rem; }
body.dark .qr-title { color: var(--gold); }
.qr-desc { font-size: 0.85rem; color: var(--ink-2); }

.wk { max-width: 780px; margin: 0 auto; padding: 34px 20px 70px; position: relative; z-index: 1; }
.wk-crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.wk-crumb a { text-decoration: none; }
.wk-crumb a:hover { color: var(--red); }
.wk-loading { padding: 30px 0; }
.wk-loading-tip { text-align: center; color: var(--ink-3); font-size: 0.85rem; margin-top: 16px; font-family: var(--kai); }
.wk-title { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: 0.04em; margin: 0 0 8px; line-height: 1.4; }
.wk-meta { color: var(--ink-3); font-size: 0.88rem; margin: 0 0 24px; }
.wk-art { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); background: var(--cream); }
.wk-art svg { width: 100%; height: 100%; }
.wk-body { font-size: 1.02rem; line-height: 2.05; color: var(--ink-2); }
.wk-body p { margin: 0 0 1.15em; text-indent: 2em; }
.wk-acts { display: flex; gap: 28px; margin: 28px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wk-acts svg, .macts svg { width: 16px; height: 16px; flex: none; }
.wk-nav { display: flex; justify-content: space-between; gap: 12px; margin: 34px 0 10px; }
.wk-nav .btn { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-related { margin-top: 46px; }
.wk-related h3 { font-size: 1.05rem; letter-spacing: 0.12em; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.wk-related h3::before { content: ""; width: 5px; height: 16px; background: var(--gold); }
.wk-related .shelf { border-bottom: 3px solid var(--line); }

.journal-hero { position: relative; z-index: 1; padding-top: 20px; }
.jlist {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 16px 70px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.jissue {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.jissue:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.jno {
  background: linear-gradient(150deg, var(--cream), var(--bg-2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 10px;
  border-right: 1px solid var(--line);
}
.jno-n { font-size: 1.45rem; font-weight: 800; color: var(--red); letter-spacing: 0.05em; }
body.dark .jno-n { color: var(--gold); }
.jno-d { font-size: 0.74rem; color: var(--ink-3); margin-top: 4px; }
.jbody { padding: 20px 24px; }
.jbody h3 { font-size: 1.15rem; margin: 0 0 10px; }
.jpieces { list-style: none; margin: 0 0 14px; padding: 0; }
.jpieces li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.jpieces li:last-child { border-bottom: none; }
.jp-t { font-weight: 700; }
.jp-m { color: var(--ink-3); font-size: 0.8rem; flex: 1; }
.jp-p { color: var(--gold); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.jdl { cursor: pointer; }

.nf { min-height: 60vh; display: grid; place-items: center; padding: 60px 20px; position: relative; z-index: 1; text-align: center; }
.nf-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 900; color: var(--red); line-height: 1; margin: 0; letter-spacing: 0.1em; }
body.dark .nf-code { color: var(--gold); }
.nf-title { font-size: 1.25rem; margin: 14px 0 8px; }
.nf-desc { color: var(--ink-3); font-size: 0.9rem; margin: 0 0 26px; }

@media (max-width: 640px) {
  .jissue { grid-template-columns: 1fr; }
  .jno { flex-direction: row; gap: 10px; border-right: none; border-bottom: 1px solid var(--line); padding: 12px; }
  .wk-acts { gap: 20px; }
  .wk-nav { flex-direction: column; }
  .wk-nav .btn { max-width: 100%; }
}

.share-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; margin: 0; font-family: inherit; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; transition: color 0.3s; }
.share-btn:hover { color: var(--gold); }
.share-btn svg { width: 15px; height: 15px; }

@media print {
  body::before, .header, .mnav, .pbar, .site-foot, footer, .btop, .dkbtn,
  .wk-crumb, .wk-art, .wk-acts, .wk-nav, .wk-related, #comments-section,
  .toast, .modal, .udrop, .user-drop { display: none !important; }
  body { background: #fff; color: #000; padding-top: 0; }
  .wk { max-width: 100%; padding: 0; }
  .wk-body { font-size: 12pt; line-height: 1.9; color: #000; }
  .wk-body p { text-indent: 2em; }
  .wk-title { font-size: 18pt; }
}

.ad { max-width: 980px; margin: 0 auto; padding: 36px 20px 80px; position: relative; z-index: 1; }

.ad-gate { min-height: 60vh; place-items: center; text-align: center; }
.ad-gate-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 36px;
  max-width: 420px;
}
.ad-gate-box svg { width: 40px; height: 40px; color: var(--red); margin: 0 auto 14px; }
.ad-gate-box h2 { font-size: 1.3rem; margin-bottom: 8px; }
.ad-gate-box p { color: var(--ink-3); font-size: 0.88rem; margin-bottom: 22px; }

.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ad-head h1 { font-size: 1.6rem; letter-spacing: 0.08em; }
.ad-sub { font-size: 0.82rem; color: var(--ink-3); margin-top: 4px; }
.ad-head-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-mode { font-size: 0.82rem; color: var(--ink-3); }
.ad-mode strong { color: var(--gold); }

.ad-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 0; margin-bottom: 24px; }
.ad-tabs button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-3);
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.25s, border-color 0.25s;
}
.ad-tabs button:hover { color: var(--ink); }
.ad-tabs button.on { color: var(--red); border-bottom-color: var(--red); }
body.dark .ad-tabs button.on { color: var(--gold); border-bottom-color: var(--gold); }

.ad-panel { display: none; }
.ad-panel.on { display: block; }

.ad-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ad-count { font-size: 0.82rem; color: var(--ink-3); }

.ad-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ad-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
.ad-table th {
  text-align: left;
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  background: var(--bg-2);
  white-space: nowrap;
}
.ad-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ad-table tr:last-child td { border-bottom: none; }
.ad-table tbody tr:hover { background: var(--bg-2); }
.ad-ops { white-space: nowrap; }
.ad-empty { text-align: center; color: var(--ink-3); padding: 26px; font-family: var(--kai); }

.ad-mini {
  font-family: inherit;
  font-size: 0.78rem;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 6px;
  padding: 3px 10px;
  margin-right: 6px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.ad-mini:hover { border-color: var(--ink); color: var(--ink); }
.ad-mini.danger:hover { border-color: var(--red); color: var(--red); background: rgba(139, 58, 58, 0.06); }

.ad-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.ad-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ad-item-head strong { font-size: 0.98rem; }
.ad-item label, .ad-editor label { display: block; font-size: 0.8rem; color: var(--ink-3); margin-bottom: 10px; }
.ad-item label:last-child, .ad-editor label:last-child { margin-bottom: 0; }
.ad-item input, .ad-item textarea, .ad-item select,
.ad-editor input, .ad-editor textarea, .ad-editor select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ad-item input:focus, .ad-item textarea:focus, .ad-item select:focus,
.ad-editor input:focus, .ad-editor textarea:focus, .ad-editor select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.ad-item textarea, .ad-editor textarea { resize: vertical; min-height: 56px; line-height: 1.7; }
.ad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ad-item input[type="color"] { padding: 4px; height: 36px; cursor: pointer; }

.ad-data { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.ad-data h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ad-tip { font-size: 0.84rem; color: var(--ink-3); margin-bottom: 14px; }
.ad-rec { font-size: 0.85rem; padding: 9px 12px; background: var(--bg-2); border-radius: 8px; margin-bottom: 8px; color: var(--ink-2); }

.ad-editor-mask {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(20, 14, 8, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ad-editor-mask.open { opacity: 1; pointer-events: auto; }
.ad-editor {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 94vw);
  background: var(--bg);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(102%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.ad-editor-mask.open .ad-editor { transform: none; }
.ad-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.ad-editor-body { flex: 1; overflow-y: auto; padding: 20px; }
.ad-editor-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.ad-editor-foot .btn { width: 100%; }

@media (max-width: 760px) {
  .ad { padding: 24px 14px 70px; }
  .ad-grid2 { grid-template-columns: 1fr; }
  .ad-head { flex-direction: column; }
  .ad-tabs button { padding: 9px 12px; font-size: 0.88rem; }
}

.tab-pane { display: none; }
.tab-pane.on { display: block; }
.code-row { display: flex; gap: 8px; align-items: flex-end; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; }
.link-btn {
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 4px;
}
.link-btn:hover { color: var(--red); }
.login-msg { font-size: 0.85rem; min-height: 20px; margin: 10px 0 0; color: var(--green); }
.login-msg.err { color: var(--red); }
.ad-cloud {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 10px;
}
.ad-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.ad-dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(91, 122, 106, 0.18); }
.ad-dot.warn { background: var(--gold); }

.stats-strip {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: -6px auto 0;
  padding: 0 24px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat {
  text-align: center;
  padding: 22px 8px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
body.dark .stat b { color: var(--gold); }
.stat span { font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.08em; }

.notice-bar {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 24px;
}
.notice-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(100deg, var(--gold-soft), transparent 70%);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
}
.notice-tag {
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
  padding-top: 3px;
}
.notice-list { flex: 1; display: grid; gap: 6px; }
.notice-list li {
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  line-height: 1.6;
}
.notice-list time { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; font-size: 0.78rem; padding-top: 2px; }

.preface {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.preface-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}
.preface-card::before {
  content: "“";
  position: absolute;
  top: -18px;
  left: 18px;
  font-size: 9rem;
  color: var(--red);
  opacity: 0.07;
  font-family: Georgia, serif;
  line-height: 1;
}
.preface-tag { font-size: 0.74rem; letter-spacing: 0.24em; color: var(--gold); font-weight: 700; }
.preface-card h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 10px 0 18px; letter-spacing: 0.06em; }
.preface-card p {
  font-size: 1rem;
  line-height: 2.05;
  color: var(--ink-2);
  text-indent: 2em;
  margin-bottom: 0.9em;
}
.preface-sign { text-align: right; font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.06em; margin-top: 6px; }

.timeline { position: relative; margin-top: 8px; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--line-2), var(--line));
}
.tl-item { position: relative; padding: 0 0 26px 6px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.tl-year { font-size: 0.82rem; font-weight: 800; color: var(--red); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
body.dark .tl-year { color: var(--gold); }
.tl-title { font-size: 1rem; font-weight: 700; margin: 3px 0 4px; }
.tl-desc { font-size: 0.86rem; color: var(--ink-3); line-height: 1.8; }

.honor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.honor-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.honor-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.honor-year { flex: none; font-size: 0.8rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: 2px; }
.honor-title { font-size: 0.9rem; font-weight: 700; line-height: 1.5; }
.honor-org { font-size: 0.76rem; color: var(--ink-3); margin-top: 3px; }

.quote-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.quote-card {
  background: linear-gradient(160deg, var(--cream), var(--card) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
}
.quote-card p { font-size: 0.92rem; line-height: 1.9; color: var(--ink-2); font-family: var(--kai); }
.quote-card cite { display: block; margin-top: 10px; font-size: 0.78rem; color: var(--ink-3); font-style: normal; text-align: right; }

.column-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.column-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.column-item h3 { font-size: 0.98rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.column-item h3::before { content: ""; width: 4px; height: 14px; background: var(--red); border-radius: 1px; }
body.dark .column-item h3::before { background: var(--gold); }
.column-item p { font-size: 0.82rem; color: var(--ink-3); line-height: 1.75; }

.past-list { display: grid; gap: 10px; }
.past-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.past-date { font-size: 0.78rem; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.past-item h3 { font-size: 0.95rem; margin-bottom: 4px; }
.past-item p { font-size: 0.82rem; color: var(--ink-3); line-height: 1.75; }

.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 26px;
}
.foot-cols h4 { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 12px; font-weight: 700; }
.foot-cols ul { list-style: none; display: grid; gap: 8px; }
.foot-cols a { font-size: 0.84rem; opacity: 0.72; transition: opacity 0.2s; }
.foot-cols a:hover { opacity: 1; }
.foot-brand p { font-size: 0.82rem; opacity: 0.6; line-height: 1.9; }

.wlib-hero { text-align: center; padding: clamp(28px, 5vw, 44px) 16px 8px; position: relative; z-index: 1; }
.wlib-hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: 0.1em; }
.wlib-hero p { color: var(--ink-3); font-size: 0.88rem; margin-top: 8px; }
.wlib-bar {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.wlib-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.wlib-filters button {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 99px;
  padding: 6px 16px;
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.25s;
}
.wlib-filters button.on { background: var(--red); border-color: var(--red); color: #fff; }
body.dark .wlib-filters button.on { background: var(--gold); border-color: var(--gold); color: #1b1611; }
.wlib-tools { display: flex; gap: 10px; align-items: center; }
.wlib-tools input, .wlib-tools select {
  border: 1.5px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.85rem;
}
.wlib-grid {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.wlib-more { text-align: center; padding: 30px 0 0; }

.guide-wrap { max-width: 860px; margin: 0 auto; padding: 20px 22px 80px; position: relative; z-index: 1; }
.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.guide-card h2 { font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.guide-card h2::before { content: ""; width: 5px; height: 18px; background: var(--red); border-radius: 2px; }
body.dark .guide-card h2::before { background: var(--gold); }
.guide-card p, .guide-card li { font-size: 0.92rem; line-height: 1.95; color: var(--ink-2); }
.guide-card ul { padding-left: 1.2em; display: grid; gap: 8px; }
.guide-steps { display: grid; gap: 0; }
.guide-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.guide-step:last-child { border-bottom: none; }
.guide-step b {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
body.dark .guide-step b { background: var(--gold); color: #1b1611; }
.guide-step h3 { font-size: 0.98rem; margin-bottom: 3px; }
.guide-step p { font-size: 0.85rem; color: var(--ink-3); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  font-family: inherit; font-size: 0.95rem; font-weight: 700; color: var(--ink);
  padding: 14px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
}
.faq-q::after { content: "+"; color: var(--gold); font-weight: 400; transition: transform 0.25s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; font-size: 0.88rem; color: var(--ink-3); line-height: 1.9; padding-bottom: 14px; }
.faq-item.open .faq-a { display: block; }

.about-wrap { max-width: 960px; margin: 0 auto; padding: 20px 22px 80px; position: relative; z-index: 1; }
.about-lead { font-size: 1rem; line-height: 2.05; color: var(--ink-2); text-indent: 2em; }
.about-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.org-list { display: grid; gap: 10px; }
.org-item { display: grid; grid-template-columns: 88px 1fr; gap: 12px; font-size: 0.88rem; line-height: 1.8; }
.org-item b { color: var(--ink); }
.org-item span { color: var(--ink-3); }

@media (max-width: 860px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n) { border-right: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .about-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3n) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .notice-inner { flex-direction: column; gap: 8px; }
  .past-item { grid-template-columns: 1fr; gap: 4px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.author-wrap { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 80px; position: relative; z-index: 1; }
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.author-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.author-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 1.05rem; flex: none;
  font-family: var(--serif);
}
.author-name { display: block; font-weight: 700; font-size: .95rem; }
.author-meta { display: block; font-size: .75rem; color: var(--ink-3); margin-top: 2px; }
.author-head {
  display: flex; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.author-head .avatar { width: 68px; height: 68px; font-size: 1.7rem; }
.author-head h2 { font-size: 1.35rem; }
.author-head p { font-size: .86rem; color: var(--ink-3); margin-top: 4px; }
.author-stats { display: flex; gap: 24px; margin-top: 10px; }
.author-stats span { font-size: .78rem; color: var(--ink-3); }
.author-stats b { display: block; font-size: 1.15rem; color: var(--red); font-variant-numeric: tabular-nums; }
body.dark .author-stats b { color: var(--gold); }

.toc { display: grid; gap: 0; }
.toc-row {
  display: grid; grid-template-columns: 1fr 120px 56px;
  gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: .9rem; align-items: baseline;
}
.toc-row:last-child { border-bottom: none; }
.toc-row .t { font-weight: 600; }
.toc-row .a { color: var(--ink-3); font-size: .84rem; }
.toc-row .p { text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; font-size: .8rem; }
.toc-row a:hover .t { color: var(--red); }
.toc-type { font-size: .72rem; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 8px; margin-left: 8px; }

.daily-strip {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 16px auto 0; padding: 0 24px;
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
}
.daily-tag { font-size: .72rem; letter-spacing: .18em; color: var(--red); font-weight: 700; flex: none; }
body.dark .daily-tag { color: var(--gold); }
.daily-q { font-family: var(--kai); color: var(--ink-2); font-size: .92rem; line-height: 1.7; }
.daily-q cite { font-style: normal; font-size: .78rem; color: var(--ink-3); margin-left: 6px; }
.daily-work { margin-left: auto; font-size: .8rem; color: var(--gold); white-space: nowrap; }
.daily-work:hover { text-decoration: underline; }

.cmt-reply-btn {
  background: none; border: none; font-family: inherit; font-size: .74rem;
  color: var(--ink-3); cursor: pointer; padding: 0; margin-left: 10px;
}
.cmt-reply-btn:hover { color: var(--red); }
.comment-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.comment-item:last-child { border-bottom: none; }
.cmt-replies { margin: 8px 0 0 20px; padding-left: 12px; border-left: 2px solid var(--line); display: grid; gap: 0; }
.cmt-replies .comment-item { padding: 8px 0; border-bottom: none; }
.cmt-replies .cmt-content { font-size: .85rem; }
.cmt-target {
  display: none; font-size: .76rem; color: var(--gold);
  margin-bottom: 6px; align-items: center; gap: 8px;
}
.cmt-target.on { display: flex; }
.cmt-target button { background: none; border: none; color: var(--ink-3); cursor: pointer; font-size: .9rem; }

.masthead {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; flex-wrap: wrap;
  font-size: 0.7rem; letter-spacing: 0.26em;
  color: var(--ink-3); text-transform: uppercase;
  margin-bottom: 22px;
}
.masthead i { display: inline-block; width: 26px; height: 1px; background: var(--line-2); }

body { counter-reset: sec; }
.sec .st { counter-increment: sec; }
.sec .st h2 { position: relative; letter-spacing: 0.04em; }
.sec .st h2::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.72em;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-right: 12px;
  vertical-align: 0.12em;
  font-variant-numeric: tabular-nums;
}
.sec .st .tag { letter-spacing: 0.24em; }
.sec .st .desc { max-width: 560px; margin-left: auto; margin-right: auto; }

.wk-body > p:first-of-type::first-letter,
.preface-card > p:first-of-type::first-letter {
  float: left;
  font-size: 3.3em;
  line-height: 0.86;
  padding: 4px 10px 0 0;
  color: var(--red);
  font-weight: 600;
  font-family: var(--serif);
}
body.dark .wk-body > p:first-of-type::first-letter,
body.dark .preface-card > p:first-of-type::first-letter { color: var(--gold); }

.feature {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.feature-art { position: relative; background: var(--cream); overflow: hidden; }
.feature-art .wci { height: 100%; }
.feature-art .wci svg { width: 100%; height: 100%; }
.feature-body { padding: 32px 36px 32px 30px; display: flex; flex-direction: column; justify-content: center; }
.feature-tag { font-size: 0.7rem; letter-spacing: 0.24em; color: var(--gold); font-weight: 700; }
.feature-body h3 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 10px 0 6px; letter-spacing: 0.03em; }
.feature-meta { font-size: 0.82rem; color: var(--ink-3); }
.feature-ex { font-size: 0.95rem; line-height: 2; color: var(--ink-2); margin: 16px 0 10px; }
.feature-note { font-size: 0.82rem; color: var(--ink-3); font-family: var(--kai); border-left: 2px solid var(--gold); padding-left: 12px; margin-bottom: 20px; }
.feature-ops { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { height: 220px; }
  .feature-body { padding: 22px 22px 26px; }
}

.bars { display: grid; gap: 13px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 44px; gap: 14px; align-items: center; font-size: 0.84rem; }
.bar-track { height: 7px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 1.1s var(--ease); }
.bar-num { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.bars-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 22px; }
.bars-wrap h4 { font-size: 0.8rem; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 16px; text-transform: uppercase; }

.book-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.book-filters button {
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  border-radius: 99px; padding: 5px 14px; font-family: inherit; font-size: 0.82rem; cursor: pointer;
  transition: all 0.25s;
}
.book-filters button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.book-card {
  display: flex; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.book-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.book-spine {
  width: 44px; flex: none; border-radius: 3px;
  writing-mode: vertical-rl; text-align: center;
  color: #fff; font-family: var(--serif); font-size: 0.76rem;
  letter-spacing: 0.14em; padding: 10px 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset -3px 0 0 rgba(0,0,0,0.12);
}
.book-body { flex: 1; min-width: 0; }
.book-body h3 { font-size: 0.98rem; letter-spacing: 0.02em; }
.book-meta { font-size: 0.74rem; color: var(--ink-3); margin: 4px 0 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.book-meta span { border: 1px solid var(--line-2); border-radius: 99px; padding: 0 7px; }
.book-why { font-size: 0.84rem; color: var(--ink-2); line-height: 1.8; }

.lesson { border-left: 3px solid var(--gold); padding-left: 20px; margin-bottom: 34px; }
.lesson:last-child { margin-bottom: 0; }
.lesson-no { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; }
.lesson h3 { font-size: 1.12rem; margin: 6px 0 12px; letter-spacing: 0.02em; }
.lesson p { font-size: 0.92rem; line-height: 2; color: var(--ink-2); margin-bottom: 0.8em; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 12px; }
.demo-box { background: var(--bg-2); border-radius: 8px; padding: 14px 16px; font-size: 0.86rem; line-height: 1.95; color: var(--ink-2); }
.demo-box b { display: block; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 7px; }
.demo-box.after { background: var(--gold-soft); }
.tip { font-size: 0.84rem; color: var(--gold); font-family: var(--kai); }
.tip::before { content: "编辑手记 · "; letter-spacing: 0.1em; }

.rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.rev-col h4 { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--ink-3); margin-bottom: 10px; }
.rev-col p { font-size: 0.88rem; line-height: 2; color: var(--ink-2); margin-bottom: 0.7em; text-indent: 2em; }
.rev-col.after p { color: var(--ink); }
.rev-notes { display: grid; gap: 10px; }
.rev-note { display: grid; grid-template-columns: 84px 1fr; gap: 12px; font-size: 0.84rem; line-height: 1.85; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rev-note b { color: var(--gold); font-weight: 700; font-size: 0.78rem; }
.rev-note span { color: var(--ink-2); }

.iv-item { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.iv-item:last-child { border-bottom: none; }
.iv-q { font-size: 0.96rem; font-weight: 700; margin-bottom: 8px; display: flex; gap: 10px; }
.iv-q::before { content: "Q"; color: var(--red); font-family: Georgia, serif; }
.iv-a { font-size: 0.92rem; line-height: 2; color: var(--ink-2); display: flex; gap: 10px; }
.iv-a::before { content: "A"; color: var(--gold); font-family: Georgia, serif; flex: none; }
.iv-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.iv-head .avatar { width: 54px; height: 54px; font-size: 1.3rem; }
.iv-head h3 { font-size: 1.05rem; }
.iv-head p { font-size: 0.82rem; color: var(--ink-3); margin-top: 3px; }

.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gl-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.gl-term { font-size: 0.96rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; }
.gl-term i { font-size: 0.7rem; font-style: normal; color: var(--gold); letter-spacing: 0.14em; }
.gl-def { font-size: 0.84rem; color: var(--ink-2); line-height: 1.8; }
.gl-eg { font-size: 0.8rem; color: var(--ink-3); line-height: 1.8; margin-top: 8px; font-family: var(--kai); border-left: 2px solid var(--line-2); padding-left: 10px; }

.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.mt-item { background: var(--bg-2); border-radius: 8px; padding: 12px 14px; }
.mt-item b { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.mt-item span { font-size: 0.78rem; color: var(--ink-3); line-height: 1.7; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pr-item { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 14px 16px; }
body.dark .pr-item { border-left-color: var(--gold); }
.pr-item b { font-size: 0.95rem; display: block; margin-bottom: 5px; }
.pr-item span { font-size: 0.8rem; color: var(--ink-3); line-height: 1.75; }

.wk-author {
  display: flex; gap: 12px; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin: 8px 0 22px;
}
.wk-author .avatar { width: 40px; height: 40px; font-size: 1rem; }
.wk-author b { font-size: 0.9rem; }
.wk-author span { font-size: 0.78rem; color: var(--ink-3); display: block; }
.wk-author a:last-child { margin-left: auto; font-size: 0.8rem; color: var(--gold); }

@media (max-width: 720px) {
  .rev-grid, .demo { grid-template-columns: 1fr; }
  .rev-note { grid-template-columns: 1fr; gap: 2px; }
}

.logo-t { display: flex; flex-direction: column; line-height: 1.15; }
.logo-t em {
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 2px;
  white-space: nowrap;
}

.logo-mark {
  width: 36px; height: 36px;
  border-radius: 7px;
  flex: none;
  display: block;
  box-shadow: 0 1px 3px rgba(20, 14, 8, 0.18);
}
.foot-seal {
  width: 44px; height: 44px;
  border-radius: 6px;
  margin-bottom: 12px;
  opacity: 0.96;
}
.brand-seal { display: flex; gap: 26px; align-items: flex-start; }
.seal-lg {
  width: 132px; height: 132px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  flex: none;
}
.seal-meaning p { font-size: 0.86rem; line-height: 1.9; color: var(--ink-2); }
.seal-meaning b { color: var(--ink); margin-right: 6px; }
.seal-colors { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 0.78rem; color: var(--ink-3); }
.seal-colors i {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  margin-right: 5px; vertical-align: -2px; border: 1px solid var(--line-2);
}
.seal-download { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 680px) {
  .brand-seal { flex-direction: column; gap: 16px; }
  .seal-lg { width: 104px; height: 104px; }
  .logo-mark { width: 32px; height: 32px; }
}

.hero-seal {
  width: 78px; height: 78px;
  border-radius: 13px;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 12px 32px rgba(60, 30, 20, 0.24);
}
@media (max-width: 560px) { .hero-seal { width: 64px; height: 64px; border-radius: 11px; } }

.wk-body { max-width: 34em; margin-left: auto; margin-right: auto; }
.wk-body p { text-align: justify; text-justify: inter-ideograph; }
.wk-body p + p { margin-top: 0.2em; }

.sec .st h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); display: inline-block; }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px;
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 24px;
}
.wall-item { display: block; }
.wall-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(60, 40, 20, 0.16), inset -4px 0 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.wall-item:hover .wall-cover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 14px 32px rgba(60, 40, 20, 0.24), inset -4px 0 0 rgba(0, 0, 0, 0.12); }
.wall-cover svg { width: 100%; height: 100%; display: block; }
.wall-meta { margin-top: 10px; font-size: 0.78rem; color: var(--ink-3); display: flex; justify-content: space-between; }
.wall-meta b { color: var(--ink-2); font-weight: 700; }

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 22px;
}
.page { padding: 30px 32px; position: relative; min-height: 340px; }
.page + .page { border-left: 1px solid var(--line); background: linear-gradient(90deg, rgba(0,0,0,0.02), transparent 14px); }
.page-no {
  position: absolute; bottom: 14px; font-size: 0.72rem; color: var(--ink-3);
  letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
}
.page:first-child .page-no { left: 32px; }
.page + .page .page-no { right: 32px; }
.page h4 { font-size: 0.72rem; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 14px; }
.page-lead { font-family: var(--kai); font-size: 0.95rem; line-height: 2.05; color: var(--ink-2); text-indent: 2em; }
.page-lead + .page-lead { margin-top: 0.6em; }
.page-sign { text-align: right; font-size: 0.78rem; color: var(--ink-3); margin-top: 12px; }

.topic {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.topic-tag { font-size: 0.7rem; letter-spacing: 0.24em; color: var(--gold); font-weight: 700; }
.topic h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin: 8px 0 10px; letter-spacing: 0.04em; }
.topic-note { font-size: 0.9rem; line-height: 2; color: var(--ink-2); max-width: 62ch; }
.topic-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.topic-work {
  display: block; padding: 14px 16px;
  background: var(--bg-2); border-radius: 8px;
  transition: background 0.25s, transform 0.25s;
}
.topic-work:hover { background: var(--gold-soft); transform: translateY(-2px); }
.topic-work b { display: block; font-size: 0.94rem; margin-bottom: 4px; }
.topic-work span { font-size: 0.76rem; color: var(--ink-3); }

.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.geo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.geo-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--red), var(--gold));
}
.geo-name { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.04em; }
.geo-sub { font-size: 0.74rem; color: var(--ink-3); margin: 3px 0 10px; letter-spacing: 0.06em; }
.geo-desc { font-size: 0.86rem; line-height: 1.9; color: var(--ink-2); }
.geo-prompt {
  font-size: 0.82rem; line-height: 1.85; color: var(--ink-3);
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.geo-prompt b { color: var(--gold); font-weight: 700; margin-right: 6px; }

@media (max-width: 780px) {
  .spread { grid-template-columns: 1fr; }
  .page + .page { border-left: none; border-top: 1px solid var(--line); }
  .wall { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
}

@media (min-width: 1100px) {
  .wall { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
}

.contest-hero {
  text-align: center;
  padding: clamp(34px, 6vw, 56px) 22px 10px;
  position: relative; z-index: 1;
}
.contest-season { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--gold); font-weight: 700; }
.contest-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: 0.16em;
  margin: 12px 0 8px;
  font-family: var(--serif);
}
.contest-theme {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 18px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  font-size: 0.86rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.contest-lead { max-width: 600px; margin: 18px auto 0; font-size: 0.94rem; line-height: 1.95; color: var(--ink-2); }

.contest-wrap { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 80px; position: relative; z-index: 1; }
.contest-grid2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
.prize-list { display: grid; gap: 10px; }
.prize-item {
  display: grid; grid-template-columns: 74px 44px 1fr; gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 8px;
  font-size: 0.85rem;
}
.prize-rank { font-weight: 800; color: var(--red); letter-spacing: 0.06em; }
body.dark .prize-rank { color: var(--gold); }
.prize-n { font-size: 0.76rem; color: var(--ink-3); }
.prize-d { color: var(--ink-2); line-height: 1.7; }
.contest-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.contest-meta div { font-size: 0.82rem; color: var(--ink-3); }
.contest-meta b { display: block; font-size: 0.94rem; color: var(--ink); font-weight: 700; margin-top: 3px; }

.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.entry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.entry-art { height: 132px; overflow: hidden; }
.entry-art svg { width: 100%; height: 100%; }
.entry-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.entry-body h3 { font-size: 1rem; margin-bottom: 4px; }
.entry-meta { font-size: 0.76rem; color: var(--ink-3); margin-bottom: 8px; }
.entry-ex { font-size: 0.82rem; line-height: 1.8; color: var(--ink-2); flex: 1; }
.entry-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.vote-btn {
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink-2);
  border-radius: 99px;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s;
}
.vote-btn:hover { border-color: var(--red); color: var(--red); }
.vote-btn.on { background: var(--red); border-color: var(--red); color: #fff; }
body.dark .vote-btn.on { background: var(--gold); border-color: var(--gold); color: #1b1611; }
.vote-n { font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--ink-3); }
.entry-rank {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.rank-list { display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 28px 1fr 52px; gap: 12px; align-items: center; font-size: 0.86rem; }
.rank-no {
  font-family: var(--serif); font-size: 0.95rem; color: var(--ink-3);
  text-align: center; font-variant-numeric: tabular-nums;
}
.rank-row.top1 .rank-no { color: var(--red); font-weight: 800; }
body.dark .rank-row.top1 .rank-no { color: var(--gold); }
.rank-title b { display: block; font-size: 0.9rem; }
.rank-title span { font-size: 0.72rem; color: var(--ink-3); }
.rank-bar { height: 6px; background: var(--bg-2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.rank-num { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.82rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .contest-grid2 { grid-template-columns: 1fr; }
}

.sbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  cursor: pointer; transition: all 0.22s; flex: none;
}
.sbtn:hover { border-color: var(--red); color: var(--red); }
.sbtn svg { width: 16px; height: 16px; }

.search-hero { text-align: center; padding: clamp(30px, 5vw, 48px) 22px 6px; position: relative; z-index: 1; }
.search-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: 0.14em; }
.search-hero p { font-size: 0.86rem; color: var(--ink-3); margin-top: 8px; }
.search-box {
  max-width: 640px; margin: 22px auto 0;
  display: flex; gap: 10px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 99px; padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
}
.search-box input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 0.98rem; color: var(--ink);
  min-width: 0;
}
.search-box input::placeholder { color: var(--ink-faint); }
.search-box button {
  flex: none; border: none; border-radius: 99px;
  background: var(--red); color: #fff;
  padding: 9px 22px; font-family: inherit; font-size: 0.9rem; cursor: pointer;
  transition: opacity 0.2s;
}
body.dark .search-box button { background: var(--gold); color: #1b1611; }
.search-box button:hover { opacity: 0.88; }
.search-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.search-tags button {
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-3);
  border-radius: 99px; padding: 4px 12px; font-family: inherit; font-size: 0.78rem; cursor: pointer;
}
.search-tags button:hover { color: var(--red); border-color: var(--red); }

.search-wrap { max-width: 820px; margin: 0 auto; padding: 26px 22px 80px; position: relative; z-index: 1; }
.search-summary { font-size: 0.84rem; color: var(--ink-3); margin-bottom: 18px; }
.search-group { margin-bottom: 26px; }
.search-group h3 {
  font-size: 0.74rem; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.search-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.result {
  display: block; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.result:last-child { border-bottom: none; }
.result b { font-size: 0.96rem; display: block; margin-bottom: 3px; }
.result span { font-size: 0.78rem; color: var(--ink-3); }
.result p { font-size: 0.82rem; color: var(--ink-2); line-height: 1.75; margin-top: 5px; }
.result:hover b { color: var(--red); }
.result mark, .search-note mark { background: rgba(184, 150, 74, 0.28); color: inherit; padding: 0 2px; border-radius: 2px; }
.search-empty { text-align: center; padding: 40px 0; color: var(--ink-3); font-size: 0.9rem; }
@media (max-width: 560px) {
  .search-box { flex-direction: row; padding: 5px 5px 5px 14px; }
  .search-box button { padding: 8px 16px; }
}

.ver-chip {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: 2px;
  white-space: nowrap;
}
.wk-source { max-width: 34em; margin: 22px auto 0; }
.wk-appendix {
  font-family: var(--kai);
  font-size: 0.86rem;
  line-height: 1.95;
  color: var(--ink-3);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.wk-review {
  border-left: 3px solid var(--gold);
  background: linear-gradient(100deg, var(--gold-soft), transparent 80%);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.wk-review b { display: block; font-size: 0.74rem; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 8px; }
.wk-review p { font-size: 0.88rem; line-height: 1.95; color: var(--ink-2); }
.wk-review span { display: block; text-align: right; font-size: 0.78rem; color: var(--ink-3); margin-top: 8px; }
.wk-src { font-size: 0.78rem; color: var(--ink-3); line-height: 1.8; border-top: 1px dashed var(--line); padding-top: 10px; }
.wk-demo { color: var(--gold); }
.demo-note {
  max-width: var(--maxw);
  margin: 0 auto 8px;
  padding: 10px 24px;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.8;
}
.demo-note b { color: var(--gold); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 0 24px;
}
.photo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}
.photo-cap { padding: 10px 12px 12px; }
.photo-cap b { display: block; font-size: 0.86rem; }
.photo-cap span { display: block; font-size: 0.74rem; color: var(--ink-3); margin-top: 2px; }
.photo-note {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 24px;
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.8;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 14, 10, 0.86);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  image-rendering: auto;
}
.lightbox-cap {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 24px;
}
.gallery-strip .photo-card img { aspect-ratio: 4 / 3; }
.gallery-strip .photo-cap { display: none; }
@media (max-width: 760px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.logo-mark { border-radius: 50%; box-shadow: none; }
.hero-seal { border-radius: 50%; }
.foot-seal { border-radius: 50%; }
.seal-lg { border-radius: 50%; background: var(--card); }

.orgchart {
  margin: 26px auto 8px;
  max-width: 780px;
  text-align: center;
}
.oc-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  min-width: 92px;
}
.oc-node em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.oc-node.lead {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
body.dark .oc-node.lead { background: var(--gold); border-color: var(--gold); color: #1b1611; }
.oc-node.lead em { color: rgba(255, 255, 255, 0.78); }
body.dark .oc-node.lead em { color: rgba(27, 22, 17, 0.66); }
.oc-node.vice { border-color: var(--gold); color: var(--gold); }
.oc-link {
  width: 1px; height: 22px; margin: 0 auto;
  background: var(--line-2);
}
.oc-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative;
  padding-top: 22px;
}
.oc-row::before {
  content: "";
  position: absolute;
  top: 0; left: 8.33%; right: 8.33%;
  height: 1px;
  background: var(--line-2);
}
.oc-row .oc-node { min-width: 0; width: 100%; font-size: 0.82rem; padding: 9px 6px; position: relative; }
.oc-row .oc-node::before {
  content: "";
  position: absolute;
  top: -22px; left: 50%;
  width: 1px; height: 22px;
  background: var(--line-2);
}
@media (max-width: 760px) {
  .oc-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .oc-row::before { display: none; }
  .oc-row .oc-node::before { display: none; }
}

.mp-item { border-bottom: 1px dashed var(--line); padding: 18px 0; }
.mp-item:last-child { border-bottom: none; }
.mp-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 0.9rem; }
.mp-head b { color: var(--gold); font-variant-numeric: tabular-nums; flex: none; font-weight: 700; }
.mp-head a { margin-left: auto; color: var(--gold); font-size: 0.8rem; white-space: nowrap; }
.mp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mp-thumbs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px; cursor: zoom-in; background: var(--bg-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.mp-thumbs img:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mp-more { font-size: 0.76rem; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 600px) { .mp-thumbs { grid-template-columns: repeat(3, 1fr); } }

.ppl-group { margin-bottom: 18px; }
.ppl-group:last-child { margin-bottom: 0; }
.ppl-h {
  font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.ppl-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tl-kind {
  display: inline-block; margin-left: 8px; font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--line-2);
  border-radius: 3px; padding: 0 5px; vertical-align: 2px;
}

.flow { counter-reset: fl; display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.flow li {
  counter-increment: fl; position: relative; padding: 10px 14px 10px 46px;
  background: var(--bg-2); border-radius: 8px; font-size: 0.86rem; line-height: 1.7; color: var(--ink-2);
}
.flow li::before {
  content: counter(fl, decimal-leading-zero); position: absolute; left: 14px; top: 10px;
  font-family: var(--serif); font-size: 0.8rem; color: var(--gold); font-weight: 700;
}

.sec { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.st { margin-bottom: clamp(28px, 4vw, 44px); }
.st h2 { letter-spacing: 0.06em; }
.st .desc { font-size: 0.9rem; line-height: 1.95; color: var(--ink-3); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wk-body > p { line-height: 2.05; margin-bottom: 0.9em; }
.wk-body > p:first-of-type { margin-top: 0; }
.guide-card { padding: clamp(22px, 3.4vw, 34px); }
.guide-card h2 { font-size: 1.06rem; letter-spacing: 0.08em; }
.org-item { padding: 12px 0; }
.org-item b { letter-spacing: 0.02em; }
.past-item h3 { font-size: 0.98rem; }
.past-date { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.wc::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0; transition: opacity .3s;
}
.wc:hover::after { opacity: 1; }

@media print {
  .header, .mnav, .fabs, footer, .feature, .photo-grid, .related { display: none !important; }
  .wk-body { max-width: none; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}

.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sec-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  background: var(--card); position: relative; overflow: hidden;
}
.sec-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--red), var(--gold)); }
.sec-card b { display: block; font-size: 1rem; letter-spacing: .04em; }
.sec-card span { font-size: .76rem; color: var(--ink-3); }

.crumb { max-width: var(--maxw); margin: 18px auto 0; padding: 0 24px; font-size: .78rem; color: var(--ink-3); }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--red); }

.dash { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: var(--maxw); margin: 26px auto 0; }
.dash-cell { background: var(--card); padding: 22px 12px; text-align: center; }
.dash-cell b { display: block; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--red); font-variant-numeric: tabular-nums; }
body.dark .dash-cell b { color: var(--gold); }
.dash-cell span { font-size: .72rem; color: var(--ink-3); letter-spacing: .06em; }
@media (max-width: 760px) { .dash { grid-template-columns: repeat(3, 1fr); } }

.tag-group { margin-bottom: 26px; }
.tag-group h3 { font-size: .74rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.tag-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 99px; background: var(--card);
  font-size: .84rem; color: var(--ink-2); transition: all .22s;
}
.tag-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.tag-chip.on { background: var(--red); border-color: var(--red); color: #fff; }
body.dark .tag-chip.on { background: var(--gold); border-color: var(--gold); color: #1b1611; }
.tag-chip em { font-style: normal; font-size: .7rem; color: var(--ink-3); }
.tag-chip.on em { color: rgba(255,255,255,.7); }

.tl-wrap { max-width: 900px; margin: 0 auto; padding: 10px 24px 80px; }
.tl-line { position: relative; padding-left: 28px; }
.tl-line::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), var(--line-2));
}
.tl-item { position: relative; padding: 0 0 30px 0; }
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--card); border: 2px solid var(--red);
}
.tl-item.key::before { background: var(--red); }
.tl-year {
  display: inline-block; font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: var(--red); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
body.dark .tl-year { color: var(--gold); }
.tl-body h3 { font-size: 1rem; margin: 6px 0 6px; letter-spacing: .02em; }
.tl-body p { font-size: .86rem; line-height: 1.95; color: var(--ink-2); }
.tl-tag {
  margin-left: 10px; font-size: .64rem; letter-spacing: .12em; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 6px; vertical-align: 3px;
}
.tl-foot { text-align: center; margin-top: 10px; }

.toc-float {
  position: fixed; right: 22px; top: 120px; width: 168px;
  display: none; flex-direction: column; gap: 2px;
  padding-left: 12px; border-left: 1px solid var(--line);
  z-index: 40; max-height: 62vh; overflow: auto;
}
.toc-float b {
  font-size: .64rem; letter-spacing: .2em; color: var(--gold);
  margin-bottom: 8px; font-weight: 700;
}
.toc-float a {
  font-size: .76rem; line-height: 1.6; color: var(--ink-3);
  padding: 3px 0; border-left: 2px solid transparent; margin-left: -13px; padding-left: 11px;
  transition: color .2s, border-color .2s;
}
.toc-float a:hover { color: var(--ink); }
.toc-float a.on { color: var(--red); border-left-color: var(--red); font-weight: 600; }
body.dark .toc-float a.on { color: var(--gold); border-left-color: var(--gold); }
@media (min-width: 1320px) { .toc-float { display: flex; } }
@media print { .toc-float { display: none !important; } }

.navgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: var(--maxw); margin: 22px auto 0; padding: 0 24px;
}
.navcard {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 18px 18px 16px; text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s;
}
.navcard:hover { transform: translateY(-3px); border-color: var(--red); }
.navcard b { font-size: .98rem; letter-spacing: .04em; color: var(--ink); }
.navcard span { font-size: .76rem; color: var(--ink-3); line-height: 1.6; }
.navcard em { font-style: normal; font-size: .74rem; color: var(--red); margin-top: 6px; font-variant-numeric: tabular-nums; }
body.dark .navcard:hover { border-color: var(--gold); }
body.dark .navcard em { color: var(--gold); }
@media (max-width: 900px) { .navgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .navgrid { grid-template-columns: 1fr; } }

.fold-box {
  max-width: var(--maxw); margin: 0 auto 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); overflow: hidden;
}
.fold-box summary {
  cursor: pointer; padding: 14px 20px; font-size: .9rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink); list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.fold-box summary::-webkit-details-marker { display: none; }
.fold-box summary::after { content: "+"; color: var(--gold); font-size: 1.1rem; }
.fold-box[open] summary::after { content: "–"; }
.fold-box[open] summary { border-bottom: 1px dashed var(--line); }
.fold-body { padding: 6px 0 0; }

#wkBody.wk-fs-s { font-size: 0.92em; }
#wkBody.wk-fs-l { font-size: 1.14em; }
.fs-ctl { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.fs-btn {
  min-width: 34px; height: 30px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  font-size: 0.72rem; cursor: pointer; font-family: var(--serif);
}
.fs-btn:hover { border-color: var(--red); color: var(--red); }
.fs-btn.on { background: var(--red); border-color: var(--red); color: #fff; }
body.dark .fs-btn.on { background: var(--gold); border-color: var(--gold); color: #1b1611; }
