/* =========================================================================
   西门子 SI 渠道销售培训考核平台 —— 品牌样式
   品牌色：Siemens Petrol (#009999) / Deep Blue (#000028) / Bright Green
   ========================================================================= */
:root {
  --petrol:        #009999;
  --petrol-dark:   #007480;
  --petrol-darker: #005159;
  --deep:          #000028;   /* 西门子深蓝 */
  --deep-2:        #001f39;
  --green:         #00cccc;
  --green-bright:  #66e3c8;
  --accent:        #ec6602;   /* 西门子点缀橙（用于强调/警示） */
  --ink:           #1a1a26;
  --ink-2:         #4a5568;
  --muted:         #6b7280;
  --line:          #e3e7ec;
  --bg:            #f4f6f8;
  --bg-soft:       #eef1f4;
  --card:          #ffffff;
  --ok:            #2e7d32;
  --ok-bg:         #e8f5e9;
  --err:           #c62828;
  --err-bg:        #fdecea;
  --warn:          #b26a00;
  --radius:        14px;
  --radius-sm:     9px;
  --shadow:        0 1px 2px rgba(0,0,40,.06), 0 8px 24px rgba(0,0,40,.06);
  --shadow-lg:     0 12px 40px rgba(0,0,40,.16);
  --maxw:          1160px;
  --header-h:      62px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--petrol-dark); text-decoration: none; }
a:hover { color: var(--petrol); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; color: var(--deep); font-weight: 700; }
img { max-width: 100%; }

/* ----------------------------- 顶部导航 ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep);
  background: linear-gradient(100deg, var(--deep) 0%, var(--deep-2) 60%, var(--petrol-darker) 130%);
  box-shadow: 0 2px 14px rgba(0,0,40,.25);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo {
  font-weight: 800; letter-spacing: .14em; font-size: 21px; color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
}
.brand-sep { width: 1px; height: 24px; background: rgba(255,255,255,.28); }
.brand-sub { font-size: 14px; color: var(--green-bright); font-weight: 600; letter-spacing: .02em; }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.82); font-size: 15px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px; transition: .15s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.10); }
.main-nav a.active { color: #fff; background: rgba(0,204,204,.20); box-shadow: inset 0 -2px 0 var(--green); }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0;
  color: #fff; font-size: 22px; cursor: pointer;
}

/* ----------------------------- 主区与通用 ----------------------------- */
.app-main { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 56px; min-height: 60vh; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head .sub { color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--petrol-dark); font-weight: 700; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.card-hover { transition: transform .16s ease, box-shadow .16s ease, border-color .16s; cursor: pointer; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfe9e9; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  padding: 11px 22px; border-radius: 10px; transition: .15s; white-space: nowrap;
  background: var(--petrol); color: #fff;
}
.btn:hover { background: var(--petrol-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--petrol-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--petrol-dark); border-color: #cdd5dd; }
.btn-dark { background: var(--deep); }
.btn-dark:hover { background: var(--deep-2); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #d65b00; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2);
}
.badge-petrol { background: #e1f3f3; color: var(--petrol-darker); }
.badge-single { background: #e8eefc; color: #2a4ba0; }
.badge-multi  { background: #fdf0e3; color: var(--warn); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-err { background: var(--err-bg); color: var(--err); }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----------------------------- 首页 Hero ----------------------------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, var(--deep) 0%, var(--petrol-darker) 55%, var(--petrol) 130%);
  padding: 46px 44px; margin-bottom: 34px; box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,204,204,.45), transparent 62%); pointer-events: none;
}
.hero .eyebrow { color: var(--green-bright); }
.hero h1 { color: #fff; font-size: 34px; margin: 8px 0 12px; letter-spacing: .01em; }
.hero p { color: rgba(255,255,255,.86); font-size: 16px; max-width: 640px; margin: 0 0 24px; }
.hero .btn-row { position: relative; z-index: 2; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; position: relative; z-index: 2; }
.stat { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 14px 16px; }
.stat .num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat .lbl { font-size: 13px; color: rgba(255,255,255,.8); }

/* 入口大卡 */
.entry-card { display: flex; flex-direction: column; gap: 10px; min-height: 168px; }
.entry-card .ec-icon { font-size: 32px; }
.entry-card h3 { font-size: 20px; margin: 0; }
.entry-card p { color: var(--ink-2); margin: 0; font-size: 14.5px; flex: 1; }
.entry-card .ec-go { color: var(--petrol-dark); font-weight: 700; }

/* 模块卡 */
.mod-card { display: flex; gap: 14px; align-items: flex-start; }
.mod-card .m-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; background: #e1f3f3;
}
.mod-card h4 { margin: 0 0 3px; font-size: 16px; }
.mod-card .m-desc { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.mod-card .m-meta { font-size: 12.5px; color: var(--ink-2); }

/* ----------------------------- 考核设置 ----------------------------- */
.exam-setup .opt-group { margin-bottom: 26px; }
.exam-setup .opt-label { font-weight: 700; color: var(--deep); margin-bottom: 10px; display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.choice {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer;
  background: #fff; transition: .14s; display: flex; flex-direction: column; gap: 4px;
}
.choice:hover { border-color: #b9dede; background: #fafdfd; }
.choice.selected { border-color: var(--petrol); background: #effafa; box-shadow: 0 0 0 3px rgba(0,153,153,.12); }
.choice .c-title { font-weight: 700; color: var(--deep); }
.choice .c-sub { font-size: 12.5px; color: var(--muted); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: #fff; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button.active { background: var(--petrol); color: #fff; }
.seg button + button { border-left: 1px solid var(--line); }

/* ----------------------------- 答题运行 ----------------------------- */
.exam-runtime { display: grid; grid-template-columns: 1fr 240px; gap: 22px; align-items: start; }
.exam-topbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow);
}
.exam-topbar .et-title { font-weight: 800; color: var(--deep); }
.exam-topbar .et-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--petrol-darker); }
.exam-topbar .et-spacer { flex: 1; }
.progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; flex: 1; min-width: 120px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--petrol), var(--green)); border-radius: 999px; transition: width .3s; }

.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.q-index { font-weight: 800; color: var(--petrol-dark); font-size: 18px; }
.q-text { font-size: 18px; font-weight: 600; color: var(--ink); margin: 6px 0 20px; }
.options { display: flex; flex-direction: column; gap: 11px; }
.option {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; transition: .12s; background: #fff;
}
.option:hover { border-color: #b9dede; background: #fafdfd; }
.option.selected { border-color: var(--petrol); background: #effafa; }
.option .opt-key {
  flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink-2); font-weight: 800; font-size: 13px;
}
.option.selected .opt-key { background: var(--petrol); color: #fff; }
.option .opt-text { padding-top: 1px; }
/* 批改态 */
.option.correct { border-color: var(--ok); background: var(--ok-bg); }
.option.correct .opt-key { background: var(--ok); color: #fff; }
.option.wrong { border-color: var(--err); background: var(--err-bg); }
.option.wrong .opt-key { background: var(--err); color: #fff; }
.option.disabled { cursor: default; }

.explain { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: #f3f9f9; border: 1px solid #d5ecec; font-size: 14px; }
.explain .ex-head { font-weight: 700; color: var(--petrol-darker); margin-bottom: 4px; }
.answer-line { margin-top: 14px; font-size: 14.5px; }
.answer-line .ok { color: var(--ok); font-weight: 700; }
.answer-line .err { color: var(--err); font-weight: 700; }

.q-nav-row { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }

/* 答题卡 */
.answer-sheet { position: sticky; top: calc(var(--header-h) + 16px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.answer-sheet h4 { font-size: 14px; margin: 0 0 12px; color: var(--ink-2); }
.sheet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sheet-cell {
  aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--ink-2); display: grid; place-items: center; transition: .12s;
}
.sheet-cell:hover { border-color: var(--petrol); }
.sheet-cell.answered { background: #e1f3f3; border-color: #9fd9d9; color: var(--petrol-darker); }
.sheet-cell.current { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(0,153,153,.18); }
.sheet-cell.correct { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.sheet-cell.wrong { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.sheet-legend { display: flex; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.sheet-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ----------------------------- 成绩结果 ----------------------------- */
.result-hero { text-align: center; padding: 34px; border-radius: 20px; color: #fff; box-shadow: var(--shadow-lg); margin-bottom: 26px; }
.result-hero.pass { background: linear-gradient(120deg, var(--petrol-darker), var(--petrol) 90%); }
.result-hero.fail { background: linear-gradient(120deg, #5a2d2d, #99443b); }
.result-score { font-size: 64px; font-weight: 800; line-height: 1; }
.result-score small { font-size: 22px; opacity: .8; }
.result-grade { font-size: 20px; font-weight: 700; margin-top: 6px; }
.result-meta { display: flex; justify-content: center; gap: 26px; margin-top: 18px; flex-wrap: wrap; opacity: .92; }
.result-meta div b { font-size: 20px; display: block; }
.result-ring { /* simple circular emphasis */ }

.review-q { border-left: 4px solid var(--line); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.review-q.ok { border-color: var(--ok); }
.review-q.bad { border-color: var(--err); }

/* ----------------------------- 资料库 ----------------------------- */
.search-bar { display: flex; gap: 10px; margin-bottom: 22px; }
.search-bar input {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
  background: #fff;
}
.search-bar input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(0,153,153,.12); }

.line-block { margin-bottom: 30px; }
.line-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.line-head .l-icon { font-size: 26px; }
.line-head h3 { margin: 0; }
.line-head .l-desc { color: var(--muted); font-size: 13.5px; }

.cat-block { margin-bottom: 18px; }
.cat-title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--deep); margin: 14px 0 10px; }
.cat-title .code { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--deep); color: #fff; letter-spacing: .04em; }
.cat-title .c-desc { font-weight: 500; color: var(--muted); font-size: 13px; }

.file-card { display: flex; align-items: center; gap: 14px; }
.file-card .f-ic {
  flex: none; width: 42px; height: 50px; border-radius: 7px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #d23f3f, #a02020); font-size: 11px; font-weight: 800; box-shadow: var(--shadow);
}
.file-card .f-main { flex: 1; min-width: 0; }
.file-card .f-title { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card .f-sub { font-size: 12.5px; color: var(--muted); }
.file-card .f-actions { display: flex; gap: 8px; }
.read-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.read-dot.done { background: var(--ok); }

/* ----------------------------- 我的成绩 ----------------------------- */
.record-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.record-table th, .record-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.record-table th { background: var(--bg-soft); color: var(--ink-2); font-weight: 700; }
.record-table tr:last-child td { border-bottom: 0; }
.record-table .score-cell { font-weight: 800; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .es-ic { font-size: 46px; margin-bottom: 10px; }

.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi .k-num { font-size: 30px; font-weight: 800; color: var(--petrol-darker); }
.kpi .k-lbl { color: var(--muted); font-size: 13px; }

/* ----------------------------- 弹窗 ----------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,40,.55); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative; width: min(960px, 94vw); height: min(88vh, 900px); background: #fff;
  border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.modal-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.modal-title { font-weight: 700; color: var(--deep); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-actions { display: flex; gap: 8px; }
.modal-frame { flex: 1; border: 0; width: 100%; background: #525659; }

/* ----------------------------- 页脚 ----------------------------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.72); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.footer-inner strong { color: #fff; letter-spacing: .1em; }
.footer-meta { color: rgba(255,255,255,.5); }

/* ----------------------------- 工具类 ----------------------------- */
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 18px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 26px 0; border: 0; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--petrol-dark); }

/* ============================ 身份芯片 / 导航 ============================ */
.profile-chip {
  margin-left: 8px; background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: .15s;
}
.profile-chip:hover { background: rgba(255,255,255,.2); }
.profile-chip.is-admin { background: rgba(236,102,2,.22); border-color: rgba(236,102,2,.5); }
.main-nav a.nav-admin { color: var(--green-bright); }
.main-nav a.nav-admin.active { background: rgba(236,102,2,.22); box-shadow: inset 0 -2px 0 var(--accent); }

/* ============================ 小弹窗 / 表单 ============================ */
.modal-mini { position: relative; z-index: 2; width: min(440px, 92vw); }
.id-card, .gate-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 28px;
}
.id-card h3 { font-size: 20px; }
.fld-row { display: block; margin-bottom: 14px; }
.fld-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.fld {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
  background: #fff; color: var(--ink);
}
.fld:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(0,153,153,.12); }
select.fld { cursor: pointer; }

/* ============================ HR 后台门控 ============================ */
.gate-wrap { display: grid; place-items: center; padding: 40px 0; }
.gate-card { width: min(420px, 94vw); text-align: center; }
.gate-ic { font-size: 44px; }
.gate-card .fld-row { text-align: left; margin-top: 14px; }
.gate-hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 4px; }
.gate-hint code { background: var(--bg-soft); padding: 2px 8px; border-radius: 6px; color: var(--accent); font-weight: 700; }

/* ============================ HR 后台仪表盘 ============================ */
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 22px; }
.toolbar-label { font-weight: 700; color: var(--deep); margin-right: 4px; }
.admin-grid { align-items: stretch; }
.panel { display: flex; flex-direction: column; }
.panel-head { margin-bottom: 14px; }
.panel-head h3 { margin: 0; font-size: 17px; }
.panel-sub { font-size: 12.5px; color: var(--muted); }

/* 条形图 */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 12px; }
.bar-label { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.bar-track { background: var(--bg-soft); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--petrol), var(--green)); transition: width .5s ease; }
.bar-fill.danger { background: linear-gradient(90deg, #d9772e, var(--accent)); }
.bar-val { text-align: right; font-weight: 800; font-size: 14px; color: var(--deep); font-variant-numeric: tabular-nums; }

/* 环形图 */
.ring-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ring { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring-hole { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.ring-num { font-size: 28px; font-weight: 800; color: var(--petrol-darker); line-height: 1; }
.ring-lbl { font-size: 12px; color: var(--muted); }
.ring-legend { display: flex; flex-direction: column; gap: 6px; }
.lg-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.lg-item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* 正确率标签 */
.rate-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 800; font-size: 12.5px; }
.rate-tag.ok { background: var(--ok-bg); color: var(--ok); }
.rate-tag.mid { background: #fff4e0; color: var(--warn); }
.rate-tag.bad { background: var(--err-bg); color: var(--err); }

/* 难题列表 */
.hard-list { display: flex; flex-direction: column; gap: 10px; }
.hard-item { display: flex; align-items: center; gap: 12px; }
.hard-rank { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.hard-q { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 排行榜 */
.lead-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lead-card { text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, #fafdfd); }
.lead-medal { font-size: 24px; font-weight: 800; color: var(--petrol-dark); }
.lead-medal.m0 { filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.lead-name { font-weight: 700; margin-top: 4px; }
.lead-score { font-size: 20px; font-weight: 800; color: var(--petrol-darker); margin-top: 4px; }

/* 培训建议 / 提示条 */
.insight { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: #fff6ec; border: 1px solid #ffd9b0; font-size: 13.5px; color: #8a4b00; }
.insight b { color: var(--accent); }

.table-scroll { overflow-x: auto; }

/* 可点击行 / 个人详情 / 复制提示 */
.record-table tr.row-click { cursor: pointer; }
.record-table tr.row-click:hover td { background: #eef7f7; }
.detail-id { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(16px);
  background: var(--deep); color: #fff; padding: 11px 20px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; z-index: 300; opacity: 0;
  transition: opacity .28s, transform .28s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ----------------------------- 响应式 ----------------------------- */
@media (max-width: 880px) {
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--deep-2); padding: 8px; display: none; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .nav-toggle { display: block; }
  .exam-runtime { grid-template-columns: 1fr; }
  .answer-sheet { position: static; order: -1; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2,1fr); }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 26px; }
  .lead-row { grid-template-columns: repeat(2,1fr); }
  .bar-row { grid-template-columns: 104px 1fr 44px; gap: 8px; }
  .profile-chip { font-size: 12px; padding: 6px 10px; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .result-meta { gap: 16px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
}
