/* char-detail-template.css —— 角色详情页样式（2026-10-14 改版，v2）
   风格：浅色「词条卡」版式。模块卡 + 阶段步进器 + 材料卡 + 数值可视化。
   依赖：design-system/tokens.css（--sp-* / --r-* / --ink* / --brand* / --line*） */

.cdv-page { max-width: 1120px; margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-16); }

/* ---------- 顶部资料区 ---------- */
.cdv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: stretch; }
.cdv-hero-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.cdv-hero-media { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }

.cdv-name-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cdv-name { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: .5px; line-height: 1.1; }
.cdv-badges { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cdv-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700; border: 1px solid var(--line);
  background: var(--surface-raised); color: var(--ink-body);
}
.cdv-badge--rar { border-color: #f0c46a; background: #fff8e8; color: #a4700f; }
.cdv-badge--el { border-color: var(--elc, #9aa3c7); color: var(--elc, #5b6883); }
.cdv-badge--el::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--elc, #9aa3c7); }
.cdv-badge--role { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

.cdv-subline { font-size: 13px; color: var(--ink-muted); line-height: 1.8; }

.cdv-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line-subtle);
  border: 1px solid var(--line-subtle); border-radius: var(--r-lg); overflow: hidden;
}
.cdv-fact { background: var(--surface-raised); padding: 10px var(--sp-4); display: flex; gap: var(--sp-3); align-items: baseline; }
.cdv-fact-k { font-size: 12px; color: var(--ink-faint); flex: 0 0 64px; }
.cdv-fact-v { font-size: 13px; color: var(--ink-body); font-weight: 600; word-break: break-word; }

/* 立绘：高度跟着左侧资料表走（图片绝对定位，不撑高行），悬停轻微放大，点击开大图 */
.cdv-splash {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-sunken);
  flex: 1 1 auto; min-height: 240px; cursor: zoom-in;
}
.cdv-splash img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  transition: transform .35s ease;
}
.cdv-splash:hover img { transform: scale(1.05); }
.cdv-zoom-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(16,22,38,.62); color: #fff; font-size: 12px;
  padding: 4px 12px; border-radius: var(--r-full);
  opacity: 0; transition: opacity .25s ease; pointer-events: none; white-space: nowrap;
}
.cdv-splash:hover .cdv-zoom-hint { opacity: 1; }
.cdv-splash-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 13px; }
.cdv-skin-strip {
  display: flex; flex-wrap: nowrap; gap: var(--sp-2);
  padding: var(--sp-1) 0 6px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.cdv-skin-strip::-webkit-scrollbar { height: 6px; }
.cdv-skin-strip::-webkit-scrollbar-track { background: transparent; }
.cdv-skin-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-full); }
.cdv-skin-strip::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
.cdv-skin-wrap.expanded .cdv-skin-strip { flex-wrap: wrap; overflow: visible; }
.cdv-skin-toggle {
  display: inline-block; margin-top: 2px; padding: 0;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 700; color: var(--brand-ink);
}
.cdv-skin-toggle:hover { color: var(--brand-deep); text-decoration: underline; }
.cdv-skin {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-md);
  border: 2px solid transparent; overflow: hidden; background: var(--surface-sunken);
  padding: 0; cursor: pointer;
}
.cdv-skin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdv-skin:hover { border-color: var(--line-strong); }
.cdv-skin.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- 模块卡 ---------- */
.cdv-card {
  margin-top: var(--sp-8);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface-raised); box-shadow: var(--sh-1); overflow: hidden;
}
.cdv-card-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-subtle);
  background: linear-gradient(180deg, var(--brand-softer), transparent);
}
.cdv-card-head h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .4px; }
.cdv-card-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 16px; border-radius: 2px;
  background: var(--brand); margin-right: var(--sp-2); vertical-align: -2px;
}
.cdv-card-head .cdv-head-right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.cdv-card-body { padding: var(--sp-5); }
.cdv-hint { font-size: 12px; color: var(--ink-faint); }
/* 被动技能固定 1 级：技能卡标题行的小标签 */
.cdv-hint--fixed { padding: 1px 7px; border: 1px dashed var(--line); border-radius: var(--r-full); color: var(--ink-muted); }

/* 步进器 */
.cdv-stepper { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--ink-muted); }
.cdv-stepper .cdv-st-btn {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-raised); color: var(--ink-body); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.cdv-stepper .cdv-st-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.cdv-stepper .cdv-st-val {
  min-width: 84px; text-align: center; font-weight: 700; color: var(--ink);
  padding: 2px 8px; border-radius: var(--r-full); background: var(--brand-soft);
}

/* ---------- 数值与养成 ---------- */
.cdv-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.cdv-stat {
  border: 1px solid var(--line-subtle); border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4); background: var(--surface-raised);
}
.cdv-stat-k { font-size: 12px; color: var(--ink-faint); }
.cdv-stat-v { font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.cdv-stat-d { font-size: 11px; color: var(--ink-faint); }

.cdv-slider-row { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-3); }
.cdv-slider-row input[type=range] { flex: 1; accent-color: var(--brand); }
.cdv-lv {
  min-width: 62px; text-align: center; font-weight: 800; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: var(--r-full); padding: 3px 0; font-size: 13px;
}
.cdv-chart { border: 1px solid var(--line-subtle); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4) var(--sp-2); }
.cdv-chart svg { width: 100%; height: 168px; display: block; overflow: visible; }
.cdv-legend { display: flex; gap: var(--sp-4); font-size: 12px; color: var(--ink-muted); padding: 0 2px var(--sp-1); }
.cdv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

.cdv-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.cdv-panel-item {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  border: 1px solid var(--line-subtle); border-radius: var(--r-md);
  padding: 10px 14px; font-size: 13px; background: var(--surface-raised);
  min-height: 42px; align-items: center;
}
.cdv-panel-item b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.cdv-panel-item span { color: var(--ink-muted); line-height: 1.5; }
.cdv-subhead {
  margin: var(--sp-6) 0 var(--sp-3); font-size: 12px; font-weight: 700;
  color: var(--ink-muted); letter-spacing: .3px;
}

/* 突破节点轴 */
.cdv-axis { display: flex; align-items: center; gap: 0; margin: var(--sp-4) 0 var(--sp-5); }
.cdv-axis-node { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; cursor: pointer; }
.cdv-axis-node::before {
  content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 2px;
  background: var(--line); z-index: 0;
}
.cdv-axis-node:first-child::before { left: 50%; }
.cdv-axis-node:last-child::before { right: 50%; }
.cdv-axis-dot {
  position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--ink-faint);
}
.cdv-axis-node.on .cdv-axis-dot { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.cdv-axis-lab { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.cdv-axis-node.on .cdv-axis-lab { color: var(--brand-ink); font-weight: 700; }

/* 材料卡 */
.cdv-mats { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cdv-mat {
  display: flex; align-items: center; gap: var(--sp-3);
  min-width: 168px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-raised); position: relative;
}
.cdv-mat::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  pointer-events: none; border-left: 3px solid var(--qc, var(--line));
}
.cdv-mat img { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface-sunken); object-fit: contain; }
.cdv-mat-ph { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface-sunken); }
.cdv-mat-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cdv-mat-name { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdv-mat-meta { font-size: 11px; color: var(--ink-faint); }
.cdv-mat-count { font-size: 15px; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.cdv-mat--gold .cdv-mat-count { color: #a4700f; }
.cdv-stage-sum { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: 12px; color: var(--ink-muted); margin-bottom: var(--sp-3); }
.cdv-stage-sum b { color: var(--ink); }

/* ---------- 技能 ---------- */
.cdv-skill { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px dashed var(--line-subtle); }
.cdv-skill:first-child { border-top: 0; padding-top: 0; }
/* 技能图标底：深色底衬，白色技能图标才凸显（图标本身多为浅色） */
.cdv-skill-icon {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  border: 1px solid #2b3550;
  background: radial-gradient(circle at 50% 38%, #3a4869, #1b2238 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 1px 3px rgba(24, 34, 56, .18);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #e7ecf7; flex-shrink: 0;
}
.cdv-skill-icon img { width: 100%; height: 100%; border-radius: var(--r-lg); object-fit: contain; }
.cdv-skill-icon .cdv-key {
  border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .10);
  color: #eaf0fb; box-shadow: none;
}
.cdv-skill-head { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.cdv-skill-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.cdv-chip {
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-full);
  border: 1px solid var(--line); color: var(--ink-muted); background: var(--surface-sunken);
}
.cdv-chip--a { border-color: #b9cffb; background: #eef4ff; color: #2a5bd7; }
.cdv-chip--e { border-color: #bfe3c9; background: #eefaf1; color: #2a8a54; }
.cdv-chip--q { border-color: #f6cdb0; background: #fff3e9; color: #b3601c; }
.cdv-chip--ult { border-color: #e0c2f7; background: #f8f0ff; color: #7a3fb8; }
.cdv-skill-desc { font-size: 13px; line-height: 1.9; color: var(--ink-body); margin-top: var(--sp-2); }
.cdv-skill-main { min-width: 0; }
.cdv-skill-desc .cdv-txt, .cdv-awaken-d .cdv-txt, .cdv-city-desc .cdv-txt { margin: 0 0 4px; }
.cdv-skill-desc .cdv-txt:last-child, .cdv-awaken-d .cdv-txt:last-child, .cdv-city-desc .cdv-txt:last-child { margin-bottom: 0; }
.cdv-txt b { color: var(--ink); font-weight: 700; }

.cdv-seg-list { margin-top: var(--sp-3); border: 1px solid var(--line-subtle); border-radius: var(--r-lg); overflow: hidden; }
.cdv-seg-list--sub { margin-top: var(--sp-2); opacity: .92; }
.cdv-seg-list--sub .cdv-bars i { background: linear-gradient(180deg, #9aa3c7, #7d88a8); }
.cdv-seg {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 132px;
  gap: var(--sp-3); align-items: center; padding: 8px var(--sp-3);
  border-top: 1px solid var(--line-subtle); background: var(--surface-raised);
}
.cdv-seg:first-child { border-top: 0; }
.cdv-seg-lab { font-size: 12px; color: var(--ink-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cdv-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.cdv-bars i {
  flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  opacity: .9; min-height: 3px;
}
.cdv-bars i.lv-on { background: linear-gradient(180deg, #f0a132, #d9821a); }
.cdv-seg-val { font-size: 12px; color: var(--ink-body); text-align: right; font-variant-numeric: tabular-nums; }
.cdv-seg-val b { color: var(--brand-ink); font-size: 13px; }

.cdv-toggle {
  margin-top: var(--sp-2); font-size: 12px; color: var(--brand-ink);
  background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700;
}
.cdv-toggle::after { content: " ▾"; }
.cdv-cost[hidden] { display: none; }
.cdv-cost { margin-top: var(--sp-2); }
.cdv-cost table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cdv-cost th { text-align: left; color: var(--ink-faint); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line-subtle); }
.cdv-cost th { padding: 8px 10px; }
.cdv-cost td { padding: 9px 10px; border-bottom: 1px solid var(--line-subtle); color: var(--ink-body); vertical-align: middle; }
.cdv-cost tr:last-child td { border-bottom: 0; }
.cdv-cost-icons { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.cdv-cost-icons span { display: inline-flex; align-items: center; gap: 3px; }
.cdv-cost-icons img { width: 22px; height: 22px; border-radius: 4px; background: var(--surface-sunken); }
.cdv-cost-icons em { font-style: normal; font-size: 11px; color: var(--ink-muted); }

/* ---------- 觉醒 ---------- */
.cdv-awaken-axis { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.cdv-awaken-dot {
  flex: 1; height: 6px; border-radius: 3px; background: var(--line);
}
.cdv-awaken-dot.on { background: linear-gradient(90deg, var(--brand), #a06bf0); }
.cdv-awaken-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.cdv-awaken-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sp-3);
  padding: var(--sp-3); border: 1px solid var(--line-subtle); border-radius: var(--r-lg);
  background: var(--surface-raised);
}
.cdv-awaken-no {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(140deg, var(--brand), #a06bf0);
  overflow: hidden;
}
.cdv-awaken-no img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cdv-awaken-t { font-size: 13px; font-weight: 800; color: var(--ink); }
.cdv-awaken-d { font-size: 12px; color: var(--ink-body); line-height: 1.8; margin-top: 2px; }
.cdv-awaken-no.has-img { background: linear-gradient(160deg,#2b3a5c,#182238); }
.cdv-awaken-foot { margin-top: var(--sp-3); font-size: 12px; color: var(--ink-muted); display: flex; align-items: center; gap: var(--sp-2); }
.cdv-awaken-foot img { width: 22px; height: 22px; border-radius: 4px; }

.cdv-empty { font-size: 12px; color: var(--ink-faint); }

/* 加点顺序（数据来自全队攻略，见 char-extra.js） */
.cdv-order-line {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  padding: 10px var(--sp-5); border-bottom: 1px solid var(--line-subtle);
  background: var(--surface-sunken); font-size: 12px;
}
.cdv-order-label { color: var(--ink-faint); font-weight: 700; }
.cdv-fallback-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 2; color: var(--ink-body); }

/* ---------- 技能类型标签（横向 Tab） ---------- */
.cdv-tabs {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--line-subtle);
  background: var(--surface-sunken);
}
.cdv-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface-raised);
  color: var(--ink-body); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .18s ease; font-family: inherit;
}
.cdv-tab:hover { border-color: var(--brand); color: var(--brand-ink); }
.cdv-tab.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 2px 10px rgba(77, 141, 255, .28);
}
.cdv-tab-prio {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 11px; font-weight: 800;
}
.cdv-tab.on .cdv-tab-prio { background: rgba(255, 255, 255, .25); color: #fff; }
.cdv-tab-n { font-size: 11px; opacity: .55; }

/* ---------- 类型按键标（所有角色统一） ---------- */
.cdv-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface-raised); color: var(--ink-body);
  font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 1px 0 rgba(24, 34, 56, .06); white-space: nowrap;
}
.cdv-key--wide { padding: 0 8px; }
.cdv-key--mouse { min-width: 22px; padding: 0 2px; }
.cdv-skill-icon .cdv-key { border: 0; box-shadow: none; background: transparent; }

/* ---------- 倍率（文字版，替代原来的表格 / 柱状） ---------- */
.cdv-rates { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.cdv-rates li {
  display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap;
  padding: 6px 0; font-size: 13px; color: var(--ink-body);
  border-top: 1px dashed var(--line-subtle);
}
.cdv-rates li:first-child { border-top: 0; }
.cdv-rate-name { color: var(--ink-muted); min-width: 96px; }
.cdv-rate-name::after { content: "："; color: var(--ink-faint); }
.cdv-rates li > b { color: var(--brand-ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.cdv-rate-tag { font-size: 11px; color: var(--ink-faint); margin-left: auto; white-space: nowrap; }
.cdv-rates--sub { margin-top: var(--sp-2); opacity: .85; }
.cdv-rates--sub li { font-size: 12px; padding: 4px 0; }

/* 觉醒优先级 */
.cdv-prio {
  margin-left: var(--sp-2); padding: 1px 8px; border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 11px; font-weight: 800;
}

/* 角色特性（并入都市特技卡） */
.cdv-city--trait .cdv-city-head { background: var(--surface-sunken); }
.cdv-skill-trait + .cdv-skill-trait { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line-subtle); }
.cdv-skill-trait .cdv-skill-name { font-size: 14px; }

/* 推荐配队：一行两个（沿用旧版口径：单卡最小 520px，窄屏单列） */
#cdv-sec-team .team-list-grid {
  display: grid;
  /* 容器可用宽度约 1050px：min 取 460 才能稳定排两列（520 会掉回单列） */
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 12px;
}
@media (max-width: 1023px) {
  #cdv-sec-team .team-list-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 立绘灯箱 + 攻略入口 */
.cdv-lightbox {
  position: fixed; inset: 0; background: rgba(16, 22, 38, .78);
  display: none; align-items: center; justify-content: center; z-index: 99; padding: 24px;
}
.cdv-lightbox.on { display: flex; }
.cdv-lightbox img { max-width: min(92vw, 900px); max-height: 92vh; border-radius: var(--r-lg); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); }
.cdv-badge--guide {
  border-color: var(--brand); background: var(--brand); color: #fff;
  text-decoration: none; transition: background .2s ease;
}
.cdv-badge--guide:hover { background: var(--brand-deep); }

/* ---------- 都市特技 ---------- */
.cdv-city { border: 1px solid var(--line-subtle); border-radius: var(--r-lg); overflow: hidden; }
.cdv-city + .cdv-city { margin-top: var(--sp-4); }
.cdv-city-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); background: var(--brand-softer);
  border-bottom: 1px solid var(--line-subtle);
}
.cdv-city-head img { width: 34px; height: 34px; border-radius: var(--r-md); padding: 5px; background: linear-gradient(160deg,#2b3a5c,#182238); }
.cdv-city-head b { font-size: 14px; color: var(--ink); }
.cdv-city-head .cdv-hint { margin-left: auto; }
.cdv-city-steps { display: flex; flex-direction: column; }
.cdv-city-step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 220px;
  gap: var(--sp-3); align-items: center; padding: 8px var(--sp-4);
  border-top: 1px solid var(--line-subtle); cursor: pointer; background: var(--surface-raised);
}
.cdv-city-step:first-child { border-top: 0; }
.cdv-city-step:hover { background: var(--surface-sunken); }
.cdv-city-step.on { background: var(--brand-softer); box-shadow: inset 3px 0 0 var(--brand); }
.cdv-city-lv { font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.cdv-city-step.on .cdv-city-lv { color: var(--brand-ink); }
.cdv-city-desc { font-size: 13px; color: var(--ink-body); line-height: 1.7; }
.cdv-city-cost { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.cdv-city-cost span { display: inline-flex; align-items: center; gap: 4px; }
.cdv-city-cost img { width: 22px; height: 22px; border-radius: 4px; background: var(--surface-sunken); }
.cdv-city-cost em { font-style: normal; font-size: 11px; color: var(--ink-muted); }

@media (max-width: 900px) {
  .cdv-hero { grid-template-columns: minmax(0, 1fr); }
  .cdv-splash { min-height: 320px; max-width: 320px; }
  .cdv-facts, .cdv-stat-grid, .cdv-panel-grid { grid-template-columns: minmax(0, 1fr); }
  .cdv-seg { grid-template-columns: 78px minmax(0, 1fr); }
  .cdv-seg-val { grid-column: 2; text-align: left; }
  .cdv-city-step { grid-template-columns: 48px minmax(0, 1fr); }
  .cdv-city-cost { grid-column: 2; }
}

/* ---------- 环合反应（2026-10-20 新增） ----------
   一行一条：左侧属性组合圆片 / 中间名称+定位+效果 / 右侧跳环合图鉴。
   推荐那条（characters.json 的 reactionPick）用反应色描边 + 品牌色浅底 + 左侧色条。 */
.cdv-react { display: grid; gap: var(--sp-3); }
.cdv-react-item {
  position: relative; display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 56px;
  gap: var(--sp-4); align-items: start; padding: var(--sp-4);
  border: 1px solid var(--line-subtle); border-radius: var(--r-lg);
  background: var(--surface-raised);
}
.cdv-react-item.is-pick {
  border-color: var(--rc, var(--brand));
  background: linear-gradient(180deg, var(--brand-softer), transparent 72%);
  box-shadow: var(--sh-1);
}
.cdv-react-item.is-pick::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--rc, var(--brand));
}
.cdv-react-els { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 1px; }
.cdv-react-el {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--elc, #9aa3c7); color: var(--elc, #5b6883);
  background: var(--surface-raised); font-size: 12px; font-weight: 800;
}
.cdv-react-plus { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.cdv-react-main { min-width: 0; }
.cdv-react-title { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.cdv-react-title b { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.cdv-react-title b::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rc, var(--brand)); margin-right: 6px; vertical-align: 2px;
}
.cdv-react-pos {
  font-size: 11px; font-weight: 700; color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 1px 8px; background: var(--surface-raised);
}
.cdv-react-pick {
  font-size: 11px; font-weight: 800; color: #fff; background: var(--brand);
  border-radius: var(--r-full); padding: 1px 8px;
}
.cdv-react-desc { margin: 6px 0 0; font-size: 13px; line-height: 1.85; color: var(--ink-body); }
.cdv-react-why {
  margin: var(--sp-3) 0 0; padding: 8px 12px; font-size: 12.5px; line-height: 1.8;
  color: var(--ink-muted); background: var(--brand-softer);
  border-left: 2px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.cdv-react-why b { color: var(--brand-ink); font-weight: 800; margin-right: 6px; }
.cdv-react-link {
  justify-self: end; align-self: start; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--brand-ink); text-decoration: none;
}
.cdv-react-link:hover { text-decoration: underline; }
.cdv-react-foot {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px dashed var(--line-subtle);
  font-size: 12px; line-height: 1.8; color: var(--ink-faint);
}
.cdv-react-foot b { color: var(--ink-body); font-weight: 700; }
.cdv-react-foot a { margin-left: 6px; color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.cdv-react-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .cdv-react-item { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .cdv-react-link { justify-self: start; }
}
