/* ============================================================
   PokerWizard 工坊 — 全站共享样式
   主题：深夜牌室（近黑深蓝灰 + 牌桌绒绿 + 金色高光）
   ============================================================ */

:root {
  --bg: #07090d;
  --panel: rgba(20, 26, 34, 0.62);
  --panel-solid: #12171e;
  --panel-border: rgba(255, 255, 255, 0.08);
  --felt: #1f9d66;
  --felt-hover: #34c785;
  --gold: #e3b448;
  --gold-soft: #f6dc91;
  --text: #ecebe6;
  --text-dim: #93a0ab;
  --danger: #e0473a;
  --glow-felt: 0 0 0 1px rgba(52, 199, 133, 0.35), 0 10px 40px -10px rgba(31, 157, 102, 0.55);
  --glow-gold: 0 0 0 1px rgba(227, 180, 72, 0.35), 0 10px 40px -12px rgba(227, 180, 72, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-title: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--felt-hover); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

/* ---------- 顶部导航 ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--text); }
.nav-logo .suits { font-size: 0.85rem; letter-spacing: 2px; }
.nav-logo .suits .red { color: var(--danger); }
.nav-logo .suits .black { color: var(--text-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-user { color: var(--gold); font-size: 0.9rem; }

/* ---------- 通用容器与卡片 ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
  flex: 1;
}
.container-narrow { max-width: 760px; }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  padding: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 164, 55, 0.45), transparent);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 6px;
  border: 1px solid var(--felt);
  background: var(--felt);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--felt-hover); border-color: var(--felt-hover); color: #fff; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: rgba(212, 164, 55, 0.12); color: var(--gold); border-color: var(--gold); }

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 4px 14px;
  font-size: 0.85rem;
}
.btn-danger:hover { background: rgba(192, 57, 43, 0.15); color: var(--danger); border-color: var(--danger); }

.btn-small {
  padding: 4px 14px;
  font-size: 0.85rem;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 表单 ---------- */

.form-card {
  max-width: 460px;
  margin: 60px auto;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.form-title .gold { color: var(--gold); }

.form-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--felt);
}
.form-group textarea { min-height: 110px; resize: vertical; }

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 10px 0;
  min-height: 1.2em;
}
.form-success {
  color: var(--felt-hover);
  font-size: 0.9rem;
  margin: 10px 0;
}
.form-links {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- 徽章 ---------- */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
}
.badge-category { border-color: var(--felt); color: var(--felt-hover); }
.badge-level { border-color: var(--gold); color: var(--gold); }
.badge-danger { border-color: var(--danger); color: var(--danger); }
.badge-pending { border-color: var(--gold); color: var(--gold); }
.badge-active { border-color: var(--felt); color: var(--felt-hover); }
.badge-frozen { border-color: var(--danger); color: var(--danger); }

/* ---------- 笔记卡片网格 ---------- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.note-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.note-card:hover {
  border-color: var(--felt);
  transform: translateY(-2px);
}
.note-card h3 { font-size: 1.1rem; }
.note-card h3 a { color: var(--text); }
.note-card h3 a:hover { color: var(--gold); }
.note-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.note-card .summary {
  color: var(--text-dim);
  font-size: 0.9rem;
  flex: 1;
}
.note-card .date { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- 筛选条 ---------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.88rem;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--felt); color: var(--text); }
.filter-btn.active {
  border-color: var(--felt);
  background: rgba(31, 138, 91, 0.15);
  color: var(--felt-hover);
}

/* ---------- 笔记阅读页 ---------- */

.note-article {
  max-width: 780px;
  margin: 0 auto;
}
.note-article .note-head {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.note-article .note-head h1 {
  font-size: 1.8rem;
  margin: 12px 0 8px;
}
.note-article .note-head .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.note-article .note-head .date { color: var(--text-dim); font-size: 0.85rem; }

.note-body { font-size: 1.02rem; }
.note-body h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.note-body p { margin: 14px 0; color: var(--text); }
.note-body ul { margin: 14px 0 14px 24px; }
.note-body li { margin: 8px 0; }
.note-body strong { color: var(--gold); font-weight: 600; }

/* 弱防护：阅读页正文禁止选择 */
.protected .note-body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* 阅读页正文 iframe（样式隔离） */
.note-frame {
  width: 100%;
  border: none;
  display: block;
  min-height: 400px;
  border-radius: 4px;
}

/* ---------- 水印 ---------- */

#watermark-layer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

/* ---------- 表格 ---------- */

.table-wrap { overflow-x: auto; margin-top: 16px; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}
.data-table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
}
.data-table td { color: var(--text); }
.data-table td.dim { color: var(--text-dim); }
.data-table tr:hover td { background: rgba(31, 138, 91, 0.05); }

/* ---------- 管理后台标签页 ---------- */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--panel-border);
  margin: 24px 0;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.alert-warn {
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid var(--danger);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  margin: 16px 0;
}
.alert-warn strong { color: var(--danger); }

/* ---------- 落地页 ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 90px 20px 100px;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 18px;
}
.hero h1 .gold { color: var(--gold); }
.hero .sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 抽象扑克牌装饰 */
.hero .deco-card {
  position: absolute;
  width: 110px;
  height: 154px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, #1a2129, #12161c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  opacity: 0.5;
  pointer-events: none;
}
.hero .deco-card.c1 { top: 14%; left: 6%; transform: rotate(-14deg); color: var(--text-dim); }
.hero .deco-card.c2 { top: 20%; right: 7%; transform: rotate(11deg); color: var(--danger); }
.hero .deco-card.c3 { bottom: 8%; left: 12%; transform: rotate(8deg); color: var(--danger); width: 90px; height: 126px; font-size: 2rem; }
.hero .deco-card.c4 { bottom: 12%; right: 12%; transform: rotate(-9deg); color: var(--text-dim); width: 90px; height: 126px; font-size: 2rem; }
/* 牌桌弧线 */
.hero .deco-felt {
  position: absolute;
  left: 50%;
  bottom: -260px;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(31, 138, 91, 0.35);
  background: radial-gradient(ellipse at center, rgba(31, 138, 91, 0.14), transparent 70%);
  pointer-events: none;
}

.section { padding: 60px 20px; }
.section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.section-title .gold { color: var(--gold); }
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.cat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 22px;
  transition: border-color 0.15s ease;
}
.cat-card:hover { border-color: var(--felt); }
.cat-card .suit { font-size: 1.5rem; margin-bottom: 10px; }
.cat-card .suit.red { color: var(--danger); }
.cat-card .suit.black { color: var(--text-dim); }
.cat-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cat-card p { color: var(--text-dim); font-size: 0.86rem; }

/* 模糊预览区 */
.preview-wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.preview-content {
  padding: 32px;
  filter: blur(5px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.preview-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(14, 17, 22, 0.55);
  text-align: center;
  padding: 20px;
}
.preview-lock .lock-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--gold);
}
.preview-lock p { color: var(--text-dim); font-size: 0.9rem; }

/* 三步流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.step-card {
  text-align: center;
  padding: 28px 20px;
}
.step-num {
  width: 44px;
  height: 44px;
  line-height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin: 0 auto 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.84rem;
}
.site-footer .suits { letter-spacing: 4px; margin-bottom: 6px; }
.site-footer .suits .red { color: var(--danger); }

/* ---------- 状态页/提示 ---------- */

.state-box {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
}
.state-box h2 { margin-bottom: 12px; }
.state-box p { color: var(--text-dim); margin-bottom: 22px; }

.loading { color: var(--text-dim); text-align: center; padding: 60px 0; }

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
  .hero { padding: 60px 16px 70px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .deco-card { display: none; }
  .section { padding: 40px 16px; }
  .nav-inner { padding: 0 14px; }
  .nav-links { gap: 12px; font-size: 0.85rem; }
  .container { padding: 24px 16px; }
  .data-table th, .data-table td { padding: 8px; }
}

/* ---------- 落地页：为什么重做 / 三大特点 ---------- */

.why-intro {
  max-width: 720px;
  margin: 0 auto 44px;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.why-intro p { margin: 12px 0; }
.why-intro strong { color: var(--text); font-weight: 600; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 26px;
  position: relative;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 164, 55, 0.45), transparent);
}
.feature-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; }
.feature-card p + p { margin-top: 8px; }

/* 特点 02：传统文字 vs 模块化图文 对比示意（纯 CSS） */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.mock {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--bg);
  padding: 12px;
}
.mock-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 10px;
}
.mock-lines i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #262d36;
  margin: 8px 0;
}
.mock-lines i:nth-child(2) { width: 92%; }
.mock-lines i:nth-child(3) { width: 97%; }
.mock-lines i:nth-child(4) { width: 88%; }
.mock-lines i:nth-child(5) { width: 95%; }
.mock-lines i:nth-child(6) { width: 70%; }

.mock-mod .mb-title {
  height: 8px;
  width: 55%;
  border-radius: 3px;
  background: var(--gold);
  opacity: 0.85;
  margin-bottom: 9px;
}
.mock-mod .mb-block {
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.68rem;
  margin-bottom: 7px;
  line-height: 1.4;
}
.mock-mod .mb-point {
  border: 1px solid var(--felt);
  color: var(--felt-hover);
}
.mock-mod .mb-hand {
  border: 1px solid var(--panel-border);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-mod .mb-hand .s { color: var(--danger); }
.mock-mod .mb-concl {
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* ---------- 落地页：半年打磨 ---------- */

.craft {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.craft .facts {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.craft .fact {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.craft .fact strong {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin-right: 4px;
}
.craft .quote {
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text);
}
.craft .quote .gold { color: var(--gold); }
.craft .quote-sub {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- 落地页：笔记系列 ---------- */

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.series-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 22px;
  transition: border-color 0.15s ease;
}
.series-card:hover { border-color: var(--felt); }
.series-card .suit { font-size: 1.5rem; margin-bottom: 10px; }
.series-card .suit.red { color: var(--danger); }
.series-card .suit.black { color: var(--text-dim); }
.series-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.series-card p { color: var(--text-dim); font-size: 0.86rem; }

/* ============================================================
   视觉增强层：极光背景 / 玻璃拟态 / 渐变光效 / 动效
   ============================================================ */

body {
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(31, 157, 102, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 95% 5%, rgba(227, 180, 72, 0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(52, 90, 199, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

::selection { background: rgba(227, 180, 72, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--felt), #1a5f45);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

.gold, .hero h1 .gold, .section-title .gold, .form-title .gold, .craft .quote .gold {
  background: linear-gradient(100deg, #f6dc91 0%, #e3b448 40%, #fff1c4 55%, #e3b448 70%, #c48a1e 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shine 6s linear infinite;
}
@keyframes gold-shine { to { background-position: 220% center; } }

/* ---- 导航 ---- */
.site-nav {
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 199, 133, 0.5), rgba(227, 180, 72, 0.6), transparent);
}
.site-nav.scrolled {
  background: rgba(7, 9, 13, 0.82);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.8);
}
.nav-logo { letter-spacing: 0.5px; }
.nav-logo .suits span { display: inline-block; transition: transform 0.3s var(--ease); }
.nav-logo:hover .suits span { transform: translateY(-3px) rotate(-8deg); }
.nav-logo:hover .suits span:nth-child(2) { transition-delay: 0.04s; }
.nav-logo:hover .suits span:nth-child(3) { transition-delay: 0.08s; }
.nav-logo:hover .suits span:nth-child(4) { transition-delay: 0.12s; }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--felt-hover), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-user {
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(227, 180, 72, 0.35);
  background: rgba(227, 180, 72, 0.08);
}

/* ---- 按钮 ---- */
.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 199, 133, 0.6);
  background: linear-gradient(135deg, #24b374 0%, #17885a 100%);
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px -10px rgba(31, 157, 102, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn:hover {
  background: linear-gradient(135deg, #2fcb86 0%, #1c9a66 100%);
  border-color: rgba(52, 199, 133, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(31, 157, 102, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: rgba(227, 180, 72, 0.04);
  border-color: rgba(227, 180, 72, 0.6);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 0 rgba(227, 180, 72, 0);
}
.btn-outline:hover {
  background: rgba(227, 180, 72, 0.12);
  color: #fff3cf;
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}
.btn-danger, .btn-danger:hover { background: transparent; box-shadow: none; }
.btn-danger:hover { background: rgba(224, 71, 58, 0.15); }
.btn:disabled { transform: none; box-shadow: none; }

/* ---- 玻璃卡片 + 鼠标聚光 ---- */
.card, .panel, .note-card, .feature-card, .series-card, .cat-card, .preview-wrap {
  background:
    radial-gradient(500px circle at var(--mx, 50%) var(--my, -200px), rgba(227, 180, 72, 0.08), transparent 40%),
    linear-gradient(160deg, rgba(28, 36, 46, 0.72), rgba(14, 18, 24, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.card, .note-card { border-top: 1px solid rgba(227, 180, 72, 0.45); }
.note-card, .feature-card, .series-card, .cat-card, .step-card {
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
.note-card:hover, .feature-card:hover, .series-card:hover, .cat-card:hover, .step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 199, 133, 0.45);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 40px -12px rgba(31, 157, 102, 0.45);
}
.note-card h3 a { transition: color 0.2s ease; }
.note-card .date { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }

.feature-num {
  font-size: 2.6rem;
  background: linear-gradient(180deg, #f6dc91, rgba(227, 180, 72, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.series-card .suit, .cat-card .suit {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  font-size: 1.5rem;
  transition: transform 0.5s var(--ease);
}
.series-card .suit.red, .cat-card .suit.red { box-shadow: 0 0 24px -6px rgba(224, 71, 58, 0.6); }
.series-card .suit.black, .cat-card .suit.black { color: #cfd6dc; box-shadow: 0 0 24px -8px rgba(255, 255, 255, 0.3); }
.series-card:hover .suit, .cat-card:hover .suit { transform: rotateY(180deg) scale(1.08); }

/* ---- 表单 ---- */
.form-card { margin: 70px auto; padding: 36px 32px; }
.form-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(52, 199, 133, 0.8), rgba(227, 180, 72, 0.9), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 6s linear infinite;
  pointer-events: none;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ang: 360deg; } }
.form-title { font-size: 1.75rem; }
.form-group input, .form-group textarea, .form-group select {
  background: rgba(5, 7, 10, 0.6);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-group input:hover, .form-group textarea:hover { border-color: rgba(255, 255, 255, 0.16); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--felt-hover);
  background: rgba(5, 7, 10, 0.85);
  box-shadow: 0 0 0 4px rgba(52, 199, 133, 0.14);
}
.form-group input:focus-visible, .btn:focus-visible, .filter-btn:focus-visible, .tab-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---- 徽章 / 筛选 / 表格 / 标签页 ---- */
.badge { backdrop-filter: blur(4px); background: rgba(255, 255, 255, 0.03); letter-spacing: 0.3px; }
.badge-category, .badge-active { background: rgba(31, 157, 102, 0.12); }
.badge-level, .badge-pending { background: rgba(227, 180, 72, 0.10); }
.badge-danger, .badge-frozen { background: rgba(224, 71, 58, 0.10); }
.filter-btn { transition: all 0.25s var(--ease); backdrop-filter: blur(6px); }
.filter-btn.active {
  background: linear-gradient(135deg, rgba(36, 179, 116, 0.28), rgba(23, 136, 90, 0.18));
  box-shadow: var(--glow-felt);
  color: #c9f5df;
}
.table-wrap {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(14, 18, 24, 0.55);
}
.data-table th {
  background: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.data-table tr:hover td { background: rgba(52, 199, 133, 0.06); }
.tab-btn { position: relative; transition: color 0.2s ease; }
.tab-btn.active { border-bottom-color: transparent; }
.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--felt-hover), var(--gold));
  box-shadow: 0 0 12px rgba(227, 180, 72, 0.7);
}

/* ---- Hero ---- */
.hero { padding: 120px 20px 130px; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  left: 50%; top: 46%;
  width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(52, 199, 133, 0.0), rgba(52, 199, 133, 0.22), rgba(227, 180, 72, 0.22), rgba(52, 90, 199, 0.18), rgba(52, 199, 133, 0.0));
  filter: blur(70px);
  opacity: 0.7;
  z-index: -1;
  animation: aurora-spin 22s linear infinite;
  pointer-events: none;
}
@keyframes aurora-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid rgba(227, 180, 72, 0.3);
  background: rgba(227, 180, 72, 0.06);
  backdrop-filter: blur(8px);
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 1px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--felt-hover);
  box-shadow: 0 0 0 0 rgba(52, 199, 133, 0.7);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 133, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(52, 199, 133, 0); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.hero .sub { font-size: 1.1rem; max-width: 680px; margin-bottom: 42px; }
.hero-cta .btn { padding: 13px 32px; font-size: 1rem; }

.hero .deco-card {
  width: 120px; height: 168px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.01) 45%),
    linear-gradient(160deg, #1c2530, #0d1117);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0.85;
  z-index: -1;
  animation: card-float 7s ease-in-out infinite;
  --r: 0deg;
}
.hero .deco-card::before, .hero .deco-card::after {
  content: attr(data-rank);
  position: absolute;
  font-size: 0.95rem;
  font-family: var(--font-title);
  font-weight: 900;
}
.hero .deco-card::before { top: 8px; left: 10px; }
.hero .deco-card::after { bottom: 8px; right: 10px; transform: rotate(180deg); }
.hero .deco-card.c1 { --r: -14deg; color: #dfe5ea; }
.hero .deco-card.c2 { --r: 11deg; animation-delay: -2s; text-shadow: 0 0 24px rgba(224, 71, 58, 0.7); }
.hero .deco-card.c3 { --r: 8deg; animation-delay: -4s; width: 96px; height: 134px; text-shadow: 0 0 24px rgba(224, 71, 58, 0.7); }
.hero .deco-card.c4 { --r: -9deg; animation-delay: -1s; width: 96px; height: 134px; color: #dfe5ea; }
@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-18px) rotate(calc(var(--r) + 3deg)); }
}
.hero .deco-felt {
  width: 1100px; height: 460px;
  bottom: -300px;
  border: 1px solid rgba(52, 199, 133, 0.4);
  box-shadow: 0 -20px 80px -20px rgba(31, 157, 102, 0.4), inset 0 20px 80px -30px rgba(52, 199, 133, 0.35);
  z-index: -1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 64px auto 0;
  max-width: 760px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(14, 18, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-stats .stat { flex: 1 1 160px; padding: 20px 16px; position: relative; }
.hero-stats .stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.14), transparent);
}
.hero-stats .num {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff, #e3b448);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .label { color: var(--text-dim); font-size: 0.82rem; margin-top: 4px; }

/* ---- 区块 ---- */
.section { padding: 90px 20px; position: relative; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: 1px; }
.section-title::after {
  content: '';
  display: block;
  width: 64px; height: 2px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-sub { margin-top: 12px; margin-bottom: 48px; }

.mock { background: rgba(5, 7, 10, 0.6); border-radius: 10px; }
.mock-lines i { background: rgba(255, 255, 255, 0.07); }
.mock-mod .mb-title { background: linear-gradient(90deg, var(--gold), transparent); }
.mock-mod .mb-point { background: rgba(31, 157, 102, 0.1); }
.mock-mod .mb-concl { background: rgba(227, 180, 72, 0.08); }

.craft .fact {
  background: rgba(14, 18, 24, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.craft .fact:hover { border-color: rgba(227, 180, 72, 0.5); transform: translateY(-2px); }
.craft .quote { font-size: clamp(1.25rem, 2.6vw, 1.7rem); position: relative; padding: 10px 0; }
.craft .quote::before {
  content: '“';
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  font-size: 7rem;
  line-height: 1;
  color: rgba(227, 180, 72, 0.12);
  font-family: Georgia, serif;
}

.preview-wrap { border-radius: 16px; }
.preview-lock {
  background: radial-gradient(ellipse at center, rgba(7, 9, 13, 0.55), rgba(7, 9, 13, 0.85));
}
.preview-lock::before {
  content: '♠';
  font-size: 2.4rem;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(227, 180, 72, 0.5);
  color: var(--gold);
  background: rgba(227, 180, 72, 0.06);
  box-shadow: 0 0 40px -6px rgba(227, 180, 72, 0.6);
  animation: lock-breathe 3s ease-in-out infinite;
}
@keyframes lock-breathe {
  0%, 100% { box-shadow: 0 0 30px -10px rgba(227, 180, 72, 0.5); }
  50% { box-shadow: 0 0 50px -4px rgba(227, 180, 72, 0.8); }
}

.steps { position: relative; }
.step-num {
  width: 56px; height: 56px;
  line-height: 54px;
  font-size: 1.35rem;
  background: radial-gradient(circle at 30% 30%, rgba(227, 180, 72, 0.25), rgba(227, 180, 72, 0.03));
  box-shadow: 0 0 30px -8px rgba(227, 180, 72, 0.6);
}

.note-article .note-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.note-frame { border-radius: 12px; }
.state-box { padding: 40px 32px; }

.site-footer {
  border-top: 1px solid transparent;
  position: relative;
  padding: 36px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.loading::after {
  content: '';
  display: block;
  width: 28px; height: 28px;
  margin: 16px auto 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 入场动画 ---- */
.notes-grid .note-card { animation: rise-in 0.6s var(--ease) both; }
.notes-grid .note-card:nth-child(2) { animation-delay: 0.05s; }
.notes-grid .note-card:nth-child(3) { animation-delay: 0.1s; }
.notes-grid .note-card:nth-child(4) { animation-delay: 0.15s; }
.notes-grid .note-card:nth-child(5) { animation-delay: 0.2s; }
.notes-grid .note-card:nth-child(n+6) { animation-delay: 0.25s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fx-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.fx-ready .reveal.in { opacity: 1; transform: none; }
.hero > * { animation: rise-in 0.9s var(--ease) both; }
.hero > h1 { animation-delay: 0.1s; }
.hero > .sub { animation-delay: 0.2s; }
.hero > .hero-cta { animation-delay: 0.3s; }
.hero > .hero-stats { animation-delay: 0.45s; }
.hero > .deco-card { animation: card-float 7s ease-in-out infinite; }
.hero > .deco-card.c2 { animation-delay: -2s; }
.hero > .deco-card.c3 { animation-delay: -4s; }
.hero > .deco-card.c4 { animation-delay: -1s; }
.hero > .deco-felt { animation: none; }

@media (max-width: 640px) {
  .hero { padding: 80px 16px 90px; }
  .hero::before { width: 480px; height: 480px; }
  .section { padding: 56px 16px; }
  .hero-stats .stat { flex-basis: 50%; }
  .hero-stats .stat:nth-child(3)::before { display: none; }
  .form-card { padding: 28px 20px; margin: 36px auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fx-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- 管理后台：批量上传 ---------- */

.dropzone {
  border: 2px dashed var(--panel-border);
  border-radius: 8px;
  padding: 34px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.dragover {
  border-color: var(--felt);
  background: rgba(31, 138, 91, 0.08);
  color: var(--text);
}
.dz-link {
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}

.upload-list { margin-top: 16px; }
.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.upload-row .ur-name { color: var(--text); }
.upload-row .ur-title {
  color: var(--text-dim);
  flex: 1;
  min-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-row .ur-size { color: var(--text-dim); font-size: 0.8rem; }
.upload-row .ur-status { font-size: 0.85rem; min-width: 90px; }
.upload-row .ur-status.ok { color: var(--felt-hover); }
.upload-row .ur-status.err { color: var(--danger); }

/* ---------- 课程浏览页：章节内笔记条目 ---------- */

.chapter-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  margin-bottom: 8px;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.chapter-note:hover { border-color: var(--felt); color: var(--text); }
.chapter-note .cn-title { font-weight: 500; }
.chapter-note .cn-summary {
  width: 100%;
  color: var(--text-dim);
  font-size: 0.84rem;
}

/* ---------- 首页：三个入口卡片 ---------- */

.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 70px;
}
.entry-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 36px 26px;
  text-align: center;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.entry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 164, 55, 0.4), transparent);
}
.entry-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.entry-card .suit {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}
.entry-card .suit.red { color: var(--danger); }
.entry-card .suit.black { color: var(--text-dim); }
.entry-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}
.entry-card:hover h3 { color: var(--gold); }
.entry-card p { color: var(--text-dim); font-size: 0.9rem; }
.entry-card .go {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--felt-hover);
}
.entry-card:hover .go { color: var(--gold); }

@media (max-width: 760px) {
  .entry-cards { grid-template-columns: 1fr; padding-bottom: 50px; }
}

/* ---------- 试看页 CTA 横幅 ---------- */

.cta-banner {
  max-width: 780px;
  margin: 0 auto 24px;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-banner p { font-size: 0.95rem; color: var(--text); }
.cta-banner p strong { color: var(--gold); }
.cta-banner.bottom { margin: 28px auto 0; }

/* ---------- 公开目录页 ---------- */

.catalog-course { margin-bottom: 28px; }
.catalog-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.catalog-note:hover { border-color: var(--gold); }
.catalog-note .cn-title { font-weight: 500; }
.catalog-note .cn-summary { width: 100%; color: var(--text-dim); font-size: 0.84rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px 22px;
  color: var(--text);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2147483001;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--gold); text-decoration: underline; pointer-events: auto; }
