/* ==========================================================================
   CORPSE AT DUSK · 常州大学推理爱好者协会
   视觉系统：红 / 黑 / 纸白 / 网点 / 斜切 / 复印颗粒
   ========================================================================== */

:root {
  --ink: #0b0a0c;
  --ink-soft: #17151a;
  --ink-mid: #242127;
  --paper: #f3ead8;
  --paper-deep: #e4d6bc;
  --paper-dim: #cfc0a5;
  --red: #d9232e;
  --red-hot: #ef2b36;
  --red-deep: #8c1018;
  --orange: #f25c25;
  --yellow: #f0c24a;
  --blue: #2b6b8f;
  --muted: #817867;
  --line: rgba(11, 10, 12, 0.2);
  --font-display: "Arial Black", "Impact", "Haettenschweiler", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", "Cascadia Mono", monospace;
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-red: 8px 8px 0 var(--red);
  --header-h: 78px;
  --max-w: 1280px;
  --clip-btn: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --clip-card: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--red);
  color: #fff;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transition: top .2s;
}

.skip-link:focus {
  top: 12px;
}

/* 纸张颗粒 + 扫描线 ------------------------------------------------------ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .06) 3px 4px);
}

/* 开场 wipe -------------------------------------------------------------- */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: wipe-away .8s cubic-bezier(.77, 0, .18, 1) .55s forwards;
  pointer-events: none;
}

@keyframes wipe-away {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
  }
  99% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    visibility: visible;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    visibility: hidden;
  }
}

.page-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 52px, rgba(0, 0, 0, .09) 52px 55px),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.22) 0 2px, transparent 2px) 0 0 / 14px 14px;
}

.page-wipe span {
  position: relative;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 8rem);
  letter-spacing: -.04em;
  transform: skewX(-9deg);
  text-shadow: 5px 5px 0 var(--ink);
}

body.is-ready .page-wipe {
  animation-delay: 0s;
  animation-duration: .62s;
}

/* 基础排版 -------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  background: currentColor;
  transform: skewX(-30deg);
}

.eyebrow.light {
  color: var(--paper);
}

.eyebrow.red {
  color: var(--red);
}

.serif-quote {
  font-family: "STSong", "SimSun", "Songti SC", serif;
}

.page-shell {
  width: min(var(--max-w), calc(100% - 80px));
  margin-inline: auto;
}

.site-main {
  min-height: 70vh;
  background: var(--paper);
}

.section {
  position: relative;
  padding: clamp(70px, 9vw, 130px) 0;
}

.section.paper {
  background: var(--paper);
}

.section.dark {
  background: var(--ink);
  color: var(--paper);
}

.section.red {
  background: var(--red);
  color: var(--paper);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-head-left {
  max-width: 760px;
}

.section-index {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
}

.section.dark .section-index,
.section.red .section-index {
  color: var(--paper);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .98;
  text-transform: uppercase;
}

.section-title .cn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: -.08em;
}

.section-title .slash {
  color: var(--red);
}

.section.dark .section-title .slash {
  color: var(--red-hot);
}

.section-sub {
  max-width: 540px;
  margin-top: 18px;
  color: #5a5348;
  font-size: .98rem;
}

.section.dark .section-sub {
  color: #b9b0a1;
}

.section-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--ink);
  font-weight: 900;
  letter-spacing: .02em;
  transition: gap .2s, color .2s;
}

.section.dark .section-link {
  border-color: var(--paper);
}

.section-link:hover {
  gap: 18px;
  color: var(--red);
}

.section.dark .section-link:hover {
  color: var(--red-hot);
}

/* 按钮 ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 900;
  font-size: .92rem;
  letter-spacing: .03em;
  clip-path: var(--clip-btn);
  transition: transform .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}

.btn::after {
  content: "→";
  font-family: var(--font-mono);
  font-weight: 700;
  transition: transform .2s;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn:active {
  transform: translate(0, 0);
}

.btn-red {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  box-shadow: 5px 5px 0 rgba(255, 255, 255, .25);
}

.btn-paper {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  box-shadow: 5px 5px 0 var(--red);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}

.btn-ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border: 2px solid rgba(243, 234, 216, .55);
  box-shadow: none;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: .8rem;
}

.btn-sm::after {
  display: none;
}

.btn-wide {
  width: 100%;
}

.btn[disabled] {
  opacity: .55;
  pointer-events: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  background: transparent;
  font-weight: 900;
  transition: background .15s, color .15s;
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-btn {
  border: 0;
  background: none;
  padding: 0;
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

/* 标签 / 状态 ----------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag.red {
  background: var(--red);
  color: #fff;
}

.tag.paper {
  background: var(--paper);
  color: var(--ink);
}

.tag.outline {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}

.tag.orange {
  background: var(--orange);
  color: #fff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .05em;
  background: var(--ink);
  color: var(--paper);
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.open {
  background: var(--red);
  color: #fff;
}

.status-badge.progress {
  background: var(--yellow);
  color: var(--ink);
}

.status-badge.solved {
  background: #596553;
  color: #fff;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #6c6457;
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .02em;
}

.meta-row .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

/* 导航 ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: rgba(11, 10, 12, .96);
  color: var(--paper);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(10px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 26%;
  height: 3px;
  background: var(--paper);
  transform: skewX(-45deg);
  transform-origin: left;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark-wrap {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid var(--paper);
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--red);
  background: var(--red);
}

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2) rotate(4deg);
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  transform: skewX(-4deg);
}

.brand-type strong {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.brand-type small {
  margin-top: 4px;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  font-size: .84rem;
  font-weight: 800;
  color: #d7cdbd;
  white-space: nowrap;
  transition: color .15s, background .15s;
}

.main-nav a span {
  color: #706961;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 700;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0) skewX(-35deg);
  transform-origin: left;
  transition: transform .2s;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1) skewX(-35deg);
}

.main-nav a.active {
  color: #fff;
}

.main-nav a.active span {
  color: var(--red-hot);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(243, 234, 216, .25);
  color: #bfb5a5;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}

.group-chip:hover {
  border-color: var(--paper);
  color: var(--paper);
}

.group-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56bf73;
  box-shadow: 0 0 0 3px rgba(86, 191, 115, .16);
}

.auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(243, 234, 216, .25);
  color: #d7cdbd;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}

.notification-bell:hover {
  border-color: var(--paper);
  color: var(--paper);
  background: rgba(243, 234, 216, .05);
}

.notification-bell-icon {
  color: var(--red-hot);
  font-size: .9rem;
  line-height: 1;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .52rem;
  font-weight: 800;
  line-height: 1;
}

.notification-badge[hidden],
.dropdown-badge[hidden] {
  display: none;
}

.dropdown-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .52rem;
  font-weight: 800;
}

.auth-slot .auth-login {
  padding: 7px 14px;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-size: .76rem;
  font-weight: 900;
  transition: background .15s, color .15s;
}

.auth-slot .auth-login:hover {
  background: var(--paper);
  color: var(--ink);
}

.auth-slot .auth-register {
  padding: 7px 14px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  transition: background .15s;
}

.auth-slot .auth-register:hover {
  background: var(--red-hot);
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(243, 234, 216, .25);
  background: transparent;
  color: var(--paper);
}

.user-menu-trigger:hover {
  border-color: var(--paper);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 76% 100%, 0 100%);
}

.avatar.lg {
  width: 54px;
  height: 54px;
  font-size: 1.2rem;
}

.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: .76rem;
}

.user-menu-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.user-menu-name strong {
  font-size: .76rem;
}

.user-menu-name small {
  margin-top: 3px;
  color: #9b9283;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .05em;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 210px;
  padding: 8px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--red);
  display: none;
}

.user-dropdown.is-open {
  display: block;
  animation: drop-in .18s ease both;
}

.user-dropdown-head {
  padding: 10px 10px 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 6px;
}

.user-dropdown-head strong {
  display: block;
  font-size: .9rem;
}

.user-dropdown-head span {
  color: var(--muted);
  font-size: .68rem;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 2px solid var(--paper);
  background: transparent;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--paper);
  transition: transform .2s, opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 首页 Hero ------------------------------------------------------------- */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -10% -10% -10% 35%;
  background:
    linear-gradient(118deg, transparent 0 27%, var(--red) 27% 39%, transparent 39% 47%, var(--red-deep) 47% 56%, transparent 56% 100%);
  transform: rotate(-2deg);
  opacity: .9;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.16) 0 1px, transparent 1.8px) 0 0 / 13px 13px,
    linear-gradient(90deg, rgba(11,10,12,.98) 0 44%, rgba(11,10,12,.45) 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

.hero-lines {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  opacity: .18;
  background: repeating-linear-gradient(115deg, transparent 0 78px, #fff 78px 80px);
  pointer-events: none;
}

.hero-inner {
  width: min(var(--max-w), calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 84px) 0 clamp(40px, 6vw, 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  flex: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 30px);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: #cec4b4;
}

.hero-kicker .kicker-line {
  width: 38px;
  height: 2px;
  background: var(--red);
}

.hero-kicker .kicker-stamp {
  padding: 2px 7px;
  border: 1px solid rgba(243, 234, 216, .4);
  color: var(--paper);
  transform: rotate(-2deg);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8.2vw, 8.1rem);
  line-height: .86;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.hero-title .row {
  display: block;
  white-space: nowrap;
}

.hero-title .row em {
  position: relative;
  display: inline-block;
  color: var(--red-hot);
  font-style: normal;
  transform: skewX(-7deg);
  text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 rgba(217, 35, 46, .24);
}

.hero-title .row em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: -.055em;
  height: .07em;
  background: var(--paper);
  transform: skewX(-32deg);
}

.hero-title .row.small {
  margin-top: .15em;
  font-family: var(--font-body);
  font-size: .38em;
  line-height: 1.1;
  letter-spacing: -.06em;
  color: var(--paper);
}

.hero-title .row.latin {
  margin-top: .2em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 234, 216, .58);
  font-family: var(--font-display);
  font-size: .21em;
  letter-spacing: .1em;
  line-height: 1.4;
}

.hero-lead {
  max-width: 560px;
  margin-top: clamp(20px, 3vw, 30px);
  color: #c9c0b1;
  font-size: clamp(.94rem, 1.2vw, 1.05rem);
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--paper);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 36px);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #8f8779;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .04em;
}

.hero-note::before {
  content: "※";
  color: var(--red-hot);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.emblem-card {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: .94;
  transform: rotate(3deg);
  transition: transform .4s ease;
}

.emblem-card:hover {
  transform: rotate(1deg) scale(1.015);
}

.emblem-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 5px solid var(--paper);
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 90% 100%, 0 100%);
  box-shadow: 18px 18px 0 var(--red);
}

.emblem-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03);
}

.emblem-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 12, .72) 100%);
  mix-blend-mode: multiply;
}

.emblem-label {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: var(--paper);
}

.emblem-label strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -.04em;
  line-height: 1;
  transform: skewX(-5deg);
}

.emblem-label small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  color: #d8cebd;
}

.emblem-label .case-no {
  padding: 6px 9px;
  border: 2px solid var(--paper);
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  transform: rotate(-2deg);
}

.emblem-tape {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: -22px;
  padding: 7px 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,.28);
}

.emblem-tape.alt {
  top: auto;
  left: auto;
  right: -18px;
  bottom: 78px;
  background: var(--red);
  color: #fff;
  transform: rotate(6deg);
}

.hero-side-note {
  position: absolute;
  right: -18px;
  top: 24px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .28em;
  color: #8d8475;
}

.hero-stats {
  width: min(var(--max-w), calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(243, 234, 216, .19);
}

.hero-stat {
  padding: 18px 22px 20px;
  border-right: 1px solid rgba(243, 234, 216, .14);
}

.hero-stat:first-child {
  border-left: 1px solid rgba(243, 234, 216, .14);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1;
  color: var(--paper);
}

.hero-stat span {
  display: block;
  margin-top: 7px;
  color: #8c8375;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

/* 滚动公告 -------------------------------------------------------------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.ticker-label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  padding-left: 28px;
  animation: ticker 28s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.ticker-item::before {
  content: "◆";
  font-size: .55rem;
  color: var(--ink);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* 首页正文 -------------------------------------------------------------- */
.home-intro {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--paper);
  overflow: hidden;
}

.home-intro::before {
  content: "MYSTERY";
  position: absolute;
  right: -40px;
  top: -25px;
  color: rgba(11, 10, 12, .035);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: .8;
  letter-spacing: -.08em;
  pointer-events: none;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.intro-aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.intro-big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.07em;
}

.intro-big em {
  color: var(--red);
  font-style: normal;
}

.intro-stamp {
  display: inline-block;
  margin-top: 26px;
  padding: 5px 12px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  transform: rotate(-2deg);
}

.intro-copy p {
  margin-bottom: 20px;
  color: #4e483e;
  font-size: 1.02rem;
  line-height: 2;
}

.intro-copy p:first-child {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.8;
}

.intro-copy .signature {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
}

.intro-copy .signature::before {
  content: "";
  width: 52px;
  height: 2px;
  background: var(--red);
}

/* 公告卡片 -------------------------------------------------------------- */
.notice-stack {
  display: grid;
  gap: 14px;
}

.notice-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(11, 10, 12, .12);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.notice-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--red);
}

.notice-card .notice-cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.notice-card .notice-date {
  color: #7c7364;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .03em;
}

.notice-card h3 {
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.45;
}

.notice-card p {
  margin-top: 7px;
  color: #6a6255;
  font-size: .82rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-card .notice-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 800;
  transition: background .15s, color .15s;
}

.notice-card:hover .notice-arrow {
  background: var(--ink);
  color: var(--paper);
}

.notice-card.pinned {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.notice-card.pinned p,
.notice-card.pinned .notice-date {
  color: #a79d8d;
}

.notice-card.pinned .notice-arrow {
  border-color: var(--paper);
}

.notice-card.pinned:hover .notice-arrow {
  background: var(--paper);
  color: var(--ink);
}

/* 帖子卡片 -------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 24px 24px 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  clip-path: var(--clip-card);
  transition: transform .2s, background .2s, color .2s;
}

.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 5px;
  background: var(--red);
}

.case-card:hover {
  transform: translate(-4px, -4px);
  background: var(--ink);
  color: var(--paper);
}

.case-card:hover .case-desc,
.case-card:hover .meta-row {
  color: #b9b0a1;
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.case-card h3 {
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.case-desc {
  margin-top: 12px;
  color: #625b4f;
  font-size: .84rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-bottom {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
}

.case-card:hover .avatar {
  background: var(--paper);
  color: var(--ink);
}

.case-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .66rem;
  color: #817867;
}

.case-card:hover .case-metrics {
  color: #b9b0a1;
}

/* 委托预览 -------------------------------------------------------------- */
.brief-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.brief-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 6px;
  border-bottom: 1px solid rgba(243, 234, 216, .18);
  transition: background .15s, padding .15s;
}

.brief-item:hover {
  background: rgba(243, 234, 216, .04);
  padding-left: 16px;
  padding-right: 16px;
}

.brief-no {
  color: var(--red-hot);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brief-main h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.brief-main p {
  margin-top: 6px;
  color: #a89f90;
  font-size: .78rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brief-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 今日推荐首页 ---------------------------------------------------------- */
.daily-teaser {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--red);
  color: #fff;
}

.daily-teaser-main {
  position: relative;
  padding: clamp(34px, 5vw, 68px);
  z-index: 1;
}

.daily-teaser-main::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -40%;
  width: 220px;
  height: 180%;
  background: var(--ink);
  transform: rotate(14deg);
  z-index: -1;
}

.daily-teaser h2 {
  max-width: 550px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.daily-teaser h2 em {
  color: var(--ink);
  font-style: normal;
}

.daily-teaser p {
  max-width: 430px;
  margin: 22px 0 28px;
  color: #ffd9d9;
  font-size: .9rem;
}

.book-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  padding: 34px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.book-ticket::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -30px;
  width: 170px;
  height: 170px;
  border: 28px solid var(--red);
  border-radius: 50%;
  opacity: .16;
}

.book-ticket::after {
  content: "DAILY\nPICK";
  position: absolute;
  right: 22px;
  bottom: 72px;
  color: rgba(11, 10, 12, .07);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.08em;
  text-align: right;
  transform: rotate(-8deg);
}

.book-ticket .ticket-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.book-ticket .ticket-no {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.ticket-title {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.ticket-title h3 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.055em;
}

.ticket-title .author {
  margin-top: 8px;
  color: #6e6658;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}

.ticket-quote {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
  color: #5f584d;
  font-family: "STSong", "SimSun", serif;
  font-size: .9rem;
}

.ticket-bottom {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 页头 ------------------------------------------------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 100px) 0 clamp(46px, 6vw, 76px);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--red);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 58%;
  height: 190%;
  background: var(--red);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .92;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 64px, rgba(243, 234, 216, .07) 64px 66px),
    radial-gradient(circle at 84% 22%, rgba(255,255,255,.23) 0 1.2px, transparent 1.8px) 0 0 / 15px 15px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
}

.page-hero-copy {
  max-width: 760px;
}

.page-hero .eyebrow {
  color: #e9dfcf;
}

.page-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.page-title .cn {
  display: block;
  margin-top: .9em;
  max-width: 850px;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.1vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -.02em;
  text-transform: none;
}

.page-desc {
  max-width: 590px;
  margin-top: 22px;
  color: #c8bfb0;
  font-size: .95rem;
  line-height: 1.9;
}

.page-hero-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 260px;
  text-align: right;
}

.page-hero-side .big-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 234, 216, .8);
}

.page-hero-side small {
  color: #b9b0a1;
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1.65;
  letter-spacing: .04em;
}

.page-hero-side .stamp {
  padding: 7px 11px;
  border: 2px solid var(--paper);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  transform: rotate(-3deg);
}

.page-body {
  padding: clamp(48px, 6vw, 90px) 0 clamp(70px, 9vw, 120px);
  background: var(--paper);
}

/* 筛选工具栏 ------------------------------------------------------------ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tab {
  padding: 8px 14px;
  border: 2px solid var(--ink);
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
  transition: background .15s, color .15s, transform .15s;
}

.filter-tab:hover {
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.filter-tab.active.red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 210px;
  height: 40px;
  padding: 0 38px 0 13px;
  border: 2px solid var(--ink);
  background: transparent;
  font-size: .78rem;
  outline: none;
}

.search-box input:focus {
  background: #fff8ea;
}

.search-box button {
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
  height: 40px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: transparent;
  font-weight: 900;
}

.section-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-mini-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.section-mini-head p {
  color: var(--muted);
  font-size: .8rem;
}

/* 公告页 --------------------------------------------------------------- */
.notice-page-list {
  display: grid;
  gap: 18px;
}

.notice-full {
  position: relative;
  padding: 26px 28px;
  background: #f8f0df;
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.notice-full.pinned {
  border-color: var(--red);
  box-shadow: 6px 6px 0 var(--red);
}

.notice-full-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.notice-full h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.45;
}

.notice-full .notice-meta {
  margin-top: 9px;
}

.notice-body {
  margin-top: 18px;
  color: #4e483e;
  font-size: .9rem;
  line-height: 1.95;
  white-space: pre-line;
}

.notice-full .notice-stamp {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* 关于页 ---------------------------------------------------------------- */
.about-hero .page-hero-side .big-num {
  font-family: var(--font-display);
}

.manifesto {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.manifesto-title {
  position: sticky;
  top: calc(var(--header-h) + 38px);
}

.manifesto-title h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.manifesto-title h2 em {
  color: var(--red);
  font-style: normal;
}

.manifesto-title .vertical-note {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.9;
  letter-spacing: .04em;
}

.manifesto-body {
  padding-top: 8px;
}

.manifesto-body .lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.9;
  color: var(--ink);
}

.manifesto-body p {
  margin-top: 20px;
  color: #524c42;
  line-height: 2;
}

.manifesto-body .quote-box {
  margin-top: 32px;
  padding: 26px 30px;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.quote-box mark {
  background: none;
  color: var(--red-hot);
}

.quote-box p {
  margin: 0;
  color: var(--paper);
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.9;
}

.quote-box cite {
  display: block;
  margin-top: 14px;
  color: #a89f90;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-style: normal;
  letter-spacing: .08em;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(46px, 6vw, 76px);
}

.fact-card {
  padding: 25px 24px;
  background: #f8f0df;
  border: 2px solid var(--ink);
  transition: transform .18s, box-shadow .18s;
}

.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--red);
}

.fact-card .fact-no {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.fact-card h3 {
  margin-top: 12px;
  font-size: 1.03rem;
  font-weight: 900;
}

.fact-card p {
  margin-top: 9px;
  color: #6b6356;
  font-size: .82rem;
  line-height: 1.8;
}

.activity-section {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.activity-section::after {
  content: "CASE / FILE";
  position: absolute;
  right: -20px;
  bottom: -30px;
  color: rgba(243, 234, 216, .04);
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 14rem);
  line-height: .8;
  letter-spacing: -.08em;
  pointer-events: none;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(243, 234, 216, .2);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 200px;
  gap: 26px;
  align-items: start;
  padding: 26px 8px;
  border-bottom: 1px solid rgba(243, 234, 216, .16);
  transition: background .15s, padding .15s;
}

.timeline-item:hover {
  background: rgba(243, 234, 216, .045);
  padding-left: 18px;
  padding-right: 18px;
}

.timeline-time {
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 900;
}

.timeline-item p {
  margin-top: 7px;
  color: #a89f90;
  font-size: .83rem;
  line-height: 1.8;
}

.timeline-tag {
  justify-self: end;
  align-self: start;
}

/* 社长档案 ------------------------------------------------------------- */
.president-section {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
}

.president-section::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 150%;
  background: var(--red);
  transform: rotate(-12deg);
  opacity: .08;
}

.president-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: stretch;
}

.president-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border: 4px solid var(--paper);
  box-shadow: 14px 14px 0 var(--red);
  overflow: hidden;
}

.president-portrait {
  position: relative;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  background: #151216;
}

.president-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.06) saturate(.9);
  transform: scale(1.08);
}

.president-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(11, 10, 12, .88) 100%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.12) 3px 4px);
}

.president-portrait-label {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 20px;
}

.president-portrait-label small {
  display: block;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.president-portrait-label strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.president-portrait-label span {
  display: block;
  margin-top: 6px;
  color: #b7ad9d;
  font-size: .78rem;
}

.president-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid rgba(243,234,216,.18);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .07em;
  color: #9d9384;
}

.president-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.president-info .eyebrow {
  color: var(--red);
}

.president-info h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  line-height: .86;
  letter-spacing: -.07em;
}

.president-info h2 span {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: .25em;
  letter-spacing: .04em;
}

.president-quote {
  margin-top: 25px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
  line-height: 1.9;
}

.president-bio {
  margin-top: 22px;
  color: #4f483e;
  line-height: 2;
  font-size: .92rem;
}

.president-bio p + p {
  margin-top: 14px;
}

.president-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.president-stat {
  padding: 12px 10px;
  border: 2px solid var(--ink);
  text-align: center;
}

.president-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--red);
}

.president-stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .57rem;
  color: #6c6457;
  letter-spacing: .04em;
}

.president-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

/* 社长阅读谱系 --------------------------------------------------------- */
.detective-influences {
  margin-top: clamp(42px, 6vw, 72px);
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.influence-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.influence-head h3 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -.03em;
}

.influence-head > p {
  max-width: 360px;
  margin: 0;
  color: #6c6457;
  font-size: .82rem;
  line-height: 1.75;
  text-align: right;
}

.influence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.influence-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 17px 16px 19px;
  border: 2px solid rgba(11, 10, 12, .24);
  background: #fbf4e6;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.influence-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
}

.influence-num {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.influence-card h4 {
  margin: 9px 0 4px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.influence-card small {
  color: #7a7162;
  font-size: .64rem;
  line-height: 1.5;
}

.influence-card p {
  margin: 12px 0 0;
  color: #4e483e;
  font-size: .78rem;
  line-height: 1.72;
}

/* 合作店铺 ------------------------------------------------------------- */
.venue-section {
  position: relative;
  background: #171419;
  color: var(--paper);
  overflow: hidden;
}

.venue-section::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: var(--red);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .13;
}

.venue-grid {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
}

.venue-brand {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.venue-logo-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent),
    #f7f1e6;
  border: 3px solid var(--paper);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 0 100%);
  box-shadow: 12px 12px 0 var(--red);
}

.venue-logo-card img {
  width: min(100%, 430px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.12));
}

.venue-logo-card .logo-caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: #6d6455;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
}

.venue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.venue-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: .92;
  letter-spacing: -.06em;
}

.venue-info h2 span {
  display: block;
  margin-top: 12px;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
}

.venue-address {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(243, 234, 216, .25);
  background: rgba(243, 234, 216, .04);
}

.venue-address .label {
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.venue-address p {
  margin-top: 8px;
  color: #d6ccbc;
  font-size: .9rem;
  line-height: 1.9;
}

.venue-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.price-card {
  position: relative;
  padding: 18px 20px;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.price-card .price-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 800;
  color: #786f60;
  letter-spacing: .06em;
}

.price-card strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.price-card strong small {
  font-family: var(--font-body);
  font-size: .64rem;
  font-weight: 700;
}

.price-card .price-note {
  margin-top: 6px;
  color: #766e60;
  font-size: .68rem;
}

.price-card.featured {
  background: var(--red);
  color: #fff;
}

.price-card.featured .price-label,
.price-card.featured .price-note {
  color: #ffd7d9;
}

.venue-perk {
  margin-top: 16px;
  padding: 12px 15px;
  border-left: 4px solid var(--red-hot);
  background: rgba(217, 35, 46, .13);
  color: #f2d8d9;
  font-size: .78rem;
  line-height: 1.8;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.route-block {
  margin-top: 46px;
}

.route-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.03em;
}

.route-block h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(243, 234, 216, .25);
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.route-steps {
  display: grid;
  gap: 0;
  counter-reset: route;
}

.route-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(243, 234, 216, .14);
  counter-increment: route;
}

.route-step::before {
  content: counter(route, decimal-leading-zero);
  color: var(--red-hot);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.route-step strong {
  display: block;
  font-size: .9rem;
}

.route-step span {
  display: block;
  margin-top: 4px;
  color: #a89f90;
  font-size: .78rem;
  line-height: 1.7;
}

.route-photo {
  position: relative;
  padding: 10px;
  background: var(--paper);
  transform: rotate(1.5deg);
  box-shadow: 8px 8px 0 rgba(217, 35, 46, .8);
}

.route-photo img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  object-position: top;
}

.route-photo figcaption {
  padding: 10px 4px 2px;
  color: #5e5649;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .04em;
}

.source-note {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 234, 216, .16);
  color: #8f8678;
  font-size: .72rem;
}

.source-note summary {
  cursor: pointer;
  font-weight: 700;
  color: #bfb5a5;
}

.source-note img {
  margin-top: 14px;
  max-width: 520px;
  border: 2px solid var(--paper);
}

/* 加入我们 / QQ -------------------------------------------------------- */
.join-section {
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.join-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 74px, rgba(0,0,0,.08) 74px 77px),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 1.4px, transparent 2px) 0 0 / 15px 15px;
}

.join-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.join-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.join-copy h2 em {
  color: var(--ink);
  font-style: normal;
}

.join-copy p {
  max-width: 520px;
  margin-top: 22px;
  color: #ffd7d9;
  line-height: 1.9;
  font-size: .94rem;
}

.join-copy .join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.qq-card {
  position: relative;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.3deg);
  max-width: 360px;
  margin-left: auto;
}

.qq-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--ink);
}

.qq-card-head .qq-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.qq-card-head strong {
  display: block;
  font-size: .9rem;
}

.qq-card-head small {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .06em;
}

.qq-card img {
  width: 100%;
  margin-top: 14px;
  border: 2px solid var(--ink);
}

.qq-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.qq-number-row .qq-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.copy-btn {
  border: 2px solid var(--ink);
  background: transparent;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 800;
}

.copy-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* 日常之谜列表 --------------------------------------------------------- */
.forum-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forum-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.forum-stat {
  padding: 9px 13px;
  border: 1px solid rgba(243, 234, 216, .25);
  color: #c3b9a9;
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .04em;
}

.forum-stat strong {
  color: var(--paper);
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 150px;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  background: #f8f0df;
  border: 2px solid var(--ink);
  transition: transform .18s, box-shadow .18s, background .18s;
}

.post-row:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--red);
}

.post-row.pinned {
  border-color: var(--red);
  background: #fff4e4;
}

.post-index {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
}

.post-main {
  min-width: 0;
}

.post-main h2 {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -.02em;
}

.post-main p {
  margin-top: 7px;
  color: #6a6255;
  font-size: .82rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-side {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.post-row-side .author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
}

.post-row-side .counts {
  color: #7b7365;
  font-family: var(--font-mono);
  font-size: .63rem;
}

/* 帖子详情 ------------------------------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .04em;
}

.back-link:hover {
  color: var(--red);
}

.post-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.post-detail {
  background: #f8f0df;
  border: 2px solid var(--ink);
  padding: clamp(24px, 4vw, 44px);
}

.post-detail-head {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.post-detail h1 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.04em;
}

.post-author-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.post-author-line strong {
  display: block;
  font-size: .82rem;
}

.post-author-line small {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .6rem;
}

.post-content {
  padding: 26px 0 8px;
  color: #37332c;
  font-size: .95rem;
  line-height: 2.05;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.post-images.single {
  grid-template-columns: 1fr;
}

.post-image {
  display: block;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--ink);
  transition: transform .18s, box-shadow .18s;
}

.post-image:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--red);
}

.post-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.image-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px dashed rgba(11, 10, 12, .38);
  background: #fbf4e6;
  color: #5e5649;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.image-picker:hover {
  border-color: var(--red);
  background: #fff8ea;
  color: var(--ink);
}

.image-picker input {
  display: none;
}

.image-picker-plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.image-picker small {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .56rem;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.image-preview-grid:empty {
  display: none;
}

.image-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview .image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--paper);
  background: rgba(11, 10, 12, .78);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.image-preview .image-remove:hover {
  background: var(--red);
}

.image-preview > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 5px;
  background: rgba(11, 10, 12, .68);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .53rem;
}

.image-picker-status {
  margin-top: 7px;
  color: #7a7162;
  font-family: var(--font-mono);
  font-size: .6rem;
  line-height: 1.6;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  background: transparent;
  font-weight: 800;
  font-size: .78rem;
}

.like-btn:hover,
.like-btn.liked {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.comment-section {
  margin-top: 28px;
}

.comment-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.03em;
}

.comment-section h2 span {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--red);
}

.comment-tip {
  margin-top: 8px;
  color: #7a7162;
  font-size: .72rem;
  line-height: 1.7;
}

.comment-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 2px solid var(--ink);
}

.comment-thread {
  min-width: 0;
}

.comment-children {
  margin-left: 28px;
  padding-left: 14px;
  border-left: 2px solid #d8ccb8;
}

.comment-children .comment-children {
  margin-left: 18px;
  padding-left: 12px;
}

.comment-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.comment-body {
  min-width: 0;
}

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.comment-meta strong {
  font-size: .8rem;
}

.comment-meta time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .59rem;
}

.reply-to {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.comment-reply-btn {
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.5;
}

.comment-reply-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.comment-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 620px;
  margin-top: 10px;
}

.comment-images.single {
  grid-template-columns: minmax(0, 420px);
}

.comment-images .post-image {
  border-width: 1px;
}

.comment-images .post-image img {
  max-height: 260px;
}

.comment-form .attachment-picker {
  margin-top: 10px;
}

.comment-form .image-picker {
  min-height: 44px;
  padding: 9px 11px;
}

.reply-target {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #efe3ce;
  border-left: 4px solid var(--red);
}

.reply-target p {
  margin-top: 8px;
  color: #61594c;
  font-size: .78rem;
  line-height: 1.7;
}

.comment-body p {
  color: #4c463c;
  font-size: .86rem;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.comment-form {
  margin-top: 20px;
  padding: 18px;
  background: #efe3ce;
  border: 2px solid var(--ink);
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding: 12px;
  border: 2px solid var(--ink);
  background: #fffaf0;
  font-size: .86rem;
  line-height: 1.7;
  outline: none;
}

.comment-form textarea:focus {
  box-shadow: 4px 4px 0 var(--red);
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.comment-form-foot span {
  color: var(--muted);
  font-size: .7rem;
}

.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 20px;
  background: var(--ink);
  color: var(--paper);
}

.side-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .1em;
  color: var(--red-hot);
  text-transform: uppercase;
}

.side-card p {
  margin-top: 12px;
  color: #b7ad9d;
  font-size: .8rem;
  line-height: 1.8;
}

.side-card .side-links {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.side-card .side-links a {
  padding: 9px 0;
  border-bottom: 1px solid rgba(243,234,216,.14);
  color: #d9cfbf;
  font-size: .78rem;
  transition: color .15s, padding-left .15s;
}

.side-card .side-links a:hover {
  color: var(--paper);
  padding-left: 5px;
}

/* 委托页 --------------------------------------------------------------- */
.commission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.commission-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: #f8f0df;
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform .18s, box-shadow .18s;
}

.commission-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--red);
}

.commission-card::after {
  content: "REQUEST";
  position: absolute;
  right: 18px;
  top: 15px;
  color: rgba(11, 10, 12, .055);
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -.05em;
  pointer-events: none;
}

.commission-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.commission-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.commission-card .commission-desc {
  margin-top: 10px;
  color: #61594c;
  font-size: .84rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.commission-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.commission-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
}

.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: #6e6658;
}

.difficulty .bars {
  display: inline-flex;
  gap: 2px;
}

.difficulty .bars i {
  display: block;
  width: 4px;
  height: 10px;
  background: #d9cdb9;
}

.difficulty .bars i.on {
  background: var(--red);
}

.commission-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--paper);
}

.commission-alert .alert-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--red-hot);
}

.commission-alert strong {
  display: block;
  font-size: .9rem;
}

.commission-alert p {
  margin-top: 3px;
  color: #a89f90;
  font-size: .76rem;
}

.commission-detail {
  background: #f8f0df;
  border: 2px solid var(--ink);
  padding: clamp(24px, 4vw, 44px);
}

.commission-detail h1 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.03em;
}

.commission-detail .commission-desc {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  color: #39342c;
  font-size: .94rem;
  line-height: 2.05;
  white-space: pre-line;
}

.commission-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.info-chip {
  padding: 12px 14px;
  background: #efe3ce;
  border-left: 4px solid var(--red);
}

.info-chip small {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .06em;
}

.info-chip strong {
  display: block;
  margin-top: 4px;
  font-size: .8rem;
  line-height: 1.6;
}

.status-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

/* 每日推荐页 ----------------------------------------------------------- */
.archive-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 34px;
}

.archive-link {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 160px;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border: 2px solid var(--ink);
  transition: transform .2s, color .2s, background .2s;
}

.archive-link::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -12%;
  width: 58%;
  height: 190%;
  background: var(--red);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .9;
  transition: transform .25s;
}

.archive-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--red);
}

.archive-link:hover::before {
  transform: translateX(6%) rotate(2deg);
}

.archive-link .archive-copy {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

.archive-link .archive-kicker {
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.archive-link h3 {
  margin-top: 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
}

.archive-link p {
  margin-top: 7px;
  color: #bcb2a2;
  font-size: .77rem;
  line-height: 1.7;
}

.archive-link .archive-arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--paper);
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.daily-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 0;
  margin-bottom: 44px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.daily-stage-visual {
  position: relative;
  min-height: 420px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--red);
}

.daily-stage-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 48px, rgba(0,0,0,.12) 48px 51px),
    radial-gradient(circle at 26% 20%, rgba(255,255,255,.2) 0 1.4px, transparent 2px) 0 0 / 14px 14px;
}

.daily-stage-visual::after {
  content: "MYSTERY";
  position: absolute;
  left: -8px;
  bottom: 4px;
  color: rgba(11, 10, 12, .17);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 900;
  line-height: .7;
  letter-spacing: -.08em;
  transform: rotate(-6deg);
}

.daily-stage-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.daily-seal {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  transform: rotate(-9deg);
}

.daily-stage-book {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.daily-stage-book small {
  display: block;
  color: #ffd7d9;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
}

.daily-stage-book h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: .95;
  letter-spacing: -.06em;
  text-shadow: 3px 3px 0 var(--ink);
}

.daily-stage-book p {
  margin-top: 10px;
  color: #ffd7d9;
  font-family: var(--font-mono);
  font-size: .72rem;
}

.daily-stage-info {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.daily-stage-info .eyebrow {
  color: var(--red-hot);
}

.daily-stage-info h3 {
  margin-top: 14px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.5;
}

.daily-stage-info .station-note {
  margin-top: 12px;
  color: #b8ae9f;
  font-size: .87rem;
  line-height: 1.95;
}

.daily-stage-info .daily-quote {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
  color: #d8cfc0;
  font-family: "STSong", "SimSun", serif;
  font-size: .92rem;
  line-height: 1.8;
}

.daily-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.draw-hint {
  color: #8f8678;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .04em;
}

.daily-stage.is-drawing .daily-stage-visual {
  animation: draw-pulse .45s ease;
}

.daily-stage.is-drawing .daily-stage-book {
  animation: draw-rattle .45s steps(2, end);
}

@keyframes draw-pulse {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.35) saturate(1.2); }
  100% { filter: brightness(1); }
}

@keyframes draw-rattle {
  0% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  50% { transform: translateX(4px) rotate(1deg); }
  75% { transform: translateX(-2px) rotate(0); }
  100% { transform: translateX(0); }
}

.shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.shelf-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.book-card {
  position: relative;
  min-height: 310px;
  padding: 18px;
  background: var(--card-color, #b3262e);
  color: #fff;
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform .18s, box-shadow .18s;
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,.07) 34px 36px),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.15) 0 1px, transparent 1.8px) 0 0 / 12px 12px;
}

.book-card::after {
  content: attr(data-genre);
  position: absolute;
  right: -18px;
  bottom: 27px;
  color: rgba(255,255,255,.19);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.05em;
  transform: rotate(-90deg);
  transform-origin: center;
  pointer-events: none;
}

.book-card:hover {
  transform: translateY(-5px) rotate(-.6deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.book-card .book-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.8);
}

.book-card h3 {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 36px;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-shadow: 1px 1px 0 rgba(0,0,0,.2);
}

.book-card .book-author {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: rgba(255,255,255,.8);
  font-family: var(--font-mono);
  font-size: .62rem;
}

.book-card .book-tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 16px;
  padding: 3px 7px;
  background: rgba(11,10,12,.6);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .05em;
}

.book-card.light {
  color: var(--ink);
}

.book-card.light .book-author,
.book-card.light .book-top {
  color: rgba(11,10,12,.65);
}

.book-card.light .book-tag {
  background: var(--ink);
  color: var(--paper);
}

.book-card.light::after {
  color: rgba(11,10,12,.12);
}

.book-card.light h3 {
  text-shadow: none;
}

/* 推荐详情 modal ------------------------------------------------------- */
.book-modal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
}

.book-modal-cover {
  position: relative;
  min-height: 350px;
  padding: 22px;
  background: var(--book-color, var(--red));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.book-modal-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 30px, rgba(255,255,255,.08) 30px 32px);
}

.book-modal-cover small,
.book-modal-cover strong,
.book-modal-cover span {
  position: relative;
  z-index: 1;
}

.book-modal-cover small {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
}

.book-modal-cover strong {
  display: block;
  margin-top: auto;
  padding-top: 30px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.book-modal-cover span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.8);
  font-family: var(--font-mono);
  font-size: .62rem;
}

.book-modal-info {
  padding: 30px;
}

.book-modal-info h2 {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.book-modal-info .book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.book-modal-info .book-blurb {
  margin-top: 18px;
  color: #4d473d;
  font-size: .86rem;
  line-height: 1.95;
}

.book-modal-info .book-quote {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  color: #6a6255;
  font-family: "STSong", "SimSun", serif;
  font-size: .84rem;
}

.book-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* 表单 / 登录注册 ------------------------------------------------------ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #4e483e;
  font-size: .72rem;
  font-weight: 800;
}

.field label.form-check {
  justify-content: flex-start;
  font-size: .72rem;
  font-weight: 600;
  color: #5e5649;
}

.field label.form-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.field label small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 2px solid var(--ink);
  background: #fffaf0;
  padding: 10px 12px;
  font-size: .84rem;
  line-height: 1.6;
  outline: none;
  border-radius: 0;
  transition: box-shadow .15s;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  box-shadow: 4px 4px 0 var(--red);
}

.field .hint {
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.5;
}

.form-error {
  min-height: 22px;
  margin-top: 10px;
  color: var(--red);
  font-size: .74rem;
  font-weight: 700;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.6;
}

.form-check input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--red);
}

/* 弹窗 ----------------------------------------------------------------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-root.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 7, .78);
  backdrop-filter: blur(5px);
  animation: fade-in .2s ease both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  animation: modal-in .25s cubic-bezier(.2, .8, .2, 1) both;
}

.modal-panel.wide {
  width: min(900px, 100%);
}

.modal-panel.narrow {
  width: min(460px, 100%);
}

.modal-panel.auth-panel {
  width: min(860px, 100%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--red);
}

.modal-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -.03em;
}

.modal-head .eyebrow {
  color: var(--red-hot);
  font-size: .58rem;
}

.modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-size: 1.15rem;
  line-height: 1;
  transition: background .15s, color .15s;
}

.modal-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.modal-body {
  padding: 24px;
}

.auth-modal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 470px;
}

.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 40px, rgba(0,0,0,.11) 40px 43px),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0 1.4px, transparent 2px) 0 0 / 13px 13px;
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-aside .auth-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: .8;
  letter-spacing: -.1em;
  transform: skewX(-8deg);
  text-shadow: 3px 3px 0 var(--ink);
}

.auth-aside h3 {
  margin-top: auto;
  padding-top: 30px;
  font-size: 1.3rem;
  line-height: 1.45;
  font-weight: 900;
}

.auth-aside p {
  margin-top: 10px;
  color: #ffd5d7;
  font-size: .72rem;
  line-height: 1.8;
}

.auth-aside .auth-foot {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: .57rem;
  letter-spacing: .08em;
  color: #ffc5c8;
}

.auth-main {
  padding: 28px;
}

.auth-main h2 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.auth-main .auth-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: .73rem;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border-bottom: 2px solid var(--ink);
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: 0;
  background: transparent;
  font-size: .8rem;
  font-weight: 800;
  color: var(--muted);
}

.auth-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.auth-main .form-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-main .field input,
.auth-main .field select {
  padding: 9px 11px;
}

.auth-switch {
  margin-top: 14px;
  color: var(--muted);
  font-size: .7rem;
  text-align: center;
}

.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
}

.admin-login-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: #efe3ce;
  border-left: 3px solid var(--red);
  color: #6a6255;
  font-size: .68rem;
  line-height: 1.6;
}

/* 消息中心 ------------------------------------------------------------- */
.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.notification-toolbar .filter-tab span {
  margin-left: 5px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .58rem;
}

.notification-toolbar .filter-tab.active span {
  color: var(--paper);
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 17px 20px;
  border: 2px solid rgba(11, 10, 12, .22);
  background: #fbf4e6;
  color: var(--ink);
  text-align: left;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.notification-item:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.notification-item.unread {
  border-left: 5px solid var(--red);
  background: #fff8ea;
}

.notification-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--red-hot);
  font-size: 1.15rem;
  font-weight: 900;
}

.notification-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notification-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: .8rem;
}

.notification-head strong {
  font-size: .88rem;
}

.notification-head > span {
  color: #5e5649;
}

.notification-head time {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .58rem;
}

.unread-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.notification-snippet {
  margin-top: 5px;
  color: #4e483e;
  font-size: .84rem;
  line-height: 1.65;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notification-target {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .6rem;
}

.notification-arrow {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
}

/* 管理台 --------------------------------------------------------------- */
.admin-page {
  background: #1b181d;
  color: var(--paper);
  min-height: 80vh;
  padding: clamp(44px, 6vw, 76px) 0 100px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(243,234,216,.2);
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.admin-header p {
  margin-top: 10px;
  color: #a49a8a;
  font-size: .8rem;
}

.admin-header .admin-badge {
  padding: 8px 12px;
  border: 2px solid var(--red);
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  transform: rotate(-2deg);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.admin-stat {
  padding: 16px;
  border: 1px solid rgba(243,234,216,.2);
  background: rgba(243,234,216,.035);
}

.admin-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--paper);
}

.admin-stat span {
  display: block;
  margin-top: 6px;
  color: #9d9384;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .05em;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 8px 14px;
  border: 1px solid rgba(243,234,216,.3);
  background: transparent;
  color: #b9afa0;
  font-size: .76rem;
  font-weight: 800;
}

.admin-tab.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.admin-panel {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(22px, 3vw, 34px);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}

.admin-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

.admin-panel h2 small {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.admin-form {
  margin-bottom: 28px;
  padding: 20px;
  background: #efe3ce;
  border: 2px solid var(--ink);
}

.admin-form h3 {
  margin-bottom: 12px;
  font-size: .82rem;
  font-weight: 900;
}

.admin-form .form-grid {
  grid-template-columns: 1fr 1fr;
}

.admin-list {
  display: grid;
  gap: 9px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(11,10,12,.22);
  background: #fbf4e6;
}

.admin-row .admin-row-main {
  min-width: 0;
}

.admin-row h3 {
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.4;
}

.admin-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

.admin-row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-mini-btn {
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 800;
}

.admin-mini-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.admin-mini-btn.danger {
  border-color: var(--red);
  color: var(--red);
}

.admin-mini-btn.danger:hover {
  background: var(--red);
  color: #fff;
}

.admin-user-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-user-id {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  border: 1px dashed rgba(11,10,12,.3);
}

/* 空状态 / 错误 --------------------------------------------------------- */
.empty-state {
  padding: clamp(34px, 6vw, 60px) 24px;
  text-align: center;
  border: 2px dashed rgba(11,10,12,.3);
  background: rgba(255,255,255,.22);
}

.empty-state .empty-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red);
}

.empty-state h3 {
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 900;
}

.empty-state p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
}

.error-page {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  background: var(--paper);
  text-align: center;
}

.error-page .big-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 15rem);
  line-height: .8;
  color: var(--red);
  letter-spacing: -.08em;
}

.error-page h1 {
  margin-top: 10px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
}

.error-page p {
  margin: 12px auto 24px;
  max-width: 430px;
  color: var(--muted);
  font-size: .86rem;
}

/* Toast ---------------------------------------------------------------- */
.toast-root {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(430px, calc(100% - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-left: 5px solid var(--red);
  box-shadow: 5px 5px 0 rgba(217, 35, 46, .55);
  font-size: .8rem;
  font-weight: 700;
  animation: toast-in .25s ease both;
}

.toast.success {
  border-left-color: #70b37e;
}

.toast.error {
  border-left-color: var(--red-hot);
}

.toast.leaving {
  animation: toast-out .2s ease both;
}

/* 页脚 ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--red);
}

.footer-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 100px) max(40px, calc((100% - var(--max-w)) / 2));
  background:
    linear-gradient(120deg, rgba(11,10,12,.96) 0 52%, rgba(11,10,12,.45) 100%),
    var(--red);
}

.footer-cta::after {
  content: "?";
  position: absolute;
  right: 8%;
  top: -30%;
  color: rgba(243, 234, 216, .08);
  font-family: var(--font-display);
  font-size: clamp(18rem, 34vw, 34rem);
  line-height: 1;
  transform: rotate(8deg);
  pointer-events: none;
}

.footer-cta h2 {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 6.4rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.footer-cta h2 em {
  color: var(--red-hot);
  font-style: normal;
}

.footer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) .7fr .7fr .9fr;
  gap: 34px;
  padding: 50px max(40px, calc((100% - var(--max-w)) / 2)) 40px;
  border-top: 1px solid rgba(243,234,216,.13);
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 2px solid var(--paper);
  transform: rotate(-3deg);
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.footer-brand span {
  display: block;
  margin-top: 5px;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: .57rem;
  letter-spacing: .08em;
}

.footer-brand p {
  margin-top: 12px;
  color: #908778;
  font-family: "STSong", "SimSun", serif;
  font-size: .8rem;
}

.footer-col h3 {
  margin-bottom: 15px;
  color: #766e61;
  font-family: var(--font-mono);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  padding: 4px 0;
  color: #b8ae9e;
  font-size: .76rem;
  line-height: 1.6;
  transition: color .15s;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-contact p {
  font-family: var(--font-mono);
  font-size: .68rem;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(40px, calc((100% - var(--max-w)) / 2));
  border-top: 1px solid rgba(243,234,216,.13);
  color: #766e61;
  font-family: var(--font-mono);
  font-size: .57rem;
  letter-spacing: .03em;
}

/* 动效 ----------------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.route-loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.loading-stamp {
  padding: 12px 18px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  transform: rotate(-3deg);
  animation: loading-blink 1s steps(2, end) infinite;
}

@keyframes loading-blink {
  50% { opacity: .35; }
}

/* 响应式 --------------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-header {
    gap: 18px;
  }
  .main-nav a {
    padding-inline: 8px;
    font-size: .79rem;
  }
  .group-chip {
    display: none;
  }
  .hero-inner {
    gap: 30px;
  }
  .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1.3fr .7fr .7fr;
  }
  .footer-contact {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 70px;
  }

  .page-shell {
    width: min(100% - 40px, var(--max-w));
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    order: 3;
    margin-left: 0;
    z-index: 2;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    order: 2;
    margin-left: 0;
    z-index: 2;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 790;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 20px 20px;
    background: var(--ink);
    border-bottom: 4px solid var(--red);
    box-shadow: 0 20px 30px rgba(0,0,0,.35);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    justify-content: space-between;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(243,234,216,.13);
    font-size: .95rem;
  }

  .main-nav a span {
    order: 2;
  }

  .main-nav a::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .auth-slot .auth-register {
    display: none;
  }

  .hero-inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    padding-top: 46px;
    padding-bottom: 26px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 13.4vw, 6rem);
  }

  .hero-visual {
    min-height: 0;
    margin-top: 28px;
  }

  .emblem-card {
    width: min(80%, 400px);
  }

  .hero-stats {
    width: calc(100% - 40px);
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat:nth-child(2) {
    border-right: 0;
  }

  .hero-stat:nth-child(3) {
    border-left: 1px solid rgba(243,234,216,.14);
    border-top: 1px solid rgba(243,234,216,.14);
  }

  .hero-stat:nth-child(4) {
    border-top: 1px solid rgba(243,234,216,.14);
  }

  .intro-grid,
  .manifesto,
  .president-grid,
  .venue-grid,
  .join-grid,
  .daily-stage {
    grid-template-columns: 1fr;
  }

  .intro-aside,
  .manifesto-title,
  .venue-brand {
    position: static;
  }

  .intro-aside {
    max-width: 620px;
  }

  .president-card {
    max-width: 520px;
  }

  .venue-logo-card {
    min-height: 220px;
  }

  .qq-card {
    margin-left: 0;
  }

  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .timeline-tag {
    grid-column: 2;
    justify-self: start;
  }

  .case-grid,
  .commission-grid {
    grid-template-columns: 1fr;
  }

  .post-detail-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .archive-links {
    grid-template-columns: 1fr;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-stage-visual {
    min-height: 320px;
  }

  .route-layout {
    grid-template-columns: 1fr;
  }

  .route-photo {
    max-width: 360px;
  }

  .book-modal {
    grid-template-columns: 1fr;
  }

  .book-modal-cover {
    min-height: 180px;
  }

  .book-modal-cover strong {
    padding-top: 20px;
    font-size: 1.35rem;
  }

  .auth-modal {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    min-height: 140px;
    padding: 18px 22px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .auth-aside .auth-mark {
    font-size: 2.7rem;
  }

  .auth-aside h3 {
    margin: 0;
    padding: 0;
    font-size: 1rem;
  }

  .auth-aside p,
  .auth-aside .auth-foot {
    display: none;
  }

  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-panel .form-grid,
  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding-inline: 24px;
  }

  .footer-cta {
    padding-inline: 24px;
  }

  .footer-base {
    padding-inline: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .page-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero-side {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .page-hero-side .big-num {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding-inline: 16px;
    gap: 10px;
  }

  .brand-mark-wrap {
    width: 38px;
    height: 38px;
  }

  .brand-type small {
    display: none;
  }

  .brand-type strong {
    font-size: .96rem;
  }

  .menu-toggle {
    width: 40px;
    height: 38px;
  }

  .header-actions {
    gap: 8px;
  }

  .auth-slot .auth-login {
    padding: 5px 9px;
    font-size: .66rem;
    border-width: 1.5px;
  }

  .user-menu-trigger {
    padding-right: 4px;
  }

  .notification-bell {
    width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
  }

  .notification-bell-label {
    display: none;
  }

  .user-menu-name {
    display: none;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .page-shell {
    width: calc(100% - 32px);
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding-top: 34px;
  }

  .hero-kicker {
    font-size: .58rem;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 14.8vw, 5rem);
  }

  .hero-title .row.small {
    font-size: .34em;
    margin-top: .35em;
  }

  .hero-title .row.latin {
    font-size: .16em;
    letter-spacing: .06em;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: .88rem;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    min-height: 46px;
    padding: 11px 20px;
    font-size: .82rem;
  }

  .hero-note {
    font-size: .58rem;
    line-height: 1.6;
  }

  .emblem-card {
    width: 78%;
    max-width: 350px;
    margin-inline: auto;
  }

  .emblem-label strong {
    font-size: 1.3rem;
  }

  .emblem-tape.alt {
    right: -8px;
    bottom: 54px;
  }

  .hero-side-note {
    display: none;
  }

  .hero-stats {
    width: calc(100% - 32px);
  }

  .hero-stat {
    padding: 13px 14px 15px;
  }

  .hero-stat::after {
    display: none;
  }

  .hero-stat strong {
    font-size: 1.5rem;
  }

  .hero-stat span {
    font-size: .55rem;
  }

  .ticker {
    height: 42px;
  }

  .ticker-label {
    padding-inline: 14px;
    font-size: .58rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .intro-big {
    font-size: 2.5rem;
  }

  .intro-copy p {
    font-size: .92rem;
    line-height: 1.9;
  }

  .notice-card {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 17px;
  }

  .notice-card .notice-cat {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
  }

  .notice-card .notice-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .notice-card .notice-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .notice-card p {
    -webkit-line-clamp: 2;
  }

  .daily-teaser {
    grid-template-columns: 1fr;
  }

  .daily-teaser-main {
    padding: 30px 24px;
  }

  .daily-teaser-main::after {
    display: none;
  }

  .daily-teaser h2 {
    font-size: 2.6rem;
  }

  .book-ticket {
    min-height: 340px;
    padding: 26px;
  }

  .case-card {
    min-height: 0;
    padding: 20px;
  }

  .brief-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 0;
  }

  .brief-side {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .brief-no {
    font-size: 1.1rem;
  }

  .notice-full {
    padding: 20px;
  }

  .notice-full-head {
    flex-direction: column;
  }

  .notice-full .notice-stamp {
    flex-direction: row;
    align-items: center;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px 4px;
  }

  .timeline-tag {
    grid-column: 1;
  }

  .president-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .president-card-footer {
    font-size: .55rem;
  }

  .venue-price-grid {
    grid-template-columns: 1fr;
  }

  .route-photo {
    transform: none;
  }

  .filter-tabs {
    gap: 5px;
  }

  .filter-tab {
    padding: 6px 10px;
    font-size: .7rem;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-right {
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .post-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 17px;
  }

  .post-row-side {
    grid-column: 2;
    justify-self: start;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .post-index {
    font-size: 1.15rem;
  }

  .post-main p {
    -webkit-line-clamp: 3;
  }

  .post-detail {
    padding: 20px;
  }

  .post-images {
    grid-template-columns: 1fr;
  }

  .post-image img {
    max-height: 480px;
  }

  .image-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .image-picker small {
    display: none;
  }

  .post-sidebar {
    grid-template-columns: 1fr;
  }

  .comment-form {
    padding: 14px;
  }

  .comment-children {
    margin-left: 12px;
    padding-left: 9px;
  }

  .comment-children .comment-children {
    margin-left: 8px;
    padding-left: 8px;
  }

  .comment-head {
    gap: 8px;
  }

  .comment-actions {
    gap: 8px;
  }

  .comment-tip {
    font-size: .68rem;
  }

  .comment-form-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .commission-alert {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
  }

  .commission-alert .alert-action {
    grid-column: 2;
  }

  .commission-card {
    padding: 20px;
  }

  .commission-info-grid {
    grid-template-columns: 1fr;
  }

  .archive-link {
    min-height: 190px;
    padding: 20px;
  }

  .archive-link .archive-copy {
    max-width: 80%;
  }

  .daily-stage-visual {
    min-height: 300px;
    padding: 22px;
  }

  .daily-stage-info {
    padding: 24px;
  }

  .shelf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .book-card {
    min-height: 260px;
    padding: 14px;
  }

  .book-card h3 {
    font-size: 1rem;
    padding-top: 24px;
  }

  .book-card::after {
    display: none;
  }

  .modal-root {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100svh - 20px);
    box-shadow: 6px 6px 0 var(--red);
  }

  .modal-body {
    padding: 18px;
  }

  .auth-main {
    padding: 20px;
  }

  .auth-tabs {
    margin: 16px 0;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-panel {
    padding: 18px;
    box-shadow: 6px 6px 0 var(--red);
  }

  .admin-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .notification-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .notification-item {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 14px;
  }

  .notification-mark {
    width: 34px;
    height: 34px;
    font-size: .95rem;
  }

  .notification-head {
    font-size: .72rem;
  }

  .notification-head time {
    margin-left: 0;
  }

  .notification-snippet {
    font-size: .78rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 20px;
  }

  .footer-brand img {
    width: 60px;
    height: 60px;
  }

  .footer-cta {
    padding: 44px 20px;
  }

  .footer-cta h2 {
    font-size: 2.65rem;
  }

  .footer-base {
    padding: 14px 20px;
    font-size: .52rem;
    line-height: 1.6;
  }

  .page-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .page-hero {
    padding-top: 44px;
  }

  .page-desc {
    font-size: .86rem;
  }

  .page-body {
    padding-top: 38px;
  }

  .page-hero-side {
    flex-wrap: wrap;
  }

  .page-hero-side small {
    font-size: .56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .influence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .influence-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .influence-head > p {
    text-align: left;
  }

  .influence-grid {
    grid-template-columns: 1fr;
  }

  .influence-card {
    min-height: 0;
  }
}
