/* ============================================================
   星证工坊 · Star Card Studio
   设计系统：深色渐变 · 玻璃拟态 · 细腻微动效
   ============================================================ */

:root {
  --bg0: #07060e;
  --bg1: #0f0c22;
  --bg2: #1b1233;
  --ink: #f5f3ff;
  --ink-dim: rgba(245, 243, 255, 0.66);
  --ink-faint: rgba(245, 243, 255, 0.42);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-hover: rgba(255, 255, 255, 0.13);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-soft: rgba(255, 255, 255, 0.07);
  --brand: #ff5f8f;
  --brand2: #8b5cf6;
  --brand3: #22d3ee;
  --grad-brand: linear-gradient(120deg, #ff5f8f, #a855f7 52%, #22d3ee);
  --grad-soft: linear-gradient(120deg, rgba(255, 95, 143, .16), rgba(139, 92, 246, .16), rgba(34, 211, 238, .16));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .72);
  --shadow-glow: 0 10px 40px -10px rgba(168, 85, 247, .55);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", var(--font-sans);
  --font-song: "Songti SC", "SimSun", "宋体", serif;
  --font-hei: "Heiti SC", "Microsoft YaHei", "黑体", var(--font-sans);
  --font-round: "Yuanti SC", "YouYuan", "幼圆", "圆体", var(--font-sans);
  --ease: cubic-bezier(.22, .68, .28, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg0);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* —— 动态极光背景 —— */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(42% 42% at 12% 8%, rgba(255, 95, 143, .20), transparent 62%),
    radial-gradient(50% 46% at 88% 16%, rgba(139, 92, 246, .22), transparent 66%),
    radial-gradient(46% 44% at 70% 92%, rgba(34, 211, 238, .14), transparent 64%),
    radial-gradient(60% 60% at 24% 86%, rgba(190, 90, 255, .12), transparent 62%),
    linear-gradient(160deg, var(--bg0), var(--bg1) 48%, var(--bg2));
  filter: blur(6px);
  animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}

::selection { background: rgba(255, 95, 143, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: content-box; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }

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

/* ================= 顶部导航 ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(10, 8, 24, .55);
  border-bottom: 1px solid var(--stroke-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
}
.logo-badge {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px -6px rgba(255, 95, 143, .7), inset 0 0 0 1px rgba(255,255,255,.25);
  animation: badgeFloat 5s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-3px) rotate(4deg); }
}
.logo em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--ink); background: var(--glass); }
.nav-links a.active { color: #fff; background: var(--glass-strong); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.nav-cta {
  margin-left: 6px;
}
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  cursor: pointer;
  place-items: center;
}
.nav-burger svg { width: 20px; height: 20px; stroke: var(--ink); }

/* ================= 页脚 ================= */
.footer {
  margin-top: 90px;
  border-top: 1px solid var(--stroke-soft);
  background: rgba(8, 6, 18, .5);
  backdrop-filter: blur(12px);
}
.footer-inner {
  padding: 44px 0 34px;
  display: grid;
  gap: 26px;
  text-align: center;
}
.footer .logo { justify-content: center; font-size: 17px; }
.footer-tag { color: var(--ink-faint); font-size: 13.5px; max-width: 560px; margin: 0 auto; }
.footer-note { color: var(--ink-faint); font-size: 12px; opacity: .8; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 95, 143, .65);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(255, 95, 143, .85); transform: translateY(-1px); }
.btn-ghost {
  background: var(--glass);
  border-color: var(--stroke);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--glass-hover); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-glow {
  background: var(--glass-strong);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
}
.btn-glow:hover { box-shadow: var(--shadow-glow); border-color: rgba(255,255,255,.32); transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ================= 表单 ================= */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-dim); letter-spacing: .02em; }
.field label i { color: var(--brand); font-style: normal; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 8, 24, .5);
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(168, 85, 247, .7);
  background: rgba(16, 12, 34, .72);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .16);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b9b2dd' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.select option { background: #151028; color: var(--ink); }
.textarea { resize: vertical; min-height: 74px; }
input[type="color"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
  padding: 4px;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 9px; }
input[type="color"]::-moz-color-swatch { border: none; border-radius: 9px; }

/* ================= 玻璃卡片 ================= */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.section-title .step {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(255,95,143,.6);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), transparent);
}

/* ================= 主页 Hero ================= */
.hero {
  padding: 64px 0 34px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand3);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .22);
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.14;
}
.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 24px rgba(168, 85, 247, .45));
}
.hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 16px;
}
.hero-metrics {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 60px);
  margin-top: 30px;
}
.hero-metrics .m b {
  display: block;
  font-size: 26px;
  font-weight: 900;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #fff;
}
.hero-metrics .m span { font-size: 12.5px; color: var(--ink-faint); }

/* ================= 生成器布局 ================= */
.gen-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
}
.gen-config {
  padding: 24px;
}
.gen-config h3.sub {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 4px 0 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* —— 模板选择 —— */
.tpl-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
}
.tpl-chip {
  flex: none;
  width: 86px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid var(--stroke);
  background: var(--glass);
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .25s;
}
.tpl-chip:hover { transform: translateY(-3px); background: var(--glass-hover); }
.tpl-chip.sel {
  border-color: rgba(168, 85, 247, .75);
  background: rgba(168, 85, 247, .14);
  box-shadow: 0 8px 22px -8px rgba(168, 85, 247, .6);
}
.tpl-ava {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 8px 16px -6px rgba(0,0,0,.6);
}
.tpl-chip span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  white-space: nowrap;
}
.tpl-chip.sel span { color: #fff; }

/* —— 风格选择 —— */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 640px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
.style-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .25s;
}
.style-card:hover { transform: translateY(-2px); background: var(--glass-hover); }
.style-card.sel {
  border-color: rgba(255, 95, 143, .7);
  background: rgba(255, 95, 143, .12);
  box-shadow: 0 8px 22px -8px rgba(255, 95, 143, .55);
}
.style-swatch {
  width: 100%;
  height: 40px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
}
.style-card span { font-size: 12px; font-weight: 700; color: var(--ink-dim); }
.style-card.sel span { color: #fff; }
.sw-neon {
  background: conic-gradient(from 180deg, #ff5f8f, #a855f7, #22d3ee, #ff5f8f);
  animation: hueSpin 4s linear infinite;
}
@keyframes hueSpin { to { filter: hue-rotate(360deg); } }
.sw-retro { background: linear-gradient(135deg, #f2c57c, #c97b4a 45%, #3a2417); }
.sw-minimal { background: linear-gradient(135deg, #f4f4f6, #c9c9d4 40%, #82828e); }
.sw-luxury { background: linear-gradient(135deg, #f7e08b, #c9a227 35%, #221a05); }
.sw-candy { background: linear-gradient(135deg, #ffd3e0, #ff9ec2 45%, #7be0ff); }
.sw-classic { background: linear-gradient(135deg, #7aa2ff, #3b2f8f 45%, #0f1233); }

/* —— 贴纸选择 —— */
.sticker-row { display: flex; flex-wrap: wrap; gap: 9px; }
.sticker-pill {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 22px;
  border-radius: 13px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .2s, background .2s, box-shadow .22s;
}
.sticker-pill:hover { transform: scale(1.12) rotate(-6deg); }
.sticker-pill.sel {
  border-color: rgba(34, 211, 238, .8);
  background: rgba(34, 211, 238, .16);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .2);
}

/* ================= 预览区 ================= */
.gen-preview {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.preview-stage {
  position: relative;
  border-radius: 24px;
  padding: clamp(18px, 4vw, 34px);
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(168, 85, 247, .16), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview-stage::before {
  content: "LIVE · 实时预览";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #ff9ec2;
  background: rgba(255, 95, 143, .12);
  border: 1px solid rgba(255, 95, 143, .3);
}
.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.preview-actions .wide { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .gen-layout { grid-template-columns: 1fr; }
  .gen-preview { position: static; }
  .preview-stage { order: -1; }
}

/* ================= 粉丝证卡片（DOM） ================= */
.fan-card {
  --c-bg1: #1b2a6b;
  --c-bg2: #3b2f8f;
  --c-bg3: #0f1233;
  --c-accent: #7aa2ff;
  --c-accent2: #c084fc;
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 3 / 4.2;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 88% 2%, var(--c-accent) 0%, transparent 52%),
    radial-gradient(130% 100% at 4% 104%, var(--c-accent2) 0%, transparent 50%),
    linear-gradient(150deg, var(--c-bg1), var(--c-bg2) 52%, var(--c-bg3));
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .09) inset;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.fan-card:hover { transform: translateY(-6px) rotateZ(-.6deg); }
.fan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255,255,255,.18) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  opacity: .16;
  pointer-events: none;
}

/* 卡片内部装饰环 */
.fc-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  pointer-events: none;
}
.fc-ring.r1 { width: 240px; height: 240px; top: -70px; right: -60px; }
.fc-ring.r2 { width: 300px; height: 300px; bottom: -120px; left: -100px; border-color: rgba(255,255,255,.08); }
.fc-sweep {
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  transform: rotate(18deg);
  pointer-events: none;
  animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(-46%) rotate(18deg);} 100% { transform: translateX(46%) rotate(18deg);} }

.fc-body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 20px;
  text-align: center;
  z-index: 2;
}
.fc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}
.fc-head .hc { color: var(--c-accent); text-shadow: 0 0 12px var(--c-accent); }
.fc-id {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  background: rgba(0, 0, 0, .2);
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.14);
}
.fc-avatar {
  position: relative;
  width: 116px; height: 116px;
  margin: 26px 0 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, var(--c-accent), var(--c-accent2));
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.65), 0 0 0 3px rgba(255,255,255,.22), 0 0 0 7px rgba(255,255,255,.06);
  animation: avatarPulse 3.6s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 14px 34px -10px rgba(0,0,0,.65), 0 0 0 3px rgba(255,255,255,.22), 0 0 0 7px rgba(255,255,255,.06); }
  50%      { box-shadow: 0 14px 40px -8px var(--c-accent), 0 0 0 3px rgba(255,255,255,.26), 0 0 0 9px rgba(255,255,255,.09); }
}
.fc-avatar .halo {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.35);
  animation: haloSpin 16s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }
.fc-star { font-size: 27px; font-weight: 900; letter-spacing: .08em; text-shadow: 0 4px 16px rgba(0,0,0,.4); }
.fc-genre {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .72);
  background: rgba(255,255,255,.1);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.16);
}
.fc-divider {
  width: 72%;
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  position: relative;
}
.fc-divider::after {
  content: "✦";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--c-accent);
  background: rgba(12, 10, 26, .85);
  padding: 0 8px;
}
.fc-fanlabel { font-size: 10px; letter-spacing: .34em; color: rgba(255,255,255,.55); font-weight: 600; }
.fc-fanname {
  font-size: 30px;
  font-weight: 900;
  margin-top: 3px;
  letter-spacing: .05em;
  line-height: 1.25;
  max-width: 88%;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 20px rgba(0,0,0,.45);
}
.fc-meta { display: flex; gap: 9px; margin-top: 12px; align-items: center; }
.fc-level {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(120deg, var(--c-accent), var(--c-accent2));
  box-shadow: 0 6px 16px -6px var(--c-accent);
}
.fc-days {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
}
.fc-slogan {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .88);
  max-width: 88%;
  overflow-wrap: anywhere;
}
.fc-foot {
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}
.fc-qr {
  width: 46px; height: 46px;
  border-radius: 9px;
  padding: 4px;
  background: #fff;
  position: absolute;
  right: 16px; bottom: 30px;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.5);
}
.fc-qr img { width: 100%; height: 100%; border-radius: 5px; }
.fc-brand { position: absolute; left: 16px; bottom: 38px; text-align: left; }

/* 贴纸 */
.stk {
  position: absolute;
  font-size: 22px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.35));
  animation: floaty 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-7px) rotate(calc(var(--rot, 0deg) + 5deg)); }
}

/* —— 风格皮肤 —— */
.fan-card.style-retro::before { opacity: .32; }
.fan-card.style-retro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 190, 110, .28), transparent 55%),
    linear-gradient(180deg, rgba(120, 70, 20, .22), transparent 60%, rgba(60, 30, 10, .3));
  mix-blend-mode: overlay;
}
.fan-card.style-retro .fc-avatar { background: linear-gradient(145deg, #f2c57c, #c97b4a); }

.fan-card.style-neon::before { opacity: .2; }
.fan-card.style-neon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: conic-gradient(from 210deg, var(--c-accent), var(--c-accent2), var(--c-bg3) 30% 70%, var(--c-accent));
  animation: hueSpin 6s linear infinite;
  opacity: .9;
  mix-blend-mode: color-dodge;
}
.fan-card.style-neon { box-shadow: 0 0 0 1px var(--c-accent), 0 0 34px -4px var(--c-accent), 0 34px 70px -26px rgba(0,0,0,.8); }
.fan-card.style-neon .fc-star, .fan-card.style-neon .fc-fanname { text-shadow: 0 0 14px var(--c-accent), 0 0 34px var(--c-accent2); }

.fan-card.style-luxury::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(247, 224, 139, .06) 0 2px, transparent 2px 6px),
    linear-gradient(150deg, rgba(20,16,6,.5), transparent 60%, rgba(40,28,4,.5));
}
.fan-card.style-luxury .fc-avatar { background: linear-gradient(145deg, #f7e08b, #c9a227); }
.fan-card.style-luxury .fc-star, .fan-card.style-luxury .fc-fanname { font-family: var(--font-song); }

.fan-card.style-minimal::before { opacity: 0; }
.fan-card.style-minimal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.02) 40%, rgba(0,0,0,.12));
}
.fan-card.style-minimal .fc-ring, .fan-card.style-minimal .fc-sweep { display: none; }
.fan-card.style-minimal .fc-avatar { background: linear-gradient(145deg, #f4f4f6, #a8a8b6); color: #222; }

.fan-card.style-candy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, rgba(255, 211, 224, .3), transparent 55%, rgba(123, 224, 255, .24));
}
.fan-card.style-candy { border: 3px dashed rgba(255, 255, 255, .55); }
.fan-card.style-candy .fc-avatar { background: linear-gradient(145deg, #ffd3e0, #ff9ec2); }
.fan-card.style-candy .fc-star, .fan-card.style-candy .fc-fanname { font-family: var(--font-round); }

/* —— 边框款式 —— */
.fan-card.border-gold { box-shadow: 0 34px 70px -26px rgba(0,0,0,.85), 0 0 0 3px #d4af37, 0 0 24px -6px rgba(212,175,55,.5); }
.fan-card.border-line { box-shadow: 0 34px 70px -26px rgba(0,0,0,.85), 0 0 0 2px rgba(255,255,255,.85); }
.fan-card.border-glow { box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 44px -6px var(--c-accent), 0 34px 70px -26px rgba(0,0,0,.8); }

/* —— 卡片字体 —— */
.fc-font-kai .fc-star, .fc-font-kai .fc-fanname, .fc-font-kai .fc-slogan { font-family: var(--font-kai); }
.fc-font-song .fc-star, .fc-font-song .fc-fanname, .fc-font-song .fc-slogan { font-family: var(--font-song); }
.fc-font-hei .fc-star, .fc-font-hei .fc-fanname, .fc-font-hei .fc-slogan { font-family: var(--font-hei); }
.fc-font-round .fc-star, .fc-font-round .fc-fanname, .fc-font-round .fc-slogan { font-family: var(--font-round); }

/* ================= 模板库 ================= */
.page-head { padding: 52px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; }
.page-head h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-head p { color: var(--ink-dim); margin-top: 10px; max-width: 600px; margin-inline: auto; }
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 30px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all .22s;
}
.filter-chip:hover { color: #fff; background: var(--glass-hover); }
.filter-chip.sel {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(255, 95, 143, .6);
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.tpl-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), box-shadow .35s, border-color .3s;
}
.tpl-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.14); }
.tpl-preview {
  position: relative;
  aspect-ratio: 3 / 3.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  overflow: hidden;
  padding: 18px;
}
.tpl-preview .big { font-size: 58px; font-weight: 900; text-shadow: 0 6px 20px rgba(0,0,0,.4); }
.tpl-preview .mid { font-size: 15px; letter-spacing: .3em; font-weight: 700; }
.tpl-preview .sub { font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.75); }
.tpl-preview .mini-ava {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 34px; font-weight: 900; color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 12px 26px -8px rgba(0,0,0,.6);
}
.tpl-preview::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.3px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: .14;
}
.tpl-info { padding: 16px 18px 18px; }
.tpl-info h3 { font-size: 16px; font-weight: 800; }
.tpl-info .genre { font-size: 12px; color: var(--ink-faint); margin: 2px 0 12px; }
.tpl-info .btn { width: 100%; }

/* ================= 展示墙 ================= */
.wall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}
.wall-toolbar p { font-size: 14px; color: var(--ink-dim); }
.wall-toolbar p b { color: #fff; }
.masonry {
  columns: 4 260px;
  column-gap: 18px;
}
.work {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), box-shadow .35s;
  animation: rise .6s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.work:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -18px rgba(0,0,0,.72); }
.work-thumb { position: relative; aspect-ratio: 3 / 4.2; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb.grad {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
  color: #fff;
}
.work-thumb.grad .big { font-size: 52px; font-weight: 900; text-shadow: 0 6px 18px rgba(0,0,0,.4); }
.work-thumb.grad .mid { font-size: 13px; letter-spacing: .26em; font-weight: 700; }
.work-thumb.grad .fan { font-size: 20px; font-weight: 800; margin-top: 8px; }
.work-thumb .level-ribbon {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(10, 8, 24, .6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
}
.work-thumb .like-ribbon {
  position: absolute;
  top: 12px; right: 12px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(10, 8, 24, .6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
}
.work-body { padding: 13px 15px 15px; }
.work-body .who { display: flex; align-items: center; gap: 9px; }
.work-body .who .ava {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex: none;
}
.work-body .who .nm { font-size: 13.5px; font-weight: 700; }
.work-body .who .st { font-size: 11.5px; color: var(--ink-faint); }
.work-body .slogan {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  font-style: italic;
  overflow-wrap: anywhere;
}
.work-actions { display: flex; gap: 8px; margin-top: 12px; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all .2s;
}
.action-btn:hover { color: #fff; background: var(--glass-hover); transform: translateY(-1px); }
.action-btn.liked { color: #ff5f8f; border-color: rgba(255,95,143,.5); background: rgba(255,95,143,.12); }
.action-btn.liked svg { fill: #ff5f8f; }
.action-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wall-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-faint);
}
.wall-empty .big { font-size: 60px; margin-bottom: 14px; }

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 12, .6);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(440px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: linear-gradient(160deg, #191331, #120d24);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  transform: translateY(18px) scale(.97);
  transition: transform .3s var(--ease);
}
.modal-mask.open .modal { transform: none; }
.modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.modal .sub { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 16px; }
.comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; max-height: 220px; overflow: auto; }
.comment {
  display: flex; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
}
.comment .ava {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.comment .txt b { font-size: 12.5px; display: block; }
.comment .txt p { font-size: 13px; color: var(--ink-dim); margin-top: 2px; overflow-wrap: anywhere; }
.comment-empty { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 18px 0; }

/* ================= Toast ================= */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(22, 17, 42, .85);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.7);
  animation: toastIn .35s var(--ease);
  max-width: min(90vw, 420px);
}
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 10px var(--brand);
  flex: none;
}
.toast.err .dot { background: #ff5f5f; box-shadow: 0 0 10px #ff5f5f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ================= 滚动显现 ================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================= 响应式 ================= */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 6px;
    background: rgba(10, 8, 24, .92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 13px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .hero { padding-top: 42px; }
  .preview-actions { grid-template-columns: 1fr; }
  .footer-inner { padding: 34px 0 26px; }
}

/* ================= 首页：三步上手 + CTA ================= */
.steps { padding: 10px 0 26px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .35s, border-color .3s;
}
.step-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .22); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .7); }
.step-card .ic {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 24px;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.step-card h3 { font-size: 15.5px; font-weight: 800; }
.step-card p { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; line-height: 1.7; }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }

.cta-banner {
  margin: 26px 0 0;
  padding: clamp(30px, 6vw, 54px) 24px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% -20%, rgba(255, 95, 143, .28), transparent 60%),
    radial-gradient(60% 120% at 80% 120%, rgba(34, 211, 238, .18), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: clamp(22px, 4vw, 34px); font-weight: 900; }
.cta-banner p { color: var(--ink-dim); margin: 10px auto 22px; max-width: 520px; }
