/* 综测工时台 — 样式表 */
:root {
  --ink: #171a23;
  --ink-2: #4b5364;
  --ink-3: #7c8598;
  --line: #e5e8f0;
  --line-2: #eef0f6;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --brand: #3b55d4;
  --brand-ink: #2c41a8;
  --brand-soft: #eef1fe;
  --ok: #1f8a55;
  --ok-soft: #e8f6ee;
  --warn: #a86412;
  --warn-soft: #fdf3e3;
  --danger: #c23b3b;
  --danger-soft: #fdecec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 26, 35, .04), 0 8px 24px -12px rgba(23, 26, 35, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 启动 ---------- */
.booting {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.boot-mark {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
.boot-text { color: var(--ink-3); font-size: 13px; }

/* ---------- 登录 ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center; max-width: 1120px; margin: 0 auto;
  padding: 48px 32px;
}
.auth-brand .brand-mark {
  width: 46px; height: 46px; border-radius: 13px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700;
  margin-bottom: 22px;
}
.auth-brand h1 { font-size: 34px; line-height: 1.25; }
.brand-sub { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.brand-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.brand-points li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: grid; gap: 2px;
}
.brand-points b { font-size: 13px; color: var(--brand-ink); }
.brand-points span { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.brand-note { margin-top: 22px; font-size: 12px; color: var(--ink-3); }

.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 11px; }
.auth-tab {
  flex: 1; border: 0; background: transparent; padding: 9px 0; border-radius: 8px;
  font-size: 13px; color: var(--ink-2); font-weight: 500; white-space: nowrap;
}
.auth-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-panel { margin-top: 22px; display: grid; gap: 16px; }
.auth-hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.field > label .opt {
  font-weight: 400; color: var(--ink-3); font-size: 11.5px; margin-left: 7px;
  background: var(--line-2); padding: 1px 6px; border-radius: 5px;
}

/* ---------- 表单 ---------- */
.field { display: grid; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 85, 212, .1);
}
.field-hint { font-size: 12px; color: var(--ink-3); }

/* 身份选择卡片 */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt {
  text-align: left; padding: 12px 14px; border: 1px solid var(--line);
  background: #fff; border-radius: 11px; display: grid; gap: 4px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.role-opt b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.role-opt span { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.role-opt.is-active {
  border-color: var(--brand); background: rgba(59, 85, 212, .06);
  box-shadow: 0 0 0 3px rgba(59, 85, 212, .1);
}
.role-opt.is-active b { color: var(--brand); }
.role-opt:disabled { opacity: .5; }
@media (max-width: 560px) { .role-pick { grid-template-columns: 1fr; } }
.field-error { font-size: 12px; color: var(--danger); min-height: 0; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.btn-primary {
  width: 100%; padding: 11px 16px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--brand-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #b9c2e8; cursor: not-allowed; }

.btn-ghost {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2); font-size: 13px; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost:disabled { color: var(--ink-3); border-color: var(--line-2); cursor: not-allowed; }

.btn-solid {
  padding: 9px 15px; border: 0; border-radius: 9px; background: var(--brand);
  color: #fff; font-size: 13px; font-weight: 600;
}
.btn-solid:hover { background: var(--brand-ink); }
.btn-solid:disabled { background: #b9c2e8; cursor: not-allowed; }

.btn-mini {
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font-size: 12px; color: var(--ink-2);
}
.btn-mini:hover { border-color: var(--brand); color: var(--brand); }
.btn-mini.danger:hover { border-color: var(--danger); color: var(--danger); }

.btn-wechat {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border: 0; border-radius: 10px;
  background: #1aad19; color: #fff; font-size: 14px; font-weight: 600;
}
.btn-wechat:hover { background: #159a15; }

.btn-link { background: none; border: 0; color: var(--ink-3); font-size: 13px; padding: 4px 6px; }
a.btn-link { text-decoration: none; display: inline-block; line-height: 1.6; }
a.btn-link:hover { color: var(--brand); }
.btn-link:hover { color: var(--danger); }

.auth-error {
  margin-top: 16px; padding: 10px 12px; border-radius: 9px;
  background: var(--danger-soft); color: var(--danger); font-size: 12.5px;
}

/* ---------- 首次资料 ---------- */
.onboard-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.onboard-card {
  width: 100%; max-width: 520px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow);
}
.onboard-head h2 { font-size: 22px; }
.onboard-head p { margin-top: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.onboard-tip {
  margin: 20px 0; padding: 11px 14px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; line-height: 1.65;
}
#onboard-form { display: grid; gap: 16px; }

/* ---------- 应用外壳 ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; margin: 0; }
.brand-name { font-size: 14.5px; font-weight: 650; }
.brand-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-right { display: flex; align-items: center; gap: 8px; }
.role-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 600;
}
.role-chip.is-admin { background: #eaf3ff; color: #1c5fb0; }

.tabbar {
  max-width: 1180px; margin: 0 auto; padding: 0 24px 0;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: none; padding: 10px 14px 12px; font-size: 13.5px;
  color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--ink-2); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.main { flex: 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: 24px; }

/* ---------- 通用块 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.page-head .sub { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 15px; }
.card-head .sub { font-size: 12px; color: var(--ink-3); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat .k { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 680; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.stat .d { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px;
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: #fbfcfe;
}
table.data td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafbfe; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .strong { font-weight: 600; }
.cell-muted { color: var(--ink-3); }
.cell-wrap { max-width: 260px; }

.badge {
  display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }

.empty {
  text-align: center; padding: 46px 20px; color: var(--ink-3); font-size: 13px;
}
.empty .big { font-size: 15px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 13px; color: var(--ink); outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--brand); }
.toolbar .grow { flex: 1; min-width: 160px; }

/* ---------- 导入 ---------- */
.dropzone {
  border: 1.5px dashed #c8d0e4; border-radius: var(--radius);
  padding: 40px 24px; text-align: center; background: #fafbff;
  transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-title { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.dropzone .dz-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.dz-icon {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}

.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.step {
  font-size: 12px; color: var(--ink-3); padding: 5px 11px; border-radius: 20px;
  background: var(--line-2);
}
.step.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.step.is-done { background: var(--ok-soft); color: var(--ok); }

.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.map-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
}
.map-item .target { font-size: 12.5px; font-weight: 600; }
.map-item .target small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; }
.map-item .req { color: var(--danger); }
.map-item select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: #fff; }

.preview-note {
  font-size: 12.5px; color: var(--ink-2); background: var(--warn-soft);
  border-radius: 10px; padding: 10px 13px; line-height: 1.7;
}

/* ---------- 进度条 / 分布 ---------- */
.bar-row { display: grid; grid-template-columns: 120px 1fr 74px; gap: 12px; align-items: center; padding: 7px 0; }
.bar-row .name { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--brand); }
.bar-row .val { font-size: 12.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 学生端 ---------- */
.hero {
  background: linear-gradient(135deg, #3b55d4, #5b7bea);
  color: #fff; border-radius: 18px; padding: 26px 28px; margin-bottom: 16px;
  box-shadow: 0 18px 40px -24px rgba(59,85,212,.7);
}
.hero .h-k { font-size: 12.5px; opacity: .82; }
.hero .h-v { font-size: 42px; font-weight: 700; line-height: 1.15; margin-top: 4px; letter-spacing: -.02em; }
.hero .h-v small { font-size: 15px; font-weight: 500; opacity: .85; margin-left: 5px; }
.hero .h-meta { margin-top: 10px; font-size: 12.5px; opacity: .88; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-split { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; }

.cat-list { display: grid; gap: 10px; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
}
.cat-item .c-name { font-size: 13.5px; font-weight: 600; }
.cat-item .c-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cat-item .c-pts { font-size: 17px; font-weight: 680; color: var(--brand-ink); white-space: nowrap; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1.5px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -21px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  border: 2px solid var(--brand);
}
.tl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-title { font-size: 14px; font-weight: 600; }
.tl-date { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-body { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 模态 / 提示 ---------- */
.modal-host {
  position: fixed; inset: 0; z-index: 90; background: rgba(18,22,33,.44);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 88vh; overflow: auto; box-shadow: 0 24px 60px -20px rgba(0,0,0,.4);
}
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 15.5px; }
.modal-body { padding: 20px 22px; display: grid; gap: 14px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-close { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-3); padding: 2px 6px; }

.toast-host {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 120; display: grid; gap: 8px; width: max-content; max-width: 90vw;
}
.toast {
  background: #1d2230; color: #fff; font-size: 13px; padding: 10px 16px;
  border-radius: 10px; box-shadow: 0 10px 28px -10px rgba(0,0,0,.5);
  animation: rise .22s ease-out;
}
.toast.ok { background: #14663f; }
.toast.err { background: #a52a2a; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.loading-inline { padding: 40px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; max-width: 480px; }
  .auth-brand h1 { font-size: 27px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main { padding: 16px; }
  .header-inner { padding: 10px 16px; }
  .tabbar { padding: 0 12px; }
  .hero { padding: 22px; }
  .hero .h-v { font-size: 34px; }
  .bar-row { grid-template-columns: 84px 1fr 64px; }
}
@media (max-width: 520px) {
  .stat .v { font-size: 22px; }
  .map-item { grid-template-columns: 1fr; }
  .brand-meta { display: none; }
}

/* ---------- 分段切换（资料与答疑内部 tab） ---------- */
.seg { display: inline-flex; background: var(--line-2); padding: 3px; border-radius: 10px; gap: 2px; }
.seg-btn {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 500;
}
.seg-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg-num { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.seg-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- 资料库 ---------- */
.kb-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.kb-drop {
  display: block; border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 26px 18px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.kb-drop:hover, .kb-drop.is-over { border-color: var(--brand); background: rgba(59,85,212,.05); }
.kb-drop-in { display: grid; gap: 6px; }
.kb-drop-in b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.kb-drop-in span { font-size: 12px; color: var(--ink-3); }
.kb-prev {
  max-height: 150px; overflow: auto; background: #f7f8fb; border-radius: 9px;
  padding: 11px 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8;
  white-space: pre-wrap; word-break: break-all;
}
.kb-doc {
  max-height: 54vh; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-size: 13px; line-height: 1.85; color: var(--ink-2); background: #f7f8fb;
  border-radius: 10px; padding: 14px 16px;
}
.kb-hit { padding: 11px 0; border-bottom: 1px solid var(--line); }
.kb-hit:last-child { border-bottom: 0; }
.kb-hit-t { font-size: 12px; color: var(--brand); font-weight: 600; margin-bottom: 4px; }
.kb-hit-b { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }

/* 查找文件（辅导员端 / 学生端共用） */
.kb-find-bar { display: flex; gap: 8px; align-items: center; }
.kb-find-bar input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; font: inherit; font-size: 13px;
  color: var(--ink); background: #f7f8fb; border: 1px solid var(--line); border-radius: 9px;
}
.kb-find-bar input:focus { outline: none; border-color: var(--brand); background: #fff; }
.kb-find-bar .btn-solid, .kb-find-bar .btn-ghost { height: 36px; white-space: nowrap; }
.kb-flist { margin-top: 14px; }
.kb-fitem { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.kb-fitem:first-child { border-top: 0; }
.kb-fhead {
  width: 100%; border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; gap: 10px; text-align: left; font: inherit;
}
.kb-fname { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.kb-fhead:hover .kb-fname { color: var(--brand); }
.kb-fmeta { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.kb-fgo { font-size: 12px; color: var(--brand); white-space: nowrap; }
.kb-fseg {
  margin: 6px 0 0 2px; padding-left: 9px; border-left: 2px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7; word-break: break-word;
}
.kb-fseg-dim { color: var(--ink-3); }
.kb-find mark, .kb-doc mark { background: #fff2b8; color: #6b4a00; border-radius: 3px; padding: 0 1px; }

/* 登录页网络自检提示 */
.net-warn {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #f0d9a8; color: #7a5b12;
  font-size: 12.5px; line-height: 1.7;
}
.net-warn code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: rgba(122, 91, 18, .1); padding: 1px 5px; border-radius: 4px;
}
.net-warn .net-retry {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  border: 1px solid #d9b862; border-radius: 6px; background: #fff;
  color: #7a5b12; font-size: 12px; cursor: pointer; font-family: inherit;
}
.net-warn .net-retry:hover { background: #fdf3d8; }

/* ---------- 问答 ---------- */
.qa-item { border-bottom: 1px solid var(--line); }
.qa-item:last-child { border-bottom: 0; }
.qa-qrow {
  width: 100%; border: 0; background: none; text-align: left;
  padding: 13px 0; display: flex; align-items: flex-start; gap: 12px; justify-content: space-between;
}
.qa-qtext { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.6; }
.qa-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.qa-caret { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.qa-arow {
  padding: 0 0 15px 0; font-size: 13px; color: var(--ink-2); line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}
.qa-from { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }

.qa-similar {
  margin-top: 14px; border: 1px solid rgba(59,85,212,.28);
  background: rgba(59,85,212,.045); border-radius: 12px; padding: 14px 16px;
}
.qa-similar-h { font-size: 12px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.qa-similar-q { font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.qa-similar-a {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.8; white-space: pre-wrap;
  background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.qa-similar-b { display: flex; gap: 8px; flex-wrap: wrap; }

.qa-admin { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa-admin:last-child { border-bottom: 0; }
.qa-admin-h { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.qa-admin-q { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.6; }
.qa-admin-a {
  margin-top: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8;
  background: #f7f8fb; border-radius: 9px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word;
}
.qa-admin-b { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.qa-quote {
  font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.65;
  border-left: 3px solid var(--brand); padding-left: 12px;
}
.qa-merged {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
}
.qa-merged:last-child { border-bottom: 0; }

/* ---------- 公告 ---------- */
.ann-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ann-item:last-child { border-bottom: 0; }
.ann-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.ann-head b { font-size: 13.5px; color: var(--ink); }
.ann-date { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.ann-body {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}
.ann-card { border: 1px solid rgba(59,85,212,.18); }

.modal.is-wide { max-width: 780px; }

@media (max-width: 860px) {
  .kb-grid { grid-template-columns: 1fr; }
}
