:root {
  --brand: #0b3d91;
  --brand-2: #2b78c5;
  --brand-soft: #eaf2fd;
  --ink: #1f2329;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --line: #e5e8ef;
  --bg: #f4f6fa;
  --card: #ffffff;
  --warn-soft: #fff7e8;
  --warn-ink: #8a5a00;
  --lock-soft: #f7f8fa;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 32, 64, .06);
  /* 资讯正文排版口径：改这三行即可全局调整 */



}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 16px; }

.topbar {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand small { font-size: 13px; opacity: .72; font-weight: 400; }

.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 10px;
}
.nav a.on { background: rgba(255, 255, 255, .16); color: #fff; }
.nav a:hover { color: #fff; }

.topbar .spacer { flex: 1; }
.login-btn {
  border: 0;
  background: #fff;
  color: var(--brand);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.login-btn:hover { background: var(--brand-soft); }
.login-btn.signed { background: #ffd76e; color: #5a3c00; font-weight: 600; }
.login-btn.signed:hover { background: #ffcf4d; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions .who { font-size: 14px; color: #cfe0f5; white-space: nowrap; }

/* 数据页顶部绿色提示条：已购家长从这里登录 */
.login-tip {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 10px 14px;
  border: 1px solid #c3e4d0; border-radius: 10px;
  background: #e9f7ef; color: #1d6b45;
  font-size: 14px; line-height: 1.6;
  position: sticky; top: 62px; z-index: 20;
}
.login-tip span { flex: 1; min-width: 0; }
.login-tip-btn {
  flex: none; display: inline-flex; align-items: center;
  border: 0; border-radius: 999px; text-decoration: none;
  padding: 7px 18px; background: #2f8a5b; color: #fff;
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.login-tip-btn:hover { background: #28784f; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }

.hero {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.hero h1 { margin: 0 0 6px; font-size: 20px; font-weight: 500; }
.hero p { margin: 0; color: var(--ink-2); font-size: 15px; }
.stats { display: flex; gap: 26px; }
.stat b { display: block; font-size: 22px; font-weight: 500; color: var(--brand); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-3); }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.tabs a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tabs a em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.tabs a.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tabs a.on em { color: rgba(255, 255, 255, .7); }

.notice {
  margin: 14px 0 0;
  background: var(--warn-soft);
  color: var(--warn-ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.notice.hide { display: none; }

.toolbar {
  margin: 14px 0 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.search {
  flex: 1 1 240px;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
  background: #fbfcfe;
}
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.search svg { flex: none; opacity: .45; }

/* 让筛选下拉直接成为工具栏的弹性子项，避免外层 span 撑破宽度 */
#filters { display: contents; }

.toolbar select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 0 10px;
  color: var(--ink);
  max-width: 150px;
}
.count { color: var(--ink-3); font-size: 14px; margin: 12px 2px 8px; }
.count b { color: var(--brand); font-weight: 500; }

.table-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; font-size: 15px; }
thead th {
  background: #f7f9fc;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody tr { border-bottom: 1px solid #f0f2f7; cursor: pointer; }
tbody tr:hover { background: #f8fbff; }
tbody tr:last-child { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.group { font-weight: 500; }
td.blank { color: #c0c6d0; }
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
}
.empty { padding: 48px; text-align: center; color: var(--ink-3); }

.pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0 0; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 36px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 14px;
}
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 服务端渲染的文章列表用链接分页，视觉与资讯页按钮一致 */
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 展开详情按钮：桌面表格末列，手机卡片里独占一行靠右 */
.col-action { width: 92px; }
.row-action { text-align: right; white-space: nowrap; }
.row-open {
  border: 1px solid var(--brand-2); background: #fff; color: var(--brand);
  border-radius: 999px; padding: 5px 13px; font-size: 13px; line-height: 1.4;
}
.row-open:hover { background: var(--brand-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 资讯 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 7px 15px; font-size: 15px; line-height: 1;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.article-list { display: grid; gap: 14px; }
.article-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  cursor: pointer;
  transition: box-shadow .16s, transform .16s;
}
.article-card:hover { box-shadow: 0 8px 22px rgba(16, 32, 64, .11); transform: translateY(-1px); }
/* 配图可选：有图放右侧缩略图，没有就是纯文字卡片 */
.article-card .thumb {
  width: 150px; height: 104px; flex: none;
  border-radius: 10px; overflow: hidden; background: #eef2f8;
}
.article-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-card.no-cover h3 { font-size: 19px; }
.article-card .cover {
  width: 150px; height: 102px; flex: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center;
  padding: 10px; letter-spacing: .5px;
}
.article-card .card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; font-weight: 600; }
.article-card p {
  margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .meta {
  margin-top: auto; padding-top: 10px;
  font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 12px;
}
.article-card .meta .tag { font-size: 13px; padding: 2px 9px; }

/* 抽屉 / 弹层 */
.mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .42);
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40;
}
.mask.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 50; background: var(--card);
  top: 0; right: 0; height: 100%; width: 520px; max-width: 94vw;
  transform: translateX(102%); transition: transform .22s ease;
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head {
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  background: var(--brand); color: #fff;
}
.drawer-head h2 { margin: 0; font-size: 19px; font-weight: 500; }
.drawer-head .sub { font-size: 13px; opacity: .8; margin-top: 4px; }
.drawer-body { padding: 18px 20px 28px; overflow: auto; }
.close-x {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 17px; line-height: 1;
}

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv div { background: #f7f9fc; border-radius: 10px; padding: 10px 12px; }
.kv small { display: block; color: var(--ink-3); font-size: 13px; }
.kv b { font-size: 17px; font-weight: 500; }
.kv b.blank { color: #c0c6d0; }

.locked { margin-top: 18px; border: 1px dashed #d6dbe5; border-radius: 12px; background: var(--lock-soft); padding: 16px; }
.locked h4 { margin: 0 0 6px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.locked p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.blurline { display: flex; gap: 10px; margin-bottom: 10px; }
.blurline span {
  height: 14px; border-radius: 4px; background: #e3e7ee; flex: 1;
}
.blurline span:nth-child(2) { flex: .7; }
.blurline span:nth-child(3) { flex: .4; }

.btn-primary {
  background: var(--brand); color: #fff; border: 0;
  border-radius: 10px; padding: 11px 18px; font-size: 15px; width: 100%;
}
.btn-primary:hover { background: #0a3479; }
.btn-ghost {
  background: transparent; color: var(--brand);
  border: 1px solid var(--brand); border-radius: 10px;
  padding: 10px 18px; font-size: 15px;
}

.quota { font-size: 13px; color: var(--ink-3); margin-top: 10px; text-align: center; }

/* 文章详情：图文排版
   正文口径（2026-11-01 用户确认）：字号 16px、行间距 1.25、段后一行（1.25em = 20px） */
.reader {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  overflow: auto; transform: translateY(100%); transition: transform .24s ease;
}
.reader.on { transform: none; }
.reader-bar {
  position: sticky; top: 0; z-index: 2;
  height: 52px; padding: 0 18px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.reader-bar button { border: 0; background: transparent; font-size: 16px; color: var(--brand); padding: 6px 2px; }
.reader-bar-title {
  flex: 1; font-size: 15px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reader-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--brand-2); transition: width .1s linear;
}

.reader-inner { max-width: 680px; margin: 0 auto; padding: 26px 20px 80px; }

/* 文章详情页返回按钮：回到与顶部菜单「文章」相同的列表页 */
.post-back { margin: 0 0 18px; }
.post-back a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 18px; border-radius: 999px;
  background: #2f8a5b; color: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .12s;
}
.post-back a:hover { background: #28784f; }
.post { background: var(--card); border-radius: 16px; padding: 34px 38px 40px; box-shadow: var(--shadow); }

.post-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.post-kicker .tag { font-size: 13px; padding: 2px 9px; }
.post-head h1 { margin: 0 0 16px; font-size: 25px; line-height: 1.42; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.post-dek {
  margin: 0; padding: 12px 16px;
  border-left: 3px solid var(--brand-2); border-radius: 0 8px 8px 0;
  background: #f6f9fd; color: var(--ink-2); font-size: 15px; line-height: 1.65;
}

.post-body {
  margin-top: 28px;
  font-size: var(--read-size);
  line-height: var(--read-lh);
  color: #2a2f38; letter-spacing: .2px;
}
.post-body p { margin: 0 0 calc(var(--read-lh) * var(--read-gap) * 1em); }
.post-body h2 {
  margin: 1.7em 0 .9em; padding-left: 12px;
  font-size: 20px; line-height: 1.45; font-weight: 700; color: var(--ink);
  border-left: 3px solid var(--brand);
}
.post-body h3 { margin: 1.5em 0 .7em; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.post-body ul { margin: 0 0 1.25em; padding-left: 1.35em; }
.post-body li { margin: 0 0 .55em; }
.post-body li::marker { color: var(--brand-2); }

/* 图片一律居中，图注居中放在图片下方 */
.post-body .fig { margin: 1.9em 0; text-align: center; }
.post-body .fig img, .post-body .fig svg {
  display: block; margin: 0 auto; max-width: 100%; height: auto; border-radius: 10px;
}
.post-body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.post-body .callout {
  margin: 1.6em 0; padding: 14px 18px;
  background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0;
  font-size: 16px; line-height: 1.65; color: #23345c;
}

.post-cta {
  margin-top: 42px; padding: 24px 26px; border-radius: 14px;
  background: linear-gradient(135deg, #0b3d91 0%, #1f5fae 100%); color: #fff;
}
.post-cta h4 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; font-weight: 600; }
.post-cta p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: #d3e2f8; }
.post-cta .btn-primary { background: #fff; color: var(--brand); font-weight: 600; }
.post-cta .btn-primary:hover { background: #eef4fd; }
.post-cta .hint { margin-top: 10px; font-size: 13px; color: #b3c9e8; text-align: center; }

.post-related { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-related h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 2px; }
.related-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px;
}
.related-item:hover { border-color: var(--brand-2); background: #f8fbff; }
.related-item .tag { display: inline-block; margin-bottom: 6px; font-size: 12px; }
.related-item b { display: block; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }

/* 首页入口引导（面向已开通用户） */
.hero-tip {
  margin: 10px 0 0 !important;
  display: inline-block;
  background: var(--brand-soft);
  border-radius: 8px;
  padding: 7px 12px;
  color: #23345c !important;
  font-size: 14px !important;
}

body.locked { overflow: hidden; }

/* 首屏身份提示条：不遮挡内容，可关闭并记住 */
.entry-tip {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 40px); max-width: 1180px;
  margin: 14px auto 0; padding: 9px 8px 9px 14px;
  background: #eef4fd; border: 1px solid #dbe7f8; border-radius: 10px;
  font-size: 14px; line-height: 1.6; color: #37517a;
}
.entry-tip b { color: var(--brand); font-weight: 600; }
.entry-tip .tip-text-m { display: none; }
.tip-link { margin-left: auto; color: var(--brand); text-decoration: none; white-space: nowrap; font-size: 14px; }
.tip-link:hover { text-decoration: underline; }
.tip-x {
  flex: none; border: 0; background: transparent; cursor: pointer;
  color: #8798b3; font-size: 19px; line-height: 1; padding: 2px 7px; border-radius: 6px;
}
.tip-x:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 40px;
  transform: translate(-50%, 12px);
  max-width: calc(100vw - 40px);
  background: rgba(28, 36, 52, .94); color: #fff;
  font-size: 15px; line-height: 1.6; padding: 12px 20px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 注册墙 */
.sheet {
  position: fixed; z-index: 70; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.98);
  width: 420px; max-width: 92vw;
  background: #fff; border-radius: 16px;
  opacity: 0; pointer-events: none; transition: .18s;
  padding: 24px;
}
.sheet.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.sheet h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.sheet p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.sheet input {
  width: 100%; height: 46px; border: 1px solid var(--line);
  border-radius: 10px; padding: 0 14px; margin-bottom: 12px; background: #fbfcfe;
}
.sheet .hint { font-size: 13px; color: var(--ink-3); margin-top: 10px; text-align: center; }

/* ---------- 详情抽屉：组内专业清单（免费层） ---------- */
.majors { margin-top: 20px; }
.majors h4 {
  margin: 0 0 10px; font-size: 15px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.majors h4 b { color: var(--brand); font-weight: 500; }
.majors-sum { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.major-table { width: 100%; border-collapse: collapse; }
.major-table th {
  font-size: 13px; color: var(--ink-3); font-weight: 400; text-align: left;
  padding: 7px 8px; background: #f7f9fc; border-bottom: 1px solid var(--line);
}
.major-table th:nth-child(2), .major-table th:nth-child(3) { text-align: right; width: 78px; }
.major-table td {
  font-size: 14px; padding: 9px 8px; border-bottom: 1px solid #f0f2f7; line-height: 1.5;
}
.major-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.majors-note { margin: 10px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-3); }

.lock-list { margin: 10px 0 14px; padding-left: 0; list-style: none; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.lock-list li { display: flex; gap: 8px; }
.lock-list li b { flex: none; width: 5.4em; color: var(--brand); font-weight: 600; }

/* ---------- 专业方向测评 ---------- */
.assess-hero {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 30px 32px; text-align: center;
}
.assess-kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 13px;
}
.assess-hero h1 { margin: 0 0 12px; font-size: 27px; font-weight: 600; letter-spacing: .4px; }
.assess-hero p {
  margin: 0 auto 24px; max-width: 580px;
  color: var(--ink-2); font-size: 16px; line-height: 1.8;
}
.assess-start { width: auto; padding: 13px 44px; font-size: 16px; }


/* 答题页：照搬当前志愿填报系统——98 题一页平铺，不分段、不标必答选答 */
.ahero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px; margin-bottom: 18px; border-radius: 20px;
  background: linear-gradient(120deg, #0b3d91, #1a5fb4); color: #fff;
}
.ahero h1 { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: .5px; }
.ahero-note { max-width: 420px; margin: 0; font-size: 16px; line-height: 1.9; color: #dce9fb; }

.qsheet {
  background: var(--card); border: 1px solid #e0e8ef; border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow);
}
.qsheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qsheet-head b { font-size: 17px; font-weight: 600; color: var(--ink); }
.qsheet-head p { margin: 4px 0 0; font-size: 16px; line-height: 1.8; color: #111; }
.qsheet-bar { height: 6px; margin: 12px 0; border-radius: 8px; background: #e8f1fb; overflow: hidden; }
.qsheet-bar i {
  display: block; width: 0; height: 100%; border-radius: 8px;
  background: #1a5fb4; transition: width .25s ease;
}
.qsheet-hint { margin: 0; font-size: 16px; line-height: 1.8; color: #111; }

.q-item { margin: 24px 0; padding: 20px; border: 1px solid #e1e8ed; border-radius: 14px; }
.q-item.needs-answer { border-color: #e0a33e; box-shadow: 0 0 0 3px #f6e0b8; }
.q-item-no { display: block; margin-bottom: 4px; font-size: 14px; color: #637e90; }
.q-item-text { margin: 0 0 14px; font-size: 18px; font-weight: 600; line-height: 1.8; color: var(--ink); }
.a-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.a-opt {
  flex: 1; min-width: 130px; padding: 12px 8px;
  border: 1px solid #dce6ec; border-radius: 9px; background: #fff;
  font-size: 16px; line-height: 1.4; color: #173852; text-align: center; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.a-opt:hover { border-color: #1a5fb4; background: #f4f9ff; }
.a-opt.on { border-color: #1a5fb4; background: #e8f1fb; color: #0b3d91; font-weight: 600; }
.a-opts.two .a-opt { flex: 0 1 150px; }

.submit-bar {
  position: sticky; bottom: 0; z-index: 6;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 16px; padding: 15px calc(15px + env(safe-area-inset-bottom)) 15px 15px;
  background: rgba(255, 255, 255, .95); border-top: 1px solid #e1e8ed;
  backdrop-filter: blur(4px);
}
.submit-bar span { margin-right: auto; font-size: 15px; color: var(--ink-3); }
.submit-bar span.pending { color: #a33d2d; font-weight: 600; }
.submit-bar .btn-ghost, .submit-bar .btn-primary { flex: none; width: auto; padding: 11px 20px; font-size: 15px; }

/* ---------- 测评报告：照搬系统报告页（首选方向 / 雷达与维度 / TOP5 / 19 方向 / 价值取向） ---------- */
.rp { margin-top: 18px; padding: 24px; background: var(--card); border: 1px solid #e0e8ef; border-radius: 18px; color: #173852; }
.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-bar h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.rp-bar p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-3); }
.rp h3 { margin: 32px 0 16px; font-size: 22px; font-weight: 600; }

.rp-msg { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: #eef7f1; color: #2f7a4c; font-size: 15px; line-height: 1.7; }
.rp-msg.warn { background: #fdf1ee; color: #a33d2d; }

.rp-first {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 24px 0; padding: 28px; border-radius: 18px;
  background: linear-gradient(120deg, #0b3d91, #2b78c5); color: #fff;
}
.rp-first small { display: block; font-size: 16px; letter-spacing: 1px; color: #9dc4f0; }
.rp-first h2 { margin: 12px 0; font-size: 30px; font-weight: 600; }
.rp-first .rp-majors { margin: 10px 0 0; font-size: 16px; line-height: 1.9; color: #dceaff; }
.rp-first .rp-majors span { display: block; font-size: 16px; color: #9dc4f0; letter-spacing: 1px; }
.rp-first strong { flex: none; min-width: 110px; font-size: 40px; font-weight: 600; text-align: center; }
.rp-first strong small { margin-top: 8px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: #dceaff; }

.rp-radar { max-width: 500px; margin: 0 auto; }
.rp-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 16px; }
.rp-dim span { display: flex; justify-content: space-between; gap: 10px; min-width: 0; font-size: 15px; color: var(--ink-2); }
.rp-dim b { flex: none; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-dim-bar { height: 6px; margin-top: 5px; border-radius: 8px; background: #e8f1fb; overflow: hidden; }
.rp-dim-bar i { display: block; height: 100%; border-radius: 8px; background: #1a5fb4; }

.rp-top5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.rp-top5 article { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid #e1e8ed; border-radius: 14px; }
.rp-top5 .rank { font-size: 13px; letter-spacing: 1px; color: var(--ink-3); }
.rp-top5 b { font-size: 18px; font-weight: 600; }
.rp-top5 .score { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--brand); }
.rp-top5 p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.rp-top5 .majors span { margin-right: 6px; color: var(--brand-2); }

.rp-table-wrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rp-table th, .rp-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef1f6; }
.rp-table th { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.rp-table td.n { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.rp-table td.majors { min-width: 180px; color: var(--ink-2); }
.rp-cards { display: none; }

.rp-hint { margin: -8px 0 14px; font-size: 15px; color: var(--ink-3); }
.rp-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-vals article { padding: 14px 16px; border-radius: 12px; background: #edf5ff; }
.rp-vals article:nth-child(6n+2) { background: #fff5e8; }
.rp-vals article:nth-child(6n+3) { background: #edf8f1; }
.rp-vals article:nth-child(6n+4) { background: #f4eefe; }
.rp-vals article:nth-child(6n+5) { background: #fff0f4; }
.rp-vals article:nth-child(6n) { background: #fffae7; }
.rp-vals b { font-size: 15px; font-weight: 500; }
.rp-vals p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

.rp-card { padding: 12px; border: 1px solid #d5e3f5; border-radius: 12px; background: #f7faff; }
.rp-card .h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rp-card .h b { font-size: 16px; }
.rp-card .h strong { font-size: 20px; color: #1a5fb4; }
.rp-card p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: #57707f; }
.rp-card p span { margin-right: 5px; color: var(--brand-2); }

.rp-login { display: flex; align-items: center; gap: 12px; }
.rp-login span { font-size: 14px; color: var(--ink-3); }
.rp-login .btn-primary { width: auto; padding: 9px 18px; font-size: 14px; }

@media (max-width: 760px) {
  /* 用 clip 而不是 hidden：hidden 会让 body 变成滚动容器，导致顶栏与登录条的 sticky 整体失效 */
  html, body { overflow-x: hidden; overflow-x: clip; }
  .topbar-inner { height: 56px; gap: 6px; padding: 0 12px; }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .nav { gap: 2px; margin-left: 0; }
  .nav a { padding: 7px 10px; font-size: 16px; flex: none; white-space: nowrap; }
  .login-btn { padding: 5px 12px; font-size: 14px; flex: none; white-space: nowrap; }
  .topbar-actions .who { display: none; }
  .entry-tip { width: calc(100% - 24px); margin-top: 10px; padding: 8px 6px 8px 11px; font-size: 13px; gap: 6px; }
  .entry-tip .tip-text { display: none; }
  .entry-tip .tip-text-m { display: inline; }
  .entry-tip .tip-link { font-size: 13px; }
  .tip-x { font-size: 17px; padding: 2px 5px; }
  .wrap { padding: 14px 12px 50px; }
  .login-tip { flex-wrap: wrap; gap: 8px; font-size: 13px; top: 56px; }
  .login-tip-btn { padding: 6px 14px; font-size: 13px; }
  .hero { padding: 16px; gap: 12px; }
  .hero h1 { font-size: 17px; }
  .hero p { font-size: 14px; }
  .stats { gap: 18px; }
  .stat b { font-size: 19px; }
  .toolbar { padding: 12px; gap: 8px; }
  .search { flex: 1 1 100%; min-width: 0; }
  .toolbar select { max-width: none; flex: 1 1 44%; min-width: 0; }
  .tabs { gap: 6px; }
  .tabs a { padding: 7px 12px; font-size: 14px; }

  .table-card { overflow: visible; background: transparent; box-shadow: none; }
  table, thead, tbody { display: block; width: 100%; }
  thead { display: none; }
  tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 13px 14px;
    margin-bottom: 10px;
    border-bottom: 0;
  }
  tbody td { padding: 0; font-size: 14px; }
  tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.5;
  }
  tbody td.group {
    order: 0;
    grid-column: 1 / -1;
    font-size: 16px;
    padding-bottom: 2px;
  }
  tbody td.group::before { content: none; }
  tbody td.num { order: 2; font-size: 15px; }
  tbody td[data-label] { order: 1; }
  /* 按钮跟最后一行数据同排、贴最右列，避免卡片底部多出一整行空白 */
  tbody td.row-action {
    display: flex; justify-content: flex-end;
    order: 1; grid-column: 3 / 4; align-self: center; margin-top: 0;
  }
  tbody td.row-action::before { content: none; }
  .row-open { padding: 7px 16px; font-size: 14px; line-height: 1.4; }

  .chips { margin: 14px 0 12px; gap: 6px; }
  .chip { padding: 7px 13px; font-size: 14px; }
  .article-card { flex-direction: row; gap: 12px; padding: 14px; }
  .article-card .thumb { width: 100px; height: 76px; border-radius: 8px; }
  .article-card.no-cover h3 { font-size: 17px; }
  .article-card .cover { width: 104px; height: 78px; font-size: 14px; padding: 8px; }
  .article-card h3 { font-size: 16px; margin-bottom: 6px; }
  .article-card p { font-size: 14px; }

  .reader-bar { height: 50px; padding: 0 14px; }
  .reader-inner { padding: 12px 12px 60px; }
  .post { padding: 22px 18px 26px; border-radius: 12px; }
  .post-kicker { margin-bottom: 12px; }
  .post-head h1 { font-size: 21px; margin-bottom: 12px; }
  .post-dek { font-size: 15px; padding: 10px 14px; }
  .post-body { margin-top: 22px; }
  .post-body h2 { font-size: 18px; }
  .post-body h3 { font-size: 17px; }
  .post-cta { margin-top: 32px; padding: 20px 18px; }
  .post-cta h4 { font-size: 17px; }
  .article-card h3 { font-size: 16px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader-inner { padding: 18px 16px 60px; }
  .reader-inner h1 { font-size: 21px; }
  .reader-inner p { font-size: 16px; }

  .assess-hero { padding: 26px 18px 24px; }
  .assess-hero h1 { font-size: 21px; }
  .assess-hero p { font-size: 15px; }
  .assess-start { width: 100%; padding: 13px 0; }
  .ahero { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 16px; border-radius: 14px; }
  .ahero h1 { font-size: 22px; }
  .ahero-note { max-width: none; font-size: 13px; line-height: 1.6; }
  .qsheet { padding: 14px; }
  .qsheet-head { align-items: flex-start; }
  .qsheet-head b { font-size: 16px; }
  .qsheet-head p { font-size: 13px; line-height: 1.6; }
  .qsheet-hint { font-size: 13px; line-height: 1.6; }
  .q-item { margin: 14px 0; padding: 12px; }
  .q-item-text { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
  .a-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .a-opt { min-width: 0; padding: 9px 4px; font-size: 13px; }
  .a-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-opts.two .a-opt { flex: none; }
  .submit-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .submit-bar span { width: 100%; font-size: 13px; }
  .submit-bar .btn-ghost, .submit-bar .btn-primary { width: auto; padding: 9px 14px; font-size: 14px; }
  .rp { padding: 14px; }
  .rp-bar { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .rp-login { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .rp-login span { font-size: 12.5px; }
  .rp-login .btn-primary { flex: none; padding: 7px 14px; font-size: 13px; }
  .rp-bar h2 { font-size: 19px; }
  .rp-bar p { font-size: 12.5px; }
  .rp h3 { margin: 20px 0 10px; font-size: 17px; }
  .rp-msg { font-size: 13px; }
  .rp-first { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
  .rp-first small { font-size: 12.5px; }
  .rp-first h2 { margin: 4px 0; font-size: 20px; }
  .rp-first .rp-majors, .rp-first .rp-majors span { font-size: 12px; line-height: 1.6; }
  .rp-first strong { min-width: 0; font-size: 24px; }
  .rp-first strong small { margin-top: 2px; font-size: 12px; }
  .rp-dims { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .rp-dim span { font-size: 13px; }
  .rp-top5 { grid-template-columns: 1fr; gap: 10px; }
  .rp-table-wrap { display: none; }
  .rp-cards { display: grid; gap: 8px; }
  .rp-vals { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rp-vals article { padding: 10px 12px; }
  .rp-vals b { font-size: 13px; }
  .rp-vals p { font-size: 12.5px; }
  .major-table th:nth-child(2), .major-table th:nth-child(3) { width: 64px; }

  /* 组内专业表：手机端仍用真表格，四列定宽，避免「26最低」被挤到下一行 */
  .major-table { display: table; table-layout: fixed; width: 100%; }
  .major-table thead { display: table-header-group; }
  .major-table tbody { display: table-row-group; }
  .major-table tr {
    display: table-row; padding: 0; gap: 0;
    background: none; box-shadow: none; border-radius: 0;
  }
  .major-table th, .major-table td { display: table-cell; padding: 7px 6px; }
  .major-table th { font-size: 12px; }
  .major-table td { font-size: 13px; }
  .major-table th:not(:first-child), .major-table td:not(:first-child) {
    width: 58px; text-align: right; white-space: nowrap;
  }
  .major-table th:last-child, .major-table td:last-child { width: 62px; }
}

/* Shared with admin preview; preserve typography on every viewport. */
.post-head h1 {font-size:25px}.post-body h2 {font-size:20px;border-left-width:3px}
.post-body .fig img {max-width:min(100%,480px);height:auto;margin:0 auto;display:block}
.public-error {padding:18px;color:#9b2828;background:#fff1f0;border-radius:10px}
.article-card {color:inherit;text-decoration:none}.post-dek {white-space:pre-line}
.post-body p,.post-body .callout,.post-body li {white-space:pre-line;overflow-wrap:anywhere}
.public-seo-links {padding:20px 0;display:flex;gap:16px;flex-wrap:wrap}
@media print {.topbar,.entry-tip,.post-cta,.rp-login{display:none}.wrap{max-width:100%}}
a.brand,.topbar .nav a {color:inherit;text-decoration:none}.topbar .nav a {padding:8px 12px}.login-btn {text-decoration:none;white-space:nowrap}.breadcrumbs {display:flex;gap:12px;flex-wrap:wrap;margin:24px 0;font-size:14px}.public-data-table {width:100%;border-collapse:collapse}.public-data-table td,.public-data-table th {padding:12px 8px;border-bottom:1px solid #e5e8ef;text-align:left}.public-data-table {font-size:15px}.reader-inner .post-related a {text-decoration:none;color:inherit}.article-feed-link {display:block;padding:18px 0;border-bottom:1px solid #e5e8ef;color:inherit;text-decoration:none}.public-data-overflow {overflow-x:auto}.public-data-overflow table {min-width:560px}@media(max-width:560px){.topbar-inner{gap:8px;padding:0 12px}.topbar .nav a {padding:6px}.topbar .brand {font-size:16px}.reader-inner{padding:12px 16px}.public-data-table {font-size:14px}}
/* The legacy drawer reader is replaced by standalone server-rendered articles. */
#reader {display:none}
@media(max-width:560px){.topbar-inner:has(a.brand){gap:4px;padding:0 10px}.topbar a.brand{font-size:16px;white-space:nowrap}.topbar .nav:has(a){flex-shrink:0;gap:0}.topbar .nav a{font-size:16px;padding:6px 5px;white-space:nowrap}.topbar a.login-btn{font-size:12px;padding:6px 10px}}

/* Crawlable navigation uses the same visual language as the rest of the portal. */
.public-seo-links{padding:18px 0;gap:10px;border-top:1px solid #e2e8f0}
.public-seo-links a,.public-seo-links a:visited{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border:1px solid #dce5f2;border-radius:22px;background:#fff;color:#315486;text-decoration:none;font-size:14px;line-height:1.4}
.public-seo-links a:hover{background:#edf3fc;border-color:#89a8d7;color:#234b8b}
.public-seo-links a:focus-visible{outline:3px solid #adc4e9;outline-offset:2px}
#tbody a,#tbody a:visited,.public-data-table a,.public-data-table a:visited{color:#2859a4;text-decoration:none;font-weight:600}
#tbody a:hover,.public-data-table a:hover{text-decoration:underline;text-underline-offset:4px}

.nav a,.nav a:visited,.tabs a,.tabs a:visited{text-decoration:none;font-family:inherit;cursor:pointer}.nav a{color:rgba(255,255,255,.78)}.tabs a:visited{color:var(--ink-2)}.tabs a.on:visited{color:#fff}.nav a:focus-visible,.tabs a:focus-visible{outline:3px solid #a8c4ef;outline-offset:2px}

/* 已登录（系统会话有效，见 member.js）：公开站不再出现引导登录的提示与按钮。
   只针对明确写着「登录系统」的元素，开通/购买类引导照旧保留。 */
html.member .login-tip,
html.member .rp-login { display: none; }
