/* ============================================================
 * Polaris Social Manager — Extra Styles (v2 features)
 * 时间范围 / 同环比 / 导出 / 翻译 / 询盘详情 / 团队 / 真实Logo
 * ============================================================ */

.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #fff; padding: 3px; }

/* 顶栏成员切换 & 导出 */
.mem-sel { font-size: 12.5px; }
.icon-btn { font-size: 17px; }

/* 时间范围选择条 */
.range-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 18px; box-shadow: var(--shadow); }
.rb-label { font-weight: 700; font-size: 13px; color: var(--text-2); margin-right: 4px; }
.seg { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); background: var(--surface-2); transition: all .15s; }
.seg:hover { border-color: var(--teal); }
.seg.on { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .seg.on { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.rb-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.range-bar input[type=date] { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 12.5px; font-family: inherit; }
.rb-scope { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 600; }

/* KPI 同环比 */
.k-label { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.k-val { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }
.k-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.k-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.k-chip { font-size: 11.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 20px; }
.k-chip b { font-weight: 700; }

/* 对比柱状图图例 */
.cmp-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* 收件箱翻译 */
.reply-bar { flex-wrap: wrap; }
.reply-extra { display: flex; gap: 8px; width: 100%; align-items: center; margin-bottom: 8px; }
.reply-extra select { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 12px; }
.m-tr { margin-top: 6px; font-size: 12px; color: var(--teal-d); background: rgba(52,204,181,.1); padding: 5px 8px; border-radius: 8px; border-left: 3px solid var(--teal); }
.msg.out .m-tr { color: #d6fff6; background: rgba(255,255,255,.12); border-left-color: #fff; }

/* 询盘详情 */
.lead-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.lead-grid > div { display: flex; flex-direction: column; gap: 3px; }
.ld-k { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.lead-grid b { font-size: 13.5px; }
.ld-msg { font-size: 13.5px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.ld-section { margin-top: 18px; }
.ld-section > b { display: block; margin-bottom: 8px; font-size: 13px; }
.ld-status { display: flex; gap: 8px; flex-wrap: wrap; }
.tl { margin-top: 6px; padding-left: 6px; }
.tl-item { display: flex; gap: 12px; padding: 6px 0; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -6px; width: 2px; background: var(--border); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 2px solid var(--surface); flex-shrink: 0; margin-top: 3px; }
.tl-item b { font-size: 13px; }
.modal-lg { max-width: 560px; }

/* 团队管理 */
.chk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.chk input { width: 16px; height: 16px; accent-color: var(--teal); }

/* 响应式补充 */
@media (max-width: 860px) {
  .lead-grid { grid-template-columns: 1fr; }
  .rb-scope { width: 100%; margin-left: 0; }
  .mem-sel { max-width: 130px; }
}
@media (max-width: 560px) {
  .k-val { font-size: 22px; }
}

/* v3：每社媒指标卡 / 紧凑KPI / 提醒 / 通知 */
.section-title { font-size: 14px; font-weight: 700; margin: 22px 2px 12px; color: var(--text); }
.kpi.compact { padding: 14px 16px; }
.kpi.compact .k-val { font-size: 23px; }
.kpi.compact .k-chips { margin-top: 8px; gap: 6px; }
.kpi.compact .k-chip { font-size: 11px; padding: 2px 7px; }

.pc-grid-wrap { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pcard { padding: 16px; }
.pc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.pc-meta .pc-h { font-weight: 700; font-size: 14px; }
.pc-meta .pc-o { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.pc-m { display: flex; flex-direction: column; gap: 2px; }
.pc-m .pc-l { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.pc-m b { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.pc-chip { font-size: 11px; font-weight: 700; margin-top: 2px; }
.pc-chip.up { color: var(--teal-d); }
.pc-chip.down { color: #ff6b6b; }
.pc-spark { margin-top: 12px; opacity: .9; }

/* 提醒设置 */
.alert-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); }
.alert-row .a-l { font-weight: 600; font-size: 13px; }
.alert-row .a-v { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.field-inline { flex: 1; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); outline: none; font-size: 12.5px; font-family: inherit; min-width: 0; }
.field-inline:focus { border-color: var(--teal); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; font-weight: 600; }
.switch { width: 46px; height: 26px; border-radius: 20px; background: var(--border); position: relative; transition: background .2s; flex-shrink: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--teal); }
.switch.on i { left: 23px; }

/* 通知中心 */
.modal-notif { max-width: 460px; }
.notif-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.notif-item .n-body { flex: 1; min-width: 0; }
.notif-item .n-name { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.notif-item .n-text { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v4：账号设置 / 头像上传 / 编辑成员 / 登录 */
.user-chip { cursor: pointer; transition: border-color .15s, background .15s; }
.user-chip:hover { border-color: var(--teal); background: var(--surface-2); }
img.av { object-fit: cover; }
.uc-caret { font-size: 10px; color: var(--text-3); margin-left: 1px; }

.acc-edit-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar-wrap { position: relative; flex-shrink: 0; }
.acc-avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 24px; border: 1px solid var(--border); }
.avatar-up { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; cursor: pointer; border: 2px solid var(--surface); line-height: 1; }
.avatar-up:hover { background: var(--teal-d); }
.acc-edit-meta .ae-name { font-weight: 800; font-size: 16px; }
.acc-edit-meta .ae-role { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.btn-danger { background: #ff5a5f; color: #fff; border: 1px solid #ff5a5f; }
.btn-danger:hover { background: #e8484d; border-color: #e8484d; }

.auth-screen { position: fixed; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #002A50, #00121f); padding: 20px; z-index: 50; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 40px 46px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); max-width: 380px; width: 100%; }
.auth-logo { width: 150px; max-width: 72%; margin: 0 auto 18px; display: block; }
.auth-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.auth-sub { color: var(--text-3); font-size: 13px; margin-top: 6px; }
.btn-lg { width: 100%; padding: 14px; font-size: 15px; margin-top: 22px; font-weight: 700; }
.auth-note { color: var(--text-3); font-size: 11px; margin-top: 22px; line-height: 1.6; }
.auth-input { width: 100%; margin-top: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: 14px; font-family: var(--font); outline: none; transition: border-color .15s; box-sizing: border-box; }
.auth-input:focus { border-color: var(--teal); background: var(--surface); }
.auth-hint { color: var(--text-3); font-size: 12px; margin-top: 18px; }

/* v4b：询盘自定义状态 */
.ld-custom-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ld-custom-label { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ld-custom-row .field-inline { flex: 1; }

/* v5：团队成员字段 / 全选 / WhatsApp / CRM / 重要客户提醒 */
.btn-xs { padding: 4px 10px; font-size: 11.5px; border-radius: 7px; }
.selall-row { display: flex; gap: 8px; margin-bottom: 10px; }
.lead-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.crm-synced { font-size: 12.5px; font-weight: 700; color: var(--teal-d); background: rgba(52,204,181,.12); padding: 5px 10px; border-radius: 8px; }
.crm-hint { font-size: 11.5px; color: var(--text-3); }

.wa-pill { display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 20px; background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); vertical-align: middle; }
.wa-pill.on { background: #25D366; color: #fff; border-color: #25D366; }
[data-theme="dark"] .wa-pill.on { color: #062; }

.crm-card { padding: 16px; }
.crm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crm-name { font-weight: 800; font-size: 15px; }
.lv-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.crm-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.crm-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.crm-row span { color: var(--text-3); font-weight: 600; }
.crm-row b { font-weight: 700; }
.crm-empty-big { text-align: center; color: var(--text-3); padding: 50px 20px; font-size: 13.5px; }
.crm-empty { color: var(--text-3); font-size: 12.5px; padding: 6px 0; }
.crm-edit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }

.corner-reminder { position: fixed; right: 22px; bottom: 22px; width: 280px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.22); padding: 0; z-index: 60; transform: translateY(20px); opacity: 0; transition: all .35s ease; pointer-events: auto; }
.corner-reminder.show { transform: translateY(0); opacity: 1; }
.rem-head { font-weight: 800; font-size: 13px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.rem-close { background: none; border: none; font-size: 18px; line-height: 1; color: var(--text-3); cursor: pointer; }
.rem-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.rem-item { display: flex; flex-direction: column; gap: 1px; }
.rem-item b { font-size: 12.5px; }
.rem-sub { font-size: 11px; color: var(--text-3); }
@media (max-width: 560px) { .corner-reminder { right: 12px; left: 12px; width: auto; } .crm-edit-row { grid-template-columns: 1fr; } }


/* ==================== v5 视觉优化 ==================== */
/* 曲线图：hover 数值提示 */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap svg { display: block; width: 100%; height: 200px; }
.chart-wrap .chart-cursor,
.chart-wrap .chart-cursor-dot { opacity: 0; transition: opacity .12s; pointer-events: none; }
.chart-wrap.hovering .chart-cursor { opacity: 1; stroke: var(--teal); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-wrap.hovering .chart-cursor-dot { opacity: 1; }
.chart-wrap .chart-hit { cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
  background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.28); z-index: 5; }
.chart-tip span { display: block; font-weight: 600; font-size: 10.5px; opacity: .72; margin-top: 1px; }
.chart-wrap.hovering .chart-tip { opacity: 1; transform: translateY(0); }

/* 环形图：生长动画 + hover 联动 */
.donut-wrap { position: relative; flex-shrink: 0; }
.donut-wrap svg { display: block; }
/* 注意：切勿给 .donut-arc 加 transform-origin —— SVG 的 transform="rotate(-90 cx cy)"
   属性会被 CSS transform-origin 二次偏移，把扇区旋出 viewBox 导致整圈变灰（v7 修复） */
.donut-arc { transition: opacity .2s, stroke-width .2s; cursor: pointer;
  animation: donutGrow .7s cubic-bezier(.22,.8,.32,1) backwards; }
@keyframes donutGrow { from { opacity: 0; } to { opacity: 1; } }
.donut-wrap .donut-num { transition: fill .2s; }

/* 粉丝占比：横排 chip + 占比条 */
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 10px; flex: 1; min-width: 220px; }
.legend-chip { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; transition: border-color .15s, transform .15s; cursor: default; }
.legend-chip:hover { border-color: var(--teal); transform: translateY(-1px); }
.legend-chip i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.legend-chip b { margin-left: auto; font-weight: 800; padding-left: 6px; }
.dist-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* 社媒卡片：更紧凑 */
.pcard { padding: 14px; }
.pcard .pc-head { margin-bottom: 10px; }
.pcard .pc-grid { gap: 8px 12px; }
.pcard .pc-m { padding: 6px 8px; background: var(--surface-2); border-radius: 8px; }
.pcard .pc-m b { font-size: 16px; }
.pcard .pc-m .pc-l { font-size: 10.5px; }
.pcard .pc-spark { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.pc-grid-wrap { gap: 12px; }
.kpi.compact { padding: 14px; }

/* 素材库：上传 + 预览 */
.dropzone { border: 1.5px dashed var(--border); border-radius: var(--radius-sm); padding: 16px 14px; text-align: center;
  background: var(--surface-2); cursor: pointer; transition: all .18s; margin-bottom: 12px; }
.dropzone:hover, .dropzone.over { border-color: var(--teal); background: rgba(52,204,181,.07); }
.dropzone .dz-ico { font-size: 22px; line-height: 1; }
.dropzone .dz-t { font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.dropzone .dz-s { font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.6; }
.up-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.up-bar select, .up-bar input { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 12px; font-family: inherit; outline: none; }
.up-bar select:focus, .up-bar input:focus { border-color: var(--teal); }
.media-grid { gap: 10px; }
.media-item { cursor: pointer; transition: transform .15s, border-color .15s; position: relative; }
.media-item:hover { transform: translateY(-2px); border-color: var(--teal); }
.media-thumb { position: relative; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .mt-badge { position: absolute; left: 6px; top: 6px; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 20px; background: rgba(0,42,80,.82); color: #fff; }
.media-item .m-name { padding: 7px 9px; }
.media-item .m-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 9px 8px; }
.media-item .m-size { padding: 0; font-size: 10.5px; color: var(--text-3); }
.media-item .m-del { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.media-item .m-del:hover { color: #ef4444; }
.media-empty { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 24px 10px; }
.up-prog { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.up-prog i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .3s; }

/* 询盘客户级别：行内下拉（与 CRM 同一套配色） */
.lv-sel { border: none; outline: none; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  cursor: pointer; font-family: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none;
  text-align: center; text-align-last: center; color: #fff; min-width: 74px; }
.lv-sel option { color: var(--text); background: var(--surface); }
.level-head-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.media-thumb .mt-text { width: 100%; height: 100%; overflow: hidden; font-size: 10px; line-height: 1.45; color: var(--text-2);
  padding: 10px; box-sizing: border-box; text-align: left; background: var(--surface); }

/* 导出格式选择 */
.exp-note { font-size: 12px; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 11px; margin-bottom: 12px; }
.exp-note b { color: var(--text); }
.exp-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; margin-bottom: 9px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); transition: all .15s; font-family: inherit; }
.exp-opt:hover { border-color: var(--teal); background: var(--surface-2); transform: translateX(2px); }
.exp-ico { font-size: 22px; line-height: 1; flex-shrink: 0; }
.exp-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.exp-txt b { font-size: 13.5px; color: var(--text); }
.exp-txt i { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.exp-go { color: var(--text-3); font-size: 15px; flex-shrink: 0; }

/* 平台矢量图标 */
.acc-ava svg { display: block; }

/* ============================================================
 * v7 — 大厂级排版 / 动态化 / 版本标识
 * ============================================================ */

/* —— 入场动效：卡片渐次浮起 —— */
@keyframes polarisRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#view .card { animation: polarisRise .45s cubic-bezier(.22,.68,.36,1) both; }
#view .kpi-grid > .kpi:nth-child(1) { animation-delay: .02s; }
#view .kpi-grid > .kpi:nth-child(2) { animation-delay: .08s; }
#view .kpi-grid > .kpi:nth-child(3) { animation-delay: .14s; }
#view .kpi-grid > .kpi:nth-child(4) { animation-delay: .20s; }
#view .pc-grid-wrap > .pcard:nth-child(1) { animation-delay: .10s; }
#view .pc-grid-wrap > .pcard:nth-child(2) { animation-delay: .15s; }
#view .pc-grid-wrap > .pcard:nth-child(3) { animation-delay: .20s; }
#view .pc-grid-wrap > .pcard:nth-child(4) { animation-delay: .25s; }
#view .pc-grid-wrap > .pcard:nth-child(5) { animation-delay: .30s; }
#view .pc-grid-wrap > .pcard:nth-child(n+6) { animation-delay: .34s; }

/* —— KPI 卡：左侧色条 + 悬浮抬升 + 数字等宽 —— */
.kpi { position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.22,.68,.36,1), box-shadow .22s, border-color .22s; }
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ac, var(--teal)); border-radius: 3px 0 0 3px;
}
.kpi::after {
  content: ""; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px; border-radius: 50%;
  background: var(--ac, var(--teal)); opacity: .07; pointer-events: none;
  transition: transform .35s cubic-bezier(.22,.68,.36,1), opacity .35s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ac, var(--teal)); }
.kpi:hover::after { transform: scale(1.35); opacity: .12; }
.kpi-grid > .kpi:nth-child(1) { --ac: #34CCB5; }
.kpi-grid > .kpi:nth-child(2) { --ac: #2E7DD1; }
.kpi-grid > .kpi:nth-child(3) { --ac: #7C6CF0; }
.kpi-grid > .kpi:nth-child(4) { --ac: #F5A623; }
.kpi .k-label { font-size: 12px; font-weight: 600; letter-spacing: .2px; text-transform: none; }
.kpi .k-val { font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.kpi.compact { padding: 15px 16px 15px 19px; }
.k-chips { gap: 6px; }
.k-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
}

/* —— 平台卡片：顶部平台色条 + 底部信息行 —— */
.pcard {
  position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.22,.68,.36,1), box-shadow .22s, border-color .22s;
}
.pcard::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--pc, var(--teal));
  background: linear-gradient(90deg, var(--pc, var(--teal)), color-mix(in srgb, var(--pc, var(--teal)) 30%, transparent));
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--pc, var(--teal)); }
.pcard .pc-m { transition: background .18s; }
.pcard:hover .pc-m {
  background: var(--surface-2);
  background: color-mix(in srgb, var(--pc, var(--teal)) 10%, var(--surface-2));
}
.pcard .pc-m b { font-variant-numeric: tabular-nums; }
.pcard .acc-ava { transition: transform .25s cubic-bezier(.22,.68,.36,1); }
.pcard:hover .acc-ava { transform: scale(1.06); }
.pc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 11px; color: var(--text-3);
}
.pc-foot .pill { font-size: 10.5px; padding: 2px 9px; border-radius: 20px; }
.pc-foot .pill-no { background: var(--surface-2); color: var(--text-3); }

/* —— 区块标题：左侧竖条，层次更清晰 —— */
.section-title {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 800;
  margin: 20px 2px 12px; color: var(--text); letter-spacing: .2px;
}
.section-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
}
.page-head h1 { letter-spacing: -.4px; }
.page-head p { font-size: 12.5px; color: var(--text-3); }

/* —— 环形分布 + 图例：更规整的"大厂"排布 —— */
.dist-wrap { gap: 22px; align-items: center; }
.donut-wrap { flex-shrink: 0; }
.donut-arc { transition: stroke-width .18s ease, opacity .18s ease; cursor: pointer; }
.legend-row { gap: 8px; }
.legend-chip {
  border: 1px solid var(--border); background: var(--surface-2); font-size: 12px;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.legend-chip:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,42,80,.10); }
.legend-chip i { box-shadow: 0 0 0 2px var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 60%, transparent); }

/* —— 侧边栏版本号 —— */
.sidebar-foot { font-size: 10.5px; line-height: 1.7; color: rgba(255,255,255,.42); }
.app-ver {
  display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  color: var(--teal); background: rgba(52,204,181,.12); border: 1px solid rgba(52,204,181,.28);
  font-variant-numeric: tabular-nums;
}

/* —— 降低动效偏好 —— */
@media (prefers-reduced-motion: reduce) {
  #view .card { animation: none !important; }
  .kpi, .pcard, .legend-chip, .kpi::after { transition: none !important; }
}
