/* ============================================================
   王子杰先生 · 在线纪念馆
   星空纪念馆主题样式
   ============================================================ */

:root {
  /* 色板 */
  --bg-deep: #070d21;          /* 深空底色 */
  --bg-mid: #0c1533;           /* 中层 */
  --bg-panel: rgba(16, 26, 55, 0.55);
  --bg-panel-solid: #101a37;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);

  --text: #eef1f8;
  --text-dim: #aeb8d0;
  --text-faint: #7d88a8;

  --gold: #e8c67a;             /* 烛光金 */
  --gold-soft: #d8b36a;
  --amber: #ffb454;            /* 烛焰 */
  --white: #f5f6fb;            /* 白菊 */
  --white-dim: #d9dce8;

  --accent: #7ea6ff;           /* 星光蓝 */

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 10px;

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Georgia", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 星空背景 ---------- */
#stars, #stars2, #stars3 {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}
#stars2 { z-index: -2; }
#stars3 { z-index: -1; }

.starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 700px at 50% -10%, #14214d 0%, rgba(20,33,77,0) 55%),
    radial-gradient(900px 600px at 85% 100%, #101a3a 0%, rgba(16,26,58,0) 60%),
    radial-gradient(800px 500px at 10% 90%, #0e1734 0%, rgba(14,23,52,0) 55%),
    linear-gradient(180deg, #070d21 0%, #0a1228 45%, #0b1430 100%);
}

/* 星光用 canvas 渲染，此处为背景微光 */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(600px 300px at 30% 20%, rgba(126,166,255,0.08), transparent 70%),
    radial-gradient(500px 280px at 70% 75%, rgba(232,198,122,0.05), transparent 70%);
  animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 1%, 0) scale(1.08); }
}

/* ---------- 布局骨架 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 33, 0.72);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand .candle-mark { font-size: 22px; }
.brand .brand-text {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--text);
  white-space: nowrap;
}
.brand .brand-sub {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  letter-spacing: 1px;
  transition: all .25s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold); background: rgba(232,198,122,0.10); }

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

/* 语言切换 */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: all .25s;
}
.lang-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: var(--bg-panel-solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  display: none;
  box-shadow: var(--shadow);
  z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%;
  text-align: left;
  background: none; border: none;
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
}
.lang-menu button:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.lang-menu button.current { color: var(--gold); }

/* 移动端菜单 */
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  color: var(--text); font-size: 20px;
  width: 40px; height: 40px; border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center;
}

/* 主容器 */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 60px; }

.page { animation: fadeUp .7s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 通用组件 ---------- */
.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  text-align: center;
  letter-spacing: 3px;
  margin: 8px 0 6px;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 34px;
}
.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 6px auto 30px;
  color: var(--gold);
  opacity: 0.85;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 90px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .25s;
  letter-spacing: 1px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2a1f08;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(232,198,122,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232,198,122,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- 公告横幅 ---------- */
.announce-banner {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 12px 20px;
  background: rgba(232, 198, 122, 0.10);
  border: 1px solid rgba(232, 198, 122, 0.28);
  border-radius: 12px;
  color: var(--gold);
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
}

/* ---------- 首页 Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 40px;
}
.portrait-wrap {
  position: relative;
  width: 180px; height: 180px;
  margin-bottom: 26px;
}
.portrait-ring {
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(232,198,122,0.35);
  animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}
.portrait {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.03), var(--shadow);
  background: linear-gradient(160deg, #1b2850, #0c1533);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.portrait .silhouette { font-size: 84px; filter: grayscale(1); opacity: 0.9; }
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 44px;
  letter-spacing: 8px;
  color: var(--text);
  margin-bottom: 4px;
}
.hero-honorific { font-size: 16px; color: var(--gold); letter-spacing: 4px; margin-bottom: 18px; }
.hero-slogan {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.hero-intro {
  max-width: 640px;
  color: var(--text-faint);
  font-size: 15px;
  margin: 0 auto 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 统计条 */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 140px;
  max-width: 220px;
  text-align: center;
  padding: 18px 10px;
  position: relative;
}
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%;
  width: 1px; height: 56%;
  background: var(--line);
}
.stat .num {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--gold);
  letter-spacing: 1px;
}
.stat .label { font-size: 13px; color: var(--text-faint); letter-spacing: 1px; }

/* ---------- 点烛 / 献花 互动 ---------- */
.interact-hero {
  text-align: center;
  padding: 20px 0 10px;
}

.candle-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 60px;
  margin: 30px auto 10px;
  flex-wrap: wrap;
}
.candle {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  transition: transform .3s;
}
.candle:hover { transform: translateY(-6px); }
.flame {
  width: 26px; height: 42px;
  background: radial-gradient(circle at 50% 80%, #fff7d6 0%, #ffd97a 35%, #ff9a3d 70%, transparent 100%);
  border-radius: 50% 50% 46% 54% / 58% 58% 42% 42%;
  position: relative;
  margin-bottom: -3px;
  filter: drop-shadow(0 0 12px rgba(255,180,84,0.7));
  animation: flicker 1.2s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.flame.off { background: transparent; filter: none; box-shadow: none; }
.flame .halo {
  position: absolute; inset: -14px -10px;
  background: radial-gradient(circle, rgba(255,200,120,0.35), transparent 65%);
  border-radius: 50%;
  animation: haloPulse 2.4s ease-in-out infinite;
}
@keyframes flicker {
  0%   { transform: scaleY(1) scaleX(1) rotate(-1deg); }
  50%  { transform: scaleY(1.12) scaleX(0.92) rotate(1.5deg); }
  100% { transform: scaleY(0.96) scaleX(1.05) rotate(-1deg); }
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.candle .wick {
  width: 3px; height: 9px; background: #4a3a2a; margin: 0 auto; border-radius: 2px;
}
.candle .wax {
  width: 58px; height: 92px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #f4ecd6 0%, #e8dfc6 55%, #d9cfb2 100%);
  box-shadow: inset -6px 0 10px rgba(0,0,0,0.08), inset 4px 0 8px rgba(255,255,255,0.5);
  position: relative;
}
.candle .wax::after {
  content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 8px; border-radius: 4px;
  background: rgba(150,120,60,0.18);
}
.candle .candle-label {
  margin-top: 14px; font-size: 14px; color: var(--text-dim); letter-spacing: 2px;
}

/* 献花按钮组 */
.tribute-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 30px 0;
}
.tribute-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 30px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all .3s;
  min-width: 130px;
}
.tribute-btn:hover { border-color: rgba(232,198,122,0.4); color: var(--text); transform: translateY(-4px); }
.tribute-btn .ico { font-size: 40px; line-height: 1; }
.tribute-btn .name { font-size: 14px; letter-spacing: 1px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 26px; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, var(--gold), transparent);
}
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232,198,122,0.15), 0 0 14px rgba(232,198,122,0.5);
}
.tl-item .tl-date {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.tl-item .tl-title { font-size: 17px; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.tl-item .tl-desc { color: var(--text-dim); font-size: 14px; }

/* ---------- 留言 / 卡片 ---------- */
.msg-form textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  resize: vertical;
  transition: border .25s;
}
.msg-form textarea:focus { outline: none; border-color: rgba(232,198,122,0.5); }
.msg-form input[type="text"] {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border .25s;
}
.msg-form input[type="text"]:focus { outline: none; border-color: rgba(232,198,122,0.5); }
.form-row { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.form-row input { flex: 1 1 180px; }

.masonry { columns: 3 280px; column-gap: 18px; margin-top: 10px; }
.msg-card {
  break-inside: avoid;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  transition: transform .25s, border .25s;
}
.msg-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #33406e, #1a2448);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.msg-name { font-size: 15px; color: var(--text); }
.msg-time { font-size: 12px; color: var(--text-faint); }
.msg-body { color: var(--text-dim); font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.msg-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.msg-foot button {
  background: none; border: none; color: var(--text-faint);
  cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.msg-foot button:hover { color: var(--gold); }
.msg-foot .report { margin-left: auto; }
.msg-foot .report:hover { color: #e08888; }

/* ---------- 相册 ---------- */
.gallery-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 13px;
  transition: all .25s;
}
.chip.active, .chip:hover { color: var(--gold); border-color: rgba(232,198,122,0.4); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.g-item {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: #16203f; border: 1px solid var(--line);
  transition: transform .3s;
}
.g-item:hover { transform: translateY(-5px); }
.g-item .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item .g-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px; background: linear-gradient(160deg, #1b2850, #101a37);
}
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff; font-size: 13px;
}
.g-cap .tag { display: block; font-size: 11px; color: var(--gold); letter-spacing: 1px; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 18, 0.94);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 72vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .lb-ph { font-size: 120px; }
.lightbox .lb-cap { margin-top: 18px; color: var(--text-dim); text-align: center; max-width: 640px; }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 26px; background: none; border: none;
  color: #fff; font-size: 32px; cursor: pointer; opacity: 0.7;
}
.lightbox .lb-close:hover { opacity: 1; }

/* ---------- 分享 ---------- */
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 14px; border-radius: 14px; cursor: pointer;
  background: var(--bg-panel); border: 1px solid var(--line);
  color: var(--text-dim); transition: all .25s;
}
.share-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.share-btn .ico { font-size: 30px; }
.share-btn .name { font-size: 13px; }

.qr-box { text-align: center; margin-top: 30px; }
.qr-box canvas, .qr-box img { border-radius: 12px; border: 8px solid #fff; background: #fff; }

/* 海报 */
.poster {
  background: linear-gradient(160deg, #0c1533, #070d21);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  max-width: 480px;
  margin: 20px auto 0;
}
.poster .p-name { font-family: var(--font-serif); font-size: 30px; letter-spacing: 6px; color: var(--gold); }
.poster .p-line { color: var(--text-dim); font-size: 14px; letter-spacing: 2px; margin: 8px 0 4px; }
.poster .p-qr { margin: 20px auto 0; width: 140px; }

/* ---------- 纪念日历 ---------- */
.calendar { margin-top: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head .month { font-family: var(--font-serif); font-size: 20px; letter-spacing: 2px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text);
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 16px;
}
.cal-nav button:hover { border-color: rgba(255,255,255,0.25); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: 12px; color: var(--text-faint); padding: 6px 0; }
.cal-cell {
  aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid transparent; color: var(--text-dim);
}
.cal-cell.empty { background: transparent; }
.cal-cell.memorial {
  background: rgba(232,198,122,0.16); color: var(--gold); border-color: rgba(232,198,122,0.35);
}
.cal-cell .dot { font-size: 9px; letter-spacing: 1px; }

/* ---------- 声明页 ---------- */
.statement-body { color: var(--text-dim); font-size: 15px; }
.statement-body h3 {
  font-family: var(--font-serif); color: var(--text); font-size: 18px;
  margin: 28px 0 10px; letter-spacing: 1px;
}
.statement-body p { margin-bottom: 10px; }
.statement-body ul { padding-left: 20px; margin-bottom: 10px; }
.statement-body li { margin-bottom: 6px; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 20px 30px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
footer .f-brand { font-family: var(--font-serif); color: var(--text-dim); letter-spacing: 2px; margin-bottom: 8px; }
footer .f-note { max-width: 600px; margin: 0 auto 14px; line-height: 1.8; }
footer a { color: var(--text-faint); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--gold); }

/* ---------- 后台 ---------- */
.admin-wrap { max-width: 960px; margin: 0 auto; }
.admin-login { max-width: 420px; margin: 60px auto; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.admin-tab {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text-dim);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: all .25s;
}
.admin-tab.active { color: var(--gold); border-color: rgba(232,198,122,0.4); background: rgba(232,198,122,0.08); }
.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.admin-table th { color: var(--text-faint); font-weight: 500; }
.admin-table td { color: var(--text-dim); }
.admin-table .actions { display: flex; gap: 8px; }
.admin-table .actions button {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text-dim);
  padding: 5px 12px; border-radius: 8px; cursor: pointer; font-size: 12px;
}
.admin-table .actions button.danger { color: #e08888; border-color: rgba(224,136,136,0.3); }

.admin-input, .admin-textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); padding: 11px 14px; font-size: 14px; font-family: var(--font-sans);
}
.admin-textarea { min-height: 120px; resize: vertical; }
.admin-input:focus, .admin-textarea:focus { outline: none; border-color: rgba(232,198,122,0.5); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-faint); margin-bottom: 6px; letter-spacing: 1px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center;
}
.stat-card .num { font-family: var(--font-serif); font-size: 30px; color: var(--gold); }
.stat-card .label { font-size: 13px; color: var(--text-faint); }

/* toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-panel-solid); border: 1px solid var(--line); color: var(--text);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0;
  transition: all .35s; z-index: 200; box-shadow: var(--shadow); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(7,13,33,0.97); border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .brand .brand-sub { display: none; }
  .hero-name { font-size: 34px; letter-spacing: 5px; }
  .section-title { font-size: 22px; }
  .stat + .stat::before { display: none; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 28px; }
  .portrait-wrap { width: 140px; height: 140px; }
  .candle-scene { gap: 30px; }
}
