/* ============ 设计变量 ============ */
:root {
  color-scheme: dark;
  --bg: #0a0c12;
  --surface: #12151f;
  --surface-2: #171b27;
  --surface-3: #1d2231;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eceef4;
  --text-2: #a9afc2;
  --text-3: #6f768c;
  /* 界面强调色（按钮、导航） */
  --brand: #8b7bff;
  --brand-2: #4fd8f5;
  --grad: linear-gradient(120deg, #7464ff 0%, #9b7bff 45%, #3fcfee 100%);
  --brand-soft: rgba(139, 123, 255, .14);
  /* 数据色：单一蓝色色阶，长度表示大小 */
  --data: #3987e5;
  --data-track: rgba(57, 135, 229, .16);
  /* 状态色：只和图标、文字一起出现 */
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* 背景光晕：固定在一层上，不随滚动重绘 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(116, 100, 255, .16), transparent 62%),
    radial-gradient(700px 420px at 30% -12%, rgba(63, 207, 238, .08), transparent 60%),
    radial-gradient(800px 600px at 60% 120%, rgba(116, 100, 255, .06), transparent 60%);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: #b3a8ff; }
::selection { background: rgba(139, 123, 255, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .18); }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 动画 ============ */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stripes { to { background-position: 28px 0; } }
/* 进场动画只用 backwards：播完就松开 transform，否则悬停上浮、倾斜等效果会被动画结束帧锁住不动 */
.in { animation: rise .55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
/* 注意：不再跟随系统的“减少动态效果”关掉所有动画。
   Windows 关闭了“动画效果”（远程桌面、省电模式里很常见）时，之前的写法会让整个页面一点动效都没有 */

/* ============ 启动 ============ */
.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--text-2); }
.boot-mark { position: relative; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #f1edff, #8b7bff 40%, #3a2a9e 85%); animation: breathe 1.6s ease-in-out infinite; box-shadow: 0 0 40px rgba(116, 100, 255, .7); }
.boot-mark::after { content: ""; position: absolute; inset: -10px -22px; border-radius: 50%; border: 2px solid rgba(197, 189, 255, .45); transform: rotate(-16deg) scaleY(.32); }

/* ============ 布局 ============ */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 244px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 22px 14px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 21, 31, .92), rgba(10, 12, 18, .92));
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 28px -10px rgba(116, 100, 255, .9); }
.brand-mark svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: var(--text-3); }
.nav-group { font-size: 11px; letter-spacing: 1.6px; color: var(--text-3); padding: 18px 12px 6px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0;
  border-radius: 11px; color: var(--text-2); transition: color .2s, background .2s;
}
.nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .25s var(--ease); }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-item:hover svg { transform: translateX(1px) scale(1.06); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(116, 100, 255, .24), rgba(116, 100, 255, .04)); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); animation: fade .3s; }
.nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--critical); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(208, 59, 59, .2); }
.nav-foot { margin-top: auto; padding: 18px 12px 4px; font-size: 12px; color: var(--text-3); line-height: 1.8; border-top: 1px solid var(--line); }
.main { flex: 1; min-width: 0; padding: 32px 44px 72px; }
.page { max-width: 1320px; margin: 0 auto; animation: fade .3s ease; }

/* ============ 标题 ============ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 4px 0 24px; animation: rise .45s var(--ease) backwards; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: .3px; }
.page-sub { margin: 6px 0 0; color: var(--text-2); }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h3 { margin: 0; font-size: 15px; font-weight: 650; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.lead { font-size: 15.5px; color: var(--text); margin: 0 0 12px; }
.label { font-size: 12px; color: var(--text-3); letter-spacing: .4px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
/* 只用来包住多个元素，不影响布局 */
.contents { display: contents; }
.nav-badge-slot { margin-left: auto; display: inline-flex; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.text-bad { color: #f19a9a; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.num { font-variant-numeric: tabular-nums; }
.stars { color: #f5c451; letter-spacing: 1px; white-space: nowrap; }
pre.transcript { white-space: pre-wrap; margin: 0; font-family: inherit; line-height: 1.9; color: var(--text-2); background: var(--surface-2); padding: 16px 18px; border-radius: 12px; }
ul.list { margin: 4px 0; padding-left: 18px; color: var(--text-2); }
ul.list li { margin: 4px 0; }
ul.list li::marker { color: var(--brand); }

/* ============ 卡片 ============ */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .01)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head .muted { font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 > .card { margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.kv { display: grid; grid-template-columns: 128px 1fr; gap: 10px 18px; margin-top: 12px; }
.kv > div:nth-child(odd) { color: var(--text-3); font-size: 13px; }

/* ============ 按钮 ============ */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), border-color .2s, background .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { border-color: rgba(255, 255, 255, .22); background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 10px 26px -12px rgba(116, 100, 255, .95); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg); }
.btn.primary:hover { box-shadow: 0 14px 32px -12px rgba(116, 100, 255, 1); transform: translateY(-1px); }
.btn.primary:hover::after { animation: sheen .8s ease; }
.btn.ghost { background: transparent; }
a.btn, a.btn:hover { color: var(--text); }
a.btn.primary, a.btn.primary:hover { color: #fff; }
.btn.danger { color: #f19a9a; }
.btn.danger:hover { border-color: rgba(208, 59, 59, .5); background: rgba(208, 59, 59, .1); }
.btn.danger-solid { border: 0; background: var(--critical); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 12px 26px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: default; transform: none !important; box-shadow: none; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(208, 59, 59, .12); color: #f19a9a; }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; margin-bottom: 14px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .form-grid.four { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form-grid .field { margin-bottom: 0; }
.field-label { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.field-hint { font-size: 12px; color: var(--text-3); }
.form-section { margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 650; display: flex; gap: 10px; align-items: baseline; }
.form-section .muted { font-weight: 400; font-size: 12.5px; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .22);
  color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .2); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 4px rgba(139, 123, 255, .16); }
textarea { resize: vertical; line-height: 1.7; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select option { background: var(--surface-2); color: var(--text); }
.inline-select { width: auto; min-width: 200px; padding: 7px 32px 7px 12px; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(.75); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 14px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--text); user-select: none; padding: 6px 0; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .25); transition: all .2s var(--ease); position: relative; flex-shrink: 0; }
.check input:checked + .check-box { background: var(--grad); border-color: transparent; }
.check input:checked + .check-box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(139, 123, 255, .2); }
.rating { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.rating select { width: 130px; padding: 7px 30px 7px 10px; }
details.fold { margin: 12px 0; }
details.fold summary { cursor: pointer; color: var(--text-2); padding: 8px 0; }
details.fold[open] summary { margin-bottom: 10px; }

.switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cfd3e0; transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--brand); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }

/* 拖拽上传 */
.upload-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 14px; }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  min-height: 150px; padding: 20px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .16); background: rgba(139, 123, 255, .04);
  cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); margin-bottom: 14px;
}
.upload-grid .dropzone { margin-bottom: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: rgba(139, 123, 255, .1); }
.dropzone.over { transform: scale(1.015); }
.dropzone.has { border-style: solid; border-color: rgba(139, 123, 255, .5); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 4px; transition: transform .3s var(--ease); }
.dropzone:hover .dz-icon { transform: translateY(-3px); }
.dz-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-text { font-weight: 600; word-break: break-all; }
.dz-sub { font-size: 12px; color: var(--text-3); }

/* ============ 标签 / 状态 ============ */
.tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: 12px; line-height: 20px; white-space: nowrap; background: rgba(139, 123, 255, .14); color: #c5bdff; border: 1px solid rgba(139, 123, 255, .18); }
.pill.gray { background: rgba(255, 255, 255, .05); color: var(--text-2); border-color: var(--line); }
.pill.green { background: rgba(12, 163, 12, .12); color: #7fdc7f; border-color: rgba(12, 163, 12, .25); }
.pill.amber { background: rgba(250, 178, 25, .1); color: #f6cd6b; border-color: rgba(250, 178, 25, .22); }
.pill.red { background: rgba(208, 59, 59, .13); color: #f19a9a; border-color: rgba(208, 59, 59, .28); }
.pill.violet { background: rgba(139, 123, 255, .2); color: #d7d1ff; border-color: rgba(139, 123, 255, .35); }
/* 状态：颜色 + 图标 + 文字一起出现 */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.status i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #0b0b0b; background: var(--text-3); }
.status.good i { background: var(--good); color: #fff; }
.status.warning i { background: var(--warning); }
.status.serious i { background: var(--serious); }
.status.critical i { background: var(--critical); color: #fff; }
.status.info i { background: rgba(139, 123, 255, .35); color: #fff; }

/* ============ 进度条 ============ */
.progress { width: 100%; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.progress-text { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-num { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 650; }
.progress-track { position: relative; height: 8px; border-radius: 8px; background: rgba(139, 123, 255, .12); overflow: hidden; }
.progress-fill {
  position: relative; height: 100%; border-radius: 8px; background: var(--grad); transition: width .35s linear;
  box-shadow: 0 0 18px rgba(116, 100, 255, .55);
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.6s ease-in-out infinite;
}
.progress.compact .progress-top { font-size: 12px; margin-bottom: 6px; }
.progress.compact .progress-track { height: 5px; }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(139, 123, 255, .25); border-top-color: var(--brand); animation: spin .8s linear infinite; flex-shrink: 0; }

.wait-card { position: relative; overflow: hidden; text-align: center; padding: 40px 40px 36px; }
.wait-card::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(116, 100, 255, .16), transparent); pointer-events: none; }
.wait-card h3 { position: relative; font-size: 19px; margin-top: 8px; }
.wait-card p { position: relative; max-width: 520px; margin: 8px auto 26px; }
.wait-card .progress { position: relative; max-width: 560px; margin: 0 auto; text-align: left; }

/* ============ 星球 ============ */
/* 结构：发光光晕 → 后半段轨道 → 土星环 → 球体 → 卫星转到前面时盖在球体上。
   卫星转到背后时 z 轴在球体后面，被挡住，所以看起来是真的在“绕着”转。全部只用 transform/opacity，不卡 */
@keyframes planet-spin { to { transform: rotate(360deg); } }
@keyframes surface-drift { to { background-position: -200% 0, -100% 0; } }
@keyframes planet-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes glow-breathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.12); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes ring-tilt { 0%, 100% { transform: rotateX(74deg) rotateZ(-14deg); } 50% { transform: rotateX(70deg) rotateZ(-8deg); } }

.planet { --s: 132px; position: relative; width: calc(var(--s) * 1.9); height: calc(var(--s) * 1.45); margin: 0 auto; perspective: 900px; flex-shrink: 0; }
.planet-md { --s: 64px; }
.planet-sm { --s: 40px; margin-bottom: 4px; }
.planet-stage { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; animation: float 5s ease-in-out infinite; }
.planet-stage > * { grid-area: 1 / 1; }

.planet-core {
  position: relative; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; transform: translateZ(0);
  background: radial-gradient(circle at 32% 28%, #f1edff 0%, #a99bff 18%, #6f5cf2 46%, #3a2a9e 74%, #170f45 100%);
  box-shadow: inset calc(var(--s) * -.16) calc(var(--s) * -.12) calc(var(--s) * .3) rgba(8, 6, 30, .85),
              inset calc(var(--s) * .05) calc(var(--s) * .05) calc(var(--s) * .12) rgba(255, 255, 255, .35),
              0 0 calc(var(--s) * .55) rgba(116, 100, 255, .55);
  animation: planet-breathe 4s ease-in-out infinite;
}
/* 表面的云带缓慢流动，像在自转 */
.planet-surface {
  position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen; opacity: .55;
  background:
    repeating-linear-gradient(170deg, transparent 0 9%, rgba(79, 216, 245, .35) 11% 13%, transparent 15% 24%),
    repeating-linear-gradient(176deg, transparent 0 14%, rgba(255, 255, 255, .18) 16% 17%, transparent 19% 30%);
  background-size: 200% 100%, 100% 100%;
  animation: surface-drift 14s linear infinite;
}
.planet-glow { width: calc(var(--s) * 1.8); height: calc(var(--s) * 1.8); border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 123, 255, .5), rgba(63, 207, 238, .12) 60%, transparent); filter: blur(calc(var(--s) * .06)); animation: glow-breathe 4s ease-in-out infinite; }

/* 土星环：压扁的椭圆环，前半段盖在球体前面 */
.planet-ring {
  width: calc(var(--s) * 1.75); height: calc(var(--s) * 1.75); border-radius: 50%; transform-style: preserve-3d;
  border: calc(var(--s) * .035) solid rgba(197, 189, 255, .45);
  box-shadow: 0 0 calc(var(--s) * .12) rgba(139, 123, 255, .45), inset 0 0 calc(var(--s) * .1) rgba(79, 216, 245, .3);
  transform: rotateX(74deg) rotateZ(-14deg); animation: ring-tilt 9s ease-in-out infinite;
}

/* 卫星轨道：轨道本身在自己的倾斜平面里不停旋转，带着一段彗星尾光和卫星一起转
   （之前是轨道不动、只让里面的卫星转，部分浏览器的 3D 渲染下卫星不显示，看起来整条轨道是静止的） */
@keyframes orbit-a { from { transform: rotateX(68deg) rotateY(-18deg) rotateZ(0deg); } to { transform: rotateX(68deg) rotateY(-18deg) rotateZ(360deg); } }
@keyframes orbit-b { from { transform: rotateX(76deg) rotateY(22deg) rotateZ(360deg); } to { transform: rotateX(76deg) rotateY(22deg) rotateZ(0deg); } }
.planet-orbit { position: relative; border-radius: 50%; transform-style: preserve-3d; }
.planet-orbit.o1 { width: calc(var(--s) * 1.45); height: calc(var(--s) * 1.45); animation: orbit-a 5s linear infinite; }
.planet-orbit.o2 { width: calc(var(--s) * 1.95); height: calc(var(--s) * 1.95); animation: orbit-b 9s linear infinite; }
/* 轨道线 */
.planet-orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.planet-orbit.o2::before { border-color: rgba(79, 216, 245, .12); border-style: dashed; }
/* 彗星尾光：一段从透明渐亮到卫星位置的弧，跟着轨道一起转 */
.planet-orbit::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: calc(var(--s) * .025);
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(79, 216, 245, .15) 70%, rgba(139, 233, 255, .95) 99%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.planet-orbit.o2::after { background: conic-gradient(from 0deg, transparent 0 1%, rgba(215, 209, 255, .95) 1%, rgba(139, 123, 255, .15) 30%, transparent 42% 100%); }
/* 卫星：固定在轨道顶端，轨道转它就跟着转；转到球体背后时被挡住 */
.planet-orbit .moon {
  position: absolute; left: 50%; top: 0; width: calc(var(--s) * .14); height: calc(var(--s) * .14);
  margin: calc(var(--s) * -.07) 0 0 calc(var(--s) * -.07); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #8be9ff 45%, #2a8fb6);
  box-shadow: 0 0 calc(var(--s) * .18) rgba(79, 216, 245, .95), 0 0 calc(var(--s) * .05) #fff;
  transform: rotateX(-70deg);
}
.planet-orbit.o2 .moon { width: calc(var(--s) * .1); height: calc(var(--s) * .1); margin: calc(var(--s) * -.05) 0 0 calc(var(--s) * -.05); background: radial-gradient(circle at 35% 30%, #fff, #c5bdff 50%, #6f5cf2); box-shadow: 0 0 calc(var(--s) * .16) rgba(139, 123, 255, .95); }

/* 最外圈：平面上缓慢旋转的刻度光环 + 一圈向外扩散的波纹 */
@keyframes halo-pulse { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
.planet-halo { width: calc(var(--s) * 2.15); height: calc(var(--s) * 2.15); border-radius: 50%; border: 1px dashed rgba(197, 189, 255, .18); animation: planet-spin 40s linear infinite; }
.planet-wave { width: calc(var(--s) * 1.3); height: calc(var(--s) * 1.3); border-radius: 50%; border: 1.5px solid rgba(139, 123, 255, .5); animation: halo-pulse 3.2s ease-out infinite; }
.planet-wave.w2 { animation-delay: 1.6s; }
/* 向上飘的光点 */
@keyframes spark-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(calc(var(--s) * -.9)) scale(1); opacity: 0; } }
.spark { position: absolute; bottom: 18%; width: 3px; height: 3px; border-radius: 50%; background: #8be9ff; box-shadow: 0 0 6px #4fd8f5; animation: spark-rise 3.4s ease-out infinite; }
.sp1 { left: 30%; } .sp2 { left: 46%; animation-delay: 1.1s; background: #d7d1ff; box-shadow: 0 0 6px #8b7bff; } .sp3 { left: 63%; animation-delay: 2.2s; } .sp4 { left: 72%; animation-delay: .6s; background: #d7d1ff; box-shadow: 0 0 6px #8b7bff; }
.planet-sm .spark, .planet-sm .planet-halo, .planet-sm .planet-wave.w2 { display: none; }

/* 星星 */
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .9); animation: twinkle 3s ease-in-out infinite; }
.st1 { left: 8%; top: 22%; animation-delay: .2s; }
.st2 { left: 86%; top: 14%; animation-delay: 1.1s; width: 2px; height: 2px; }
.st3 { left: 92%; top: 72%; animation-delay: 2s; }
.st4 { left: 14%; top: 80%; animation-delay: 1.6s; width: 2px; height: 2px; }
.st5 { left: 70%; top: 92%; animation-delay: .7s; width: 2px; height: 2px; }
.planet-sm .star, .planet-md .st4, .planet-md .st5 { display: none; }
.planet-sm .planet-orbit.o2, .planet-sm .planet-ring { display: none; }

/* 进度条前面的小轨道（替代原来的转圈） */
.mini-orbit { position: relative; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 35% 30%, #d7d1ff, #7464ff 70%); box-shadow: 0 0 8px rgba(116, 100, 255, .7); }
.mini-orbit i { position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); animation: planet-spin 1.4s linear infinite; }
.mini-orbit i::before { content: ""; position: absolute; top: -2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #8be9ff; box-shadow: 0 0 6px #4fd8f5; }

.hero-progress.with-planet { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 14px; background: rgba(139, 123, 255, .06); border: 1px solid rgba(139, 123, 255, .15); }
.hero-progress.with-planet .planet { margin: 0; }
.hero-wait { font-weight: 600; margin-bottom: 10px; }
.modal-wait { display: grid; gap: 4px; justify-items: center; padding: 6px 0 4px; }
.modal-wait .progress { width: 100%; }

/* Logo 外的小卫星 */
.brand-mark { position: relative; }
.brand-orbit { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(139, 123, 255, .25); animation: planet-spin 7s linear infinite; }
.brand-orbit i { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #8be9ff; box-shadow: 0 0 8px #4fd8f5; }
.brand-mark svg { position: relative; }

/* 背景星空：三层不同速度缓慢漂移，固定一层，不影响滚动性能 */
@keyframes star-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.starfield { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.stars { position: absolute; left: 0; right: 0; top: 0; height: 200%; background-repeat: repeat; will-change: transform; }
.stars.s1 { background-image: radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .55), transparent), radial-gradient(1px 1px at 140px 90px, rgba(255, 255, 255, .4), transparent), radial-gradient(1px 1px at 260px 200px, rgba(197, 189, 255, .5), transparent), radial-gradient(1px 1px at 90px 260px, rgba(255, 255, 255, .35), transparent); background-size: 320px 320px; animation: star-drift 160s linear infinite; opacity: .55; }
.stars.s2 { background-image: radial-gradient(1.5px 1.5px at 60px 120px, rgba(139, 233, 255, .55), transparent), radial-gradient(1.5px 1.5px at 330px 40px, rgba(255, 255, 255, .45), transparent), radial-gradient(1.5px 1.5px at 210px 330px, rgba(197, 189, 255, .55), transparent); background-size: 480px 480px; animation: star-drift 110s linear infinite; opacity: .5; }
.stars.s3 { background-image: radial-gradient(2px 2px at 150px 160px, rgba(255, 255, 255, .7), transparent), radial-gradient(2px 2px at 520px 420px, rgba(139, 233, 255, .6), transparent); background-size: 700px 700px; animation: star-drift 75s linear infinite, twinkle 6s ease-in-out infinite; opacity: .45; }

/* ============ 骨架 / 空状态 ============ */
.skeleton-wrap { display: grid; gap: 12px; }
.skeleton { position: relative; height: 56px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); animation: shimmer 1.4s ease-in-out infinite; }
.empty { text-align: center; padding: 36px 20px; color: var(--text-2); display: grid; gap: 6px; justify-items: center; }

/* ============ 提示块 ============ */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); line-height: 1.8; }
.callout-icon { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 12px; margin-top: 2px; background: rgba(255, 255, 255, .08); color: var(--text); }
.callout.warn { border-color: rgba(250, 178, 25, .25); background: rgba(250, 178, 25, .06); }
.callout.warn .callout-icon { background: var(--warning); color: #0b0b0b; }
.callout.bad { border-color: rgba(208, 59, 59, .3); background: rgba(208, 59, 59, .07); }
.callout.bad .callout-icon { background: var(--critical); color: #fff; }
.callout.info { border-color: rgba(139, 123, 255, .28); background: rgba(139, 123, 255, .07); }
.callout.info .callout-icon { background: var(--brand); color: #fff; }
.callout.soft { color: var(--text-2); }
.callout-link { display: inline-block; margin-top: 4px; font-weight: 600; }
.callout .hit { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.question { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(139, 123, 255, .1); color: var(--text); }
.error-line { color: #f19a9a; font-size: 12.5px; }

/* ============ 提示条 / 弹窗 ============ */
.toasts { position: fixed; top: 20px; right: 20px; z-index: 50; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 11px 16px; border-radius: 12px; background: rgba(23, 27, 39, .96); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); animation: slide-in .35s var(--ease); pointer-events: auto; }
.toast-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--good); color: #fff; flex-shrink: 0; }
.toast.err { border-color: rgba(208, 59, 59, .4); }
.toast.err .toast-icon { background: var(--critical); }
/* 不用毛玻璃：背景星空一直在动，毛玻璃每一帧都要重算，弹窗里的选择框会很卡 */
.modal-bg { position: fixed; inset: 0; z-index: 40; background: rgba(5, 6, 10, .78); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; overflow-y: auto; animation: fade .2s; }
.modal-bg.leaving { animation: fade .18s reverse forwards; }
.modal { position: relative; width: 600px; max-width: 100%; padding: 26px 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); animation: pop .28s var(--ease); }
.modal.wide { width: 800px; }
.modal h3 { font-size: 18px; margin-bottom: 16px; padding-right: 30px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 14px; transition: background .2s, color .2s; }
.modal-x:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.confirm p { margin: 0 0 6px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 550; color: var(--text-3); background: rgba(255, 255, 255, .02); white-space: nowrap; letter-spacing: .3px; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn + .btn { margin-left: 6px; }
.cell-title { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ============ 视频卡片 ============ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.video-card {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.video-card:hover { transform: translateY(-4px); border-color: rgba(139, 123, 255, .45); box-shadow: 0 22px 40px -22px rgba(116, 100, 255, .6); color: var(--text); }
.video-thumb { position: relative; aspect-ratio: 16 / 10; background: #07080c; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); opacity: .92; }
.video-card:hover .video-thumb img { transform: scale(1.05); opacity: 1; }
.thumb-empty { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(116, 100, 255, .2), rgba(63, 207, 238, .06)); }
.thumb-badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px 3px 4px; border-radius: 999px; background: rgba(10, 12, 18, .78); }
.thumb-badge .status { color: var(--text); }
.thumb-dur { position: absolute; right: 10px; bottom: 10px; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: rgba(10, 12, 18, .78); font-variant-numeric: tabular-nums; }
.video-body { padding: 14px 15px 16px; display: grid; gap: 7px; }
.video-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-summary { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 列表行 ============ */
.row-list { display: grid; gap: 10px; }
.row-card {
  display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, background .25s; animation: rise .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms);
}
.row-card:hover { transform: translateX(3px); border-color: rgba(139, 123, 255, .4); background: var(--surface-3); color: var(--text); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.row-progress { width: 280px; }
.mini-list { display: grid; gap: 8px; margin-top: 18px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); transition: background .2s; }
.mini-row:hover { background: var(--surface-3); color: var(--text); }
.mini-progress { width: 200px; }

/* 参考爆款选择 */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; max-height: 300px; overflow-y: auto; padding: 2px; }
.ref-chip { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.ref-chip:hover { border-color: rgba(255, 255, 255, .2); }
.ref-chip.on { border-color: var(--brand); background: rgba(139, 123, 255, .1); }
.ref-chip img, .ref-noimg { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.ref-text { display: grid; min-width: 0; }
.ref-text b, .ref-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-text span { font-size: 12px; }
.ref-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--grad); color: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.ref-chip.on .ref-check { transform: scale(1); }

/* ============ 视频详情 ============ */
.hero-card { display: flex; gap: 26px; align-items: flex-start; }
.hero-card video { width: 270px; max-height: 420px; border-radius: 14px; background: #000; flex-shrink: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.hero-info { flex: 1; min-width: 0; }
.hero-info .kv { margin-top: 0; }
.hero-progress { margin-top: 22px; }
.points { display: grid; gap: 10px; }
.point { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid rgba(255, 255, 255, .15); }
.point.hi { border-left-color: var(--brand); }
.point-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.timeline { position: relative; display: grid; gap: 4px; margin: 14px 0; }
.tl-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; position: relative; padding: 8px 0; }
.tl-item::before { content: ""; position: absolute; left: 76px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tl-time { text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }
.tl-body { padding-left: 18px; position: relative; }
.tl-body::before { content: ""; position: absolute; left: -4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.frames { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.frames figure { margin: 0; flex-shrink: 0; width: 132px; text-align: center; font-size: 12px; color: var(--text-3); }
.frames img { width: 132px; border-radius: 10px; display: block; margin-bottom: 6px; transition: transform .3s var(--ease); }
.frames img:hover { transform: scale(1.05); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.metric { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.metric span { font-size: 12px; color: var(--text-3); }
.metric b { font-size: 22px; font-weight: 650; }
.metric em { font-style: normal; font-size: 12px; color: var(--text-2); }
.emotion-flow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.emo { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.emo .num { color: var(--text-3); font-size: 12px; }
.line-item { padding: 4px 0; }

/* ============ 脚本详情 ============ */
.check-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.check-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.check-chip i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .1); }
.check-chip.good i { background: var(--good); color: #fff; }
.check-chip.warn i { background: var(--warning); color: #0b0b0b; }
.check-chip.bad i { background: var(--critical); color: #fff; }
.check-chip.info i { background: transparent; }
.hooks { display: grid; gap: 12px; }
.hook-card { padding: 16px 18px; border-radius: 14px; background: linear-gradient(90deg, rgba(139, 123, 255, .1), rgba(139, 123, 255, .02)); border: 1px solid rgba(139, 123, 255, .22); transition: transform .25s var(--ease), border-color .25s; }
.hook-card:hover { transform: translateY(-2px); border-color: rgba(139, 123, 255, .45); }
.hook-card.explore { background: linear-gradient(90deg, rgba(250, 178, 25, .08), rgba(250, 178, 25, .01)); border-color: rgba(250, 178, 25, .22); }
.hook-top { display: flex; align-items: center; gap: 8px; }
.hook-no { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--grad); color: #fff; }
.hook-line { font-size: 18px; font-weight: 650; margin: 12px 0 10px; line-height: 1.55; }
.hook-meta, .beat-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.script-body { display: grid; }
.beat { display: grid; grid-template-columns: 82px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.beat:last-child { border-bottom: 0; }
.beat-time { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.beat-stage { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.beat-line { font-size: 15.5px; font-weight: 550; margin-bottom: 6px; line-height: 1.7; }
.beat.guide { background: linear-gradient(90deg, rgba(139, 123, 255, .08), transparent); border-radius: 12px; padding: 14px 12px; margin: 4px -12px; border-bottom: 0; }
.titles { display: grid; gap: 10px; }
.title-opt { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.title-opt.rec { border-color: rgba(12, 163, 12, .4); }
.title-opt b { margin-right: 8px; }
.edits { display: grid; gap: 12px; }
.edit { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.edit-where { font-size: 12.5px; margin-bottom: 6px; color: var(--text-2); }
.edit-before { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(208, 59, 59, .6); }
.edit-after { font-weight: 600; margin: 4px 0; }

/* ============ 复刻诊断 ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.step { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.step span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; background: var(--brand-soft); color: #c5bdff; flex-shrink: 0; }
.verdict { display: grid; gap: 10px; }
.verdict-text { font-size: 19px; font-weight: 650; line-height: 1.6; }
.issues { display: grid; gap: 12px; }
.issue { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border-left: 3px solid var(--text-3); }
.issue.hi { border-left-color: var(--critical); }
.issue.mid { border-left-color: var(--warning); }
.issue-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.issue-rank { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: rgba(255, 255, 255, .08); }
.issue-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; color: var(--text-2); }
.issue-cmp .label { margin-bottom: 2px; }
.issue-fix { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ============ 学习中心 ============ */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--surface); border: 1px solid var(--line); }
.tile-label { font-size: 12.5px; color: var(--text-2); }
.tile-value { font-size: 28px; font-weight: 650; margin-top: 6px; letter-spacing: .2px; }
.tile-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 170px; align-items: center; gap: 14px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; transition: background .2s; }
.bar-row:hover { background: rgba(255, 255, 255, .03); }
.bar-label { font-size: 13px; color: var(--text-2); }
.bar-track { height: 16px; }
.bar-fill { height: 100%; max-width: 100%; background: var(--data); border-radius: 0 4px 4px 0; transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-value { font-size: 13px; font-variant-numeric: tabular-nums; }
.meter { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.meter-track { flex: 1; height: 6px; border-radius: 4px; background: var(--data-track); overflow: hidden; }
.meter-fill { height: 100%; background: var(--data); border-radius: 0 4px 4px 0; transform-origin: left; animation: grow .8s var(--ease) both; }
.meter-num { font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 42px; }
.quad-sum { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dim + .dim { margin-top: 22px; }
.insights { display: grid; gap: 8px; margin-top: 4px; }
.insight { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); transition: opacity .25s; }
.insight.off { opacity: .45; }
.insight-body { flex: 1; min-width: 0; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 4px; }
.topic { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 6px; transition: transform .25s var(--ease), border-color .25s; }
.topic:hover { transform: translateY(-2px); border-color: rgba(139, 123, 255, .4); }
.topic-title { font-weight: 650; }
.topic-hook { display: flex; gap: 8px; align-items: baseline; }

/* ============ 产品与主播 ============ */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.entity { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.entity:hover { border-color: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.entity-head { display: flex; align-items: center; gap: 10px; }
.entity-flags { display: flex; gap: 14px; flex-wrap: wrap; }
.entity-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.nav-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text); }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: #fff; }
.sentences { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; padding: 4px; margin: 10px 0; }
.sentence { display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, opacity .2s; }
.sentence:hover { border-color: var(--line-2); }
.sentence.on { border-color: var(--brand); background: rgba(139, 123, 255, .12); }
.sentence.used { opacity: .4; }
.sentence-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.sentence-text { flex: 1; }

/* ============ 设置 ============ */
.providers { display: grid; gap: 10px; }
.provider { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.provider-main { flex: 1; min-width: 240px; display: grid; gap: 2px; }
.provider-main .pill { margin-left: 8px; }
.provider-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.role { padding: 14px 0; border-bottom: 1px solid var(--line); }
.role:last-child { border-bottom: 0; padding-bottom: 0; }
.role-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }

/* ============ 小屏 ============ */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .split, .upload-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 12px; }
  .brand { width: 100%; padding-bottom: 10px; }
  .nav-group, .nav-foot { display: none; }
  .nav-item.active::before { display: none; }
  .main { padding: 20px 16px 48px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .form-grid.three { grid-template-columns: 1fr; }
  .hero-card { flex-direction: column; }
  .hero-card video { width: 100%; }
  .row-card { flex-direction: column; align-items: stretch; }
  .row-progress { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 80px 1fr; }
  .bar-value { grid-column: 2; }
}

/* =====================================================================
   动效层（全站）
   ===================================================================== */

/* ---- 背景：缓慢流动的极光 + 偶尔划过的流星 ---- */
@keyframes aurora-move-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18vw, 10vh) scale(1.25); } }
@keyframes aurora-move-2 { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(14vw, -8vh) scale(.9); } }
@keyframes aurora-move-3 { 0%, 100% { transform: translate(0, 0) scale(.9); } 50% { transform: translate(-10vw, -14vh) scale(1.2); } }
.aurora { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; will-change: transform; }
.aurora.a1 { right: -18vw; top: -32vw; background: radial-gradient(closest-side, rgba(116, 100, 255, .2), transparent); animation: aurora-move-1 26s ease-in-out infinite; }
.aurora.a2 { left: -10vw; top: -26vw; background: radial-gradient(closest-side, rgba(63, 207, 238, .11), transparent); animation: aurora-move-2 32s ease-in-out infinite; }
.aurora.a3 { left: 25vw; bottom: -40vw; background: radial-gradient(closest-side, rgba(217, 70, 239, .08), transparent); animation: aurora-move-3 38s ease-in-out infinite; }
@keyframes meteor { 0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; } 4% { opacity: 1; } 12% { transform: translate(-44vw, 30vw) rotate(-35deg); opacity: 0; } 100% { opacity: 0; transform: translate(-44vw, 30vw) rotate(-35deg); } }
.meteor { position: absolute; width: 140px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(139, 233, 255, .4), transparent); box-shadow: 0 0 8px rgba(139, 233, 255, .6); opacity: 0; will-change: transform; }
.meteor.m1 { top: 8%; right: 6%; animation: meteor 11s linear infinite 2s; }
.meteor.m2 { top: 22%; right: 30%; animation: meteor 15s linear infinite 7s; }
.meteor.m3 { top: 2%; right: 52%; animation: meteor 19s linear infinite 12s; }

/* ---- 页面切换：上浮 + 去模糊 ---- */
@keyframes page-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.page { animation: page-in .5s var(--ease) backwards; }

/* ---- 标题：流动的渐变文字 ---- */
@keyframes text-flow { to { background-position: 300% 0; } }
.page-head h1 {
  background: linear-gradient(90deg, #ffffff 0%, #d7d1ff 25%, #8be9ff 50%, #d7d1ff 75%, #ffffff 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-flow 10s linear infinite;
}
.brand-name { background: linear-gradient(90deg, #fff, #c5bdff, #8be9ff, #fff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-flow 8s linear infinite; }

/* ---- 卡片：悬停时上浮 + 发光（纯 CSS，鼠标移动时不重画） ---- */
.card, .video-card, .row-card, .entity, .tile, .topic, .hook-card, .provider { position: relative; }
.tile, .entity, .topic, .provider { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.tile:hover, .entity:hover, .topic:hover { transform: translateY(-3px); border-color: rgba(139, 123, 255, .35); box-shadow: 0 24px 50px -28px rgba(116, 100, 255, .7); }
.provider:hover { border-color: rgba(139, 123, 255, .3); }

/* ---- 等待卡片：旋转的渐变边框 ---- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes angle-spin { to { --angle: 360deg; } }
.wait-card {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--angle), rgba(139, 123, 255, .05), rgba(139, 123, 255, .9), rgba(79, 216, 245, .9), rgba(139, 123, 255, .05) 40%, rgba(139, 123, 255, .05)) border-box;
  animation: angle-spin 4s linear infinite, rise .55s var(--ease) backwards;
}
.wait-card h3 { background: linear-gradient(90deg, #fff, #c5bdff, #8be9ff, #fff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-flow 4s linear infinite; }

/* ---- 按钮：点击水波纹 ---- */
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .45; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); animation: ripple .65s ease-out; }
.ref-chip, .sentence, .nav-item { overflow: hidden; }
/* 主按钮：渐变缓慢流动 */
.btn.primary { background-size: 200% 100%; animation: text-flow 6s linear infinite; }

/* ---- 导航：选中项扫光、图标悬停弹一下 ---- */
@keyframes nav-shine { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(260%); } }
.nav-item.active::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent); animation: nav-shine 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes icon-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-8deg); } 100% { transform: scale(1.06); } }
.nav-item:hover svg { animation: icon-pop .45s var(--ease); }
@keyframes badge-bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.nav-badge { animation: badge-bounce 1.8s ease-in-out infinite; }

/* ---- 状态：处理中的圆点向外扩散 ---- */
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.status i { position: relative; }
.status.info i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(139, 123, 255, .9); animation: ping 1.6s ease-out infinite; }
.status.serious i::after, .status.critical i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid currentColor; color: var(--serious); animation: ping 2.4s ease-out infinite; }
.status.critical i::after { color: var(--critical); }

/* ---- 进度条：最前端一颗发光的“彗星头” ---- */
@keyframes head-pulse { 0%, 100% { transform: translateY(-50%) scale(1); opacity: .9; } 50% { transform: translateY(-50%) scale(1.35); opacity: 1; } }
.progress-track { overflow: visible; }
/* 流光改成移动背景，不再靠外层裁剪，这样“彗星头”可以露出到进度条外面 */
@keyframes shimmer-bg { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.progress-fill::after { background: linear-gradient(90deg, transparent 0 38%, rgba(255, 255, 255, .5) 50%, transparent 62% 100%); background-size: 250% 100%; animation: shimmer-bg 1.6s ease-in-out infinite; }
.progress-fill::before { content: ""; position: absolute; right: -1px; top: 50%; width: 12px; height: 12px; margin-right: -6px; border-radius: 50%; background: radial-gradient(circle, #fff, #8be9ff 45%, transparent 70%); animation: head-pulse 1.2s ease-in-out infinite; z-index: 1; }
.progress.compact .progress-fill::before { width: 8px; height: 8px; margin-right: -4px; }
.progress-track::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px); pointer-events: none; }

/* ---- 数字卡片：数值发光 + 顶部一条流动的光线 ---- */
.tile { overflow: hidden; }
.tile-value { background: linear-gradient(180deg, #fff, #c5bdff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
@keyframes line-flow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.tile > .tile-label::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(139, 233, 255, .8), transparent); animation: line-flow 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .4s); }

/* ---- 列表与卡片的细节动效 ---- */
.video-card .thumb-badge { transition: transform .3s var(--ease); }
.video-card:hover .thumb-badge { transform: translateY(-2px) scale(1.04); }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(139, 233, 255, .18) 50%, transparent 60%); transform: translateY(-100%); pointer-events: none; }
.video-card:hover .video-thumb::after { animation: scan 1.1s ease-in-out; }
.hook-no { animation: badge-bounce 2.6s ease-in-out infinite; }
.hook-card:nth-child(2) .hook-no { animation-delay: .4s; } .hook-card:nth-child(3) .hook-no { animation-delay: .8s; }
.tl-body::before { animation: badge-bounce 2.2s ease-in-out infinite; }
.beat { transition: background .25s, transform .25s var(--ease); border-radius: 10px; }
.beat:hover { background: rgba(255, 255, 255, .02); transform: translateX(4px); }
.issue, .point, .insight, .title-opt, .edit, .metric { transition: transform .25s var(--ease), background .25s; }
.issue:hover, .point:hover, .insight:hover, .title-opt:hover, .edit:hover, .metric:hover { transform: translateX(4px); }
.check-chip { animation: rise .45s var(--ease) backwards; }
.check-chip:nth-child(2) { animation-delay: .08s; } .check-chip:nth-child(3) { animation-delay: .16s; } .check-chip:nth-child(4) { animation-delay: .24s; }
.callout { animation: rise .45s var(--ease) backwards; }
.callout-icon { animation: badge-bounce 2.4s ease-in-out infinite; }
.pill { transition: transform .2s var(--ease), background .2s; }
.pill:hover { transform: translateY(-1px); }
tbody tr { transition: background .2s, transform .2s var(--ease); }
tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.dz-icon { animation: float 3s ease-in-out infinite; }
.avatar { position: relative; }
.avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(139, 123, 255, .5); border-top-color: #8be9ff; animation: planet-spin 4s linear infinite; }

/* ---- 提示条：底部一条倒计时进度 ---- */
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast { position: relative; overflow: hidden; }
.toast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform-origin: left; animation: toast-timer 2.6s linear forwards; }
.toast.err::after { background: var(--critical); animation-duration: 6.5s; }

/* ---- 产品标签（脚本列表、脚本详情） ---- */
.product-badge {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; flex-shrink: 0;
  min-width: 112px; max-width: 170px; padding: 7px 12px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(116, 100, 255, .22), rgba(63, 207, 238, .08)); border: 1px solid rgba(139, 123, 255, .35);
}
.product-badge-name { font-weight: 650; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-badge-cat { font-size: 11.5px; color: #8be9ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-badge-label { font-size: 11px; color: var(--text-3); letter-spacing: 1px; }
.product-badge.none { background: rgba(255, 255, 255, .03); border-color: var(--line); border-style: dashed; }
.product-badge.none .product-badge-name { color: var(--text-3); font-weight: 500; }
.product-badge.lg { flex-direction: row; align-items: center; gap: 10px; max-width: none; padding: 8px 16px; border-radius: 999px; }
.product-badge.lg .product-badge-name { font-size: 15px; }
.product-badge.lg .product-badge-cat { padding: 1px 9px; border-radius: 999px; background: rgba(79, 216, 245, .12); }
.script-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.meta-chip { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; position: relative; overflow: hidden; }
.filter-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.filter-chip.on { color: #fff; border-color: transparent; background: var(--grad); }
.filter-count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; background: rgba(0, 0, 0, .25); }

details.draft summary { cursor: pointer; margin-bottom: 10px; }

/* ---- 脚本页：问题汇总 + 页签 ---- */
.todo-list { display: grid; gap: 8px; }
.todo { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); line-height: 1.7; }
.todo .pill { justify-self: start; white-space: normal; text-align: center; }
.todo-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.seg-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; padding: 5px; margin: 0 0 18px; border-radius: 14px; background: rgba(18, 21, 31, .92); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.seg-tab { padding: 8px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; position: relative; overflow: hidden; }
.seg-tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.seg-tab.on { color: #fff; background: var(--grad); box-shadow: 0 8px 20px -10px rgba(116, 100, 255, .9); }
.check-row { margin-bottom: 14px; }
.bp-table td:nth-child(3), .bp-table td:nth-child(4) { min-width: 220px; }
.beat-time b { color: var(--text-2); font-weight: 600; }
.hook-top .edit-btn { margin-right: 2px; }
@media (max-width: 860px) { .todo { grid-template-columns: 1fr; } }
.beat-line-row { display: flex; align-items: flex-start; gap: 10px; }
.beat-line-row .beat-line { flex: 1; }
.edit-btn { flex-shrink: 0; opacity: .55; transition: opacity .2s; }
.beat:hover .edit-btn, .hook-card:hover .edit-btn, .edit-btn:focus { opacity: 1; }
.edit-before-box { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); color: var(--text-2); line-height: 1.7; }
.reason-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.reason-chips .filter-chip { padding: 4px 11px; font-size: 12.5px; }
.reviews { display: grid; gap: 12px; }
.review { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.score { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-weight: 650; font-variant-numeric: tabular-nums; }
.score em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-3); }
.review-issues { display: grid; gap: 6px; }
.review-issue { display: flex; gap: 10px; align-items: flex-start; }
.ref-primary { position: absolute; left: 8px; top: 8px; padding: 0 7px; border-radius: 999px; font-size: 11px; line-height: 18px; background: var(--grad); color: #fff; }
.draft-text { max-height: 520px; overflow-y: auto; font-size: 14.5px; }

/* ---- 骨架屏：带紫色的流光 ---- */
.skeleton::after { background: linear-gradient(90deg, transparent, rgba(139, 123, 255, .1), rgba(139, 233, 255, .06), transparent); }
