/* 老林说 AIPPT · v2 扩展样式：版式分组卡片 / 页面编辑弹窗 / 整模板套用 */

/* ---------- 管理端：版式列表按类型分组卡片（缩略图 + hover 大图） ---------- */
.tpl-grid { padding-right: 4px; }
.tpl-type-group { margin: 10px 0 14px; }
.tpl-type-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--accent, #1a56db); }
.tpl-type-head .cnt { font-weight: 400; color: var(--muted, #8898a8); font-size: 12px; }
.tpl-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.tpl-card { width: 152px; border: 1px solid var(--line, #e3e8ef); border-radius: 6px; background: #fff; overflow: hidden; position: relative; }
.tpl-card .tc-thumb { display: block; width: 100%; height: 84px; object-fit: cover; background: #f6f8fa; border-bottom: 1px solid var(--line, #e3e8ef); }
.tpl-card .tc-thumb-ph { display: flex; align-items: center; justify-content: center; height: 84px; color: var(--muted, #8898a8); font-size: 11px; background: #f6f8fa; border-bottom: 1px solid var(--line, #e3e8ef); }
.tpl-card .tc-meta { padding: 5px 7px; }
.tpl-card .tc-name { font-size: 11px; color: var(--text, #222); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-card .tc-sub { font-size: 10.5px; color: var(--muted, #8898a8); display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.tpl-card .tc-status { color: #1a7f4e; }
.tpl-card .tc-status.archived { color: #c0392b; }
.tpl-card .tc-actions { display: none; position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.95); border-radius: 4px; padding: 2px; gap: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.tpl-card:hover .tc-actions { display: flex; }
/* hover 大图浮层 */
.tpl-big { display: none; position: fixed; z-index: 300; width: 470px; max-width: 60vw; background: #fff; border: 1px solid var(--line, #e3e8ef); border-radius: 8px; box-shadow: 0 14px 36px rgba(15,23,42,.22); padding: 6px; pointer-events: none; }
.tpl-big img { width: 100%; display: block; border-radius: 4px; }
.tpl-big .tbp-cap { font-size: 12px; padding: 4px 2px 0; color: var(--text, #222); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 预览页：多版式/多图标计数徽标 + 并列编辑行 ---------- */
.slide-card { overflow: visible; }
.slide-chips { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.chip { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: #eaf1ff; color: #1a56db; white-space: nowrap; }
.slide-lib-row { align-items: flex-start; }
.slide-lib-row label { padding-top: 6px; }
.slide-lib-row .edit-title, .slide-lib-row .edit-body { flex: 1 1 180px; min-width: 140px; }
/* 下拉完整显示：面板提高层级并允许溢出卡片 */
.libpick-panel { z-index: 950; }

/* ---------- 已上传模板历史列表 ---------- */
#tpl-uploads-table { margin-top: 6px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions .mini-btn.danger { color: #c0392b; border-color: #e6b0aa; }

/* ---------- 页面编辑弹窗（添加页面 / 编辑本页共用） ---------- */
.modal-box.modal-wide { width: 680px; max-width: 94vw; }
.modal-box.modal-wide .modal-body { max-height: 70vh; overflow-y: auto; }
.pm-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.pm-row { display: flex; align-items: center; gap: 6px; }
.pm-row .libpick { flex: 1 1 auto; max-width: none; }
.pm-row .pm-thumb { width: 64px; height: 36px; object-fit: cover; border: 1px solid var(--line, #e3e8ef); border-radius: 4px; background: #f6f8fa; flex: none; }
.pm-row .mini-btn { flex: none; }
.pm-add { margin: 2px 0 10px; }

/* ---- 页面编辑弹窗 v2：左右分栏 + 右侧拖拽预览 ---- */
.pm-modal .modal-box { width: min(1060px, 94vw); }
.pm-modal .modal-body { max-height: 78vh; overflow: hidden; }
.pm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pm-left { overflow-y: auto; max-height: 66vh; padding-right: 4px; }
.pm-sec { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--line, #e3e8ef); border-radius: 10px; background: #fbfcfe; }
.pm-sec-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.pm-step { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #2f6fed; color: #fff; font-size: 11px; align-items: center; justify-content: center; flex: none; }
.pm-hint { font-size: 12px; color: #667085; background: #f4f8ff; border-color: #d6e3ff; }
.pm-right { display: flex; flex-direction: column; }
.pm-canvas-wrap { position: relative; flex: 1; }
.pm-canvas { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #fff center/100% 100% no-repeat; border: 1px solid var(--line, #e3e8ef); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(16,24,40,.08); }
.pm-canvas .pm-layer { position: absolute; transform: translate(-50%, -50%); border: 1.5px dashed #2f6fed; border-radius: 6px; background: rgba(47,111,237,.08); padding: 2px 6px; font-size: 11px; color: #1d4ed8; cursor: grab; user-select: none; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.pm-canvas .pm-layer.kind-icon { border-color: #e8930c; background: rgba(232,147,12,.1); color: #b45309; }
.pm-canvas .pm-layer.dragging { cursor: grabbing; box-shadow: 0 2px 8px rgba(16,24,40,.25); z-index: 5; }
.pm-canvas .pm-layer .pm-thumb { display: none; }
.pm-canvas { touch-action: none; }

/* ===== AI生成PPT 整页重排：上区场景+故事线并排 → 生成条 → 预览（左字段/右画布） → 历史垫底，整页自然滚动 ===== */
.studio-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.studio-row2 .panel { margin-bottom: 14px; }
@media (max-width: 900px) { .studio-row2 { grid-template-columns: 1fr; } }

/* 预览卡片：左侧字段区 / 右侧画布 各占一半窗口宽度 */
.slide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.slide-card .slide-canvas { width: 100%; margin: 0; }
@media (max-width: 760px) {
  .slide-grid { grid-template-columns: 1fr; }
}

/* 预览页卡片内嵌画布：与编辑弹窗右侧画布同一套排版（顺序：标题→正文→版式→图标→预览） */

/* 字段各占一行：标题/正文/版式/图标 独立成行 */
.slide-card .slide-lib-row { display: block; }
.slide-card .slide-lib-row > label { display: block; width: auto; padding: 8px 0 2px; }
.slide-card .slide-lib-row > .edit-title, .slide-card .slide-lib-row > .edit-body { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 10px; flex: none; min-width: 0; }
.slide-card .slide-lib-row > .libpick { display: flex; max-width: none; margin: 4px 0 10px; }

/* 画布文字层：字体标准=中文微软雅黑/英文Arial；内容页标题24pt加粗深蓝#051C2C；
   封面标题60pt加粗深蓝#002D6B居中、封面副标题24pt；正文14pt深灰
   （按16:9画布宽960pt等比换算：24pt=2.5cqw、60pt=6.25cqw、14pt≈1.5cqw，与导出口径一致） */
.pm-canvas, .slide-canvas { container-type: size; }
/* 文字层 z-index 6：三层模型（底板 < 版式/图标 chip < 文字最上），与导出一致 */
.cv-text { position: absolute; left: 5%; width: fit-content; max-width: 90%; z-index: 6; font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; overflow: hidden; pointer-events: none; }
.cv-title { top: 5%; font-size: 2.5cqw; line-height: 1.25; font-weight: 700; color: #051C2C; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv-body { top: 17%; max-height: 76%; font-size: 1.5cqw; line-height: 1.45; color: #333; white-space: pre-wrap; }
/* 封面/封底（cv-center）：标题 60pt、副标题 24pt —— 与导出 _style_title/_style_subtitle 同口径 */
.cv-title.cv-center { font-size: 6.25cqw; color: #002D6B; }
/* 2026-10-25 封面/封底标题长度降档（与导出 _style_title/_stamp_text_fallback 54/44/34pt 同口径）：
   ≤12 字 5.625cqw(54pt)；≤26 字 4.583cqw(44pt)；更长 3.542cqw(34pt) */
.cv-title.cv-center.t-54 { font-size: 5.625cqw; }
.cv-title.cv-center.t-44 { font-size: 4.583cqw; }
.cv-title.cv-center.t-34 { font-size: 3.542cqw; }
.cv-body.cv-center { font-size: 2.5cqw; }

.slide-card .slide-canvas { position: relative; display: block; max-width: 100%; aspect-ratio: 16 / 9; background: #fff center/100% 100% no-repeat; border: 1px solid var(--line, #e3e8ef); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 6px rgba(16,24,40,.08); touch-action: none; }
.slide-canvas .pm-layer { position: absolute; transform: translate(-50%, -50%); z-index: 4; border: 1.5px dashed #2f6fed; border-radius: 5px; background: rgba(47,111,237,.08); padding: 1px 5px; font-size: 10px; color: #1d4ed8; cursor: grab; user-select: none; white-space: nowrap; max-width: 72%; overflow: hidden; text-overflow: ellipsis; }
.slide-canvas .pm-layer.kind-icon { border-color: #e8930c; background: rgba(232,147,12,.1); color: #b45309; }
.slide-canvas .pm-layer.dragging { cursor: grabbing; box-shadow: 0 2px 8px rgba(16,24,40,.25); z-index: 5; }

/* 图层 chip：真实缩略图预览（非编号）+ 名称角标 + 缩放手柄（预览卡片与弹窗画布共用） */
.slide-canvas .pm-layer, .pm-canvas .pm-layer { max-width: none; overflow: visible; }
.slide-canvas .pm-layer img, .pm-canvas .pm-layer img { display: block; width: 100%; border-radius: 4px; border: 1px solid rgba(47,111,237,.45); background: #fff; pointer-events: none; }
.slide-canvas .pm-layer.kind-icon img, .pm-canvas .pm-layer.kind-icon img { border-color: rgba(232,147,12,.55); }
.slide-canvas .pm-layer .pm-lb, .pm-canvas .pm-layer .pm-lb { position: absolute; left: 0; bottom: -15px; font-size: 10px; color: #1d4ed8; white-space: nowrap; }
.slide-canvas .pm-layer.kind-icon .pm-lb, .pm-canvas .pm-layer.kind-icon .pm-lb { color: #b45309; }
.pm-layer.pm-noimg { padding: 2px 6px; font-size: 10px; }
.pm-resize { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: #2f6fed; border: 2px solid #fff; cursor: nwse-resize; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pm-layer.kind-icon .pm-resize { background: #e8930c; }
/* 画布文字层可拖动 */
.cv-text { pointer-events: auto; cursor: grab; }
.cv-text.dragging { cursor: grabbing; user-select: none; }

/* 新增版式/图标行（行内下拉 + 缩略图 + 减号删除） */
.extra-list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 6px; }
.extra-row { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.extra-row .libpick { flex: 1 1 auto; min-width: 0; margin: 0; }
.extra-row select { flex: 1 1 auto; min-width: 0; }
.extra-thumb { width: 64px; height: 36px; object-fit: cover; border: 1px solid var(--line, #e3e8ef); border-radius: 4px; background: #f6f8fa; flex: none; }
.extra-add { margin: 0 0 10px; }
.pm-hoverbig { position: fixed; z-index: 9999; pointer-events: none; background: #fff; border: 1px solid #cfd8e3; border-radius: 8px; padding: 6px; box-shadow: 0 8px 24px rgba(16,24,40,.25); }
.pm-hoverbig img { display: block; width: 320px; height: 180px; object-fit: contain; background: #f6f8fa; }
@media (max-width: 900px) { .pm-grid { grid-template-columns: 1fr; } .pm-left { max-height: none; } }
#pm-title, #pm-body { width: 100%; box-sizing: border-box; }

/* ---------- 整模板套用栏 ---------- */
#whole-tpl-panel { border-left: 3px solid #7c3aed; }
#whole-tpl-select { flex: 1 1 auto; }

/* 封面/封底画布文字：默认水平居中（与导出 PPTX 的封面文字框对齐） */
.cv-text.cv-center { width: 80%; text-align: center; }

/* ===== v4 流程箭头框架：一体化咬合箭头带 · 前序常亮 · 逐步扫光点亮 ===== */
.flow-stepper-wrap { margin-bottom: 14px; }
.flow-stepper { display: flex; align-items: stretch; height: 52px; }
.fs-step { position: relative; flex: 1 1 0; min-width: 0; margin-left: -16px; padding: 0 30px 0 36px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #e4e9f0; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); color: #8a94a6; cursor: pointer; user-select: none; white-space: nowrap; transition: color .25s ease, filter .25s ease; }
.fs-step:first-child { margin-left: 0; padding-left: 26px; }
.fs-step .fs-num { position: relative; z-index: 2; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.8); color: #667085; font-size: 12px; font-weight: 700; flex: none; transition: all .25s ease; }
.fs-step .fs-label { position: relative; z-index: 2; font-size: 13.5px; font-weight: 700; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; }
/* 点亮填充层：从左向右缓慢沉稳扫过 */
.fs-step .fs-fill { position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, #2f6fed 0%, #5b5bd6 55%, #6d5ef0 100%); transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.25,.46,.45,.94); }
.fs-step:nth-child(3) .fs-fill { transition-delay: .15s; }
.fs-step:nth-child(4) .fs-fill { transition-delay: .3s; }
.fs-step.done, .fs-step.active { color: #fff; }
.fs-step.done .fs-fill, .fs-step.active .fs-fill { transform: scaleX(1); }
.fs-step.done .fs-num, .fs-step.active .fs-num { background: rgba(255,255,255,.28); color: #fff; }
/* 当前步骤：轻微沉稳的呼吸光晕 */
.fs-step.active { filter: drop-shadow(0 4px 12px rgba(47,111,237,.22)); animation: fsGlow 4s ease-in-out infinite; z-index: 3; }
@keyframes fsGlow { 0%, 100% { filter: drop-shadow(0 4px 12px rgba(47,111,237,.2)); } 50% { filter: drop-shadow(0 6px 18px rgba(109,94,240,.42)); } }
@media (max-width: 760px) { .flow-stepper { height: 44px; } .fs-step .fs-label { font-size: 12px; } .fs-step { padding: 0 22px 0 28px; } }

/* ===== v3 场景摊开选择：按钮分布 + hover 简介 ===== */
#scene-panel { position: relative; z-index: 5; overflow: visible; }
.scene-panel-hint { font-size: 11.5px; font-weight: 400; color: #98a2b3; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.scene-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border: 1.5px solid #e3e8ef; border-radius: 10px; background: #fff; cursor: pointer; transition: all .2s ease; font-family: inherit; }
.scene-btn .scene-name { font-size: 13.5px; font-weight: 700; color: #344054; }
.scene-btn .scene-mid { font-size: 10.5px; color: #98a2b3; letter-spacing: .5px; }
.scene-btn:hover { border-color: #2f6fed; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(47,111,237,.15); }
.scene-btn.sel { border-color: #2f6fed; background: linear-gradient(135deg, #eaf1ff, #f3efff); box-shadow: inset 0 0 0 1px #2f6fed; }
.scene-btn.sel .scene-name { color: #1d4ed8; }
.scene-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); width: 190px; padding: 8px 10px; border-radius: 8px; background: #1f2b3e; color: #e8eefb; font-size: 11.5px; font-weight: 400; line-height: 1.55; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transition: all .18s ease; z-index: 60; box-shadow: 0 8px 22px rgba(15,23,42,.28); }
.scene-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1f2b3e; }
.scene-btn:hover .scene-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 640px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } }


/* ===== 回补：PPT 打分（实验功能）+ 切换 API 样式（2026-10-22 合并自 v1.0.6 备份） ===== */
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #B3261E;
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.25);
  border-radius: 999px;
  vertical-align: 2px;
  letter-spacing: 0.02em;
}
.main-nav a.active .nav-badge { color: #fff; background: #B3261E; border-color: #B3261E; }

.api-list { display: flex; flex-direction: column; gap: 12px; max-height: 440px; overflow-y: auto; }
.api-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s var(--ease); }
.api-item:hover { border-color: var(--accent-2); background: var(--bg-soft); box-shadow: 0 2px 10px rgba(5,45,73,.05); transform: translateY(-1px); }
.api-item.active { border-color: var(--accent); background: rgba(26,86,219,.08); box-shadow: 0 2px 10px rgba(5,45,73,.05); }
.api-item .api-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.api-item .api-name { font-weight: 700; color: var(--text); }
.api-item .api-region { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; white-space: nowrap; }
.api-item .api-model { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.api-item .api-rate { font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.api-item .api-key-state { font-size: 11px; color: var(--muted); white-space: nowrap; }
.api-item .api-check { font-size: 13px; color: var(--accent); white-space: nowrap; }
.add-label { display: block; font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px; min-width: 74px; }
.add-lib-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.add-lib-row .add-label { margin-bottom: 0; }
.add-select { flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; font-size: 13px; color: var(--text); }
.contact-services { margin-top: 14px; }
.contact-services .cs-title { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.contact-services ul { margin: 0; padding-left: 18px; }
.contact-services li { font-size: 13px; line-height: 1.9; color: var(--text); }
.contact-note { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.7; white-space: pre-wrap; }
.auth-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

.score-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 6px 0 20px;
  padding: 22px 24px;
  background: linear-gradient(120deg, #041E36, #0B3A5C 55%, #0E4B70);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(4, 30, 54, 0.22);
}
.score-hero h2 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.score-hero .nav-badge { margin-left: 10px; vertical-align: 4px; color: #FFD9A0; background: rgba(255, 217, 160, 0.12); border-color: rgba(255, 217, 160, 0.4); }
.score-sub { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.7; color: #D8E4F0; }
.score-sub b { color: #FFE3B0; }
.score-dim-strip { display: flex; flex-wrap: wrap; gap: 6px; max-width: 340px; justify-content: flex-end; }
.dim-pill {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #EAF2FB;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: all 0.25s ease;
}
.dim-pill.on { color: #06263F; background: #FFE3B0; border-color: #FFE3B0; transform: translateY(-1px); }

.score-work { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-bottom: 16px; }
.score-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(13, 34, 78, 0.06);
}
.score-panel .panel-head { margin-bottom: 12px; }
.score-panel .panel-head label { margin-bottom: 0; }

.upload-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  border: 2px dashed rgba(13, 34, 78, 0.25);
  border-radius: 12px;
  background: linear-gradient(160deg, #F7FAFE, #EEF3FB);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}
.upload-drop:hover, .upload-drop.drag { border-color: #1A56DB; background: linear-gradient(160deg, #F0F6FF, #E7F0FE); transform: translateY(-1px); }
.upload-drop-inner { padding: 12px 18px; }
.upload-icon { font-size: 30px; color: #1A56DB; margin-bottom: 6px; }
.upload-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #0F2A43; }
.upload-title .link { color: #1A56DB; text-decoration: underline; }
.upload-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #F2F6FC;
  border: 1px solid rgba(13, 34, 78, 0.12);
  border-radius: 10px;
  font-size: 13px;
  color: #0F2A43;
}
.file-chip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-size { color: var(--muted); flex-shrink: 0; }
.chip-x { margin-left: auto; border: none; background: rgba(13, 34, 78, 0.08); color: #0F2A43; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 20px; font-size: 14px; flex-shrink: 0; }
.chip-x:hover { background: rgba(179, 38, 30, 0.12); color: #B3261E; }

.bench-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bench-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 12px;
  text-align: left;
  background: #F7FAFE;
  border: 1.5px solid rgba(13, 34, 78, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.bench-card:hover { border-color: rgba(25, 82, 214, 0.45); transform: translateY(-1px); }
.bench-card.active { border-color: #1A56DB; background: linear-gradient(160deg, #EFF5FF, #E4EEFD); box-shadow: 0 4px 12px rgba(25, 82, 214, 0.14); }
.bench-icon { font-size: 20px; color: #1A56DB; line-height: 1.3; }
.bench-card b { display: block; font-size: 14px; color: #0F2A43; margin-bottom: 3px; }
.bench-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.score-actions { margin-top: 14px; }

/* 打分动画 */
.score-loading {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(13, 34, 78, 0.06);
}
.load-dash { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.load-svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.load-track { fill: none; stroke: #EDF1F7; stroke-width: 14; }
.load-arc { fill: none; stroke: url(#gauge-grad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 527.8; stroke-dashoffset: 527.8; transition: stroke-dashoffset 0.4s ease; }
.load-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.load-center b { font-size: 40px; color: #1A56DB; line-height: 1.1; }
.load-center span { font-size: 12px; color: var(--muted); }
.load-steps { display: flex; flex-direction: column; gap: 10px; }
.load-step { position: relative; padding: 8px 12px 8px 34px; font-size: 13px; color: var(--muted); border-radius: 8px; background: #F7FAFE; transition: all 0.3s ease; }
.load-step::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid rgba(13, 34, 78, 0.2); background: #fff; }
.load-step.doing { color: #0F2A43; background: #EFF5FF; font-weight: 600; }
.load-step.doing::before { border-color: #1A56DB; background: #1A56DB; box-shadow: 0 0 0 4px rgba(25, 82, 214, 0.14); }
.load-step.done { color: #0E7A5C; }
.load-step.done::before { border-color: #0EA47A; background: #0EA47A; }

/* 结果区 */
.score-result { margin-top: 4px; }
.result-top { display: grid; grid-template-columns: 300px 1fr; gap: 18px; margin-bottom: 16px; }
.result-gauge { position: relative; width: 280px; height: 280px; margin: 0 auto; }
.gauge-svg { width: 280px; height: 280px; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: #EDF1F7; stroke-width: 16; }
.gauge-arc { fill: none; stroke: url(#gauge-grad); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 628.3; stroke-dashoffset: 628.3; transition: stroke-dashoffset 1.2s ease; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-label { font-size: 13px; color: var(--muted); }
.gauge-num { font-size: 58px; font-weight: 800; color: #0F2A43; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gauge-grade { margin-top: 4px; padding: 3px 12px; font-size: 13px; font-weight: 700; color: #fff; border-radius: 999px; }
.result-vs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 22px;
  background: linear-gradient(150deg, #F7FAFE, #EEF3FB);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.vs-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.vs-me, .vs-them { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #0F2A43; }
.vs-me b, .vs-them b { font-size: 26px; font-variant-numeric: tabular-nums; }
.vs-them b { color: var(--muted); }
.vs-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.vs-dot.mine { background: linear-gradient(135deg, #2D6CDF, #0EA47A); }
.vs-dot.bench { background: #B9C6D4; }
.vs-bars { display: flex; align-items: center; gap: 10px; }
.vs-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.vs-bar { flex: 1; height: 12px; background: rgba(185, 198, 212, 0.35); border-radius: 999px; overflow: hidden; }
.vs-bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.2s cubic-bezier(.22,.9,.36,1); }
.vs-bar.mine i { background: linear-gradient(90deg, #2D6CDF, #0EA47A); }
.vs-bar.bench i { background: #B9C6D4; }
.vs-gap { min-width: 52px; text-align: center; font-size: 14px; font-weight: 700; color: #1A56DB; font-variant-numeric: tabular-nums; }
.vs-tip { font-size: 13px; color: #0F2A43; line-height: 1.6; }
.signal-line { margin: 0; font-size: 12px; color: var(--muted); }

.result-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-bottom: 16px; }
.result-bench-tag { font-size: 12px; color: var(--muted); }
.dim-row { margin-bottom: 12px; }
.dim-row-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dim-row-head b { font-size: 14px; color: #0F2A43; }
.dim-row-head .dim-desc { font-size: 11px; color: var(--muted); flex: 1; }
.dim-row-head .dim-score { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dim-row-head .dim-score.win { color: #0E7A5C; }
.dim-row-head .dim-score.lose { color: #B3261E; }
.dim-row-head .dim-score.tie { color: #0F2A43; }
.dim-bars { display: flex; flex-direction: column; gap: 3px; }
.dim-line { display: flex; align-items: center; gap: 8px; }
.dim-tag { width: 44px; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.dim-track { flex: 1; height: 8px; background: rgba(185, 198, 212, 0.3); border-radius: 999px; overflow: hidden; }
.dim-track i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.22,.9,.36,1); }
.dim-track.mine i { background: linear-gradient(90deg, #2D6CDF, #0EA47A); }
.dim-track.bench i { background: #C7D2DE; }
.dim-val { width: 30px; font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.radar-wrap { display: flex; justify-content: center; }
#radar-svg { width: 100%; max-width: 330px; height: auto; }
.radar-grid { fill: none; stroke: #E2E9F2; stroke-width: 1; }
.radar-axes { fill: none; stroke: #D6E0EC; stroke-width: 1; }
.radar-poly-mine { fill: rgba(45, 108, 223, 0.2); stroke: #2D6CDF; stroke-width: 2; }
.radar-poly-bench { fill: rgba(185, 198, 212, 0.22); stroke: #B9C6D4; stroke-width: 2; stroke-dasharray: 5 4; }
.radar-label { font-size: 11px; fill: #41536B; font-weight: 600; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lg { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.lg.mine { background: linear-gradient(90deg, #2D6CDF, #0EA47A); }
.lg.bench { background: #B9C6D4; }

.advice-list { margin: 0; padding: 0; list-style: none; }
.advice-list li { position: relative; padding: 8px 8px 8px 30px; font-size: 13px; line-height: 1.7; color: #33475E; border-bottom: 1px dashed rgba(13, 34, 78, 0.08); }
.advice-list li:last-child { border-bottom: none; }
.advice-list li::before { content: "›"; position: absolute; left: 12px; top: 8px; color: #1A56DB; font-weight: 700; }

@media (max-width: 980px) {
  .score-hero { flex-direction: column; align-items: flex-start; }
  .score-dim-strip { max-width: none; justify-content: flex-start; }
  .score-work, .result-grid { grid-template-columns: 1fr; }
  .result-top { grid-template-columns: 1fr; }
  .result-gauge { width: 240px; height: 240px; }
  .gauge-svg { width: 240px; height: 240px; }
  .bench-grid { grid-template-columns: 1fr; }
}

/* ===== 个人中心（2026-10-25 账户系统第2步） ===== */
#user-name { cursor: pointer; }
.points-stats { display: flex; gap: 14px; margin-bottom: 14px; }
.points-stat { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(5,45,73,.04); }
.ps-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ps-num { font-size: 22px; font-weight: 700; color: var(--accent); }
.ps-num.vip { color: #b7791f; }
.ps-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ps-bar { height: 6px; background: var(--bg-soft); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.ps-bar i.full { background: linear-gradient(90deg, var(--danger), #f59e0b); }
.btn-xhs { display: inline-flex; margin-top: 10px; text-decoration: none; }
.points-stat .vip { color: #b7791f; }
