/* ==========================================================================
   CINEMA UI · 全站视觉层（在 styles.css / batch.css / ecommerce.css 之后加载）
   设计语言：深海军蓝 + 星图粒子网络 + 蓝紫渐变 + 玻璃拟态光晕
   只做「叠加与精修」，不改任何布局尺寸，保证原有交互与结构零破坏。
   ========================================================================== */

/* ------------------------------- 设计令牌 ------------------------------- */
:root {
  --bg: #070b1c;
  --bg-soft: #0a0f28;
  --panel: rgba(14, 24, 56, 0.78);
  --panel-2: #0d1634;
  --panel-3: #14214c;

  --line: rgba(130, 165, 255, 0.12);
  --line-strong: rgba(140, 175, 255, 0.26);

  --text: #eef2ff;
  --text-dim: #a8b6dd;
  --muted: #6f80ab;

  --accent: #4d7dff;
  --accent-soft: rgba(77, 125, 255, 0.16);
  --accent-2: #43dcff;
  --cyan: #43dcff;
  --warm: #ffab63;
  --gold: #e8c883;
  --ok: #3ee0a6;
  --danger: #ff6079;

  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow: 0 30px 80px -32px rgba(2, 6, 24, 0.95);
  --glow-accent: 0 0 0 1px rgba(77, 125, 255, 0.26), 0 24px 60px -28px rgba(47, 92, 255, 0.7);

  --ease-out: cubic-bezier(0.22, 0.85, 0.24, 1);
  --ease-soft: cubic-bezier(0.4, 0.1, 0.2, 1);

  --font: "Inter", "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;

  --mx: 50%;
  --my: 16%;
}

/* ------------------------------- 底色与光 ------------------------------- */

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 640px at 72% -12%, rgba(43, 92, 255, 0.30), transparent 62%),
    radial-gradient(880px 540px at 10% 6%, rgba(88, 62, 255, 0.18), transparent 60%),
    radial-gradient(1000px 720px at 82% 112%, rgba(28, 120, 255, 0.18), transparent 66%),
    radial-gradient(700px 480px at 40% 60%, rgba(60, 40, 160, 0.12), transparent 70%),
    linear-gradient(180deg, #0a1030 0%, #070b20 48%, #05081a 100%);
}

/* 极光:缓慢漂移的色彩层 */
body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -2;
  pointer-events: none;
  background:
    conic-gradient(from 210deg at 32% 26%, rgba(47, 92, 255, 0.20), transparent 32%,
      rgba(67, 220, 255, 0.12) 58%, transparent 78%, rgba(96, 70, 255, 0.14) 92%);
  filter: blur(64px) saturate(140%);
  animation: auroraDrift 46s linear infinite;
  opacity: 0.9;
}

/* 精密网格:高科技仪表感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(150, 180, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1100px 760px at 50% 0%, #000 0%, rgba(0, 0, 0, 0.55) 52%, transparent 82%);
  -webkit-mask-image: radial-gradient(1100px 760px at 50% 0%, #000 0%, rgba(0, 0, 0, 0.55) 52%, transparent 82%);
}

/* 星图粒子网络画布（由 theme.js 生成，退化为静态点阵） */
.constellation-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

@keyframes auroraDrift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.06); }
  100% { transform: rotate(0deg) scale(1); }
}

.grain { opacity: 0.16; mix-blend-mode: soft-light; }

/* 电影暗角:画面四角压暗 */
main::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 88% at 50% 42%, transparent 56%, rgba(2, 5, 18, 0.5) 100%);
}

::selection { background: rgba(77, 125, 255, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(110, 190, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(150, 180, 255, 0.16) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(150, 180, 255, 0.18), rgba(150, 180, 255, 0.08));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(110, 150, 255, 0.55), rgba(67, 220, 255, 0.4)); background-clip: padding-box; }

/* ------------------------------- 顶栏 ------------------------------- */

.topbar {
  background: linear-gradient(180deg, rgba(8, 13, 32, 0.94), rgba(6, 10, 26, 0.74));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border-bottom: 1px solid rgba(130, 165, 255, 0.10);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 6, 0.9);
}

/* 顶栏底部光带 */
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(77, 125, 255, 0.65) 26%, rgba(67, 220, 255, 0.55) 62%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

.brand-mark {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(145deg, #5b9bff, #2f5bff 52%, #43dcff);
  box-shadow:
    0 8px 22px -8px rgba(47, 100, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 16px -12px rgba(0, 10, 40, 0.6);
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-40%);
  animation: brandSheen 7.5s var(--ease-soft) infinite;
}
@keyframes brandSheen {
  0%, 62% { transform: translateX(-70%); }
  86%, 100% { transform: translateX(70%); }
}

.brand-text strong {
  letter-spacing: 0.015em;
  background: linear-gradient(180deg, #ffffff, #c8d6f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text span { color: rgba(170, 195, 255, 0.5); letter-spacing: 0.22em; font-size: 9.5px; text-transform: uppercase; }

/* 导航：玻璃胶囊 + 激光下划线 */
.topnav { position: relative; gap: 2px; }

.topnav-item {
  position: relative;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--text-dim);
  transition: color 0.22s var(--ease-soft), background 0.22s var(--ease-soft), box-shadow 0.22s var(--ease-soft);
}
.topnav-item:hover { color: #fff; background: rgba(120, 160, 255, 0.08); }
.topnav-item.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(77, 125, 255, 0.22), rgba(77, 125, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(140, 180, 255, 0.22),
    0 10px 26px -18px rgba(47, 100, 255, 1);
}
.topnav-item.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(77, 125, 255, 0), var(--accent), var(--cyan), rgba(67, 220, 255, 0));
  box-shadow: 0 0 12px rgba(77, 125, 255, 0.9);
}

.tag-new {
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 5px;
  color: #04101e;
  font-weight: 800;
  background: linear-gradient(135deg, #bdf2ff, #4fe0ff 55%, #5b9bff);
  box-shadow: 0 0 14px rgba(67, 220, 255, 0.5);
}

.topnav-item .count {
  background: rgba(150, 180, 255, 0.10);
  border: 1px solid rgba(150, 180, 255, 0.12);
  font-variant-numeric: tabular-nums;
}
.topnav-item.is-active .count { background: rgba(77, 125, 255, 0.3); border-color: rgba(130, 170, 255, 0.4); }
.topnav-item .count.warn:not([hidden]) {
  background: linear-gradient(135deg, #ff8f6b, #ff5f79);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 95, 121, 0.6);
}

.live-dot { box-shadow: 0 0 0 0 rgba(62, 224, 166, 0.7); animation: livePulse 2s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 224, 166, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(62, 224, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 224, 166, 0); }
}

.mode-chip {
  background: rgba(150, 180, 255, 0.05);
  border: 1px solid rgba(150, 180, 255, 0.12);
  backdrop-filter: blur(10px);
}
.mode-chip .dot { box-shadow: 0 0 10px currentColor; }

.credit-pill {
  background: linear-gradient(150deg, rgba(232, 200, 131, 0.16), rgba(255, 171, 99, 0.07));
  border: 1px solid rgba(232, 200, 131, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.credit-pill b { color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.user-chip {
  background: rgba(150, 180, 255, 0.05);
  border: 1px solid rgba(150, 180, 255, 0.12);
  transition: all 0.22s var(--ease-soft);
}
.user-chip:hover { background: rgba(150, 180, 255, 0.1); border-color: rgba(150, 180, 255, 0.24); }
.user-chip .avatar {
  background: linear-gradient(140deg, #5b9bff, #43dcff);
  color: #04101e;
  font-weight: 800;
  box-shadow: 0 4px 14px -6px rgba(47, 100, 255, 0.9);
}

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

.btn {
  border-radius: 12px;
  transition: transform 0.18s var(--ease-out), box-shadow 0.24s var(--ease-soft),
    background 0.24s var(--ease-soft), border-color 0.24s var(--ease-soft), color 0.2s;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4d8dff 0%, #3f63ff 48%, #5b48f0 100%);
  border: 1px solid rgba(170, 200, 255, 0.22);
  box-shadow:
    0 16px 34px -18px rgba(47, 100, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  letter-spacing: 0.01em;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.42) 47%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover:not(:disabled)::after { transform: translateX(120%); }
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 22px 44px -20px rgba(47, 100, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.btn-primary:disabled { opacity: 0.45; box-shadow: none; }

.btn-ghost {
  background: rgba(150, 180, 255, 0.05);
  border: 1px solid rgba(150, 180, 255, 0.14);
  color: var(--text-dim);
  transition: all 0.22s var(--ease-soft);
}
.btn-ghost:hover:not(:disabled) {
  color: #fff;
  background: rgba(150, 180, 255, 0.11);
  border-color: rgba(130, 175, 255, 0.42);
  box-shadow: 0 10px 26px -20px rgba(47, 100, 255, 1);
}

.icon-btn { border-radius: 9px; }
.icon-btn:hover { border-color: rgba(130, 175, 255, 0.44); color: #fff; box-shadow: 0 0 18px -8px rgba(47, 100, 255, 1); }

.link-btn { color: var(--text-dim); text-decoration-color: rgba(67, 220, 255, 0.4); }
.link-btn:hover { color: var(--cyan); text-shadow: 0 0 14px rgba(67, 220, 255, 0.45); }

/* ------------------------------- 输入控件 ------------------------------- */

.fi, .fi.mono, textarea.fi, select.fi,
.key-row input, .modal input, .modal textarea {
  background: rgba(5, 10, 28, 0.72);
  border: 1px solid rgba(150, 180, 255, 0.13);
  border-radius: 11px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 8px 20px -20px #000;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.24s var(--ease-soft), background 0.2s;
}
.fi:hover, .key-row input:hover { border-color: rgba(150, 180, 255, 0.24); }
.fi:focus, .key-row input:focus, .modal textarea:focus {
  border-color: rgba(77, 125, 255, 0.68);
  background: rgba(7, 13, 34, 0.92);
  box-shadow: 0 0 0 3px rgba(77, 125, 255, 0.18), 0 0 26px -14px rgba(67, 220, 255, 0.7);
  outline: none;
}
.fi.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em; }
.fi::placeholder { color: rgba(200, 215, 255, 0.26); }
.fi.is-locked {
  opacity: 0.72;
  background: rgba(150, 180, 255, 0.03);
  border-style: dashed;
  cursor: not-allowed;
}

/* 复选/单选强调色 */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ------------------------------- 页面切换动效 ------------------------------- */

#viewHome, #viewScript, #viewStudio, #viewAssets, #viewTasks, #viewBatch, #viewEc, #viewAcademy, #viewProfile {
  will-change: opacity, transform;
}
.view-enter { animation: viewIn 0.52s var(--ease-out) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px) scale(0.996); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* 顶部级联：标题与操作区先到 */
.view-enter :is(.home-hero, .script-head, .assets-head, .tasks-head, .b-home-head, .ec-head, .academy-head, .profile-head) {
  animation: headIn 0.6s var(--ease-out) both;
}
@keyframes headIn {
  from { opacity: 0; transform: translateY(10px); letter-spacing: 0.02em; }
  to { opacity: 1; transform: none; letter-spacing: normal; }
}

/* ------------------------------- 首页 ------------------------------- */

.home-view { position: relative; }

.home-hero {
  position: relative;
  isolation: isolate;
  border-radius: 26px;
  padding: 42px 44px;
  /* 与下方卡片网格同宽居中：auto 才能对齐 max-width 1240 的网格 */
  margin: 6px auto 34px;
  background:
    radial-gradient(760px 380px at 14% 0%, rgba(47, 92, 255, 0.26), transparent 62%),
    radial-gradient(560px 320px at 94% 8%, rgba(67, 220, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(16, 28, 68, 0.66), rgba(7, 12, 32, 0.4));
  border: 1px solid rgba(140, 175, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 90px -50px rgba(0, 2, 16, 1),
    inset 0 -60px 120px -80px rgba(47, 92, 255, 0.35);
  overflow: hidden;
}

/* 跟随鼠标的柔光 */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 260px at var(--mx) var(--my), rgba(110, 160, 255, 0.2), transparent 70%);
  transition: background 0.3s linear;
}

/* 顶部光带 */
.home-hero::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 125, 255, 0.9), rgba(67, 220, 255, 0.8), transparent);
  box-shadow: 0 0 26px rgba(77, 125, 255, 0.6);
}

/* 眉标胶囊 */
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: #9db9ff;
  text-transform: uppercase;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 170, 255, 0.30);
  background: linear-gradient(180deg, rgba(77, 125, 255, 0.16), rgba(77, 125, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -16px rgba(47, 100, 255, 0.9);
}
.home-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d8dff, #43dcff);
  box-shadow: 0 0 12px rgba(67, 220, 255, 0.9), 0 0 4px rgba(77, 125, 255, 0.9);
}

.home-hero-text h1 {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 16px 0 16px;
  background: linear-gradient(180deg, #ffffff 8%, #e4ebff 46%, #a8bcf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 22px 60px rgba(47, 90, 255, 0.28);
  text-wrap: balance;
}
/* 主标题第二行：蓝色渐变高亮（参考参考图的标志性排版） */
.home-hero-text h1 .hl {
  background: linear-gradient(92deg, #8fb6ff 0%, #4d7dff 46%, #43dcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 48px rgba(47, 110, 255, 0.4);
}
.home-hero-text > p {
  color: #a9b6d9;
  line-height: 1.85;
  max-width: 62ch;
  font-size: 13.5px;
}

.home-hero-meta {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(140, 175, 255, 0.10);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.home-hero-meta b {
  background: linear-gradient(180deg, #fff, #9dc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* 首页主视觉：辉光 + 缓慢浮动 */
.home-hero-art {
  position: relative;
  filter: drop-shadow(0 30px 70px rgba(40, 90, 255, 0.42));
  animation: artFloat 9s ease-in-out infinite;
}
.home-hero-art::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 28px;
  background: radial-gradient(closest-side, rgba(47, 100, 255, 0.32), transparent 72%);
  filter: blur(26px);
  z-index: -1;
}
@keyframes artFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-0.4deg); }
}

.home-section-title {
  position: relative;
  padding-left: 16px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.home-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 16px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, #4d8dff, #43dcff);
  box-shadow: 0 0 14px rgba(77, 125, 255, 0.9);
}

.home-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 34, 76, 0.62), rgba(9, 15, 38, 0.85));
  border: 1px solid rgba(130, 165, 255, 0.13);
  border-radius: 18px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft), background 0.3s;
}
.home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
  background: radial-gradient(520px 220px at 50% 0%, rgba(77, 125, 255, 0.2), transparent 70%);
}
.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 175, 255, 0.4);
  box-shadow:
    0 30px 60px -36px rgba(0, 2, 16, 1),
    0 0 0 1px rgba(77, 125, 255, 0.12) inset,
    0 18px 46px -30px rgba(47, 100, 255, 0.85);
}
.home-card:hover::after { opacity: 1; }
.home-card h3 { letter-spacing: 0.01em; transition: color 0.28s; }
.home-card:hover h3 { color: #fff; }
.home-card-art {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(150, 180, 255, 0.1), 0 14px 30px -22px #000;
  transition: transform 0.4s var(--ease-out);
}
.home-card:hover .home-card-art { transform: scale(1.02); }

/* 卡片内容对齐：正文固定 5 行高度 + 标签行 + 底部「进入」行，
   同一行卡片的下沿与标签位置全部齐平，八张卡排成 4×2 的规整网格 */
.home-card { padding: 20px 20px 18px; }
.home-card h3 { font-size: 15px; margin-bottom: 8px; }
.home-card > p {
  font-size: 12.4px;
  line-height: 1.8;
  color: #9aa9d0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.8em * 5);
}
.home-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.home-card-tags span {
  font-size: 10.4px;
  letter-spacing: 0.02em;
  color: #9fb1dc;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(77, 125, 255, 0.08);
  border: 1px solid rgba(130, 165, 255, 0.14);
  white-space: nowrap;
}
.home-card-go {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.4px;
  letter-spacing: 0.06em;
  color: #8fa2cf;
  transition: color 0.28s var(--ease-soft), gap 0.28s var(--ease-out);
}
.home-card-go svg { transition: transform 0.28s var(--ease-out); }
.home-card:hover .home-card-go { color: #cfe0ff; }
.home-card:hover .home-card-go svg { transform: translateX(3px); }

.home-foot { border-top: 1px solid rgba(140, 175, 255, 0.08); padding-top: 18px; color: var(--muted); }

/* ------------------------------- 通用标题 / 眉标 ------------------------------- */

.script-head h1, .assets-head h1, .tasks-head h1, .b-home-head h1,
.profile-head h1, .ec-head h1, .academy-head h1 {
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 6%, #ccd8f6 60%, #8ea6d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.script-head p, .assets-head p, .tasks-head p, .b-home-head p,
.profile-head p, .ec-head p, .academy-head p {
  color: var(--muted);
  line-height: 1.8;
}

.ec-eyebrow, .academy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(140, 200, 255, 0.85);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ec-eyebrow::before, .academy-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 10px rgba(67, 220, 255, 0.8);
}

.ec-head-meta span, .academy-head-meta span {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.ec-head-meta i, .academy-head-meta i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(62, 224, 166, 0.9);
}

/* ------------------------------- 创作台 ------------------------------- */

.console, .script-panel, .preview-panel .stage-shell {
  background: linear-gradient(180deg, rgba(18, 30, 68, 0.82), rgba(8, 13, 32, 0.9));
  border: 1px solid rgba(130, 165, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 34px 80px -50px rgba(0, 2, 16, 1);
  backdrop-filter: blur(14px);
}

.mode-tabs {
  background: rgba(150, 180, 255, 0.04);
  border: 1px solid rgba(130, 165, 255, 0.10);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.mode-tab {
  border-radius: 11px;
  transition: all 0.26s var(--ease-soft);
  border: 1px solid transparent;
}
.mode-tab:hover { background: rgba(150, 180, 255, 0.06); }
.mode-tab.is-active {
  background: linear-gradient(160deg, rgba(77, 125, 255, 0.28), rgba(67, 220, 255, 0.10));
  border-color: rgba(130, 175, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px -22px rgba(47, 100, 255, 1);
}
.mode-tab.is-active b { color: #fff; }
.mode-tab.is-active small { color: rgba(190, 210, 255, 0.75); }

.model-card {
  border: 1px solid rgba(130, 165, 255, 0.11);
  background: linear-gradient(180deg, rgba(20, 34, 76, 0.6), rgba(9, 15, 38, 0.8));
  border-radius: 13px;
  transition: all 0.26s var(--ease-soft);
}
.model-card:hover { border-color: rgba(150, 180, 255, 0.24); transform: translateY(-1px); }
.model-card.active, .model-card.is-active {
  border-color: rgba(120, 165, 255, 0.6);
  background: linear-gradient(160deg, rgba(77, 125, 255, 0.22), rgba(9, 15, 38, 0.86));
  box-shadow: 0 0 0 1px rgba(77, 125, 255, 0.24) inset, 0 16px 34px -26px rgba(47, 100, 255, 1);
}

/* 舞台：放映机质感 */
.stage {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(47, 92, 255, 0.12), transparent 62%),
    #040718;
  box-shadow: inset 0 0 60px rgba(0, 4, 20, 0.9), inset 0 0 0 1px rgba(150, 180, 255, 0.07);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(200, 220, 255, 0.028) 0 1px, transparent 1px 3px);
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.rec-dot {
  background: #ff4d63;
  box-shadow: 0 0 12px rgba(255, 77, 99, 0.9);
  animation: recBlink 2.4s steps(1, end) infinite;
}
@keyframes recBlink { 0%, 62% { opacity: 1; } 63%, 100% { opacity: 0.25; } }

/* ------------------------------- 卡片通用精修 ------------------------------- */

.script-card, .script-step, .ac-card, .p-card, .asset-card, .task-row,
.b-home-card, .ec-card, .as-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 32, 74, 0.66), rgba(9, 15, 38, 0.84));
  border: 1px solid rgba(130, 165, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px -46px rgba(0, 2, 16, 1);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-soft),
    box-shadow 0.32s var(--ease-soft);
}
.script-card:hover, .ac-card:hover, .p-card:hover, .asset-card:hover,
.b-home-card:hover, .ec-card:hover {
  border-color: rgba(130, 175, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 70px -46px rgba(0, 2, 16, 1),
    0 16px 40px -32px rgba(47, 100, 255, 0.85);
}
.home-card, .script-card, .ac-card, .p-card, .asset-card, .b-home-card, .ec-card { border-radius: 18px; }

.asset-card:hover, .b-home-card:hover { transform: translateY(-3px); }

/* 资产缩略图：黑边 + 内发光 */
.asset-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #040718;
}
.asset-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(150, 180, 255, 0.09), inset 0 -40px 60px -50px rgba(0, 4, 20, 1);
}
.asset-dur {
  font-family: var(--mono);
  background: rgba(4, 8, 22, 0.72);
  border: 1px solid rgba(150, 180, 255, 0.14);
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}

/* 任务行：状态光条 */
.task-row { border-radius: 14px; overflow: hidden; }
.task-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.55;
}
.task-row:hover::before { opacity: 1; }

/* 统计数字 */
.task-stats .stat b, .stat b {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff, #a6c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.task-stats .stat small { color: var(--muted); letter-spacing: 0.04em; }

/* 筛选 / 分段控件 */
.task-filter, .ac-tab {
  border-radius: 999px;
  border: 1px solid rgba(130, 165, 255, 0.12);
  background: rgba(150, 180, 255, 0.035);
  color: var(--text-dim);
  transition: all 0.24s var(--ease-soft);
}
.task-filter:hover, .ac-tab:hover { border-color: rgba(150, 180, 255, 0.26); color: #fff; }
.task-filter.is-active, .ac-tab.is-active {
  color: #fff;
  background: linear-gradient(160deg, rgba(77, 125, 255, 0.28), rgba(67, 220, 255, 0.10));
  border-color: rgba(130, 175, 255, 0.46);
  box-shadow: 0 12px 26px -22px rgba(47, 100, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ------------------------------- 弹窗 ------------------------------- */

.modal-mask { background: rgba(3, 6, 20, 0.72); backdrop-filter: blur(10px) saturate(120%); }
.modal-card {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(77, 125, 255, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(18, 30, 70, 0.97), rgba(7, 12, 30, 0.99));
  border: 1px solid rgba(140, 175, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 60px 120px -50px rgba(0, 2, 16, 1),
    0 0 0 1px rgba(77, 125, 255, 0.07);
  animation: modalIn 0.34s var(--ease-out) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal-card > header {
  border-bottom: 1px solid rgba(140, 175, 255, 0.09);
  background: linear-gradient(180deg, rgba(150, 180, 255, 0.04), transparent);
}
.modal-card > header h3 { letter-spacing: 0.01em; }

.admin-only-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  margin-left: 8px;
  border-radius: 6px;
  vertical-align: middle;
  color: #1a1206;
  background: linear-gradient(135deg, #e8c883, #ffab63);
  box-shadow: 0 0 16px rgba(232, 200, 131, 0.35);
}

/* 只读提示 / 同步状态 */
.settings-lock {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  margin-bottom: 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 171, 99, 0.28);
  background: linear-gradient(160deg, rgba(255, 171, 99, 0.10), rgba(255, 171, 99, 0.03));
  color: #ffd2ab;
}
.settings-lock svg { flex: none; margin-top: 1px; color: var(--warm); }
.settings-lock b { display: block; font-size: 12.5px; margin-bottom: 3px; color: #ffe3c6; letter-spacing: 0.02em; }
.settings-lock span { font-size: 12px; line-height: 1.7; color: rgba(255, 216, 180, 0.78); }

.settings-sync {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 11px;
  font-size: 12px;
  color: #b9c9ee;
  border: 1px solid rgba(77, 125, 255, 0.28);
  background: linear-gradient(160deg, rgba(77, 125, 255, 0.12), rgba(67, 220, 255, 0.05));
}
.settings-sync b { color: #fff; font-weight: 600; }
.sync-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(62, 224, 166, 0.9);
  flex: none;
  animation: livePulse 2.4s infinite;
}

.modal-warn, .adv-note { color: var(--muted); }
.modal-warn code, .adv-note code {
  background: rgba(150, 180, 255, 0.08);
  border: 1px solid rgba(150, 180, 255, 0.12);
  border-radius: 5px;
  padding: 1px 5px;
  color: #c9d8f6;
}

/* ------------------------------- 个人中心 ------------------------------- */

.balance-card, .p-card .balance-card {
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(232, 200, 131, 0.16), transparent 62%),
    linear-gradient(160deg, rgba(34, 30, 20, 0.9), rgba(14, 14, 18, 0.95));
  border: 1px solid rgba(232, 200, 131, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px -50px rgba(0, 2, 16, 1);
}
.balance-left strong, .profile-view .balance-card strong {
  background: linear-gradient(180deg, #fff5da, #e8c883);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.p-role {
  background: rgba(77, 125, 255, 0.16);
  border: 1px solid rgba(130, 175, 255, 0.34);
  color: #c4d6ff;
}

/* ------------------------------- 学堂 / 电商 ------------------------------- */

.ac-tabs, .ec-tabs, .eo-tabs {
  background: rgba(150, 180, 255, 0.03);
  border: 1px solid rgba(130, 165, 255, 0.10);
  border-radius: 14px;
  padding: 5px;
}
.ac-tab { border: 1px solid transparent; }
.ac-tab.is-active b { color: #fff; }

.academy-head, .ec-head {
  border-bottom: 1px solid rgba(140, 175, 255, 0.09);
  padding-bottom: 20px;
}

.ec-live, .ec-head-side .ec-live {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(150, 180, 255, 0.12);
  background: rgba(150, 180, 255, 0.05);
  border-radius: 12px;
}

/* 表格 / 面板统一玻璃感 */
.ec-panel, .as-card, .b-panel, .task-panel, .sheet, .table-wrap {
  backdrop-filter: blur(10px);
}

/* ------------------------------- Toast ------------------------------- */

.toast, .toasts .toast {
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(150, 180, 255, 0.14);
  box-shadow: 0 22px 50px -26px rgba(0, 2, 16, 1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

/* ------------------------------- 登录门页 ------------------------------- */

.auth-bg {
  background:
    radial-gradient(900px 600px at 50% 8%, rgba(47, 92, 255, 0.28), transparent 62%),
    radial-gradient(760px 520px at 82% 88%, rgba(67, 220, 255, 0.15), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(88, 62, 255, 0.16), transparent 62%),
    #060a1e;
}
.auth-card {
  background: linear-gradient(180deg, rgba(18, 30, 68, 0.95), rgba(7, 12, 30, 0.98));
  border: 1px solid rgba(140, 175, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 60px 120px -50px rgba(0, 2, 16, 1),
    0 0 0 1px rgba(77, 125, 255, 0.09);
  animation: modalIn 0.5s var(--ease-out) both;
}

/* ------------------------------- 响应式与可访问性 ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1180px) {
  .home-hero { padding: 32px 28px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .home-hero::after { left: 4%; right: 4%; }
  .topnav-item.is-active::after { display: none; }
}

@media (max-width: 640px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-card > p { min-height: 0; display: block; -webkit-line-clamp: unset; overflow: visible; }
}

/* ==========================================================================
   模型目录 / 多通道设置（2026-11 接入星晚 API + DeepSeek）
   ========================================================================== */

/* 生成通道选择 */
.gen-channels {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 2px 0 16px;
}
.gen-channels .gc-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.gc-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(150, 180, 255, 0.038);
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.gc-item:hover { border-color: var(--line-strong); }
.gc-item:has(input:checked) {
  border-color: rgba(77, 125, 255, 0.75);
  background: linear-gradient(135deg, rgba(77, 125, 255, 0.2), rgba(67, 220, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(77, 125, 255, 0.24), 0 10px 30px -20px rgba(47, 100, 255, 1);
}
.gc-item input { accent-color: var(--accent); }
.gc-item b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.gc-item small { font-size: 10.5px; color: var(--muted); }

/* 设置分区 tab */
.settings-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(150, 180, 255, 0.03);
}
.stab {
  flex: 1; appearance: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 8px 6px; border-radius: 9px; font-size: 12px; color: var(--muted);
  background: transparent; transition: 0.16s var(--ease-out);
}
.stab:hover { color: var(--text-dim); }
.stab.is-active {
  color: var(--text); background: rgba(77, 125, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(77, 125, 255, 0.4);
}
.stab-pane[hidden] { display: none; }
.stab-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.stab-actions .key-status { margin: 0; }

/* 星晚模型清单 */
.model-catalog {
  margin-top: 16px; padding: 13px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(150, 180, 255, 0.03);
}
.mc-group { margin-bottom: 11px; }
.mc-group:last-of-type { margin-bottom: 0; }
.mc-group b { font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.03em; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.mc-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim); background: rgba(150, 180, 255, 0.04);
  white-space: nowrap;
}
.mc-chip.off { opacity: 0.4; text-decoration: line-through; }
.mc-tip { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }

/* 工作台模型卡片：规格行 */
.model-card .mc-spec {
  display: block; margin-top: 6px; font-size: 10px; color: var(--muted);
  font-family: var(--mono); letter-spacing: -0.01em;
}

/* 画幅数量较多时自动换行 */
.ratio-grid.many { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); }

/* 后台模型行分组标题 */
.pr-group {
  margin: 14px 0 6px; font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
}
.pr-group:first-child { margin-top: 0; }

/* ==========================================================================
   高科技舞台装饰层（首页 Hero：环形舞台 + 放射光线 + HUD 旋转环 + 漂浮粒子）
   ========================================================================== */

.hero-deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-deco svg { display: block; width: 100%; height: 100%; }

@keyframes hdPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.hd-ring-pulse { animation: hdPulse 5.5s ease-in-out infinite; }
.hd-ring-pulse.d2 { animation-delay: 1.8s; }

@keyframes hdSpin { to { transform: rotate(360deg); } }
.hd-spin {
  transform-box: view-box;
  transform-origin: 1090px 110px;
  animation: hdSpin 40s linear infinite;
}
.hd-spin2 {
  transform-box: view-box;
  transform-origin: 1150px 300px;
  animation: hdSpin 28s linear infinite reverse;
}

@keyframes hdFloat {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-12px); opacity: 0.9; }
}
.hd-dot { animation: hdFloat 7s ease-in-out infinite; }
.hd-dot.d1 { animation-delay: 1.2s; animation-duration: 8s; }
.hd-dot.d2 { animation-delay: 2.6s; animation-duration: 9s; }
.hd-dot.d3 { animation-delay: 3.8s; animation-duration: 7.5s; }

/* 登录页同心环装饰 */
.auth-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 118%,
    rgba(100, 170, 255, 0.13) 0 1.5px, transparent 1.5px 90px);
  mask-image: radial-gradient(900px 600px at 50% 80%, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(900px 600px at 50% 80%, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 85%);
}

/* --- 精细版舞台装饰：流动虚线环 + 星芒闪烁 --- */
@keyframes hdDashFlow {
  to { stroke-dashoffset: -240; }
}
.hd-dash {
  animation: hdDashFlow 12s linear infinite;
}
.hd-dash.rev { animation-direction: reverse; animation-duration: 9s; }

@keyframes hdTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
.hd-twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: hdTwinkle 3.6s ease-in-out infinite;
}
.hd-twinkle.d1 { animation-delay: 0.9s; }
.hd-twinkle.d2 { animation-delay: 1.7s; }
.hd-twinkle.d3 { animation-delay: 2.5s; }

/* ==========================================================================
   创作台 · 文本生成（结果面板 / 加载态）
   ========================================================================== */

.text-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(130, 165, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 34, 76, 0.5), rgba(9, 15, 38, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.txr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.txr-head h3 {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; letter-spacing: 0.02em; color: #cfe0ff;
}
.txr-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.txr-actions .chip-mini { cursor: pointer; text-decoration: none; }
.txr-body {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(6, 12, 30, 0.65);
  border: 1px solid rgba(130, 165, 255, 0.10);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 13px;
  color: #dfe7ff;
  max-height: 460px;
  overflow: auto;
}
.txr-body.txr-loading {
  color: #8fb0e8;
  animation: txPulse 1.6s ease-in-out infinite;
}
@keyframes txPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 文本生成结果查看弹窗 */
.tx-modal-card { width: min(760px, 94vw); max-height: 86vh; display: flex; flex-direction: column; }
.tx-modal-body { display: flex; flex-direction: column; gap: 10px; overflow: hidden; flex: 1; min-height: 0; }
.tx-modal-meta { margin: 0; font-size: 12px; color: #9fb4dd; letter-spacing: 0.02em; }
.tx-modal-pre {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(233, 240, 255, 0.96);
  color: #1a2233;
  font-size: 14.5px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  flex: 1;
  min-height: 0;
  box-shadow: inset 0 0 0 1px rgba(130, 165, 255, 0.25);
}
.tx-modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tx-modal-foot .btn { cursor: pointer; }
.tx-modal-foot a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.tx-modal-gap { flex: 1; }

.txr-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em;
}
.txr-foot .chip-mini { cursor: pointer; }

/* 文本生成配置区微调：segment 可换行 */
#txKindSeg, #txLenSeg { flex-wrap: wrap; }
#txModel { width: 100%; }

/* ------------------------------- 数据保留 ------------------------------- */
.rt-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(77, 125, 255, 0.07);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.rt-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.rt-switch b { color: var(--accent-2); font-weight: 600; }
#rtNext { color: var(--text-dim); font-size: 13px; padding-top: 9px; }
#rtReport { color: var(--muted); font-size: 12px; line-height: 1.7; white-space: normal; }
.key-status.ok { color: var(--ok); }
.key-status.bad { color: var(--danger); }

/* -------------------------- 模型目录：全量展示 -------------------------- */
.model-sum { font-size: 11px; color: var(--muted); padding: 2px 6px 9px; letter-spacing: 0.2px; }
.model-sum b { color: var(--text); font-weight: 600; }
.model-sum b.ok { color: var(--ok); }
.model-sum b.off { color: var(--warm); }
.model-card.is-offline { opacity: 0.55; position: relative; }
.model-card.is-offline:hover { border-color: var(--line); cursor: not-allowed; }
.model-card.is-offline::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(135deg, rgba(255, 171, 99, 0.05) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.mc-off { display: inline-block; margin-top: 5px; font-size: 10px; color: var(--warm); letter-spacing: 0.3px; }
/* 主管理员的「重新检测」：模型面板右上角小按钮，不抢卡片视线 */
.model-sum .model-recheck {
  margin-left: 8px; padding: 2px 9px; font-size: 10px; letter-spacing: 0.3px;
  color: var(--text); background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.model-sum .model-recheck:hover { border-color: var(--acc); color: var(--acc); background: rgba(120, 180, 255, 0.08); }
.model-sum .model-recheck:disabled { opacity: 0.55; cursor: progress; }

/* --------------------- 核心功能卡片：HUD 线性图标升级 --------------------- */
.home-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.home-sec-sub {
  margin-top: 9px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #8fa2cf;
}
.home-sec-line {
  flex: 1;
  align-self: center;
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, rgba(120, 180, 255, 0.35), rgba(120, 180, 255, 0.06) 62%, transparent);
}
.home-sec-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2.5px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: rgba(24, 46, 98, 0.9);
  border: 1px solid rgba(140, 215, 255, 0.85);
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.7);
}

/* 卡片流光扫过 */
.home-card::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(170, 205, 255, 0.1) 45%, rgba(120, 220, 255, 0.16) 55%, transparent);
  transform: skewX(-16deg) translateX(-160%);
  transition: transform 0.75s var(--ease-out);
  z-index: 1;
}
.home-card:hover::before { transform: skewX(-16deg) translateX(420%); }

/* 图标舞台：辉光 + 细网格 + 地平光线 */
.home-card-art {
  position: relative;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(130px 74px at 50% 44%, rgba(77, 140, 255, 0.2), transparent 76%),
    linear-gradient(180deg, rgba(26, 42, 92, 0.5), rgba(9, 15, 38, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(150, 180, 255, 0.1),
    inset 0 -34px 44px -34px rgba(67, 220, 255, 0.16);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-soft);
}
.home-card:hover .home-card-art {
  transform: scale(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(150, 190, 255, 0.24),
    inset 0 -34px 44px -30px rgba(67, 220, 255, 0.3),
    0 14px 34px -24px rgba(47, 100, 255, 0.8);
}
.home-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 185, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 185, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(110px 66px at 50% 48%, #000 25%, transparent 98%);
  mask-image: radial-gradient(110px 66px at 50% 48%, #000 25%, transparent 98%);
}
.home-card-art::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 205, 255, 0.55), transparent);
  opacity: 0.75;
  transition: opacity 0.3s, left 0.4s var(--ease-out), right 0.4s var(--ease-out);
}
.home-card:hover .home-card-art::after { opacity: 1; left: 10%; right: 10%; }

/* 线性图标：轨道环旋转 + 图标悬浮 + 星点闪烁 */
.hc-orbit,
.hc-orbit2,
.hc-icon {
  transform-box: view-box;
  transform-origin: 60px 40px;
}
.hc-orbit { animation: hcSpin 30s linear infinite; }
.hc-orbit2 { animation: hcSpinRev 46s linear infinite; }
.hc-icon {
  animation: hcBob 7s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(110, 180, 255, 0.35));
  transition: filter 0.35s var(--ease-soft);
}
.home-card:hover .hc-icon { filter: drop-shadow(0 0 9px rgba(130, 215, 255, 0.75)); }
.hc-dot { animation: hcTwinkle 3.4s ease-in-out infinite; }

@keyframes hcSpin { to { transform: rotate(1turn); } }
@keyframes hcSpinRev { to { transform: rotate(-1turn); } }
@keyframes hcBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
@keyframes hcTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-orbit, .hc-orbit2, .hc-icon, .hc-dot { animation: none; }
}
