/* ============================================================
 * expert-profile.css —— 专家档案独立页（#/experts/:id）
 * 宿主容器：<section id="expert-profile-view" class="page-view hidden">
 * 本文件所有规则均限定在 #expert-profile-view 作用域内，不污染全局。
 * 视觉基调：暖白底（#f5f4f0）+ 深蓝枝干（--oc-navy）+ 克制金（--oc-gold），
 * 普通卡 7-12px 圆角、大面板 12-16px 圆角，阴影只做层次、禁彩色 glow。
 * ============================================================ */

/* ========== 1. 页面级 token 与容器 ========== */

#expert-profile-view {
  /* 页面私有 token：暖白机会页同款深蓝 / 金 */
  --oc-navy: #16365a;
  --oc-navy-2: #244d82;
  --oc-gold: #c4a46c;
  --oc-gold-deep: #a88451;
  --oc-line: #e4ded1;      /* 暖灰细边 */
  --oc-line-soft: #efece4; /* 更浅的分隔线 */
  --oc-text: #33415a;      /* 页面正文色（比 --text-1 略偏蓝） */
  --oc-text-2: #6a7688;
  --oc-text-3: #93a0b0;
  --oc-shadow-card: 0 1px 2px rgba(22, 54, 90, 0.05), 0 4px 14px rgba(22, 54, 90, 0.06);
  --oc-shadow-panel: 0 1px 2px rgba(22, 54, 90, 0.04), 0 10px 28px rgba(22, 54, 90, 0.08);

  padding: 24px 32px 40px;
  background: #f5f4f0;
  color: var(--oc-text);
  font-size: 13px;
  line-height: 1.7;
}

#expert-profile-view *,
#expert-profile-view *::before,
#expert-profile-view *::after {
  box-sizing: border-box;
}

/* 加载 / 错误态（复用 base.css 类，仅做页面内微调） */
#expert-profile-view .view-loading {
  padding: 80px 0;
  color: var(--oc-text-3);
  letter-spacing: 1px;
}
#expert-profile-view .view-error {
  max-width: 560px;
  margin: 60px auto;
  background: #fdf6f2;
  border: 1px solid #ecd2c4;
  color: #8a4b32;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
}
#expert-profile-view .epp-link {
  color: var(--gj-600);
  text-decoration: none;
}
#expert-profile-view .epp-link:hover {
  color: var(--gj-700);
  text-decoration: underline;
}

/* ========== 2. 头部：头像 / 名称 / 状态 chips / 操作组 ========== */

#expert-profile-view .epp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--oc-line);
  border-radius: 14px; /* 大面板 */
  box-shadow: var(--oc-shadow-panel);
}

#expert-profile-view .epp-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

#expert-profile-view .epp-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--oc-line), 0 3px 8px rgba(22, 54, 90, 0.16);
  user-select: none;
}
#expert-profile-view .epp-avatar.lg {
  width: 84px;
  height: 84px;
  font-size: 30px;
}

#expert-profile-view .epp-head-text {
  min-width: 0;
}
#expert-profile-view .epp-head-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--oc-navy);
  letter-spacing: 1px;
  line-height: 1.4;
}
#expert-profile-view .epp-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--oc-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 560px;
}

/* chips：胶囊形，克制配色 */
#expert-profile-view .epp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
#expert-profile-view .epp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  font-size: 11px;
  line-height: 1.6;
  color: #5b6b7f;
  background: #faf9f6;
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  white-space: nowrap;
}
#expert-profile-view .epp-chip.is-version {
  background: #f6efdd;
  border-color: #d8c294;
  color: #7d6428;
  font-weight: 600;
}

/* 状态 chips 配色（克制版，供动态挂载：JS 基线未发修饰类，见交付说明） */
#expert-profile-view .epp-chip.is-published {
  background: #e9f4ea;
  border-color: #bcd8c0;
  color: #2e7d3a;
}
#expert-profile-view .epp-chip.is-candidate {
  background: #f7edd8;
  border-color: #e0c99a;
  color: #8a6d2f;
}
#expert-profile-view .epp-chip.is-pending {
  background: #eef0f2;
  border-color: #d9dee3;
  color: #6b7684;
}
#expert-profile-view .epp-chip.is-suggest {
  background: #e8f0fc;
  border-color: #c2d4ee;
  color: #2c5fb8;
}

/* 头部操作按钮组（视觉对齐 base.css .btn-primary/.btn-cancel） */
#expert-profile-view .epp-head-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#expert-profile-view .btn-primary {
  border: none;
  background: var(--gj-600);
  color: #fff;
  border-radius: 9px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
#expert-profile-view .btn-primary:hover {
  background: var(--gj-700);
}
#expert-profile-view .btn-cancel {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
#expert-profile-view .btn-cancel:hover {
  border-color: var(--gj-100);
  color: var(--gj-600);
  background: #fbfdff;
}
#expert-profile-view .btn-primary:focus-visible,
#expert-profile-view .btn-cancel:focus-visible {
  outline: 2px solid var(--gj-500);
  outline-offset: 2px;
}

/* ========== 3. 页签（复用 base.css .page-tabs 惯例，页面内精调） ========== */

#expert-profile-view .epp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 2px 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--oc-line);
}
#expert-profile-view .page-tab {
  border: 1px solid var(--oc-line);
  background: #fff;
  color: var(--oc-text-2);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
#expert-profile-view .page-tab:hover {
  border-color: var(--gj-100);
  color: var(--gj-600);
}
#expert-profile-view .page-tab.active {
  background: var(--oc-navy);
  border-color: var(--oc-navy);
  color: #fff;
  font-weight: 600;
}

#expert-profile-view .epp-body {
  min-width: 0;
}

/* ========== 4. 通用卡片 / k-v 行 / 杂项原子 ========== */

#expert-profile-view .epp-card {
  background: #fff;
  border: 1px solid var(--oc-line);
  border-radius: 12px; /* 大面板 */
  padding: 18px 20px;
  box-shadow: var(--oc-shadow-card);
  min-width: 0;
}
#expert-profile-view .epp-card > h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--oc-line-soft);
  font-size: 15px;
  font-weight: 700;
  color: var(--oc-navy);
  letter-spacing: 0.5px;
}
#expert-profile-view .epp-card > h3 + .epp-hint {
  margin-top: -4px;
}

/* k/v 行（profile-rows 为 base.css 既有类，这里覆盖其内边距以适配本页卡片） */
#expert-profile-view .profile-rows {
  padding: 0;
}
#expert-profile-view .epp-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--oc-line-soft);
  font-size: 12.5px;
}
#expert-profile-view .epp-row:last-child {
  border-bottom: none;
}
#expert-profile-view .epp-row-k {
  color: var(--oc-text-3);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
#expert-profile-view .epp-row-v {
  color: var(--oc-text);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
#expert-profile-view .epp-row-v.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 「最近修订」金色 chips（档案行 + 能力树叶子共用） */
#expert-profile-view .epp-rev-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--oc-gold-deep);
  background: #faf6ec;
  border: 1px solid var(--oc-gold);
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* 展开 / 收起 */
#expert-profile-view .epp-toggle {
  border: none;
  background: transparent;
  color: var(--gj-600);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  white-space: nowrap;
}
#expert-profile-view .epp-toggle:hover {
  color: var(--gj-700);
  text-decoration: underline;
}

/* 占位 / 提示 / 空态 */
#expert-profile-view .epp-none {
  color: #a8b2bf;
  font-size: 12px;
}
#expert-profile-view .epp-hint {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--oc-text-3);
}
#expert-profile-view .epp-empty {
  padding: 22px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--oc-text-3);
  background: #faf9f5;
  border: 1px dashed var(--oc-line);
  border-radius: 10px;
}

/* ========== 5. 页签一：专家档案 —— 左右双栏 ========== */

#expert-profile-view .epp-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
}

/* ---------- 5.1 能力树（细线左侧竖线 + 白底细边节点） ---------- */

#expert-profile-view .epp-tree,
#expert-profile-view .epp-tree ul,
#expert-profile-view .epp-tree-branches {
  list-style: none;
  margin: 0;
  padding: 0;
}
#expert-profile-view .epp-tree-root {
  display: inline-block;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: var(--oc-navy);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(22, 54, 90, 0.22);
}

/* 树干竖线：根 → 枝干 → 叶子，一根细线贯穿左侧 */
#expert-profile-view .epp-tree-branches {
  margin-left: 10px;
  padding-left: 18px;
  border-left: 1px solid #d8d2c4;
}
#expert-profile-view .epp-tree-branch {
  position: relative;
  padding: 8px 0 4px;
}
#expert-profile-view .epp-tree-branch::before {
  /* 枝干横线：从竖线连到枝干节点 */
  content: "";
  position: absolute;
  left: -18px;
  top: 21px;
  width: 14px;
  height: 1px;
  background: #d8d2c4;
}
#expert-profile-view .epp-tree-branch > ul {
  margin-left: 10px;
  padding-left: 16px;
  border-left: 1px dashed #e0dacc;
}
#expert-profile-view .epp-tree-leaf {
  position: relative;
  padding: 4px 0;
}
#expert-profile-view .epp-tree-leaf::before {
  /* 叶子横线：虚线，弱于枝干 */
  content: "";
  position: absolute;
  left: -16px;
  top: 17px;
  width: 12px;
  height: 1px;
  background: #e0dacc;
}

/* 节点：白底 + 细边 + 7-10px 小圆角 */
#expert-profile-view .epp-tree-node {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--oc-line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(22, 54, 90, 0.04);
}
#expert-profile-view .epp-tree-node.is-branch {
  display: inline-flex;
  border-color: #cdd8e4;
  background: #f4f7fb;
}
#expert-profile-view .epp-tree-k {
  font-size: 12px;
  font-weight: 600;
  color: var(--oc-navy);
}
#expert-profile-view .epp-tree-node.is-branch .epp-tree-k {
  font-size: 12.5px;
  letter-spacing: 1px;
}
#expert-profile-view .epp-tree-v {
  font-size: 11.5px;
  color: var(--oc-text-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  flex: 1 1 auto;
}

/* ========== 6. 页签二：知识装备 —— 三栏工作台 ========== */

#expert-profile-view .epp-eq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(200px, 236px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* 左栏：装备库 */
#expert-profile-view .epp-lib-list {
  display: grid;
  gap: 10px;
  max-height: 640px;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: #c8c2b4 transparent;
}

/* 装备卡：白底 + 类型色左边条 */
#expert-profile-view .epp-eq-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--oc-line);
  border-left: 3px solid var(--oc-navy); /* 默认类型色：深蓝 */
  border-radius: 10px;
  padding: 10px 12px 8px;
  box-shadow: var(--oc-shadow-card);
  cursor: grab;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  touch-action: none;
  user-select: none;
}
#expert-profile-view .epp-eq-card:hover {
  border-color: #c9d4e2;
  border-left-color: var(--oc-navy);
  box-shadow: 0 2px 4px rgba(22, 54, 90, 0.08), 0 8px 20px rgba(22, 54, 90, 0.1);
}
#expert-profile-view .epp-eq-card:focus-visible {
  outline: 2px solid var(--gj-500);
  outline-offset: 2px;
}
#expert-profile-view .epp-eq-card.is-equipped {
  cursor: default;
  border-left-color: var(--oc-gold); /* 已装备：金色左边条 */
}
#expert-profile-view .epp-eq-card.is-readonly {
  cursor: default;
  border-left-color: #a9b0b8; /* 临时装备：灰左边条 */
  background: #fbfaf7;
}
/* 「查看变化」定位闪烁 */
#expert-profile-view .epp-eq-card.is-flash {
  animation: epp-flash 1.6s ease-out 1;
}
@keyframes epp-flash {
  0%, 60% {
    border-color: var(--oc-gold);
    box-shadow: 0 0 0 3px rgba(196, 164, 108, 0.28);
  }
  100% {
    box-shadow: var(--oc-shadow-card);
  }
}

#expert-profile-view .epp-eq-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--oc-navy);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#expert-profile-view .epp-eq-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--oc-text-3);
}
#expert-profile-view .epp-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--oc-navy-2);
  background: #eef3f9;
  border: 1px solid #d4dfec;
  border-radius: 999px;
  white-space: nowrap;
}
#expert-profile-view .epp-newver {
  font-size: 10.5px;
  color: var(--oc-gold-deep);
  background: #faf6ec;
  border: 1px solid var(--oc-gold);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}
#expert-profile-view .epp-eq-card-desc {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--oc-text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#expert-profile-view .epp-eq-card-foot {
  margin-top: 7px;
  font-size: 11px;
  color: var(--oc-text-3);
}

/* 卡片操作行：hover 卡片才显现（卸下等破坏性操作收敛噪音） */
#expert-profile-view .epp-eq-card-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.15s, max-height 0.15s;
}
#expert-profile-view .epp-eq-card:hover .epp-eq-card-ops,
#expert-profile-view .epp-eq-card:focus-within .epp-eq-card-ops,
#expert-profile-view .epp-eq-card.is-readonly .epp-eq-card-ops {
  opacity: 1;
  max-height: 40px;
}

/* 迷你按钮：白底细边，hover 蓝边 */
#expert-profile-view .epp-mini-btn {
  border: 1px solid var(--oc-line);
  background: #fff;
  color: var(--oc-text-2);
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
#expert-profile-view .epp-mini-btn:hover {
  border-color: var(--gj-100);
  color: var(--gj-600);
}
#expert-profile-view .epp-mini-btn.is-gold {
  border-color: var(--oc-gold);
  color: var(--oc-gold-deep);
  background: #faf6ec;
}
#expert-profile-view .epp-mini-btn.is-gold:hover {
  background: #f4ecd9;
}

/* 中栏：专家名片 */
#expert-profile-view .epp-eq-idcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 16px;
  background: linear-gradient(170deg, #ffffff 60%, #f7f4ec);
}
#expert-profile-view .epp-idcard-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--oc-navy);
  letter-spacing: 1px;
}
#expert-profile-view .epp-idcard-biz {
  font-size: 11.5px;
  color: var(--oc-text-2);
}
#expert-profile-view .epp-idcard-rev {
  margin-top: 4px;
  font-size: 11px;
  color: var(--oc-gold-deep);
  background: #faf6ec;
  border: 1px solid var(--oc-gold);
  border-radius: 999px;
  padding: 2px 12px;
}

/* 右栏：语义分区装备栏 */
#expert-profile-view .epp-slots {
  display: grid;
  gap: 12px;
}

/* 分区类型色（--slot-c 供区头与卡左边条复用） */
#expert-profile-view .epp-slot { --slot-c: var(--oc-navy); }
#expert-profile-view .epp-slot[data-slot="core_spec"]       { --slot-c: #16365a; }
#expert-profile-view .epp-slot[data-slot="regulatory"]      { --slot-c: #38618f; }
#expert-profile-view .epp-slot[data-slot="product_capability"] { --slot-c: #3e7d6b; }
#expert-profile-view .epp-slot[data-slot="case_experience"] { --slot-c: #a1793c; }
#expert-profile-view .epp-slot[data-slot="research"]        { --slot-c: #6b5b8c; }
#expert-profile-view .epp-slot[data-slot="supplement"]      { --slot-c: #7a6a55; }
#expert-profile-view .epp-slot[data-slot="client_material"],
#expert-profile-view .epp-slot.is-temp                     { --slot-c: #8a9099; }

#expert-profile-view .epp-slot {
  background: #fbfaf7;
  border: 1px solid var(--oc-line);
  border-radius: 10px;
  padding: 10px 12px 12px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
#expert-profile-view .epp-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--oc-line-soft);
}
#expert-profile-view .epp-slot-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--oc-navy);
}
#expert-profile-view .epp-slot-head h4::before {
  /* 区标题前的类型色小方块 */
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--slot-c);
  flex: 0 0 auto;
}
#expert-profile-view .epp-slot-count {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--oc-text-3);
  background: #fff;
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  padding: 0 8px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
#expert-profile-view .epp-slot-add {
  width: 22px;
  height: 22px;
  border: 1px solid var(--oc-line);
  border-radius: 50%;
  background: #fff;
  color: var(--oc-text-2);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
#expert-profile-view .epp-slot-add:hover {
  border-color: var(--gj-100);
  color: var(--gj-600);
}
#expert-profile-view .epp-slot-body {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}
/* 分区内已装备卡左边条跟随分区类型色 */
#expert-profile-view .epp-slot .epp-eq-card.is-equipped {
  border-left-color: var(--slot-c);
}
#expert-profile-view .epp-slot-empty {
  padding: 12px 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--oc-text-3);
  border: 1px dashed var(--oc-line);
  border-radius: 8px;
  background: #fff;
}
#expert-profile-view .epp-slot-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--oc-text-3);
}
#expert-profile-view .epp-slot.is-temp {
  background: #f6f5f2;
  border-style: dashed;
}

/* 拖拽悬停高亮：淡金底 + 虚线边 */
#expert-profile-view .epp-slot.is-droptarget {
  background: #faf3e2;
  border: 1px dashed var(--oc-gold);
  box-shadow: 0 0 0 3px rgba(196, 164, 108, 0.18);
}

/* 底部历史方案横向时间线（不换行、可横滚） */
#expert-profile-view .epp-rev-strip-wrap {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--oc-line-soft);
}
#expert-profile-view .epp-rev-strip-wrap h4 {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--oc-navy);
}
#expert-profile-view .epp-rev-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  overflow-x: auto;
  flex-wrap: nowrap; /* 横向滚动，绝不换行挤压 */
  scrollbar-width: thin;
  scrollbar-color: #c8c2b4 transparent;
}
#expert-profile-view .epp-rev-strip::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: #e0dacc;
}
#expert-profile-view .epp-rev-dot {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--oc-line);
  background: #fff;
  color: var(--oc-navy);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
#expert-profile-view .epp-rev-dot:hover {
  border-color: var(--oc-gold);
  color: var(--oc-gold-deep);
  transform: translateY(-2px);
}
#expert-profile-view .epp-rev-strip-wrap .epp-hint {
  margin: 4px 0 0;
}

/* ========== 7. 页签三：培养记录 —— 双栏时间线 ========== */

#expert-profile-view .epp-train-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* 成长轨迹：左侧竖线时间线 */
#expert-profile-view .epp-growth {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #ddd7c9;
}
#expert-profile-view .epp-growth-item {
  position: relative;
  padding: 0 0 18px 12px;
}
#expert-profile-view .epp-growth-item:last-child {
  padding-bottom: 2px;
}
#expert-profile-view .epp-growth-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--oc-gold);
}
#expert-profile-view .epp-growth-v {
  font-size: 14px;
  font-weight: 700;
  color: var(--oc-navy);
  font-variant-numeric: tabular-nums;
}
#expert-profile-view .epp-growth-v small {
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--oc-text-3);
}
#expert-profile-view .epp-growth-body {
  margin-top: 5px;
  background: #fbfaf7;
  border: 1px solid var(--oc-line-soft);
  border-radius: 8px;
  padding: 8px 12px;
}
#expert-profile-view .epp-growth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#expert-profile-view .epp-growth-by {
  margin-top: 6px;
  font-size: 11px;
  color: var(--oc-text-3);
}
#expert-profile-view .epp-growth-changes {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--oc-text);
}

/* 培养会话 */
#expert-profile-view .epp-session-list {
  display: grid;
  gap: 10px;
}
#expert-profile-view .epp-session {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--oc-line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: var(--oc-shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#expert-profile-view .epp-session:hover {
  border-color: #c9d4e2;
  box-shadow: 0 2px 4px rgba(22, 54, 90, 0.08), 0 8px 20px rgba(22, 54, 90, 0.1);
}
#expert-profile-view .epp-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#expert-profile-view .epp-session-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--oc-navy-2);
  font-variant-numeric: tabular-nums;
}
#expert-profile-view .epp-session-goal {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--oc-text);
}
#expert-profile-view .epp-session-time {
  margin-top: 6px;
  font-size: 11px;
  color: var(--oc-text-3);
  font-variant-numeric: tabular-nums;
}

/* ========== 8. 页签四：运行记录 ========== */

#expert-profile-view .epp-runs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 860px;
}
#expert-profile-view .epp-empty-card {
  background: #fbfaf7;
  border-style: dashed;
}
#expert-profile-view .epp-empty-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--oc-text-2);
}
#expert-profile-view .epp-cite-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 12.5px;
  color: var(--oc-text);
}
#expert-profile-view .epp-cite-list li {
  padding: 3px 0;
}
#expert-profile-view .epp-cite-list .epp-badge {
  margin-left: 6px;
}

/* ========== 9. 弹层：确认 / 选择器（自建类名，视觉对齐 .cm-mask/.cm-dialog） ========== */

#expert-profile-view .epp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 32, 52, 0.48);
  backdrop-filter: blur(7px);
}
#expert-profile-view .epp-dialog {
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #fff;
  color: #23344c;
  border: 1px solid #e3e8ef;
  border-radius: 14px; /* 大面板上限 16px 内 */
  box-shadow: 0 26px 90px rgba(13, 32, 59, 0.2);
  padding: 20px 24px;
  font-size: 13px;
  scrollbar-width: thin;
  animation: epp-dialog-in 0.18s ease-out;
}
@keyframes epp-dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#expert-profile-view .epp-dialog h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
  font-size: 15px;
  font-weight: 700;
  color: var(--oc-navy);
}
#expert-profile-view .epp-dialog .epp-row {
  grid-template-columns: 128px minmax(0, 1fr);
}
#expert-profile-view .epp-dialog-ops {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

/* 选择器列表 */
#expert-profile-view .epp-picker {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}
#expert-profile-view .epp-picker-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: #fafcff;
  border: 1px solid #e3eaf3;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
#expert-profile-view .epp-picker-item:hover {
  border-color: #c2d4ee;
  background: #f2f7ff;
}
#expert-profile-view .epp-picker-item strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--oc-navy);
  flex: 0 0 auto;
}
#expert-profile-view .epp-picker-item small {
  font-size: 11px;
  color: var(--oc-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ========== 10. 拖拽浮层预览 ========== */

#expert-profile-view .epp-drag-preview {
  position: fixed;
  z-index: 1300;
  pointer-events: none;
  padding: 5px 14px;
  background: #fff;
  border: 1px solid var(--oc-gold);
  border-radius: 999px;
  color: var(--oc-navy);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(22, 54, 90, 0.2);
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 11. 响应式：≤1250px 全部单栏纵向堆叠 ========== */

@media (max-width: 1250px) {
  #expert-profile-view {
    padding: 18px 20px 32px;
  }
  /* 双栏 / 三栏 → 单栏 */
  #expert-profile-view .epp-profile-grid,
  #expert-profile-view .epp-eq-layout,
  #expert-profile-view .epp-train-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 装备库高度限制解除，避免单栏内过高滚动区 */
  #expert-profile-view .epp-lib-list {
    max-height: none;
  }
  /* 头部：操作组自然换行 */
  #expert-profile-view .epp-head {
    align-items: flex-start;
  }
  #expert-profile-view .epp-subtitle {
    max-width: 100%;
  }
  /* 时间线保持横向滚动不换行（.epp-rev-strip 默认即 nowrap，此处再保险） */
  #expert-profile-view .epp-rev-strip {
    flex-wrap: nowrap;
  }
}

@media (max-width: 760px) {
  #expert-profile-view .epp-head-main {
    width: 100%;
  }
  #expert-profile-view .epp-head-ops {
    width: 100%;
  }
  #expert-profile-view .epp-head-ops .btn-primary,
  #expert-profile-view .epp-head-ops .btn-cancel {
    flex: 1 1 40%;
  }
  #expert-profile-view .epp-row {
    grid-template-columns: 92px minmax(0, 1fr) auto;
  }
  #expert-profile-view .epp-dialog .epp-row {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  #expert-profile-view .epp-dialog {
    padding: 16px;
  }
}

/* ========== 12. 动效克制 ========== */

@media (prefers-reduced-motion: reduce) {
  #expert-profile-view .epp-dialog {
    animation: none;
  }
  #expert-profile-view .epp-eq-card.is-flash {
    animation: none;
    border-color: var(--oc-gold);
  }
  #expert-profile-view .epp-rev-dot:hover,
  #expert-profile-view .epp-eq-card,
  #expert-profile-view .epp-eq-card-ops,
  #expert-profile-view .page-tab,
  #expert-profile-view .epp-mini-btn,
  #expert-profile-view .btn-primary,
  #expert-profile-view .btn-cancel {
    transition: none;
  }
}
