/* ==================== 变量（宣纸暖调） ==================== */
:root {
  --accent: #c23a2b;
  --accent-light: #e8d5d2;
  --bg-paper: #f5eed6;
  --bg-section: #efe6cc;
  --bg-card: #faf5e8;
  --border-ink: rgba(44, 44, 44, 0.12);
  --text-ink: #2c2c2c;
  --text-secondary: #5a5345;
  --text-muted: #8a8378;
  --shadow-paper: 0 2px 12px rgba(44, 44, 44, 0.08);
  --shadow-card: 2px 3px 8px rgba(44, 44, 44, 0.1);
  --radius: 4px;
  --container-width: 1100px;
  --font-kai: 'LXGW WenKai', 'Noto Serif SC', 'KaiTi', '楷体', serif;
  --font-song: 'Noto Serif SC', 'SimSun', '宋体', serif;
  --font: 'LXGW WenKai', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
}

/* 夜墨深色覆盖 */
.theme-dark {
  --bg-paper: #1a1a18;
  --bg-section: #22211e;
  --bg-card: #2a2924;
  --border-ink: rgba(200, 190, 170, 0.12);
  --text-ink: #d4cfc4;
  --text-secondary: #a09a8c;
  --text-muted: #706b60;
  --shadow-paper: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-card: 2px 3px 8px rgba(0, 0, 0, 0.25);
}

/* ==================== 基础 ==================== */
body {
  font-family: var(--font);
  background: var(--bg-paper);
  color: var(--text-ink);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--accent); color: #fff; }

/* 纸质纹理（微妙噪点） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ==================== 导航（木纹横匾） ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(245, 238, 214, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-ink);
  box-shadow: 0 1px 8px rgba(44, 44, 44, 0.06);
}

.theme-dark .navbar.scrolled {
  background: rgba(26, 26, 24, 0.92);
}

.navbar.navbar--dark:not(.scrolled) .nav-logo { color: #f5eed6; }
.navbar.navbar--dark:not(.scrolled) .nav-links a { color: rgba(245, 238, 214, 0.6); }
.navbar.navbar--dark:not(.scrolled) .nav-links a:hover { color: #f5eed6; }
.navbar.navbar--dark:not(.scrolled) .nav-toggle span { background: #f5eed6; }

.navbar-inner {
  display: flex;
  align-items: center;
  height: 52px;
}

.nav-logo {
  font-family: var(--font-kai);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-ink);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-kai);
  font-size: 15px;
  color: var(--text-muted);
  padding: 8px 12px;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-ink);
  transition: all 0.3s;
}

/* ==================== Hero 卷首题字 ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 52px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.6s ease;
  background: var(--bg-paper);
}

/* 后台「卷首背景 → 水墨山水」：首页首屏 #hero
 * 注意：background 第一项画在最上层。先前把深色径向渐变写在最前，会整块盖住 SVG，只剩「底部黑遮罩」观感。 */
.hero-bg.hero-bg--ink {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 640' preserveAspectRatio='xMidYMax slice'%3E%3Cpath fill='%231a1a18' fill-opacity='0.2' d='M0%20308%20C140%20302%20195%20228%20315%20242%20C435%20256%20495%20182%20615%20202%20C735%20222%20795%20172%20915%20192%20C1035%20212%201095%20188%201200%20202%20L1200%20640%20L0%20640%20Z'/%3E%3Cpath fill='%231a1a18' fill-opacity='0.32' d='M0%20348%20C110%20342%20175%20268%20285%20282%20C395%20296%20455%20212%20585%20238%20C715%20264%20775%20208%20895%20232%20C1015%20256%201075%20222%201200%20240%20L1200%20640%20L0%20640%20Z'/%3E%3Cpath fill='%231a1a18' fill-opacity='0.42' d='M0%20405%20C130%20398%20205%20318%20340%20335%20C475%20352%20540%20272%20685%20298%20C830%20324%20890%20278%201030%20305%20C1105%20318%201150%20295%201200%20308%20L1200%20640%20L0%20640%20Z'/%3E%3C/svg%3E")
      center 100% / 125% auto no-repeat,
    radial-gradient(ellipse 100% 55% at 50% 100%, rgba(44, 44, 44, 0.045) 0%, transparent 52%),
    linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-section) 50%, #e4dcc6 100%);
}

/* 仅罩上半屏，避免整层白雾把山脚冲淡到「看不见」 */
.hero-bg.hero-bg--ink::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 50% 6%, rgba(255, 255, 255, 0.5) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
  opacity: 0.85;
}

.theme-dark .hero-bg.hero-bg--ink {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 640' preserveAspectRatio='xMidYMax slice'%3E%3Cpath fill='%23c8c2b4' fill-opacity='0.14' d='M0%20308%20C140%20302%20195%20228%20315%20242%20C435%20256%20495%20182%20615%20202%20C735%20222%20795%20172%20915%20192%20C1035%20212%201095%20188%201200%20202%20L1200%20640%20L0%20640%20Z'/%3E%3Cpath fill='%23c8c2b4' fill-opacity='0.24' d='M0%20348%20C110%20342%20175%20268%20285%20282%20C395%20296%20455%20212%20585%20238%20C715%20264%20775%20208%20895%20232%20C1015%20256%201075%20222%201200%20240%20L1200%20640%20L0%20640%20Z'/%3E%3Cpath fill='%23c8c2b4' fill-opacity='0.36' d='M0%20405%20C130%20398%20205%20318%20340%20335%20C475%20352%20540%20272%20685%20298%20C830%20324%20890%20278%201030%20305%20C1105%20318%201150%20295%201200%20308%20L1200%20640%20L0%20640%20Z'/%3E%3C/svg%3E")
      center 100% / 125% auto no-repeat,
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-section) 52%, #121210 100%);
}

.theme-dark .hero-bg.hero-bg--ink::before {
  height: 55%;
  background:
    radial-gradient(ellipse 70% 50% at 50% 5%, rgba(255, 255, 255, 0.08) 0%, transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
  opacity: 1;
}

.hero-bg.hero-bg--plain {
  background: var(--bg-paper) !important;
}

.hero-bg.hero-bg--plain::before {
  display: none;
}

/* 仅用于自定义头图 + 深遮罩；勿盖掉 hero-bg--ink 的远山 */
.hero--dark .hero-bg:not(.hero-bg--ink):not(.hero-bg--plain) {
  background: rgba(26, 26, 24, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

.hero-title {
  font-family: var(--font-kai);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-ink);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero--dark .hero-title { color: #f5eed6; }

.hero-motd-wrap {
  margin-bottom: 36px;
}

.hero-motd {
  display: inline-block;
  font-family: var(--font-kai);
  font-size: 16px;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-left: 3px solid var(--accent);
  text-align: left;
  max-width: 600px;
  line-height: 1.8;
}

.hero--dark .hero-motd { color: rgba(245, 238, 214, 0.7); border-left-color: var(--accent); }

/* 印章式状态 */
.hero-seals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.seal-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--accent);
  padding: 6px 16px;
  font-family: var(--font-kai);
  font-size: 15px;
  color: var(--accent);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.seal-online { font-weight: 700; font-size: 18px; }
.seal-divider { opacity: 0.4; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s;
}

.hero-stat-value { font-family: var(--font-song); }
.hero-stat-label { font-size: 13px; }

.hero-address {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.address-value {
  font-family: var(--font-song);
  font-size: 18px;
  color: var(--text-ink);
  letter-spacing: 0.05em;
}

.hero--dark .address-value { color: #f5eed6; }

/* 印章按钮 */
.stamp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  font-family: var(--font-kai);
  font-size: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: opacity 0.2s, transform 0.15s;
}

.stamp-btn:hover { opacity: 0.85; }
.stamp-btn:active { transform: scale(0.96); }

.copy-btn { padding: 4px 14px; font-size: 13px; }

/* ==================== Section ==================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }

.section-title {
  font-family: var(--font-kai);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--text-ink);
  letter-spacing: 0.3em;
  margin-bottom: 40px;
}

.ink-heading {
  font-family: var(--font-kai);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

/* 水墨分隔线 */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 1px;
}

/* ==================== 横匾铭刻状态 ==================== */
.plaque {
  background: var(--bg-card);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.plaque-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  flex-wrap: wrap;
  font-family: var(--font-kai);
  font-size: 16px;
}

.plaque-label {
  color: var(--text-muted);
  margin-right: 4px;
  letter-spacing: 0.08em;
}

.plaque-value {
  font-family: var(--font-song);
  font-weight: 700;
  color: var(--text-ink);
  font-size: 17px;
}

.plaque-dot {
  color: var(--border-ink);
  font-size: 20px;
}

.status-extra {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-paper);
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-tag {
  padding: 4px 12px;
  background: var(--bg-section);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
  font-family: var(--font-kai);
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== 挂轴画廊 ==================== */
.gallery-categories, .news-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 6px 16px;
  font-family: var(--font-kai);
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--border-ink);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.scroll-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.scroll-gallery::-webkit-scrollbar { height: 6px; }
.scroll-gallery::-webkit-scrollbar-thumb { background: var(--border-ink); border-radius: 3px; }

.scroll-track {
  display: flex;
  gap: 24px;
  padding: 8px 4px;
  width: max-content;
}

.scroll-frame {
  flex-shrink: 0;
  width: 280px;
  text-align: center;
}

.scroll-rod {
  height: 8px;
  background: linear-gradient(180deg, #8b7355, #a0896b, #8b7355);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.theme-dark .scroll-rod {
  background: linear-gradient(180deg, #4a4035, #5a4d40, #4a4035);
}

.scroll-img-wrap {
  cursor: pointer;
  overflow: hidden;
  border-left: 3px solid #a0896b;
  border-right: 3px solid #a0896b;
}

.theme-dark .scroll-img-wrap { border-color: #5a4d40; }

.scroll-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.scroll-frame:hover .scroll-img-wrap img { transform: scale(1.05); }

.scroll-caption {
  font-family: var(--font-kai);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* ==================== 告示牌动态 ==================== */
.notice-board {
  columns: 2;
  column-gap: 20px;
}

.notice-card {
  break-inside: avoid;
  background: var(--bg-card);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
}

.notice-card:hover {
  box-shadow: 4px 5px 15px rgba(44, 44, 44, 0.15);
  transform: rotate(0deg) !important;
}

.notice-pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.notice-stamp {
  display: inline-block;
  font-family: var(--font-kai);
  font-size: 12px;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.notice-title {
  font-family: var(--font-kai);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 8px;
  line-height: 1.5;
}

.notice-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.notice-foot {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.notice-cat {
  font-family: var(--font-kai);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 12px;
}

.notice-date { font-family: var(--font-song); }

.empty-text {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: 0.1em;
}

/* ==================== 弹窗（书卷全篇） ==================== */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; visibility: hidden;
}
.modal.modal--visible { pointer-events: auto; visibility: visible; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(44, 44, 44, 0.45);
  backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.35s;
}
.modal.modal--visible .modal-overlay { opacity: 1; }
.modal.modal--closing .modal-overlay { opacity: 0; }

.modal-content--post.article-scroll-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92%;
  max-width: 720px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.modal.modal--visible .modal-content--post.article-scroll-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.modal.modal--closing .modal-content--post.article-scroll-wrap {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
}

.article-scroll-rod {
  width: min(100%, 704px);
  height: 14px;
  border-radius: 6px;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 40%),
    linear-gradient(90deg, #4a3428 0%, #6b4e3d 18%, #3d2b22 50%, #6b4e3d 82%, #4a3428 100%);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.12),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    0 4px 14px rgba(0,0,0,0.22);
  position: relative;
  z-index: 2;
}
.article-scroll-rod--top { margin-bottom: -2px; }
.article-scroll-rod--bottom { margin-top: -2px; }

.article-scroll-paper {
  position: relative;
  width: 100%;
  max-width: 672px;
  margin: 0 10px;
  max-height: min(74vh, 680px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 24%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(44, 44, 44, 0.04) 27px,
      rgba(44, 44, 44, 0.04) 28px
    ),
    var(--bg-card);
  border: 2px solid rgba(44, 44, 44, 0.22);
  outline: 3px double rgba(44, 44, 44, 0.18);
  outline-offset: -6px;
  box-shadow:
    var(--shadow-paper),
    0 12px 40px rgba(44, 44, 44, 0.12);
  z-index: 1;
}

.article-scroll-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.seal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-family: var(--font-kai);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  background: rgba(250, 245, 232, 0.92);
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  z-index: 12;
  box-shadow: 2px 2px 0 rgba(44, 44, 44, 0.08);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.theme-dark .seal-close {
  background: rgba(42, 41, 36, 0.95);
}
.seal-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(-3deg);
}

.article-scroll-header {
  padding: 36px 48px 12px 28px;
  text-align: center;
  flex-shrink: 0;
}

.article-scroll-eyebrow {
  display: inline-block;
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: 0.45em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px 4px 18px;
  margin-bottom: 14px;
}

.article-scroll-title {
  font-family: var(--font-kai);
  font-size: clamp(20px, 4.2vw, 26px);
  font-weight: 700;
  color: var(--text-ink);
  line-height: 1.45;
  margin: 0;
  letter-spacing: 0.12em;
}

.article-scroll-rule {
  width: 72%;
  max-width: 280px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--border-ink), transparent);
  position: relative;
}
.article-scroll-rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  background: var(--bg-card);
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-content--post .article-scroll-meta.post-meta {
  justify-content: center;
  margin: 14px 0 0;
  font-family: var(--font-song);
}

.modal-scroll.article-scroll-body {
  padding: 8px 28px 28px 36px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.modal-scroll.article-scroll-body::-webkit-scrollbar { width: 5px; }
.modal-scroll.article-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(194, 58, 43, 0.35);
  border-radius: 2px;
}

.post-meta {
  font-size: 14px; color: var(--text-muted);
  margin: 8px 0 20px;
  display: flex; gap: 8px; flex-wrap: wrap;
}

.post-body { line-height: 2; color: var(--text-secondary); }
.post-body img { border-radius: var(--radius); margin: 16px 0; }

.article-body-ink {
  font-family: var(--font-song);
  font-size: 16px;
  text-align: justify;
  text-justify: inter-ideograph;
}
.article-body-ink > p:first-child { text-indent: 2em; }
.article-body-ink p { margin: 0.75em 0; }
.article-body-ink h1,
.article-body-ink h2,
.article-body-ink h3 {
  font-family: var(--font-kai);
  color: var(--text-ink);
  margin: 1.2em 0 0.5em;
  letter-spacing: 0.08em;
}

/* ==================== 题壁诗墙留言 ==================== */
.poem-wall { margin-top: 28px; }

.poem-masonry { columns: 3; column-gap: 16px; }

.poem-card {
  break-inside: avoid;
  background: var(--bg-card);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.poem-card:hover { box-shadow: 3px 4px 14px rgba(44,44,44,0.12); }

.poem-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}

.poem-seal {
  width: 32px; height: 32px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kai); font-size: 16px; font-weight: 700;
  border-radius: 2px; flex-shrink: 0;
}

.poem-name {
  font-family: var(--font-kai); font-weight: 700;
  font-size: 15px; color: var(--text-ink);
}

.poem-time {
  margin-left: auto; font-size: 13px; color: var(--text-muted);
}

.poem-text {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8;
}

.poem-reply {
  margin-top: 10px; padding: 8px 12px;
  background: var(--bg-section);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  font-size: 14px; color: var(--text-secondary);
  font-family: var(--font-kai);
}

/* ==================== 信笺表单 ==================== */
.letter-paper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-paper);
  position: relative;
}

.letter-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  border-top: 2px solid var(--accent);
}

.letter-heading {
  font-family: var(--font-kai);
  font-size: 18px;
  color: var(--text-ink);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.15em;
}

.letter-form { display: flex; flex-direction: column; gap: 4px; }

.letter-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px dashed var(--border-ink);
}

.letter-row--full { align-items: flex-start; }

.letter-label {
  font-family: var(--font-kai);
  font-size: 14px;
  color: var(--accent);
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
  letter-spacing: 0.1em;
}

.letter-form input,
.letter-form textarea,
.letter-form select {
  flex: 1; min-width: 0;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text-ink);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s;
}

.letter-form input:focus,
.letter-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.letter-form textarea { resize: vertical; }
.letter-form select { cursor: pointer; appearance: auto; }

.letter-form input::placeholder,
.letter-form textarea::placeholder {
  color: var(--text-muted); font-style: italic;
}

.btn { cursor: pointer; }

.load-more { text-align: center; margin-top: 24px; }

/* ==================== 白名单查询结果 ==================== */
.whitelist-check { padding: 0; }

.check-result {
  margin-top: 12px; padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-kai);
  font-size: 15px;
}

.status-pending  { background: var(--bg-section); border-left: 3px solid var(--accent); color: var(--text-ink); }
.status-approved { background: var(--bg-section); border-left: 3px solid #2e8b6d; color: #2e8b6d; }
.status-rejected { background: var(--bg-section); border-left: 3px solid #999; color: var(--text-muted); }
.status-notfound { background: var(--bg-section); border-left: 3px solid var(--border-ink); color: var(--text-muted); }

/* ==================== 落款印章页脚 ==================== */
.colophon {
  padding: 44px 0 40px;
  border-top: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg-section) 28%, var(--bg-section) 100%);
}

.colophon-ornament {
  width: 120px;
  height: 4px;
  margin: 0 auto 20px;
  background:
    linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.65;
  position: relative;
}
.colophon-ornament::before,
.colophon-ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.8;
}
.colophon-ornament::before { left: 0; }
.colophon-ornament::after { right: 0; }

.colophon-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.colophon-brand-row {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-ink);
}

.colophon-name {
  font-family: var(--font-kai);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-ink);
  letter-spacing: 0.28em;
  margin: 0 0 10px;
}

.colophon-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-family: var(--font-song);
  font-size: 13px;
  color: var(--text-muted);
}

.colophon-meta-dot {
  color: var(--border-ink);
  user-select: none;
}

.colophon-meta-item:empty {
  display: none;
}

.colophon-seals-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding-top: 20px;
}

.colophon-seal-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.colophon-seal-group:empty {
  display: none;
}

.colophon-seal-group:not(:empty) + .colophon-seal-group:not(:empty) {
  padding-left: 20px;
  margin-left: 4px;
  border-left: 1px solid var(--border-ink);
}

.colophon-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kai);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 2px;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 1px 2px 0 rgba(44, 44, 44, 0.06);
}

.colophon-seal:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 2px 3px 8px rgba(194, 58, 43, 0.25);
}
