/* ============ 345VIP 门户 · 全局 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1115; --panel: #161a21; --panel2: #1b2330; --border: #232a35;
  --txt: #e6e8eb; --sub: #9aa0a6; --accent: #4ea1ff; --accent2: #6fb2ff;
  --green: #3ad07a; --green2: #5ee0a0; --red: #ff6b6b; --yellow: #f5c451;
}
body {
  font-family: -apple-system, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--txt); line-height: 1.6; font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select { font-family: inherit; }

/* ============ 登录/注册 ============ */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-brand {
  flex: 1; background: linear-gradient(135deg, #11202f, #0c1620);
  padding: 60px 50px; display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--border);
}
.auth-brand h1 { font-size: 34px; letter-spacing: 1px; }
.auth-brand h1 .num { color: var(--accent); }
.auth-brand p { color: var(--sub); margin-top: 14px; max-width: 420px; }
.auth-points { margin-top: 30px; }
.auth-points li { list-style: none; color: #cdd2d8; padding: 8px 0; border-bottom: 1px solid var(--border); }
.auth-points li b { color: var(--green); margin-right: 8px; }
.auth-foot { color: #5a6068; font-size: 12px; }
.auth-form {
  width: 440px; max-width: 100%; padding: 70px 50px; display: flex; flex-direction: column; justify-content: center;
}
.auth-form h2 { font-size: 24px; margin-bottom: 6px; }
.auth-form .hint { color: var(--sub); font-size: 13px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.field input {
  width: 100%; background: #0f141b; border: 1px solid var(--border); color: var(--txt);
  padding: 11px 13px; border-radius: 8px; font-size: 14px; outline: none;
}
.field input:focus { border-color: var(--accent); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--sub); margin: 6px 0 18px; }
.consent input { margin-top: 3px; }
.btn-primary {
  width: 100%; background: var(--accent); color: #06121f; border: none; padding: 12px;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-primary:hover { background: var(--accent2); }
.auth-switch { text-align: center; color: var(--sub); font-size: 13px; margin-top: 18px; }
.auth-switch a { color: var(--accent); cursor: pointer; }
.auth-err { color: var(--red); font-size: 13px; margin-bottom: 12px; min-height: 18px; }

/* ============ 应用框架 ============ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: var(--panel); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { font-size: 19px; font-weight: 700; padding: 6px 10px 18px; }
.sidebar .logo .num { color: var(--accent); }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px;
  color: var(--sub); cursor: pointer; margin-bottom: 4px; font-size: 14px;
}
.nav-item:hover { background: var(--panel2); color: var(--txt); }
.nav-item.active { background: #16202c; color: var(--accent); font-weight: 600; }
.nav-item .ic { width: 18px; text-align: center; }
.sidebar .spacer { flex: 1; }
.sidebar .ver { color: #5a6068; font-size: 11px; padding: 10px; }

.main { flex: 1; display: flex; flex-direction: column; }
.topbar {
  height: 58px; border-bottom: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; padding: 0 26px; background: var(--panel); position: sticky; top: 0; z-index: 10;
}
.topbar .page-title { font-size: 17px; font-weight: 600; }
.topbar .user { display: flex; align-items: center; gap: 12px; color: var(--sub); font-size: 13px; }
.topbar .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #06121f; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.topbar .logout { color: var(--sub); cursor: pointer; border: 1px solid var(--border); padding: 5px 12px; border-radius: 7px; }
.topbar .logout:hover { color: var(--txt); border-color: var(--accent); }
.content { padding: 26px; max-width: 1100px; width: 100%; }
.page-head { margin-bottom: 20px; }
.page-head h2 { font-size: 22px; }
.page-head p { color: var(--sub); font-size: 13px; margin-top: 4px; }

/* ============ 卡片/网格 ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat .k { color: var(--sub); font-size: 13px; }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat .v.accent { color: var(--accent); }
.stat .v.green { color: var(--green); }
.stat .sub { color: var(--sub); font-size: 12px; margin-top: 4px; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 22px; }
.panel h3 { font-size: 16px; margin-bottom: 14px; }
.panel h3 .tag { font-size: 11px; color: var(--green); background: #16202c; border: 1px solid #2a4a6a; padding: 2px 8px; border-radius: 999px; margin-left: 8px; font-weight: 500; }

/* 线索漏斗 */
.funnel { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.funnel .bar { flex: 1; background: linear-gradient(180deg, var(--accent), #2c6db0); border-radius: 6px 6px 0 0; position: relative; min-height: 8px; }
.funnel .bar.green { background: linear-gradient(180deg, var(--green), #1f8f54); }
.funnel .bar.red { background: linear-gradient(180deg, #ff8a8a, #c24a4a); }
.funnel .bar .lbl { position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--sub); }
.funnel-wrap { padding-bottom: 34px; }

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; color: var(--sub); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.tbl td { padding: 11px 12px; border-bottom: 1px solid #1b212b; }
table.tbl tr:hover td { background: #131820; }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.badge.ok { background: #16202c; color: var(--green); border: 1px solid #2a4a6a; }
.badge.warn { background: #2a2415; color: var(--yellow); border: 1px solid #4a3f1a; }
.badge.gray { background: #1b212b; color: var(--sub); border: 1px solid var(--border); }
.badge.red { background: #2a1518; color: var(--red); border: 1px solid #4a1a1f; }

/* 意向客户网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card .top { display: flex; align-items: center; justify-content: space-between; }
.card .name { font-size: 18px; font-weight: 700; }
.card .plat { font-size: 11px; color: #6b93c4; background: #16202c; border: 1px solid #233143; padding: 2px 8px; border-radius: 999px; }
.card .score-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.bar { flex: 1; height: 6px; background: #0f1115; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #23303f; color: #cdd2d8; border: 1px solid var(--border); }
.chip.primary { background: #16202c; color: var(--accent2); border-color: #2a4a6a; font-weight: 600; }
.contact { font-size: 12px; color: var(--sub); }
.contact b { color: #cdd2d8; font-weight: 500; }
.card button.mk { margin-top: 4px; background: var(--accent); color: #06121f; border: none; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.card button.mk:hover { background: var(--accent2); }

/* 设置/平台 列表 */
.row-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #1b212b; }
.row-item:last-child { border-bottom: none; }
.row-item .left .t { font-size: 14px; }
.row-item .left .d { color: var(--sub); font-size: 12px; margin-top: 3px; }
.toggle { width: 44px; height: 24px; border-radius: 999px; background: #2a3340; position: relative; cursor: pointer; transition: .2s; border: none; }
.toggle.on { background: var(--green); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle.on::after { left: 23px; }
.btn-line { background: transparent; color: var(--accent); border: 1px solid #2a4a6a; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.btn-line:hover { background: #16202c; }
.btn-line.red { color: var(--red); border-color: #4a1a1f; }
.btn-line.red:hover { background: #2a1518; }

/* 话术弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.62); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-mask.show { display: flex; }
.modal { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 580px; max-width: 92vw; max-height: 88vh; overflow-y: auto; }
.modal-close { position: absolute; top: 8px; right: 14px; background: none; border: none; color: var(--sub); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--txt); }
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.modal .sub { color: var(--sub); font-size: 12px; margin-bottom: 14px; }
.seg { margin-bottom: 14px; }
.seg .lbl { font-size: 12px; color: #6b93c4; margin-bottom: 5px; font-weight: 600; }
.seg .txt { font-size: 14px; color: var(--txt); background: #0f1115; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.seg ul { margin: 0; padding-left: 18px; }
.seg ul li { font-size: 14px; color: var(--txt); margin-bottom: 4px; }
.full { background: #0f141b; border: 1px solid #2a4a6a; border-radius: 8px; padding: 12px; font-size: 14px; color: #d8e6f5; white-space: pre-wrap; line-height: 1.7; margin-bottom: 14px; }
.note { font-size: 11px; color: #6b7280; margin-bottom: 14px; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions button { background: var(--green); color: #062012; border: none; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.actions button:hover { background: var(--green2); }
.actions .ghost { background: transparent; color: var(--sub); border: 1px solid var(--border); }
.actions .ghost:hover { color: var(--txt); }
.actions .ghost.locked { color: #5a6068; cursor: not-allowed; border-color: #1b212b; }
.copied { color: var(--green); font-size: 13px; }

/* 营销顾问工作台 */
.workbench { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.lead-pick { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; max-height: 520px; overflow-y: auto; }
.lead-pick .pi { padding: 10px 12px; border-radius: 8px; cursor: pointer; margin-bottom: 6px; border: 1px solid transparent; }
.lead-pick .pi:hover { background: var(--panel2); }
.lead-pick .pi.sel { background: #16202c; border-color: #2a4a6a; }
.lead-pick .pi .n { font-weight: 600; }
.lead-pick .pi .m { font-size: 11px; color: var(--sub); }
.wb-out { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.wb-empty { color: var(--sub); text-align: center; padding: 60px 0; }

.note-box { background: var(--panel2); border: 1px solid var(--border); border-left: 3px solid var(--yellow); padding: 11px 14px; border-radius: 6px; font-size: 12px; color: #d8d0b8; margin-bottom: 18px; }

/* ============ 平台接入升级 ============ */
.intro-hero { background: linear-gradient(135deg, #11202f, #0e1822); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.intro-hero .ih-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.intro-hero .ih-title .num { color: var(--accent); }
.intro-hero p { color: #cdd2d8; font-size: 13px; line-height: 1.8; }
.intro-hero p b { color: var(--accent2); }
.intro-hero .ih-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.tbl-scroll { overflow-x: auto; }
code.hook-url { display: inline-block; background: #0f141b; border: 1px solid var(--border); color: #9fd0ff; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-family: ui-monospace, Menlo, monospace; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.copy-inline { background: transparent; border: 1px solid #2a4a6a; color: var(--accent); font-size: 11px; padding: 3px 9px; border-radius: 6px; cursor: pointer; margin-left: 6px; vertical-align: middle; }
.copy-inline:hover { background: #16202c; }

.cb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cb-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.cb-card .cb-h { font-size: 14px; font-weight: 600; color: var(--accent2); margin-bottom: 8px; }
.cb-card .cb-b { font-size: 13px; color: var(--sub); line-height: 1.7; }

.acc-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.acc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; background: var(--panel2); font-size: 14px; }
.acc-head:hover { background: #1f2937; }
.acc-ic { color: var(--accent); font-size: 18px; font-weight: 700; }
.acc-body { padding: 14px 18px; background: var(--panel); }
.acc-steps { margin: 0; padding-left: 20px; }
.acc-steps li { font-size: 13px; color: var(--txt); margin-bottom: 8px; line-height: 1.6; }
.acc-note { font-size: 12px; color: var(--sub); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* 平台卡片（可点击展开表格） */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 22px; }
.pf-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; cursor: pointer; }
.pf-card:hover { border-color: #2f3a48; }
.pf-card.open { border-color: #2a4a6a; box-shadow: 0 0 0 1px #2a4a6a; }
.pf-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.pf-name { font-size: 16px; font-weight: 700; }
.pf-right { display: flex; align-items: center; gap: 10px; }
.pf-chevron { color: var(--sub); font-size: 14px; transition: transform .2s; }
.pf-card.open .pf-chevron { transform: rotate(90deg); color: var(--accent); }
.pf-card-sub { padding: 0 18px 14px; color: var(--sub); font-size: 12px; }
.pf-card-body { display: none; padding: 4px 18px 18px; border-top: 1px solid var(--border); }
.pf-card.open .pf-card-body { display: block; }
.pf-tbl { margin-top: 12px; }
.pf-td-k { color: var(--sub); font-weight: 500; white-space: nowrap; width: 130px; }
.pf-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-steps { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pf-steps-h { font-size: 13px; font-weight: 600; color: var(--accent2); margin-bottom: 8px; }

/* 通用弹窗（凭证/扫码/结果）*/
.err { color: var(--red); font-size: 13px; margin: 8px 0; min-height: 16px; }
#genericModal .modal h3 { font-size: 18px; margin-bottom: 8px; }
#genericModal .hint { color: var(--sub); font-size: 13px; margin-bottom: 16px; }
#genericModal .field { margin-bottom: 14px; }

/* 空态（乙方案：demo 空态 / 真实租户未接入） */
.empty-state { padding: 30px 20px; text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin: 6px 0 16px; color: var(--sub); }
.empty-state p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.empty-state .btn-primary { display: inline-block; }

/* 服务态醒目横幅（停服 / 逾期） */
.service-banner {
  background: #2a1518; border: 1px solid #5a1f24; border-left: 4px solid var(--red);
  color: #ffb3b3; border-radius: 10px; padding: 14px 18px; font-size: 15px;
  font-weight: 600; margin-bottom: 20px; line-height: 1.6;
}
.service-banner.warn { background: #2a2415; border-color: #4a3f1a; border-left-color: var(--yellow); color: #f3d99a; font-weight: 500; }
.service-banner .go { display: inline-block; margin-top: 8px; background: var(--red); color: #2a0a0a; border: none; padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.service-banner.warn .go { background: var(--yellow); color: #2a2406; }

/* 本周趋势（按天 有效/高意向） */
.trend { display: flex; align-items: flex-end; gap: 14px; height: 92px; padding: 8px 4px 4px; }
.tcol { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.tbar { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.tbar .bv { width: 12px; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; }
.tbar .bh { width: 12px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.tdate { font-size: 11px; color: var(--sub); margin-top: 6px; }
.legend { font-size: 12px; color: var(--sub); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.legend .dot.green { background: var(--green); }
/* 平台质量 mini-bar */
.mini-bar { display: inline-block; width: 70px; height: 8px; background: var(--panel2); border-radius: 5px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-bar i { display: block; height: 100%; background: var(--green); border-radius: 5px; }

/* 拦截率头版（Spider AF 式招牌条） */
.block-headline {
  display: flex; align-items: center; gap: 18px; margin-bottom: 20px;
  background: linear-gradient(135deg, #14202c, #161b25);
  border: 1px solid #244055; border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 22px;
}
.block-headline .bh-num {
  font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1;
  min-width: 86px; text-align: center; letter-spacing: -1px;
}
.block-headline .bh-txt { font-size: 14px; color: #d6dde6; line-height: 1.6; }
.block-headline .bh-txt b { color: var(--green2); font-size: 16px; }

/* 无效原因拆解条形 */
.reason-bars { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.rbar { display: flex; align-items: center; gap: 12px; }
.rbar .rl { width: 96px; font-size: 13px; color: var(--txt); flex-shrink: 0; }
.rbar .rwrap { flex: 1; display: flex; align-items: center; gap: 10px; }
.rbar .rfill {
  height: 16px; background: linear-gradient(90deg, var(--red), #c24545);
  border-radius: 5px; min-width: 4px; transition: width .3s ease;
}
.rbar .rc { font-size: 13px; color: var(--sub); flex-shrink: 0; white-space: nowrap; }

/* 线索明细：过滤条 + 原因标签 */
.filter-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.filter-bar .fbtn {
  background: var(--panel); border: 1px solid var(--border); color: var(--sub);
  padding: 7px 16px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .15s;
}
.filter-bar .fbtn:hover { color: var(--txt); border-color: #2f3a48; }
.filter-bar .fbtn.active { background: var(--accent); border-color: var(--accent); color: #06121f; font-weight: 600; }
.reason-tag {
  display: inline-block; background: #2a1518; color: #ffb0b0;
  border: 1px solid #4a1f24; border-radius: 999px; padding: 2px 10px; font-size: 12px;
}

/* ============ UI 专家优化补丁（入场动效 / 微交互 / 响应式 / 无障碍）============ */

/* 文本辅助类（原 .muted / .d 漏定义，导致灰字过亮） */
.muted { color: var(--sub); }
.d { color: var(--sub); font-size: 12px; }

/* 数字等宽，避免跳动 */
.stat .v { font-variant-numeric: tabular-nums; }

/* 加载态：转圈 */
.loading { display: flex; align-items: center; justify-content: center; min-height: 220px; color: var(--sub); font-size: 14px; }
.loading::after {
  content: ""; width: 20px; height: 20px; margin-left: 10px;
  border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 入场淡入上浮 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.content > * { animation: fadeUp .35s ease both; }
.cards .stat { animation: fadeUp .42s ease both; }
.cards .stat:nth-child(1) { animation-delay: .03s; }
.cards .stat:nth-child(2) { animation-delay: .08s; }
.cards .stat:nth-child(3) { animation-delay: .13s; }
.cards .stat:nth-child(4) { animation-delay: .18s; }
.cards .stat:nth-child(5) { animation-delay: .23s; }
.cards .stat:nth-child(6) { animation-delay: .28s; }
.grid .card { animation: fadeUp .4s ease both; }
.grid .card:nth-child(1) { animation-delay: .04s; }
.grid .card:nth-child(2) { animation-delay: .09s; }
.grid .card:nth-child(3) { animation-delay: .14s; }
.grid .card:nth-child(4) { animation-delay: .19s; }
.pf-grid .pf-card { animation: fadeUp .4s ease both; }
.pf-grid .pf-card:nth-child(1) { animation-delay: .04s; }
.pf-grid .pf-card:nth-child(2) { animation-delay: .09s; }
.pf-grid .pf-card:nth-child(3) { animation-delay: .14s; }
.pf-grid .pf-card:nth-child(4) { animation-delay: .19s; }

/* 条形「从 0 长出」过渡（growBars 在渲染后触发） */
.rfill, .funnel .bar, .tbar > div, .card .bar > i, .mini-bar > i {
  transition: width .6s cubic-bezier(.2,.8,.2,1), height .6s cubic-bezier(.2,.8,.2,1);
}

/* 微交互：导航 / 卡片 / 按钮 */
.nav-item { transition: background .15s, color .15s; }
.card, .pf-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover, .pf-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.btn-primary:active, .btn-line:active, .card button.mk:active, .toggle:active, .copy-inline:active { transform: translateY(1px); }
.btn-primary:focus-visible, .btn-line:focus-visible, .card button.mk:focus-visible,
.copy-inline:focus-visible, input:focus-visible, select:focus-visible, .logout:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* 响应式：平板 / 手机 */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 2px; }
  .sidebar .logo { padding: 6px 10px; width: 100%; }
  .nav-item { margin-bottom: 0; }
  .sidebar .spacer { display: none; }
  .sidebar .ver { display: none; }
  .content { padding: 16px; max-width: 100%; }
}
@media (max-width: 720px) {
  .auth-wrap { flex-direction: column; }
  .auth-brand { padding: 40px 24px; }
  .auth-form { width: 100%; padding: 36px 22px; }
  .topbar { padding: 0 16px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .workbench { grid-template-columns: 1fr; }
  .cb-grid { grid-template-columns: 1fr; }
}

/* 无障碍：尊重「减少动效」系统偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============ 登录/注册页增强（UI 专家打磨 · 2026-07-21） ============ */
.auth-wrap { animation: fadeUp .4s ease both; }
.auth-brand { position: relative; overflow: hidden; }
.auth-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 90% at 15% 0%, rgba(78,161,255,0.12), transparent 58%),
    radial-gradient(110% 80% at 95% 100%, rgba(58,208,122,0.10), transparent 55%);
}
.auth-brand > div { position: relative; z-index: 1; }
.auth-brand h1 { font-size: 42px; letter-spacing: .5px; }
.auth-brand h1 .num { text-shadow: 0 0 28px rgba(78,161,255,0.5); }
.auth-points { display: grid; gap: 12px; margin-top: 34px; }
.auth-points li {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px; font-size: 14px; color: var(--sub);
  transition: border-color .2s, color .2s, transform .2s;
}
.auth-points li b {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(58,208,122,0.14); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.auth-points li:hover { border-color: var(--accent); color: var(--txt); transform: translateX(3px); }
.auth-foot { display: flex; align-items: center; gap: 8px; }
.auth-foot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.auth-form { animation: fadeUp .5s ease both; }
.auth-form h2, .auth-form .hint, .auth-form .field, .auth-form .consent,
.auth-form .auth-switch, .auth-form .btn-primary, .auth-form .auth-err {
  animation: fadeUp .5s ease both;
}

