/* ============================================================
   星忆纪念册 · 全局样式
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg-0: #0a0614;
  --bg-1: #150b2b;
  --bg-2: #251040;
  --ink: #f2edff;
  --muted: #a79dc8;
  --muted-2: #7d7399;
  --accent: #ff5d8f;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --gold: #ffc94d;
  --card: rgba(255, 255, 255, .055);
  --card-2: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .08);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 520px at -10% 20%, rgba(255, 93, 143, .16), transparent 60%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2));
  background-attachment: fixed;
}

#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

.container { width: min(1080px, 92%); margin-inline: auto; }

::selection { background: rgba(255, 93, 143, .4); color: #fff; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 6, 20, .62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(255, 93, 143, .4);
  font-size: 17px;
}
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: .2s;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 93, 143, .25), rgba(139, 92, 246, .25));
  border: 1px solid rgba(255, 255, 255, .14);
}

/* ===== 通用布局 ===== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.card-head { margin-bottom: 16px; }
.card-title { margin: 0; font-size: 20px; }
.card-sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.gen-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.list-count { font-size: 13px; color: var(--muted); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, opacity .18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 93, 143, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 93, 143, .5); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); transform: translateY(-1px); }
.btn-danger { background: rgba(255, 71, 87, .14); color: #ff8b8b; border-color: rgba(255, 71, 87, .3); }
.btn-danger:hover { background: rgba(255, 71, 87, .24); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-dash {
  width: 100%;
  padding: 14px;
  border: 1.5px dashed var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: .2s;
}
.btn-dash:hover { color: #fff; border-color: var(--accent); background: rgba(255, 93, 143, .06); }

/* ===== 表单 ===== */
.field { margin-bottom: 16px; }
.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.input, .textarea, .select {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 93, 143, .18);
  background: rgba(255, 255, 255, .07);
}
.textarea { resize: vertical; }
.select option { background: #1a1030; color: #fff; }

/* 应援色 */
.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: .2s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.color-input {
  width: 44px; height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.color-hex {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  margin: 4px 0 18px;
}
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ===== 徽章 / 筛选 ===== */
.badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.cat-debut   { background: rgba(255, 201, 77, .16);   color: #ffc94d; }
.cat-album   { background: rgba(34, 211, 238, .14);   color: #7deefc; }
.cat-award   { background: rgba(255, 159, 67, .14);   color: #ffb45e; }
.cat-concert { background: rgba(255, 93, 143, .15);   color: #ff8fb0; }
.cat-show    { background: rgba(167, 139, 250, .15);  color: #c4b5fd; }
.cat-other   { background: rgba(169, 163, 201, .15);  color: #c9c3e6; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: .2s;
}
.chip:hover { color: #fff; }
.chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 93, 143, .35);
}

/* ===== 首页 Hero ===== */
.hero { text-align: center; padding: 60px 0 36px; }
.hero-eyebrow {
  display: inline-block;
  letter-spacing: .28em;
  font-size: 12px;
  color: var(--accent-3);
  border: 1px solid rgba(34, 211, 238, .35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
}
.grad-text {
  background: linear-gradient(120deg, #ff5d8f, #a78bfa, #22d3ee, #ffc94d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 18px);
  max-width: 640px;
  margin: 0 auto 26px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 功能卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 12px;
}
.feature {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(255, 93, 143, .5); }
.feature-icon { font-size: 34px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== 统计 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.stat-num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== 事件编辑行 ===== */
.event-row {
  display: grid;
  grid-template-columns: 130px 150px 1fr 1fr 36px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .02);
  margin-bottom: 10px;
}
.er-del {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}
.er-del:hover { color: #ff8b8b; border-color: rgba(255, 71, 87, .5); background: rgba(255, 71, 87, .1); }

/* ===== 时间线 ===== */
.timeline { position: relative; }
.tl-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: var(--card);
  border: 2px solid var(--dot, #ff5d8f);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 6px 18px rgba(0, 0, 0, .3);
  z-index: 1;
}
.tl-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--dot, #ff5d8f), rgba(255, 255, 255, .08));
  margin-top: 4px;
  min-height: 12px;
}
.tl-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: .25s;
}
.tl-card:hover { border-color: rgba(255, 255, 255, .22); transform: translateX(3px); }
.tl-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.tl-date { color: var(--muted-2); font-size: 13px; }
.rel-badge {
  color: var(--gold);
  font-size: 12px;
  border: 1px solid rgba(255, 201, 77, .4);
  padding: 2px 8px;
  border-radius: 999px;
}
.tl-title { margin: 0; font-size: 17px; }
.tl-desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ===== 汇总卡 / 倒计时 ===== */
.summary-main {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.summary-name { font-size: 30px; margin: 6px 0; }
.summary-motto { color: var(--muted); margin: 0; }
.summary-date { color: var(--muted-2); font-size: 14px; margin: 6px 0 0; }
.summary-stats { display: flex; gap: 12px; }

.countdown {
  background: linear-gradient(135deg, rgba(255, 93, 143, .14), rgba(139, 92, 246, .14));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 18px;
}
.countdown-label { font-size: 14px; color: var(--muted); }
.cd {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.cd-block b {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
}
.cd-block span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cd i { color: var(--accent); font-size: 22px; font-style: normal; }
.countdown-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

.notice {
  background: rgba(255, 201, 77, .1);
  border: 1px solid rgba(255, 201, 77, .3);
  color: #ffdf9e;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.notice a { color: #ffc94d; }

/* ===== 进度 ===== */
.progress-card {
  margin-top: 18px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.progress-head { display: flex; justify-content: space-between; font-size: 14px; }
.progress-head b { color: var(--accent); }
.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width .4s ease;
}
.progress-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ===== 应援任务清单 ===== */
.type-boxes { margin-bottom: 16px; }
.type-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--card-2);
  cursor: pointer;
  margin: 0 8px 8px 0;
  font-size: 14px;
  color: var(--muted);
  transition: .2s;
}
.type-check:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 93, 143, .1);
  color: #fff;
}
.type-check input { accent-color: var(--accent); }
.type-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.cl-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card-2);
  margin-bottom: 10px;
  transition: .2s;
}
.cl-item.done { opacity: .5; }
.cl-item.done .cl-title { text-decoration: line-through; }
.cl-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  flex: none;
  margin-top: 2px;
  transition: .2s;
}
.cl-item.done .cl-check {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.cl-body { flex: 1; min-width: 0; }
.cl-title { font-weight: 600; }
.cl-meta {
  display: flex;
  gap: 10px;
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 2px;
  flex-wrap: wrap;
  align-items: center;
}
.cl-days { color: var(--accent-3); }
.cl-days.today { color: var(--gold); font-weight: 700; }
.cl-days.done-days { color: var(--muted-2); }
.cl-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cl-del {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  font-size: 17px;
  cursor: pointer;
  flex: none;
  transition: .2s;
}
.cl-del:hover { color: #ff8b8b; background: rgba(255, 71, 87, .1); }

.add-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.add-form .input { flex: 2 1 180px; }
.add-form .select { flex: 1 1 120px; }

/* ===== 海报 ===== */
.poster-layout {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 28px;
  align-items: start;
}
.poster-stage { position: sticky; top: 84px; }
.poster-preview {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.poster-preview canvas { display: block; width: 100%; height: auto; }
.poster-stage .btn { margin-top: 14px; }
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: .2s;
  background: var(--card-2);
  font-size: 15px;
}
.drop-zone small { color: var(--muted-2); }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); color: #fff; background: rgba(255, 93, 143, .06); }
.drop-zone.has-photo { border-style: solid; border-color: var(--accent); color: #fff; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-icon { font-size: 44px; margin-bottom: 10px; opacity: .8; }
.empty h3 { color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0; font-size: 14px; }
.empty-actions { margin-top: 12px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: rgba(20, 12, 38, .92);
  border: 1px solid var(--line);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 99;
  font-size: 14px;
  max-width: 86vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-type="warn"] { border-color: rgba(255, 201, 77, .5); }

/* ===== 页脚 ===== */
.footer { text-align: center; color: var(--muted-2); padding: 30px 0 44px; font-size: 13px; }

/* ===== 动画 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: fadeUp .55s cubic-bezier(.2, .7, .3, 1) both; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .poster-layout { grid-template-columns: 1fr; }
  .poster-stage { position: static; }
  .poster-preview { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .event-row { grid-template-columns: 1fr 1fr 36px; }
  .er-cat { grid-column: 1 / -1; }
  .er-title { grid-column: 1 / -1; }
  .er-desc { grid-column: 1 / 2; }
  .er-del { grid-column: 3 / 4; grid-row: 1 / 2; justify-self: end; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
}

@media (max-width: 460px) {
  .grid-3 { grid-template-columns: 1fr; }
  .summary-stats { width: 100%; }
}

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

/* ===== 策划页：分段控件 / 目标日期 ===== */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
}
.seg-btn:hover { color: #fff; }
.seg-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 93, 143, .3);
}
.target-custom { margin-top: 10px; max-width: 320px; }
.hidden { display: none !important; }

/* ===== 策划页：方案标签 ===== */
.plan-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-tab {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
}
.plan-tab:hover { color: #fff; }
.plan-tab.active {
  background: rgba(255, 93, 143, .14);
  border-color: var(--accent);
  color: #fff;
}

/* ===== 策划页：清单分组 ===== */
.cl-group { margin-bottom: 16px; }
.cl-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== 海报页：模板选择 ===== */
.poster-controls { display: grid; gap: 20px; }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tmpl {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--card-2);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  padding: 0;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tmpl:hover { transform: translateY(-3px); border-color: var(--accent); }
.tmpl.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 93, 143, .25);
}
.t-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 14px 0 7px;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
}

/* ===== 海报页：照片 / 操作 ===== */
.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--card-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.poster-actions { display: grid; gap: 10px; }
.toggle-row { display: flex; gap: 18px; flex-wrap: wrap; }
.toggle-row .toggle { margin: 0; }
