/* ========== 回马枪 · 设计感视觉系统 ========== */
:root {
  /* 纸 —— 暖宣纸底，不用纯白 */
  --bg: #f1eadd;
  --bg2: #fffdf6;
  --paper-deep: #e6dccb;
  /* 墨 */
  --ink: #1c1b17;
  --sub: #6c6558;
  --line: #ddd1bb;
  --line-strong: #c6b699;
  /* 四色体系：墨绿(体面) · 朱砂(锋芒) · 青黛(理智) · 赭黄(温度) */
  --brand: #2f3f6f;      /* 主色·体面边界 */
  --brand-2: #4a63a8;    /* 松石 */
  --red: #c2381f;        /* 朱砂·回马枪的锋 */
  --red-soft: #f8e5dc;
  --blue: #33436f;       /* 青黛·理智 */
  --yellow: #c2841c;     /* 赭黄·温度 */
  --ok: #b8622a;
  --gold: #a97c3f;
  /* 风格配色 */
  --s-calm: #3a5f8a;
  --s-humor: #c2841c;
  --s-logic: #33436f;
  --s-boundary: #2f3f6f;
  --s-sharp: #9c2456;
  /* 阴影：编辑设计——柔投影 + 印刷硬投影 */
  --sh: 0 1px 0 rgba(28,27,23,.04), 0 6px 18px rgba(90,74,48,.10);
  --sh-lg: 0 14px 34px rgba(90,74,48,.18);
  --sh-hard: 4px 4px 0 rgba(28,27,23,.10);
  --sh-pop: 7px 7px 0 rgba(28,27,23,.14);
  /* 字体：标题走衬线，正文走无衬线 —— 印刷排版对比 */
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", SimSun, Georgia, "Times New Roman", serif;
  /* 圆角 */
  --r: 14px;
  --r-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(880px 520px at 10% -10%, rgba(47,63,111,.13), transparent 62%),
    radial-gradient(760px 460px at 98% 2%, rgba(194,56,31,.11), transparent 58%),
    radial-gradient(700px 520px at 55% 112%, rgba(194,132,28,.14), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

/* 纸纹覆盖层：细点阵 + 斜向纤维 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(28,27,23,.055) 1px, transparent 1.4px),
    repeating-linear-gradient(135deg, rgba(28,27,23,.020) 0 1px, transparent 1px 8px);
  background-size: 20px 20px, auto;
  z-index: 0;
}

/* 回马枪水印：枪身 + 回旋轨迹，压在右下角作纸面钤记 */
body::after {
  content: "";
  position: fixed;
  right: -70px;
  bottom: -60px;
  width: 480px;
  height: 480px;
  pointer-events: none;
  opacity: .06;
  transform: rotate(-6deg);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231c1b17' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 174 L138 64'/%3E%3Cpath d='M152 170 C62 190 16 120 54 56'/%3E%3Cpath d='M54 56 L48 80 M54 56 L78 64'/%3E%3Cpath d='M132 70 L112 62 M132 70 L124 50'/%3E%3C/g%3E%3Cpath d='M136 66 C150 40 164 26 184 16 C178 40 164 56 142 72 Z' fill='%231c1b17'/%3E%3C/svg%3E");
  z-index: 0;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,253,246,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* 刊头彩条：朱砂→赭黄→墨绿，印刷刊物的天头线 */
.topbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 26%, var(--yellow) 26%, var(--yellow) 52%, var(--brand) 52%);
}
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: opacity .18s ease, transform .18s ease;
}
.brand:hover { opacity: .82; transform: translateY(-1px); }
.brand:hover .logo { transform: rotate(-8deg); }
.brand .logo { width: 32px; height: 32px; flex: none; transition: transform .22s ease; }
.brand .logo .b1 { fill: var(--brand); }                 /* 印章底 */
.brand .logo .b2 { fill: none; stroke: var(--red); stroke-width: 2.1; stroke-linecap: round; }  /* 回旋轨迹 */
.brand .logo .b3 { fill: none; stroke: #fdf6e6; stroke-width: 2.4; stroke-linecap: round; }     /* 枪杆 */
.brand .logo .b4 { fill: #fdf6e6; }                      /* 枪尖 */
.slogan {
  font-size: 13px;
  color: var(--sub);
  border-left: 2px solid var(--red);
  padding-left: 12px;
  letter-spacing: .2px;
}

/* ---------- 导航 ---------- */
.tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255,253,246,.72);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s, color .18s, background .18s;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--sh); }
.tab.active {
  background: var(--ink);
  color: #fdf6e6;
  border-color: transparent;
  box-shadow: var(--sh-hard);
}
.tab.active svg { color: var(--red); }

/* ---------- 主体 ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 18px 70px;
}
.view { display: none; }
.view.active { display: block; animation: viewIn .42s ease both; }

.back-home {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 0 14px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg2); color: var(--brand);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: .18s;
}
.back-home:hover { background: var(--brand); color: #fff; border-color: transparent; transform: translateY(-1px); }
body[data-mode="night"] .back-home { background: var(--bg2); color: var(--brand-2); border-color: var(--brand-2); }
body[data-mode="night"] .back-home:hover { background: var(--brand-2); color: #1a0e12; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  margin: 4px 0 6px;
  padding-left: 13px;
  font-weight: 900;
  border-left: 4px solid var(--red);
}
h2 .ico { width: 26px; height: 26px; color: var(--brand); }
.sub { color: var(--sub); font-size: 14px; margin-top: 0; padding-left: 17px; }

label {
  display: block;
  font-size: 13px;
  color: var(--sub);
  margin: 16px 0 6px;
  font-weight: 600;
}
textarea, select, input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg2);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea:focus, select:focus, input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47,63,111,.14);
}
.row { display: flex; gap: 14px; }
.row > div { flex: 1; }

/* ---------- 按钮 ---------- */
.primary {
  position: relative;
  overflow: hidden;   /* 裁住点击涟漪 */
  margin-top: 18px;
  background: var(--red);
  color: #fff7ef;
  border: none;
  padding: 13px 26px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: var(--sh-hard);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.primary:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-pop); filter: saturate(1.05); }
.primary:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(28,27,23,.12); }
.primary[disabled] { opacity: .7; cursor: progress; transform: none; }
.primary .spin {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%;
  vertical-align: -2px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 输出 ---------- */
.output { margin-top: 20px; }
.result-head { font-weight: 800; margin-bottom: 12px; color: var(--ink); }

.comeback {
  position: relative;
  display: flex;
  gap: 12px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--sh);
  animation: rise .4s ease both;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.comeback:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.comeback .num {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: var(--blue); color: #fff7ef; font-size: 13px; font-weight: 800;
  font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
}
.comeback p { margin: 0; line-height: 1.7; }
.comeback .copy {
  margin-left: auto; flex: none; align-self: flex-start;
  border: 1px solid var(--line); background: var(--bg2); color: var(--sub);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer;
  transition: .15s; white-space: nowrap;
}
.comeback .copy:hover { border-color: var(--brand); color: var(--brand); }

.legal {
  background: var(--red-soft);
  color: #8e2b16;
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 13px;
  margin-top: 8px;
  border: 1px solid #ecc7b8;
  border-left: 3px solid var(--red);
}
.disclaimer { color: var(--sub); font-size: 12px; margin-top: 8px; text-align: right; }

/* ---------- 风格标签 ---------- */
.tags { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tags span {
  font-size: 12px;
  background: var(--bg);
  color: var(--brand);
  border: 1px solid var(--line);
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 600;
}
.style-tag {
  flex: none;
  font-size: 12px;
  color: #fff;
  padding: 3px 11px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 700;
  background: var(--blue);
}
.style-tag.calm { background: var(--s-calm); }
.style-tag.humor { background: var(--s-humor); }
.style-tag.logic { background: var(--s-logic); }
.style-tag.boundary { background: var(--s-boundary); }
.style-tag.sharp { background: var(--s-sharp); }
.style-tag.night { background: var(--red); }
/* 关键修复：风格标签嵌在 .tags 容器内，会被 .tags span 的 color 覆盖成底色导致“字=底”看不见。
   这里用更高特异性强制白色文字，确保边界型(#2f3f6f)/逻辑型 等深色标签在白日、夜间都可读。 */
.tags .style-tag { color: #fff; }

/* ---------- 话术库 ---------- */
.filters { display: flex; gap: 14px; margin: 10px 0 20px; }
.filters > div { flex: 1; }
.card {
  position: relative;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--sh);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  animation: rise .4s ease both;
}
.card:hover { transform: translate(-2px, -3px); box-shadow: var(--sh-pop); border-color: var(--line-strong); }
.card-text { margin: 8px 0 0; font-size: 15px; line-height: 1.7; }
.card-point { margin: 0; font-size: 13px; color: var(--ok); }
.card-story, .card-attack { margin: 4px 0; font-size: 13px; color: var(--sub); line-height: 1.6; }
.card-attack b { color: var(--red); }
.card .copy {
  margin-top: 10px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--sub);
  border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer;
  transition: .15s; font-weight: 600;
}
.card .copy:hover { border-color: var(--brand); color: var(--brand); background: #edf0f8; }
.hint { color: var(--sub); font-size: 14px; }

/* 话术库 · 深夜解气版置顶切换 */
.lib-night-pin {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--bg2), #faeade);
  border: 1.5px solid #e8c6ad;
  border-radius: var(--r);
  padding: 12px 16px; margin: 14px 0 4px;
  box-shadow: var(--sh);
}
.night-pin {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--red); cursor: pointer;
  font-size: 15px; font-weight: 800; color: var(--red);
  background: var(--bg2);
  padding: 9px 18px; border-radius: 999px;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
  white-space: nowrap;
}
.night-pin .np-ico { font-size: 17px; }
.night-pin:hover { background: #fbeee6; transform: translateY(-2px); }
.night-pin.on {
  background: linear-gradient(120deg, var(--red), var(--yellow));
  color: #fff7ef; border-color: transparent;
  box-shadow: 0 6px 18px rgba(194,56,31,.32);
}
.night-pin-hint { font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.lib-night-banner {
  background: var(--red-soft); color: #8e2b16;
  border: 1px solid #ecc7b8; border-radius: var(--r-sm);
  padding: 9px 14px; font-size: 13px; margin-bottom: 14px; font-weight: 600;
}

/* ---------- 复盘 ---------- */
.rev-card {
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--sh);
  animation: rise .4s ease both;
}
.rev-top {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--sub); margin-bottom: 10px;
}
.rev-top span:nth-child(2) { color: var(--brand); font-weight: 700; }
.del {
  margin-left: auto;
  border: 1px solid var(--line); background: var(--bg2); color: var(--sub);
  border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 12px;
  transition: .15s;
}
.del:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.rev-row { margin: 7px 0; font-size: 14px; line-height: 1.6; }
.rev-row b { color: var(--ink); }
.psy {
  background: linear-gradient(120deg, #eef1f8, #f4f1ea);
  color: #2d3a60;
  border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 13px; margin-top: 10px;
  border: 1px solid #d3d8e6;
  border-left: 3px solid var(--blue);
}

/* ---------- 心理破局 ---------- */
.psy-quote {
  position: relative;
  background: linear-gradient(120deg, #fbf3e4, #fdf9ee);
  border: 1.5px solid #e6d3ae;
  color: #7a3a14;
  border-radius: var(--r);
  padding: 16px 20px 16px 46px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: var(--sh);
  animation: rise .4s ease both;
}
/* 编辑设计：大引号 */
.psy-quote::before {
  content: "\201C";
  position: absolute; left: 12px; top: 2px;
  font-family: Georgia, serif; font-size: 50px; line-height: 1;
  color: var(--red); opacity: .35;
}
.psy-art {
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-top: 8px;
  box-shadow: var(--sh);
}
.psy-art h3 { margin: 0 0 8px; color: var(--brand); }
.psy-art p { margin: 0; color: var(--ink); line-height: 1.8; }

/* ---------- 引导训练 ---------- */
.guide {
  background: linear-gradient(120deg, #eceff7, #f6f2e8);
  border: 1.5px solid #d3d9e8;
  border-radius: var(--r-sm);
  padding: 14px 18px; margin-top: 10px; font-size: 14px;
}
.guide ol { margin: 8px 0 0; padding-left: 20px; }
.guide li { margin: 6px 0; line-height: 1.6; }

/* ---------- 红线 ---------- */
.law-box {
  background: var(--bg2); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 4px 20px 18px; box-shadow: var(--sh);
}
.law-box h3 { color: var(--brand); }
.law-box li { margin: 8px 0; line-height: 1.7; }
.law-box li b { color: var(--ink); }
.law-article {
  background: var(--bg2); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 16px 20px; margin-top: 18px; box-shadow: var(--sh);
}
.law-article h3 { color: var(--brand); margin: 0 0 10px; }
.law-article p { margin: 0 0 12px; font-size: 14px; line-height: 1.85; }

/* ============ 新增：HERO 与首页装饰 ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(520px 320px at 88% -20%, rgba(255,224,170,.16), transparent 62%),
    linear-gradient(135deg, #1c2447 0%, #2b3a68 54%, #3d5088 100%);
  border-radius: 18px;
  padding: 28px 26px;
  color: #fdf6e6;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
/* 斜向纸纹，让墨绿色块像印在纸上 */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 9px);
}
/* hero 光斑：跟随鼠标游走的暖光（JS 写 --mx/--my，默认落在右上） */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(340px 260px at var(--mx, 86%) var(--my, 12%), rgba(255,214,140,.28), transparent 70%);
  transition: background .12s ease-out;
}
.hero-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.hero p { margin: 0 0 14px; font-size: 14px; opacity: .92; line-height: 1.75; max-width: 46ch; }
.hero-stats {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid rgba(253,246,230,.22);
}
.hero-stat b {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 900; display: block; letter-spacing: .5px;
}
.hero-stat span { font-size: 12px; opacity: .82; letter-spacing: .5px; }
.hero-art { flex: none; width: 172px; height: 172px; position: relative; z-index: 1; }
.hero-art svg { width: 100%; height: 100%; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 功能入口卡片 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.feature {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: var(--sh);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  animation: rise .45s ease both;
}
.feature:hover { transform: translate(-2px, -3px); box-shadow: var(--sh-pop); border-color: var(--line-strong); }
.feature .fico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff7ef;
  transition: transform .2s ease;
}
/* 悬停时图标像回身一枪，向后一挑 */
.feature:hover .fico { transform: rotate(-9deg) scale(1.06); }
.feature .fico svg { width: 24px; height: 24px; }
.feature:nth-child(1) .fico { background: linear-gradient(135deg, var(--red), #fb7185); }
.feature:nth-child(2) .fico { background: linear-gradient(135deg, var(--blue), #818cf8); }
.feature:nth-child(3) .fico { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.feature:nth-child(4) .fico { background: linear-gradient(135deg, var(--yellow), #fbbf24); }
.feature:nth-child(5) .fico { background: linear-gradient(135deg, var(--red), #ff7a18); }
.feature .ftxt b { font-size: 15px; }
.feature .ftxt span { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; }

/* 漂浮装饰（首页背景） */
.deco { position: absolute; z-index: 0; pointer-events: none; opacity: .5; }
.deco-1 { top: 120px; right: -10px; width: 90px; animation: float 6s ease-in-out infinite; }
.deco-2 { top: 520px; left: -16px; width: 70px; animation: float 7s ease-in-out infinite reverse; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  /* 固定深色底 + 浅色字，不跟随昼夜 --ink 翻转，避免夜间白底白字 */
  background: #1c1b17; color: #fffdf6;
  border: 1.5px solid rgba(255,69,58,.30);
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .chk { color: #ffd166; margin-right: 6px; }
.toast .chk.warn { color: #ff453a; }
.toast .toast-cd { margin-left: 8px; font-size: 12px; font-weight: 700; color: #ffb347; opacity: .9; letter-spacing: .3px; }

/* reveal 入场（按需由 JS 添加 .in） */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 640px) {
  .hero { flex-direction: column-reverse; text-align: center; }
  .hero p { max-width: none; }
  .hero-art { width: 130px; height: 130px; }
  .features { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 0; }
  .deco { display: none; }
  .mode-switch { margin-left: 0; }
}

/* ============ 顶栏昼夜开关 ============ */
.mode-switch { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mode-badge {
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(47,63,111,.12); color: var(--brand); border: 1px solid var(--line);
  white-space: nowrap; transition: .25s;
}
.mode-badge.night { background: rgba(255,69,58,.16); color: #ff7a6b; border-color: #5a1f1f; }
.mode-toggle {
  width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(47,63,111,.20); position: relative; cursor: pointer; padding: 0;
  transition: background .25s, border-color .25s;
}
.mode-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .25s, background .25s;
}
.mode-toggle.on { background: linear-gradient(120deg, #ff453a, #ff7a18); border-color: transparent; }
.mode-toggle.on .knob { left: 24px; }
.mode-toggle:hover { box-shadow: var(--sh); }

/* ============ 首页主图提示词 ============ */
/* 朱砂"贴纸"：编辑设计里的手贴标签，微微歪一点才有人味 */
.hero-hint {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff7ef;
  background: var(--red);
  border: none;
  border-radius: 7px;
  transform: rotate(-1.4deg);
  animation: hintPulse 3.2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%,100% { transform: rotate(-1.4deg) translateY(0); box-shadow: 3px 3px 0 rgba(0,0,0,.22); }
  50% { transform: rotate(-1.4deg) translateY(-2px); box-shadow: 5px 6px 0 rgba(0,0,0,.26); }
}

/* ============ 昼夜模式 · 夜间红温皮肤 ============ */
body[data-mode="night"] {
  --bg: #160a0a;
  --bg2: #221212;
  --ink: #f6e9e9;
  --sub: #d3a9a9;
  --line: #3a1f1f;
  --brand: #ff453a;
  --brand-2: #ff7a18;
  --red: #ff453a;
  --red-soft: #3a1515;
  --blue: #ff8c3b;
  --yellow: #ffb020;
  --ok: #ff7a5c;
  --s-calm: #ff7a18;
  --s-humor: #ffb020;
  --s-logic: #ff453a;
  --s-boundary: #ff4d6d;
  --sh: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.5);
  --sh-lg: 0 12px 40px rgba(255,69,58,.35);
  /* 夜间对应的新令牌（与白日结构一致，颜色走红温） */
  --paper-deep: #1c0e0e;
  --line-strong: #6b2a2a;
  --gold: #ffb020;
  --s-sharp: #ff4d8d;
  --sh-hard: 4px 4px 0 rgba(255,69,58,.22);
  --sh-pop: 7px 7px 0 rgba(255,69,58,.30);
}
/* 夜间：水印翻成亮色，主标题保持衬线 */
body[data-mode="night"]::after { opacity: .07; filter: invert(1); }
body[data-mode="night"] .tab.active svg { color: #fff; }
body[data-mode="night"] .topbar::before {
  background: linear-gradient(90deg, #ff453a 0%, #ff453a 26%, #ff7a18 26%, #ff7a18 52%, #ffb020 52%);
}
/* 夜间印章底本身就是红的，回旋轨迹改成暖金才看得见 */
body[data-mode="night"] .brand .logo .b2 { stroke: #ffd9b0; }
body[data-mode="night"] .hero::before { background-image: repeating-linear-gradient(135deg, rgba(255,180,120,.05) 0 1px, transparent 1px 9px); }
body[data-mode="night"] .psy-quote::before { color: #ff7a18; }
body[data-mode="night"] .legal { border-left-color: var(--red); }
body[data-mode="night"] .psy { border-left-color: var(--blue); }
body[data-mode="night"] {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255,69,58,.22), transparent 60%),
    radial-gradient(820px 480px at 96% 4%, rgba(255,122,24,.18), transparent 58%),
    radial-gradient(700px 520px at 60% 108%, rgba(255,77,109,.16), transparent 60%),
    #160a0a;
}
body[data-mode="night"]::before { background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); }
body[data-mode="night"] .topbar { background: rgba(20,10,10,.82); border-color: var(--line); }
body[data-mode="night"] .brand { color: var(--ink); }
body[data-mode="night"] .slogan { color: var(--sub); border-color: var(--brand-2); }
body[data-mode="night"] .tab { background: rgba(34,18,18,.7); color: var(--ink); border-color: var(--line); }
body[data-mode="night"] .tab:hover { border-color: var(--brand); box-shadow: var(--sh); }
body[data-mode="night"] .tab.active { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; }

/* Hero 夜 */
body[data-mode="night"] .hero {
  background: linear-gradient(120deg, #2a0c0c 0%, #4a1414 48%, #7a1f12 100%);
  animation: nightPulse 4.5s ease-in-out infinite;
}
body[data-mode="night"] .hero { color: #fff !important; }
body[data-mode="night"] .hero h1 { color: #fff !important; text-shadow: 0 2px 14px rgba(255,180,120,.35); }
body[data-mode="night"] .hero p { color: rgba(255,245,230,.9) !important; }
body[data-mode="night"] .hero-hint { color: #fff !important; background: var(--red) !important; }
body[data-mode="night"] .hero-stat b { color: #fff !important; }
body[data-mode="night"] .hero-stat span { color: rgba(255,220,170,.82) !important; }
@keyframes nightPulse {
  0%,100% { box-shadow: var(--sh-lg); }
  50% { box-shadow: 0 12px 46px rgba(255,69,58,.45); }
}
body[data-mode="night"] .hero::after { background: radial-gradient(340px 260px at var(--mx, 86%) var(--my, 12%), rgba(255,122,24,.36), transparent 70%); }
/* 夜间：把米色枪身/枪尖翻成暖白，红缨保持可见 */
body[data-mode="night"] .hero-art svg {
  filter: brightness(1.8) saturate(0.7);
}
body[data-mode="night"] .hero-art svg path[stroke="#e5644a"],
body[data-mode="night"] .hero-art svg path[fill="#e5644a"] {
  filter: brightness(1.3) saturate(1.5);
}
body[data-mode="night"] .hero-hint {
  background: rgba(255,122,24,.18);
  border-color: rgba(255,180,80,.75);
  color: #fff;
  animation: hintPulseNight 2.8s ease-in-out infinite;
}
@keyframes hintPulseNight {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,122,24,.12); }
  50% { box-shadow: 0 0 18px 7px rgba(255,122,24,.42); }
}

/* 功能卡 夜 */
body[data-mode="night"] .feature .fico { filter: saturate(1.2); }
body[data-mode="night"] .feature:nth-child(1) .fico { background: linear-gradient(135deg, #ff453a, #ff7a18); }
body[data-mode="night"] .feature:nth-child(2) .fico { background: linear-gradient(135deg, #ff7a18, #ffb020); }
body[data-mode="night"] .feature:nth-child(3) .fico { background: linear-gradient(135deg, #ff453a, #ff4d6d); }
body[data-mode="night"] .feature:nth-child(4) .fico { background: linear-gradient(135deg, #ffb020, #ff7a18); }
body[data-mode="night"] .feature:nth-child(5) .fico { background: linear-gradient(135deg, #ff453a, #ff7a18); }
body[data-mode="night"] .deco-1, body[data-mode="night"] .deco-2 { opacity: .7; }
body[data-mode="night"] .deco-1 path { stroke: #ff7a18; }
body[data-mode="night"] .deco-2 path { stroke: #ff453a; }

/* 表单 夜 */
body[data-mode="night"] textarea,
body[data-mode="night"] select,
body[data-mode="night"] input {
  background: #1c0e0e; color: var(--ink); border-color: var(--line);
}
body[data-mode="night"] textarea:focus,
body[data-mode="night"] select:focus,
body[data-mode="night"] input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,69,58,.18); }
body[data-mode="night"] .primary { background: linear-gradient(120deg, var(--brand), var(--brand-2)); }

/* 卡片 / 结果 夜 */
body[data-mode="night"] .comeback { background: var(--bg2); border-color: var(--line); border-left-color: var(--red); }
body[data-mode="night"] .comeback .num { background: var(--red); }
body[data-mode="night"] .card,
body[data-mode="night"] .rev-card,
body[data-mode="night"] .law-box,
body[data-mode="night"] .law-article,
body[data-mode="night"] .psy-art { background: var(--bg2); border-color: var(--line); }
body[data-mode="night"] .legal { color: #ffb3ab; border-color: #5a1f1f; background: var(--red-soft); }
body[data-mode="night"] .psy { background: linear-gradient(120deg,#3a1717,#2a1414); color: #ffb3ab; border-color: #5a1f1f; }
body[data-mode="night"] .guide { background: linear-gradient(120deg,#2a1414,#241313); border-color: #5a1f1f; color: var(--sub); }
body[data-mode="night"] .psy-quote { background: linear-gradient(120deg,#3a1717,#2a1414); border-color: #5a1f1f; color: #ffd9b0; }
body[data-mode="night"] .style-tag.night { background: var(--red); }
body[data-mode="night"] .style-tag.sharp { background: #ff4d8d; }
body[data-mode="night"] .card-attack b { color: #ff7a6b; }
body[data-mode="night"] .lib-night-pin { background: linear-gradient(120deg,#2a1414,#1c0e0e); border-color: #5a1f1f; }
body[data-mode="night"] .night-pin { background: rgba(34,18,18,.6); color: #ff8c6b; border-color: #ff453a; }
body[data-mode="night"] .night-pin:hover { background: rgba(58,21,21,.85); }
body[data-mode="night"] .night-pin.on { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(255,69,58,.4); }
body[data-mode="night"] .night-pin-hint { color: var(--sub); }
body[data-mode="night"] .lib-night-banner { color: #ffb3ab; border-color: #5a1f1f; }

/* ============ 语音录入 ============ */
.input-wrap { position: relative; }
.mic {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--brand); background: var(--bg2); color: var(--brand);
  font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh); transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  z-index: 2;
}
.mic-ico { width: 18px; height: 18px; display: block; }
.mic:hover { transform: translateY(-2px); border-color: var(--brand); }
.mic.on { background: var(--red); color: #fff; border-color: transparent; animation: micPulse 1s ease-in-out infinite; }
@keyframes micPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(194,56,31,.5); }
  50% { box-shadow: 0 0 0 11px rgba(194,56,31,0); }
}
/* 空闲时轻微呼吸，吸引注意 */
.mic:not(.on) { animation: micIdle 2.6s ease-in-out infinite; }
@keyframes micIdle {
  0%,100% { box-shadow: var(--sh); }
  50% { box-shadow: 0 0 0 6px rgba(194,56,31,.12), var(--sh); }
}
/* 按住说话 提示 */
.mic-tip {
  margin-top: 10px; display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--sub); animation: micTipFade 2.6s ease-in-out infinite;
}
.mic-tip .rec-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none;
  animation: recBlink 1.3s ease-in-out infinite;
}
.mic-tip.recording { color: var(--red); font-weight: 700; animation: none; }
.mic-tip.recording .rec-dot { animation: recBlink .7s ease-in-out infinite; }
@keyframes micTipFade { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes recBlink { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ============ 平台适配 + 分享卡片 ============ */
.act-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.pt, .pt-share {
  border: 1px solid var(--line); background: var(--bg2); color: var(--brand);
  border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; font-weight: 600; transition: .15s;
}
.pt:hover, .pt-share:hover { border-color: var(--brand); background: #edf0f8; }
.pt-share { color: var(--blue); }
.pt-out { flex-basis: 100%; }
.pt-box {
  margin-top: 4px; background: var(--bg); border: 1px dashed var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 1.6;
  display: flex; gap: 10px; align-items: flex-start;
}
.pt-box .copy {
  margin-left: auto; flex: none; border: 1px solid var(--line); background: var(--bg2); color: var(--sub);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.pt-box .copy:hover { border-color: var(--brand); color: var(--brand); }

/* ============ 对话拆解 ============ */
.split-line {
  background: var(--bg2); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--sh); animation: rise .4s ease both;
}
.split-line.them { border-left: 4px solid var(--red); }
.split-line.me { border-left: 4px solid var(--brand); }
.sl-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.sl-speaker { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--sub); }
.sl-speaker.them { background: var(--red); color: #fff; }
.sl-speaker.me { background: var(--brand); color: #fff; }
.sl-type { font-size: 12px; font-weight: 700; color: var(--red); }
.sl-type.neutral { color: var(--sub); }
.sl-text { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: var(--ink); }
.split-line .comeback { margin: 0; }

/* 夜间皮肤 · 新元素 */
body[data-mode="night"] .mic { background: #1c0e0e; color: #ff8c6b; border-color: var(--line); }
body[data-mode="night"] .mic:not(.on) { animation: micIdleNight 2.6s ease-in-out infinite; }
@keyframes micIdleNight { 0%,100% { box-shadow: var(--sh); } 50% { box-shadow: 0 0 0 6px rgba(255,69,58,.16), var(--sh); } }
body[data-mode="night"] .mic.on { background: var(--brand); color: #fff; }
body[data-mode="night"] .mic-tip { color: var(--sub); }
body[data-mode="night"] .mic-tip.recording { color: #ff8c6b; }
body[data-mode="night"] .pt, body[data-mode="night"] .pt-share { background: rgba(34,18,18,.6); color: #ff8c6b; border-color: var(--line); }
body[data-mode="night"] .pt:hover, body[data-mode="night"] .pt-share:hover { border-color: var(--brand); background: rgba(58,21,21,.85); }
body[data-mode="night"] .pt-share { color: #ffb020; }
body[data-mode="night"] .pt-box { background: #1c0e0e; border-color: var(--line); color: var(--ink); }
body[data-mode="night"] .pt-box .copy { background: rgba(34,18,18,.6); color: var(--sub); }
body[data-mode="night"] .pt-box .copy:hover { border-color: var(--brand); color: #ff8c6b; }
body[data-mode="night"] .split-line { background: var(--bg2); border-color: var(--line); }
body[data-mode="night"] .sl-speaker { background: rgba(34,18,18,.6); color: var(--sub); }
body[data-mode="night"] .sl-speaker.them { background: var(--red); color: #fff; }
body[data-mode="night"] .sl-speaker.me { background: var(--blue); color: #1c0e0e; }
body[data-mode="night"] .split-line.me { border-left-color: var(--blue); }
body[data-mode="night"] .sl-speaker.me { background: var(--brand); color: #fff; }

/* ============ 会员 / VIP ============ */
.vip-badge {
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: var(--bg); color: var(--sub); border: 1px solid var(--line); white-space: nowrap;
}
.vip-badge.on { background: linear-gradient(135deg, #f6c453, #e6a817); color: #3a2400; border-color: transparent; box-shadow: 0 2px 8px rgba(230,168,23,.35); }

.vip-note {
  background: #fbf3e4; border: 1px solid #e6d3ae; border-left: 4px solid var(--brand);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink); margin-bottom: 14px;
}
.vip-status { font-size: 14px; margin-bottom: 18px; color: var(--ink); }
.vs-badge { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--sub); }
.vs-badge.on { background: linear-gradient(135deg, #f6c453, #e6a817); color: #3a2400; }
.vs-badge.admin { background: linear-gradient(135deg, #ff6b5e, #c2381f); color: #fff7ef; }
.vs-exit { color: var(--sub); font-size: 13px; margin-left: 4px; }

/* 退款区 */
.vip-refund { background: #fbf3e4; border: 1px solid #e6d3ae; border-radius: var(--r-sm); padding: 14px; margin-bottom: 18px; }
.rf-head { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.rf-tip { font-size: 13px; line-height: 1.7; color: var(--sub); margin: 0 0 12px; }
.rf-btn { background: transparent; border: 1.5px solid #d9534f; color: #d9534f; font-weight: 700; padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer; transition: background .15s, color .15s; }
.rf-btn:hover { background: #d9534f; color: #fff; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.plan {
  position: relative; background: var(--bg2); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 22px 20px 20px; box-shadow: var(--sh); display: flex; flex-direction: column; transition: .2s;
}
.plan:hover { transform: translateY(-3px); }
.plan.highlight { border-color: var(--brand); box-shadow: 0 8px 26px rgba(47,63,111,.16); }
.plan-tag {
  position: absolute; top: -11px; left: 18px; font-size: 11px; font-weight: 800; color: #3a2400;
  background: linear-gradient(135deg, #eec368, #cf9a24); padding: 3px 10px; border-radius: 999px;
}
.plan-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.plan-price { margin: 8px 0 14px; font-family: var(--font-display); font-size: 34px; font-weight: 900; color: var(--brand); }
.plan-price .plan-unit { font-size: 13px; font-weight: 600; color: var(--sub); margin-left: 4px; }
.plan-feat { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.plan-feat li { font-size: 13.5px; color: var(--ink); padding: 5px 0 5px 22px; position: relative; }
.plan-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.plan-btn { width: 100%; }

.vip-gate {
  text-align: center; background: var(--bg2); border: 1.5px dashed var(--brand); border-radius: var(--r);
  padding: 26px 20px; box-shadow: var(--sh); animation: rise .35s ease both;
}
.vg-ico { font-size: 30px; }
.vg-title { font-size: 18px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; }
.vg-sub { color: var(--sub); font-size: 14px; margin: 0 0 14px; }
.vg-tip { color: var(--sub); font-size: 12px; margin: 12px 0 0; }
.vip-gate .primary { margin: 0 0 10px; }
.vg-ghost {
  display: block; width: 100%; margin: 0 auto; padding: 11px 18px; border-radius: var(--r);
  background: transparent; color: var(--brand); border: 1.5px solid var(--brand);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: .18s;
}
.vg-ghost:hover { background: var(--brand); color: #fff; }
body[data-mode="night"] .vg-ghost { color: var(--brand-2); border-color: var(--brand-2); }
body[data-mode="night"] .vg-ghost:hover { background: var(--brand-2); color: #1a0e12; }
.vip-test-tool { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.vip-test-tool .vg-ghost { display: inline-block; width: auto; margin: 0; padding: 8px 14px; font-size: 13px; }
.vip-test-tip { font-size: 12px; color: var(--sub); line-height: 1.5; }

.vip-faq { margin-bottom: 18px; }
.vip-faq h3 { font-size: 16px; margin: 8px 0 10px; }
.faq-item { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; }
.faq-item b { color: var(--ink); font-size: 14px; }
.faq-item p { margin: 6px 0 0; color: var(--sub); font-size: 13px; line-height: 1.65; }

.vip-demo-banner {
  background: #f9f2df; border: 1px solid #e3d3a4; border-radius: var(--r-sm); padding: 11px 14px;
  font-size: 12.5px; color: #7d5709; line-height: 1.6;
}

/* 会员码（轻量跨设备恢复） */
.vip-code-box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.vc-head { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.vc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vc-label { font-size: 13px; color: var(--sub); }
.vc-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 800; letter-spacing: 1px; color: var(--brand); background: rgba(47,63,111,.10); padding: 5px 12px; border-radius: 8px; }
.vc-copy { font-size: 12px; font-weight: 700; color: var(--brand); background: transparent; border: 1px solid var(--brand); border-radius: 8px; padding: 5px 12px; cursor: pointer; }
.vc-copy:hover { background: rgba(47,63,111,.12); }
.vc-tip { font-size: 12.5px; color: var(--sub); line-height: 1.6; margin: 10px 0 0; }
.vc-tip-dim { margin: 0; }
.vc-restore { display: flex; gap: 8px; margin-top: 12px; }
.vc-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; background: var(--bg); color: var(--ink); font-family: inherit; box-sizing: border-box; letter-spacing: 1px; }
.vc-restore-btn { white-space: nowrap; }
body[data-mode="night"] .vip-code-box { background: var(--bg2); }
body[data-mode="night"] .vc-copy { color: var(--brand-2); border-color: var(--brand-2); }
body[data-mode="night"] .vc-copy:hover { background: rgba(255,150,60,.16); }
body[data-mode="night"] .vc-code { color: var(--brand-2); background: rgba(255,150,60,.14); }
.vip-wx-box { background: #edf0f8; border: 1px solid rgba(47,63,111,.28); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.vw-btn { margin-top: 12px; }
body[data-mode="night"] .vip-wx-box { background: #2a1708; border-color: rgba(255,150,60,.35); }
.vip-hint-inline { margin-top: 12px; font-size: 13px; color: var(--sub); }
.vip-link { color: var(--brand); font-weight: 700; cursor: pointer; }

body[data-mode="night"] .vip-note { background: #2a1c08; border-color: #5a3d10; color: var(--ink); }
body[data-mode="night"] .vip-badge { background: rgba(34,18,18,.6); color: var(--sub); border-color: var(--line); }
body[data-mode="night"] .vip-badge.on { background: linear-gradient(135deg, #f6c453, #e6a817); color: #3a2400; }
body[data-mode="night"] .plan { background: var(--bg2); border-color: var(--line); }
body[data-mode="night"] .plan.highlight { border-color: var(--brand); box-shadow: 0 8px 26px rgba(255,150,60,.12); }
body[data-mode="night"] .plan-feat li::before { color: var(--brand); }
body[data-mode="night"] .vip-gate { background: var(--bg2); border-color: var(--brand); }
body[data-mode="night"] .faq-item { background: var(--bg2); border-color: var(--line); }
body[data-mode="night"] .vip-demo-banner { background: #2a2308; border-color: #5a4d10; color: #e8d28a; }
body[data-mode="night"] .vs-badge { background: rgba(34,18,18,.6); color: var(--sub); }
body[data-mode="night"] .vs-badge.on { background: linear-gradient(135deg, #f6c453, #e6a817); color: #3a2400; }
body[data-mode="night"] .vs-badge.admin { background: linear-gradient(135deg, #ff6b5e, #c2381f); color: #141a2e; }
body[data-mode="night"] .vip-refund { background: #2a1c08; border-color: #5a3d10; }
body[data-mode="night"] .rf-tip { color: #e8d28a; }
body[data-mode="night"] .rf-btn { border-color: #ff6b6b; color: #ff6b6b; }
body[data-mode="night"] .rf-btn:hover { background: #ff6b6b; color: #2a0d0d; }

/* 首页会员推广卡 */
.vip-promo {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(118deg, var(--bg2) 0%, #fbf1dd 100%);
  border: 1.5px solid var(--line); border-left: 5px solid var(--yellow);
  border-radius: var(--r); padding: 18px 20px; margin: 0 0 18px;
  box-shadow: var(--sh); animation: rise .35s ease both;
}
.vip-promo::after {
  content: ""; position: absolute; right: -46px; top: -46px; width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(194,132,28,.22), transparent 70%); pointer-events: none;
}
.vip-promo.is-vip { border-left-color: var(--brand); background: linear-gradient(118deg, var(--bg2) 0%, #edf0f8 100%); }
.vip-promo.is-vip::after { background: radial-gradient(circle, rgba(47,63,111,.20), transparent 70%); }
.vp-ico { font-size: 34px; line-height: 1; z-index: 1; }
.vp-body { flex: 1; min-width: 200px; z-index: 1; }
.vp-title { font-family: var(--font-display); font-size: 19px; font-weight: 900; letter-spacing: .5px; color: var(--ink); }
.vp-desc { font-size: 13.5px; color: var(--sub); margin-top: 4px; line-height: 1.6; }
.vp-desc b { color: var(--brand); }
.vp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vp-tags span {
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: rgba(47,63,111,.10); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.vp-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; z-index: 1; }
.vp-cta button { width: 100%; }
.vp-vip-state { font-size: 13.5px; font-weight: 700; color: var(--brand); text-align: right; }

body[data-mode="night"] .vip-promo { background: linear-gradient(118deg, var(--bg2) 0%, #221a08 100%); border-color: var(--line); }
body[data-mode="night"] .vip-promo.is-vip { background: linear-gradient(118deg, var(--bg2) 0%, #2a1708 100%); }
body[data-mode="night"] .vp-tags span { background: rgba(255,150,60,.14); color: var(--brand-2); }
body[data-mode="night"] .vp-vip-state { color: var(--brand-2); }

/* 首页社区预览 */
.home-community {
  position: relative; overflow: hidden;
  background: linear-gradient(118deg, var(--bg2) 0%, #edf0f8 100%);
  border: 1.5px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--r); padding: 16px 20px; margin: 0 0 18px;
  box-shadow: var(--sh); animation: rise .35s ease both;
}
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hc-title { font-family: var(--font-display); font-size: 18px; font-weight: 900; letter-spacing: .5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.hc-ico { font-size: 20px; }
.hc-more { font-size: 13px; font-weight: 700; color: var(--brand); background: rgba(47,63,111,.10); border: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.hc-more:hover { background: rgba(47,63,111,.18); }
.hc-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hc-rank-item { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .05s; }
.hc-rank-item:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(194,56,31,.12); }
.hc-rank-item:active { transform: scale(.99); }
.hc-rank-no { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; font-weight: 900; color: #fff7ef; background: var(--sub); }
.hc-rank-no.n1 { background: linear-gradient(135deg, #eec368, #cf9a24); color: #3a2400; }
.hc-rank-no.n2 { background: linear-gradient(135deg, #d9d2c2, #a89e88); color: #2b2721; }
.hc-rank-no.n3 { background: linear-gradient(135deg, #dda370, #b8794a); color: #3a2400; }
.hc-rank-main { min-width: 0; flex: 1; }
.hc-ptitle { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-rank-meta { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--sub); }
.hc-hot { color: var(--red); font-weight: 700; }
.hc-empty { font-size: 13.5px; color: var(--sub); }
.hc-sub { font-family: var(--font-display); font-size: 13.5px; font-weight: 800; letter-spacing: .4px; color: var(--brand); margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
.hc-daily { background: linear-gradient(135deg, rgba(47,63,111,.08), rgba(47,63,111,.02)); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: 13px 15px; }
.hc-daily-badge { display: inline-block; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--brand); padding: 3px 9px; border-radius: 999px; letter-spacing: .5px; }
.hc-daily-title { font-family: var(--font-display); font-size: 16px; font-weight: 900; color: var(--ink); margin: 9px 0 4px; line-height: 1.35; }
.hc-daily-scene { display: inline-block; font-size: 12px; color: var(--sub); background: rgba(47,63,111,.08); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; margin-bottom: 8px; }
.hc-daily-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 9px; }
.hc-daily-tag { flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.hc-daily-tag.atk { color: #9a3b2e; background: rgba(154,59,46,.10); }
.hc-daily-tag.rep { color: #2f3f6f; background: rgba(47,63,111,.10); }
.hc-daily-row p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.hc-daily-tip { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--sub); background: rgba(47,63,111,.05); border-radius: 8px; padding: 8px 10px; }
.hc-recent { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hc-recent-item { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.hc-recent-date { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--sub); background: rgba(47,63,111,.07); border-radius: 6px; padding: 2px 7px; }
.hc-recent-title { font-size: 13px; color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body[data-mode="night"] .home-community { background: linear-gradient(118deg, var(--bg2) 0%, #2a1708 100%); border-color: var(--line); }
body[data-mode="night"] .hc-rank-item { background: var(--bg); }
body[data-mode="night"] .hc-rank-item:hover { border-color: #ff7a45; box-shadow: 0 4px 14px rgba(255,122,69,.18); }
body[data-mode="night"] .hc-hot { color: #ff922b; }
body[data-mode="night"] .hc-item { background: var(--bg); }
body[data-mode="night"] .hc-more { background: rgba(255,150,60,.14); color: var(--brand-2); }
body[data-mode="night"] .hc-more:hover { background: rgba(255,150,60,.22); }
body[data-mode="night"] .hc-sub { color: var(--brand-2); }
body[data-mode="night"] .hc-daily { background: linear-gradient(135deg, rgba(255,150,60,.12), rgba(255,150,60,.03)); border-left-color: var(--brand-2); }
body[data-mode="night"] .hc-daily-title { color: #eafff9; }
body[data-mode="night"] .hc-daily-row p { color: #d7f5ee; }
body[data-mode="night"] .hc-daily-tag.atk { color: #ffb3a3; background: rgba(255,107,84,.14); }
body[data-mode="night"] .hc-daily-tag.rep { color: #7ff0d8; background: rgba(255,150,60,.16); }
body[data-mode="night"] .hc-daily-tip { color: #9fd9cf; background: rgba(255,150,60,.06); }
body[data-mode="night"] .hc-recent-item { background: var(--bg); }

/* ============ 社区 ============ */
.cm-compose { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cm-input, .cm-text, .cm-cm-name, .cm-cm-body { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: var(--bg); color: var(--ink); font-family: inherit; box-sizing: border-box; }
.cm-text { resize: vertical; }
.cm-compose-foot { display: flex; gap: 10px; align-items: center; }
.cm-compose-foot select { flex: 1; }
.cm-compose-foot .primary { flex: none; }
.cm-notice { font-size: 12.5px; color: var(--sub); background: rgba(47,63,111,.07); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 14px 0; line-height: 1.6; }
.cm-searchbar { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; flex-wrap: wrap; }
.cm-search-input { flex: 1 1 200px; }
.cm-search-scene { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: var(--bg); color: var(--ink); font-family: inherit; box-sizing: border-box; }
.cm-scene-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip { border: 1px solid var(--line); background: var(--bg); color: var(--sub); padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; user-select: none; transition: .15s; font-family: inherit; line-height: 1.4; }
.cm-chip:hover { border-color: var(--brand); color: var(--ink); }
.cm-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.cm-search-chips { flex: 1 1 100%; }
.cm-compose-foot { justify-content: flex-end; }
.cm-search-clear { flex: none; border: 1px solid var(--line); background: var(--bg2); color: var(--sub); border-radius: 10px; padding: 10px 14px; font-size: 14px; cursor: pointer; font-family: inherit; }
.cm-search-clear:hover { border-color: var(--brand); color: var(--ink); }
.cm-searchinfo { font-size: 12.5px; color: var(--sub); margin: 10px 0 0; line-height: 1.5; }
.cm-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.cm-empty { color: var(--sub); text-align: center; padding: 30px 10px; font-size: 14px; }
.cm-card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--bg); box-shadow: var(--sh); animation: rise .3s ease both; }
.cm-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); flex-wrap: wrap; }
.cm-name { font-weight: 700; color: var(--ink); }
.cm-scene { background: rgba(47,63,111,.11); color: var(--brand); padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.cm-title { font-family: var(--font-display); font-size: 16px; font-weight: 900; color: var(--ink); margin-top: 8px; }
.cm-body { font-size: 14px; color: var(--ink); margin-top: 6px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.cm-actions { display: flex; gap: 10px; margin-top: 12px; }
.cm-like, .cm-report { border: 1px solid var(--line); background: var(--bg2); color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; transition: .15s; }
.cm-like:hover { border-color: var(--brand); color: var(--brand); }
.cm-report:hover { border-color: var(--red); color: var(--red); }
.cm-comments { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.cm-cm-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.cm-cm { font-size: 13px; color: var(--ink); }
.cm-cm b { color: var(--brand); }
.cm-cm span { color: var(--sub); font-size: 11.5px; margin-left: 6px; }
.cm-cm p { margin: 3px 0 0; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cm-empty-s { color: var(--sub); font-size: 12.5px; }
.cm-cm-compose { display: flex; gap: 8px; }
.cm-cm-compose input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; background: var(--bg); color: var(--ink); font-family: inherit; box-sizing: border-box; }
.cm-cm-compose .primary.sm { flex: none; padding: 7px 14px; font-size: 13px; }
body[data-mode="night"] .cm-compose, body[data-mode="night"] .cm-card { background: var(--bg2); }
body[data-mode="night"] .cm-notice { background: rgba(255,150,60,.12); }
body[data-mode="night"] .cm-like, body[data-mode="night"] .cm-report { background: #2a1c1c; }
body[data-mode="night"] .cm-chip { background: var(--bg2); color: #b8a99a; }
body[data-mode="night"] .cm-chip:hover { border-color: var(--brand); color: #e9ddcf; }
body[data-mode="night"] .cm-chip.on { background: var(--brand); color: #fff; }

/* ============ 支付弹窗（微信扫码） ============ */
.pay-overlay {
  position: fixed; inset: 0; background: rgba(15,23,32,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pay-box {
  background: var(--bg2); border-radius: var(--r); padding: 26px 24px; width: 320px; max-width: 92vw;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.pay-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.pay-qr { display: flex; align-items: center; justify-content: center; min-height: 180px; margin-bottom: 14px; }
.pay-qr canvas { border-radius: 8px; }
.pay-qr { word-break: break-all; font-size: 12px; color: var(--sub); }
.pay-tip { font-size: 12.5px; color: var(--sub); line-height: 1.6; margin: 0 0 16px; }
.pay-box .primary { width: 100%; }

body[data-mode="night"] .pay-box { background: var(--bg2); }
body[data-mode="night"] .pay-title { color: var(--ink); }
body[data-mode="night"] .pay-qr canvas { background: #fff !important; }

/* ====== 会员服务协议弹窗 ====== */
.agree-overlay {
  position: fixed; inset: 0; background: rgba(15,23,32,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 70; padding: 16px;
  animation: fadeIn .2s ease;
}
.agree-box {
  background: var(--bg2); border-radius: var(--r); width: 480px; max-width: 94vw; max-height: 86vh;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.3);
  overflow: hidden;
}
.agree-head {
  flex-shrink: 0; padding: 16px 20px; font-size: 16px; font-weight: 800; color: var(--ink);
  border-bottom: 1px solid var(--line); background: linear-gradient(118deg, var(--bg2), #fbf1dd);
}
.agree-scroll {
  flex: 1; overflow-y: auto; padding: 16px 20px; font-size: 13px; line-height: 1.75; color: var(--body);
  -webkit-overflow-scrolling: touch;
}
.agree-scroll h4 { font-size: 13.5px; font-weight: 800; color: var(--ink); margin: 14px 0 6px; }
.agree-scroll h4:first-child { margin-top: 0; }
.agree-scroll p { margin: 0 0 4px; }
.agree-scroll p.agree-final { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--sub); font-size: 12.5px; }
.agree-hint {
  flex-shrink: 0; padding: 9px 20px 0; font-size: 12px; line-height: 1.4; color: var(--sub);
  background: var(--bg2); text-align: center;
}
.agree-hint.done { color: #2e8b57; font-weight: 700; }
.agree-actions {
  flex-shrink: 0; display: flex; gap: 12px; padding: 14px 20px;
  border-top: 1px solid var(--line); background: var(--bg2);
}
.agree-btn {
  flex: 1; padding: 11px 0; border-radius: 9px; font-size: 14.5px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--sub); transition: .15s;
}
.agree-btn.agree-no:hover { border-color: #d9534f; color: #d9534f; }
.agree-btn.agree-yes { background: var(--red); color: #fff7ef; border: none; }
.agree-btn.agree-yes:hover { filter: brightness(1.06); }
.agree-btn.agree-yes:disabled { background: #c9c4bd; color: #5a554e; cursor: not-allowed; filter: none; opacity: .95; }
.agree-btn.agree-yes:disabled:hover { filter: none; }

/* 夜间模式 */
body[data-mode="night"] .agree-box { background: var(--bg2); border: 1px solid var(--line); }
body[data-mode="night"] .agree-head { background: #2a2018; color: #f3e3d0; }
body[data-mode="night"] .agree-scroll { color: #b8a99a; }
body[data-mode="night"] .agree-scroll h4 { color: #f3e3d0; }
body[data-mode="night"] .agree-scroll p.agree-final { color: #9a8a7a; }
body[data-mode="night"] .agree-hint { color: #9a8a7a; }
body[data-mode="night"] .agree-hint.done { color: #6fcf97; }
body[data-mode="night"] .agree-actions { background: #2a2018; border-top-color: #4a3526; }
body[data-mode="night"] .agree-btn { background: #2c2420; color: #c9bfb4; }
body[data-mode="night"] .agree-btn.agree-yes { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff7ef; }
body[data-mode="night"] .agree-btn.agree-yes:disabled { background: #4a4138; color: #cdbcb0; }

/* ====== 页尾（参照深灰底 + 竖排品牌 + 二维码布局）====== */
.site-footer {
  background: #5a5a5a;
  color: #e8e8e8;
  padding: 32px 0;
  margin-top: 48px;
  font-size: 13px;
  line-height: 1.8;
}
.ft-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 36px; padding: 0 24px;
}
/* 左：竖排品牌名 */
.ft-brand {
  flex-shrink: 0;
  width: 44px; min-height: 120px;
  background: #c0392b;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0;
}
.ft-brand-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 6px;
  font-size: 19px; font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
/* 中：版权 / 备案 / 联系 */
.ft-info { flex: 1; }
.ft-info p { margin: 2px 0; }
.ft-info a { color: #d0d0d0; text-decoration: none; }
.ft-info a:hover { color: #fff; text-decoration: underline; }
.ft-badge { margin-top: 6px; }
.ft-badge img { vertical-align: middle; border-radius: 3px; }
/* 右：二维码组 */
.ft-qrs {
  display: flex; gap: 20px; flex-shrink: 0;
}
.ft-qr-item { text-align: center; }
.ft-qr-box {
  width: 90px; height: 90px;
  background: #fff; border-radius: 6px;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.ft-qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.ft-qr-label {
  display: block; margin-top: 6px;
  font-size: 11.5px; color: #ccc;
  white-space: nowrap;
}

/* 夜间模式页尾适配 */
body[data-mode="night"] .site-footer {
  background: #2c2420;
  color: #b8a99a;
  border-top: 2px solid #8b2500;
}
body[data-mode="night"] .ft-brand { background: linear-gradient(180deg, #a81c1c, #7a1212); }
body[data-mode="night"] .ft-info a { color: #c9bfb4; }
body[data-mode="night"] .ft-info a:hover { color: #f0d8c0; }
body[data-mode="night"] .ft-qr-label { color: #9a8a7a; }

/* ============================================================
   交互增强层（2026-08-08 设计感升级）
   色彩体系：玄青靛蓝(体面) × 朱砂(锋芒) × 赭金(温度)，全站无绿
   ============================================================ */

/* ---------- 1) 点击涟漪（JS 注入 .ripple） ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,.42);
  transform: scale(0);
  animation: rippleGo .6s ease-out forwards;
}
@keyframes rippleGo { to { transform: scale(2.6); opacity: 0; } }
/* 浅色底元素用墨色涟漪；这些元素要能容纳涟漪（relative + 裁剪） */
.tab, .night-pin, .hc-more, .cm-like, .cm-report, .vg-ghost, .rf-btn, .feature, .vc-copy, .cm-search-clear {
  position: relative;
  overflow: hidden;
}
.tab .ripple, .night-pin .ripple, .hc-more .ripple, .cm-like .ripple, .cm-report .ripple,
.vg-ghost .ripple, .rf-btn .ripple, .feature .ripple, .vc-copy .ripple, .cm-search-clear .ripple {
  background: rgba(47,63,111,.20);
}
body[data-mode="night"] .tab .ripple,
body[data-mode="night"] .night-pin .ripple,
body[data-mode="night"] .hc-more .ripple,
body[data-mode="night"] .cm-like .ripple,
body[data-mode="night"] .cm-report .ripple,
body[data-mode="night"] .vg-ghost .ripple,
body[data-mode="night"] .rf-btn .ripple,
body[data-mode="night"] .feature .ripple,
body[data-mode="night"] .vc-copy .ripple,
body[data-mode="night"] .cm-search-clear .ripple {
  background: rgba(255,150,60,.28);
}

/* ---------- 2) 3D 倾斜卡（JS 写 transform，CSS 管回弹） ---------- */
.feature, .plan {
  transition: transform .22s ease-out, box-shadow .2s, border-color .2s;
  will-change: transform;
}

/* ---------- 3) 标题红条呼吸 ---------- */
h2 { transition: border-left-color .25s; }
h2:hover { border-left-color: var(--yellow); }

/* ---------- 4) 下拉框自定义箭头（更有工艺感） ---------- */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%236c6558' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px;
  cursor: pointer;
}
select:hover { border-color: var(--line-strong); }
body[data-mode="night"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%23d3a9a9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* ---------- 5) 输入框聚焦微浮 ---------- */
textarea, select, input {
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
textarea:focus, select:focus, input:focus { transform: translateY(-1px); }

/* ---------- 6) tab 按压回弹 ---------- */
.tab { transition: transform .16s ease, box-shadow .18s ease, border-color .18s, color .18s, background .18s; }
.tab:active { transform: scale(.94); }
.tab.active { animation: tabPop .3s ease; }
@keyframes tabPop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ---------- 7) 结果卡悬停：左边条与序号钉变朱砂 ---------- */
.comeback { transition: transform .16s, box-shadow .16s, border-color .16s, border-left-color .2s; }
.comeback:hover { border-left-color: var(--red); }
.comeback:hover .num { background: var(--red); }
.comeback .num { transition: background .2s; }

/* ---------- 8) VIP 金徽章流光 ---------- */
.vip-badge.on, .vs-badge.on, .plan-tag { position: relative; overflow: hidden; }
.vip-badge.on::after, .vs-badge.on::after, .plan-tag::after {
  content: "";
  position: absolute; top: -40%; bottom: -40%; width: 34%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* ---------- 9) 推荐套餐：旋转流光边框 ---------- */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan.highlight {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    conic-gradient(from var(--a, 0deg), var(--brand), var(--yellow), var(--red), var(--brand)) border-box;
  animation: spinBorder 4.5s linear infinite;
}
@keyframes spinBorder { to { --a: 360deg; } }
/* 不支持 @property 的浏览器：静态渐变边框兜底（边框仍在，只是不旋转） */

/* ---------- 10) hero 数字依次弹入 ---------- */
.hero-stat { animation: statPop .5s cubic-bezier(.2,.9,.3,1.4) both; }
.hero-stat:nth-child(1) { animation-delay: .05s; }
.hero-stat:nth-child(2) { animation-delay: .13s; }
.hero-stat:nth-child(3) { animation-delay: .21s; }
.hero-stat:nth-child(4) { animation-delay: .29s; }
@keyframes statPop {
  from { opacity: 0; transform: translateY(10px) scale(.85); }
  to { opacity: 1; transform: none; }
}

/* ---------- 11) 昼夜开关旋钮上的小图标 ---------- */
.mode-toggle .knob { display: flex; align-items: center; justify-content: center; }
.mode-toggle .knob::after { content: "☀"; font-size: 11px; line-height: 1; color: #c2841c; }
.mode-toggle.on .knob::after { content: "🌙"; font-size: 10px; }

/* ---------- 12) 点赞 / 举报 按压手感 ---------- */
.cm-like:active, .cm-report:active { transform: scale(.9); }
.cm-like.pop { animation: likeBeat .45s ease; }
@keyframes likeBeat {
  0% { transform: scale(1); } 35% { transform: scale(1.25); }
  60% { transform: scale(.95); } 100% { transform: scale(1); }
}

/* ---------- 13) 页尾二维码悬停抬起 ---------- */
.ft-qr-box { transition: transform .2s ease, box-shadow .2s ease; }
.ft-qr-item:hover .ft-qr-box { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 10px 22px rgba(0,0,0,.28); }

/* ---------- 14) toast 弹性入场 ---------- */
.toast.show { animation: toastPop .32s cubic-bezier(.2,.9,.3,1.35); }
@keyframes toastPop { 0% { transform: translateX(-50%) translateY(20px) scale(.9); } 100% { transform: translateX(-50%) translateY(0) scale(1); } }

/* ---------- 15) 会员推广卡 / 社区精选卡悬停微抬 ---------- */
.vip-promo, .home-community { transition: transform .2s ease, box-shadow .2s ease; }
.vip-promo:hover, .home-community:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

/* ---------- 16) 减少动效偏好：尊重系统设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   17) 账号体系 UI（顶栏登录/注册 · 弹窗 · 验证码 · 古诗框 · 免费体验）
   配色沿用玄青靛蓝×朱砂×赭金，禁用绿色系。
   显隐统一走 [hidden] 属性（JS 用 el.hidden = true/false 切换）。
   ============================================================ */
[hidden] { display: none !important; }

/* ---- 顶栏操作区 ---- */
.top-actions { display: inline-flex; align-items: center; gap: 10px; }
.tb-btn {
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; margin-top: 0;
  border: 1.5px solid var(--brand); background: transparent; color: var(--brand);
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.tb-btn:hover { background: rgba(47,63,111,.10); transform: translateY(-1px); }
.tb-btn.primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff7ef; box-shadow: var(--sh-hard);
}
.tb-btn.primary:hover { filter: saturate(1.05); box-shadow: var(--sh-pop); transform: translate(-1px,-1px); }
.user-box { display: inline-flex; align-items: center; gap: 10px; }
.ub-badge {
  font-size: 13px; font-weight: 800; letter-spacing: .5px;
  color: var(--brand); background: rgba(47,63,111,.12);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
}
.ub-badge.vip {
  color: #3a2400; background: linear-gradient(135deg, #f6c453, #e6a817);
  border-color: transparent; box-shadow: 0 2px 8px rgba(230,168,23,.35);
}
.ub-badge.admin {
  color: #fff7ef; background: linear-gradient(135deg, #ff6b5e, #c2381f);
  border-color: transparent; box-shadow: 0 2px 8px rgba(194,56,31,.35);
}
.ub-name {
  font-size: 14px; font-weight: 800; color: var(--brand);
  cursor: pointer; padding: 4px 10px; border-radius: 999px;
  border: 1px solid transparent; user-select: none;
  transition: color .15s, background .15s, border-color .15s;
}
.ub-name:hover, .ub-name:focus { color: var(--red); background: rgba(255,69,58,.10); border-color: rgba(255,69,58,.30); outline: none; }

/* ---- 本人信息卡 ---- */
.profile-modal { width: min(440px, 94vw); }
.pf-pane { margin-top: 6px; }
/* 编辑视图中的标签与输入框间距（避免控件紧贴） */
.pf-pane label { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 700; color: var(--sub); }
.pf-pane label:first-child { margin-top: 4px; }
.pf-head { display: flex; align-items: center; gap: 14px; padding: 6px 2px 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pf-avatar {
  width: 54px; height: 54px; flex: none; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 900; color: #fff7ef;
  background: linear-gradient(135deg, var(--brand), #2f3f6f);
}
.pf-name { font-size: 19px; font-weight: 900; color: var(--ink); }
.pf-tier { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 3px; }
.pf-list { list-style: none; margin: 0 0 18px; padding: 0; }
.pf-list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed rgba(47,63,111,.12); font-size: 14px; }
.pf-list li:last-child { border-bottom: none; }
.pf-k { flex: none; width: 78px; color: var(--sub); font-weight: 700; }
.pf-v { flex: 1; color: var(--ink); word-break: break-word; line-height: 1.5; }
.pf-bio-row .pf-v { font-style: italic; }
.pf-pane .auth-submit { margin-top: 8px; }
/* 展示视图中的「用户名」行 */
.pf-username-row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed rgba(47,63,111,.12); font-size: 14px; }
.pf-username-row .pf-v { flex: 1; color: var(--ink); font-weight: 700; word-break: break-word; }
.pf-link {
  flex: none; border: 1px solid var(--red); background: transparent; color: var(--red);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.pf-link:hover:not(:disabled) { background: var(--red); color: #fff7ef; }
.pf-link:disabled { border-color: var(--line); color: var(--sub); opacity: .7; cursor: not-allowed; }
/* 修改用户名子视图 */
.pf-rename-head { font-size: 17px; font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.pf-rename-cur { font-size: 13px; color: var(--sub); margin-bottom: 12px; }
.pf-rename-cur span { color: var(--red); font-weight: 700; }
.pf-rename-tip { font-size: 12px; color: var(--sub); margin: 2px 0 10px; line-height: 1.5; }
body[data-mode="night"] .pf-username-row { border-bottom-color: rgba(255,255,255,.10); }
body[data-mode="night"] .pf-link:disabled { border-color: rgba(255,255,255,.18); }

/* 夜间模式：信息卡与顶栏用户名适配 */
body[data-mode="night"] .ub-name { color: #ffd2cc; }
body[data-mode="night"] .ub-name:hover, body[data-mode="night"] .ub-name:focus { color: #ff8a7e; background: rgba(255,69,58,.18); }
body[data-mode="night"] .pf-avatar { background: linear-gradient(135deg, #ff6b5e, #c2381f); color: #141a2e; }
body[data-mode="night"] .pf-name { color: #f3eee6; }
body[data-mode="night"] .pf-list li { border-bottom-color: rgba(255,255,255,.10); }

/* 本人信息卡 · 社区统计网格 */
.pf-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 6px; }
.pf-stat { background: linear-gradient(135deg, rgba(47,63,111,.06), rgba(194,56,31,.07)); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pf-stat:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: 0 6px 16px rgba(194,56,31,.18); }
.pf-stat b { display: block; font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.pf-stat span { font-size: 11px; color: var(--sub); font-weight: 700; }
.pf-stats-list { max-height: 50vh; overflow-y: auto; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.pf-stat-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.pf-stat-item:hover { border-color: var(--red); background: rgba(194,56,31,.05); }
.pf-stat-item.gone { cursor: default; opacity: .62; border-style: dashed; }
.pf-stat-item.gone:hover { border-color: var(--line); background: var(--bg); }
.pf-stat-body { font-size: 14px; color: var(--ink); line-height: 1.45; word-break: break-word; }
.pf-stat-sub { font-size: 11px; color: var(--sub); margin-top: 4px; font-weight: 700; }
.pf-stat-sub.pf-gone { color: var(--red); }
.pf-stats-loading, .pf-stats-empty { font-size: 13px; color: var(--sub); padding: 14px 2px; text-align: center; }
/* 社区卡片：信息卡追溯定位高亮 */
.cm-card.cm-highlight { border-color: var(--red); box-shadow: 0 0 0 3px rgba(194,56,31,.30), var(--sh); animation: cmPulse 1.2s ease 2; }
@keyframes cmPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(194,56,31,.30), var(--sh); } 50% { box-shadow: 0 0 0 6px rgba(194,56,31,.12), var(--sh); } }
@media (max-width: 640px) { .pf-stats { grid-template-columns: repeat(3, 1fr); } }
body[data-mode="night"] .pf-stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
body[data-mode="night"] .pf-stat b { color: #f3eee6; }
body[data-mode="night"] .pf-stat-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
body[data-mode="night"] .cm-card.cm-highlight { box-shadow: 0 0 0 3px rgba(255,107,94,.35), var(--sh); }

/* ---- 弹窗遮罩 + 容器 ---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(28,27,23,.52);
  backdrop-filter: blur(3px);
  animation: maskIn .18s ease both;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: min(420px, 92vw);
  max-height: calc(100vh - 40px);   /* 留出遮罩上下 padding，防止超高内容被挤出屏幕 */
  overflow-y: auto;                 /* 内容超长时弹窗内部可滚动（鼠标滚轮/触控板） */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     /* 滚到顶/底不连锁滚动背景 */
  background: var(--bg2); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 28px 26px 24px;
  box-shadow: var(--sh-lg); animation: rise .28s ease both;
}
.modal-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--sub);
  transition: color .15s, transform .15s;
}
.modal-close:hover { color: var(--red); transform: rotate(90deg); }
.modal-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  letter-spacing: .5px; color: var(--ink); margin: 0 0 16px;
}
.modal-sub { font-size: 13px; line-height: 1.65; color: var(--sub); margin: -8px 0 18px; }

/* ---- 登录/注册：选项卡 ---- */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1.5px solid var(--line); }
.auth-tab {
  flex: 1; padding: 10px 4px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--sub);
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
}
.auth-tab:hover { color: var(--brand); }
.auth-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---- 登录/注册：表单面板 ---- */
.auth-pane { display: flex; flex-direction: column; gap: 9px; }
.auth-pane label { font-size: 13px; font-weight: 700; color: var(--sub); margin-top: 4px; }
.auth-input {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  color: var(--ink); background: var(--bg2);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,63,111,.14); }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-img {
  flex: none; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); cursor: pointer; background: var(--bg);
}
.captcha-input { flex: 1; }
.auth-submit { width: 100%; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--sub); margin: 12px 0 0; }
.auth-switch a, .ai-hint-inline a { color: var(--brand); font-weight: 700; text-decoration: none; }
.auth-switch a:hover, .ai-hint-inline a:hover { text-decoration: underline; }
.auth-tip {
  font-size: 13px; color: var(--ink); line-height: 1.6;
  background: var(--red-soft); border-left: 3px solid var(--brand);
  padding: 10px 12px; border-radius: var(--r-sm); margin: 0;
}
.auth-tip-dim { font-size: 12.5px; color: var(--sub); opacity: .85; margin: 8px 0 0; }
.auth-msg { min-height: 18px; font-size: 13px; color: var(--sub); margin: 10px 0 0; }
.auth-msg.err { color: var(--red); font-weight: 700; }
/* 注册用户名实时校验提示 */
.auth-hint { display: block; min-height: 16px; font-size: 12px; line-height: 1.5; margin: 4px 0 2px; color: var(--sub); }
.auth-hint.ok { color: #2f8f5b; }
.auth-hint.err { color: var(--red); font-weight: 700; }
#regUsername.invalid { border-color: var(--red); }
#regUsername.valid { border-color: #2f8f5b; }

/* ---- 登录成功反馈层 ---- */
.login-success-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 14, 24, .55);
  backdrop-filter: blur(2px);
  animation: lsFade .18s ease-out;
}
@keyframes lsFade { from { opacity: 0; } to { opacity: 1; } }
.login-success-box {
  width: min(86vw, 340px); padding: 30px 24px 26px;
  background: linear-gradient(160deg, #16263f, #0e1830);
  border: 1px solid rgba(193, 142, 80, .55);
  border-radius: 18px; text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color: #f3ede1;
  animation: lsPop .26s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes lsPop { from { transform: translateY(14px) scale(.94); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.login-success-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 30% 30%, #c18e50, #9a6f2e);
  box-shadow: 0 6px 18px rgba(193, 142, 80, .5);
}
.login-success-title { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: #f6efdf; }
.login-success-sub { margin-top: 8px; font-size: 15px; color: #d8cdb6; }
.login-success-tip { margin-top: 14px; font-size: 13px; color: #b9a98a; letter-spacing: .5px; }
body[data-mode="night"] .login-success-box {
  background: linear-gradient(160deg, #2a1020, #1a0a16);
  border-color: rgba(206, 76, 60, .6);
}
body[data-mode="night"] .login-success-icon { background: radial-gradient(circle at 30% 30%, #ce4c3c, #9a2b22); box-shadow: 0 6px 18px rgba(206, 76, 60, .5); }

/* ---- 顶栏注册 / 古诗框 / 会员页用的幽灵按钮 ---- */
.ghost {
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  padding: 11px 20px; border-radius: 11px; cursor: pointer;
  background: transparent; color: var(--brand);
  border: 1.5px solid var(--brand); transition: transform .15s, background .15s;
}
.ghost:hover { background: rgba(47,63,111,.10); transform: translateY(-1px); }

/* ---- 免费生成回击 主按钮（赭金黄底深字，覆盖 .primary 的红）---- */
#gen-btn {
  background: linear-gradient(120deg, #f4cf72, #e0a23a);
  color: #3a2400;
  border: 1.5px solid #d99a2e;
}
#gen-btn .spin { border-color: rgba(58,36,0,.35); border-top-color: #3a2400; }

/* ---- 免费体验真AI回击 按钮（朱砂红 CTA，不放会员页）---- */
.exp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 12px;
  font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: .5px;
  color: #fff; cursor: pointer;
  background: var(--red);
  border: 1.5px solid #a52d17; border-radius: 12px; padding: 12px 18px;
  box-shadow: var(--sh-hard); transition: transform .15s, box-shadow .15s, filter .15s;
}
.exp-btn:hover { transform: translate(-2px,-2px); box-shadow: var(--sh-pop); filter: saturate(1.06); }
.exp-btn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 rgba(28,27,23,.12); }
.exp-btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---- 生成区：匿名登录提示条 ---- */
.ai-hint-inline {
  margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--sub);
  background: rgba(47,63,111,.07); border: 1px solid var(--line);
  border-left: 3px solid var(--yellow); border-radius: var(--r-sm); padding: 10px 12px;
}
.ai-hint-inline b { color: var(--brand); }

/* ---- 古诗提示框（匿名试图用免费体验）---- */
.poem-modal { text-align: center; max-width: 360px; }
.poem-line {
  font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1.85;
  color: var(--red); margin: 8px 0 12px; letter-spacing: 1px;
}
.poem-tip { font-size: 13.5px; color: var(--sub); margin: 0 0 18px; line-height: 1.6; }
.poem-actions { display: flex; gap: 10px; }
.poem-actions .primary, .poem-actions .ghost { flex: 1; margin-top: 0; }

/* ---- 夜间模式适配（变量已切换，仅补强对比）---- */
body[data-mode="night"] .modal-mask { background: rgba(0,0,0,.66); }
body[data-mode="night"] .tb-btn:hover { background: rgba(255,69,58,.16); }
body[data-mode="night"] .auth-input:focus { box-shadow: 0 0 0 3px rgba(255,69,58,.20); }
body[data-mode="night"] .exp-btn { color: #fff; }
body[data-mode="night"] .ub-badge { background: rgba(255,69,58,.16); border-color: var(--line); }
body[data-mode="night"] .ub-badge.admin { background: linear-gradient(135deg, #ff6b5e, #c2381f); color: #141a2e; }
body[data-mode="night"] .ai-hint-inline { background: rgba(255,69,58,.10); }


/* ---- 回击风格多选标签 ---- */
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.style-chip {
  font-family: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .3px;
  padding: 7px 15px; border-radius: 999px; cursor: pointer; user-select: none;
  border: 1.5px solid var(--line-strong); background: var(--bg2); color: var(--sub);
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.style-chip:hover {
  border-color: var(--brand); color: var(--brand); transform: translateY(-1px);
}
.style-chip.on {
  background: var(--brand); border-color: var(--brand); color: #fffdf6;
  box-shadow: var(--sh-hard);
}
.style-chip.on:hover { color: #fffdf6; }
/* 深夜解气版（互斥）选中走朱砂·红温 */
.style-chip.night { border-style: dashed; }
.style-chip.night.on {
  background: var(--red); border-color: var(--red); border-style: solid; color: #fff;
  box-shadow: 4px 4px 0 rgba(194,56,31,.22);
}
body[data-mode="night"] .style-chip { background: transparent; }
body[data-mode="night"] .style-chip.on { background: var(--red); border-color: var(--red); color: #fff; }
