/* 香港升学方案系统 · v43 借鉴 GoDaddy 设计语言：暖白底 + 近黑正文 + 黑色主按钮 + 招牌青绿点睛 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* 系统 UI 色板（GoDaddy 风：Teal #00A4A6 点睛） */
  --blue: #00A4A6; --blue-hover: #00b8ba; --blue-dark: #007d7f;
  --blue-tint: rgba(0, 164, 166, .09); --blue-light: #e8f7f7; --blue-border: rgba(0, 164, 166, .32);
  --text: #111111; --text-2: #565656; --text-3: #8a8a8a;
  --bg: #f7f6f3; --card: #ffffff; --border: #d8d8d5; --border-light: #ecebe7;
  --ok: #1f8a4c; --warn: #b25f00; --danger: #d70015;
  --shadow-card: 0 2px 16px rgba(17, 17, 17, .06); --shadow-pop: 0 14px 44px rgba(17, 17, 17, .14);
  --radius: 18px; --radius-s: 12px;
  /* 报告/打印专用：保留原科技蓝（客户版 PDF 视觉不动） */
  --rp-blue: #0071e3; --rp-blue-dark: #0040dd; --rp-blue-light: #f0f7ff; --rp-blue-border: rgba(0, 113, 227, .25);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue",
          "Microsoft YaHei", "SimHei", "Heiti SC", sans-serif;
}
body { font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-dark); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 800; }

/* 顶部导航 · 白底黑字（GoDaddy 高对比） */
.topnav { background: rgba(255, 255, 255, .88); backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light); padding: 0 28px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100; }
.brand { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: .01em; }
.brand span { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 8px; }
.topnav .nav-right { display: flex; gap: 20px; align-items: center; font-size: 13px; }
.topnav .nav-right a { color: var(--text); font-weight: 500; }
.topnav .nav-right a:hover { color: var(--blue-dark); text-decoration: none; }
.nav-right .user { color: var(--text-3); font-size: 12px; }

/* 布局 */
.layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: 248px; background: transparent; border-right: 1px solid var(--border-light);
  padding: 20px 14px; flex-shrink: 0; }
.sidebar h3 { font-size: 11px; color: var(--text-3); padding: 0 10px 10px;
  letter-spacing: .12em; font-weight: 600; }
.sidebar .stu-item { display: block; padding: 9px 12px; border-radius: 12px; color: var(--text);
  margin-bottom: 3px; transition: background .15s; }
.sidebar .stu-item:hover { background: rgba(0, 0, 0, .04); text-decoration: none; }
.sidebar .stu-item.active { background: var(--blue-tint); color: var(--blue); font-weight: 600; }
.sidebar .stu-item small { color: var(--text-3); display: block; font-size: 11px; }
.sidebar .stu-group { margin-bottom: 4px; }
.sidebar .stu-group summary { cursor: pointer; padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); list-style: none; user-select: none; }
.sidebar .stu-group summary::-webkit-details-marker { display: none; }
.sidebar .stu-group summary::before { content: '▸'; display: inline-block; margin-right: 6px; font-size: 11px; transition: transform .15s; }
.sidebar .stu-group[open] summary::before { transform: rotate(90deg); }
.sidebar .stu-group summary:hover { background: rgba(0, 0, 0, .04); }
.sidebar .stu-count { float: right; font-size: 11px; font-weight: 400; color: var(--text-3); background: rgba(0,0,0,.05); border-radius: 8px; padding: 0 7px; line-height: 18px; }
.sidebar .stu-group .stu-item { margin-left: 14px; }
/* 侧栏底部入口（使用说明）：贴底 + 上分隔线 */
.sidebar { display: flex; flex-direction: column; }
.sidebar .sb-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light);
  position: sticky; bottom: 0; background: inherit; }
.sb-help { font-weight: 600; }
.sidebar .stu-mode { display: flex; gap: 4px; margin-bottom: 8px; }
.sidebar .stu-mode-btn { flex: 1; padding: 4px 0; border: 1px solid rgba(0,0,0,.1); border-radius: 8px;
  background: transparent; font-size: 12px; color: var(--text-2); cursor: pointer; }
.sidebar .stu-mode-btn.active { background: var(--blue-tint); border-color: transparent; color: var(--blue); font-weight: 600; }
.content { flex: 1; padding: 28px 32px; max-width: 1120px; }

/* 学生列表 · 卡片 */
.stu-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.stu-search { flex: 1; min-width: 220px; position: relative; }
.stu-search input { width: 100%; padding: 10px 16px 10px 38px; border: 1px solid var(--border-light);
  border-radius: 999px; font-size: 13px; font-family: inherit; background: #fff; box-shadow: var(--shadow-card); }
.stu-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(0, 113, 227, .15); }
.stu-search::before { content: "⌕"; position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%); color: var(--text-3); font-size: 16px; }
.stu-count { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.stu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.stu-card { background: #fff; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 9px;
  transition: transform .15s, box-shadow .15s; }
.stu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); text-decoration: none; }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sc-name { font-size: 16px; font-weight: 700; color: var(--text); }
.sc-name small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.sc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
  color: var(--text-2); white-space: nowrap; padding-top: 4px; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 6px rgba(0, 113, 227, .5); }
.sc-dot.green { background: var(--ok); box-shadow: 0 0 6px rgba(48, 164, 108, .5); }
.sc-dot.gray { background: var(--text-3); box-shadow: none; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.sc-target { font-size: 12px; color: var(--text-2); }
.sc-target b { color: var(--text); font-weight: 600; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px;
  padding-top: 10px; border-top: 1px solid var(--border-light); font-size: 11px; color: var(--text-3); }
.sc-foot .go { color: var(--blue); font-weight: 500; font-size: 12px; }
.stu-empty { grid-column: 1 / -1; text-align: center; padding: 44px 0; color: var(--text-3);
  font-size: 13px; display: none; }

/* 卡片 · 浮空感 */
.card { background: var(--card); border: none; border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.card h2 { font-size: 16px; margin-bottom: 16px; color: var(--text); font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; }
.card h2 .edit-btn { font-size: 12px; font-weight: normal; }

/* 按钮 · GoDaddy 黑底胶囊 + 微交互（上浮/按压） */
.btn { display: inline-block; background: #111111; color: #fff; border: none;
  padding: 9px 22px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: inherit; transition: background .15s, transform .12s, box-shadow .15s; }
.btn:hover { background: #2b2b2b; text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 17, 17, .22); }
.btn:active { transform: scale(.97); }
.btn.secondary { background: #fff; color: var(--text); border: 1.5px solid var(--text); }
.btn.secondary:hover { background: var(--text); color: #fff; border-color: var(--text);
  box-shadow: 0 6px 16px rgba(17, 17, 17, .18); }
.btn.danger { background: rgba(215, 0, 21, .08); color: var(--danger); border: none; }
.btn.danger:hover { background: rgba(215, 0, 21, .15); box-shadow: none; transform: none; }
.btn.danger-solid { background: var(--danger); color: #fff; }
.btn.small { padding: 5px 14px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-row { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }

/* 表格 */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; background: transparent; }
table.grid th { background: var(--bg); color: var(--text-2); text-align: left; font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12px; }
table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
table.grid tr:hover td { background: #fafafa; }
table.grid tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 500;
  background: var(--blue-tint); color: var(--blue); margin-right: 4px; white-space: nowrap; }
.tag.green { background: rgba(48, 164, 108, .12); color: var(--ok); }
.tag.orange { background: rgba(178, 95, 0, .1); color: var(--warn); }
.tag.red { background: rgba(215, 0, 21, .1); color: var(--danger); }
.tag.gray { background: rgba(0, 0, 0, .06); color: var(--text-2); }
/* 新增待确认标识 */
.tag.tag-new { background: rgba(215, 0, 21, .1); color: var(--danger); font-weight: 600; letter-spacing: .3px; }
.stu-card.is-new { border-color: rgba(215, 0, 21, .45); background: linear-gradient(180deg, #fff7f7 0%, #fff 42%); }
.sidebar .stu-item.is-new { background: rgba(215, 0, 21, .07); }
.sidebar .stu-item.is-new .stu-new { display: inline-block; }
.stu-new { display: none; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 10px;
  font-weight: 700; letter-spacing: .4px; background: var(--danger); color: #fff; vertical-align: 1px; }
.stu-new-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px;
  border: 1px solid rgba(215, 0, 21, .3); background: #fff7f7; border-radius: 12px; font-size: 13px; color: var(--danger); }
.stu-new-banner .btn-row { margin-left: auto; }
.stu-toolbar .stu-mode-btn { padding: 4px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 12px; color: var(--text-2); cursor: pointer; }
.stu-toolbar .stu-mode-btn.active { background: var(--danger); border-color: transparent; color: #fff; font-weight: 600; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
  font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(0, 113, 227, .18); }
.field input:disabled { background: var(--bg); color: var(--text-3); }
.fieldset { border: 1px solid var(--border-light); border-radius: var(--radius-s);
  padding: 18px 20px; margin-bottom: 16px; background: rgba(255, 255, 255, .6); }
.fieldset legend { font-size: 13px; color: var(--blue); padding: 0 8px; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { font-size: 12px; font-weight: normal; display: flex; gap: 5px; align-items: center;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-light); cursor: pointer;
  transition: all .15s; background: #fff; }
.checks label:hover { border-color: var(--blue-border); }
.checks label:has(input:checked) { background: var(--blue-tint); border-color: var(--blue);
  color: var(--blue); font-weight: 500; }
.checks input { accent-color: var(--blue); }
/* 无外边框模式（目标院校/专业/职业意向）：直接文字列出，选中仅文字变色 */
.checks.plain label { padding: 2px 0; border: none; background: none; border-radius: 0; font-size: 13px; white-space: nowrap; }
.checks.plain label:hover { border: none; color: var(--blue); }
.checks.plain label:has(input:checked) { background: none; border: none; color: var(--blue); font-weight: 600; }
/* hover 详情气泡（data-tip） */
.tip { position: relative; }
.tip[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 60;
  width: max-content; max-width: 280px; white-space: normal; line-height: 1.5;
  background: #1d1d1f; color: #fff; font-size: 12px; font-weight: 400;
  padding: 8px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  pointer-events: none; }
.tip[data-tip]:hover::before {
  content: ""; position: absolute; left: 16px; bottom: calc(100% + 1px); z-index: 60;
  border: 5px solid transparent; border-top-color: #1d1d1f; pointer-events: none; }

/* 成绩动态行 */
.score-head { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.subj-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.subj-row { display: grid; grid-template-columns: 130px 1fr 1fr 1fr auto; gap: 8px; align-items: center; }
.subj-row .subj-name { font-size: 13px; font-weight: 500; padding-left: 4px; }
.subj-row input, .subj-row select { padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px; font-family: inherit; width: 100%; }
.subj-row input:focus, .subj-row select:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(0, 113, 227, .18); }
#tb-DSE .subj-row, #tb-其他 .subj-row { grid-template-columns: 130px 1fr auto; }
#dseRows .subj-row, #alRows .subj-row, #apRows .subj-row { grid-template-columns: 1fr 130px auto; }
.track-block { animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* 提示 */
.flash { padding: 12px 18px; border-radius: var(--radius-s); margin-bottom: 14px; font-size: 13px; }
.flash.ok { background: rgba(48, 164, 108, .1); color: var(--ok); }
.flash.error { background: rgba(215, 0, 21, .08); color: var(--danger); }
.note { background: var(--blue-light); border-left: 3px solid var(--blue); padding: 12px 16px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 13px; margin: 10px 0; }
.warn-note { background: rgba(178, 95, 0, .07); border-left: 3px solid var(--warn);
  padding: 12px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 13px; margin: 10px 0; }

/* 登录页 · 分屏品牌布局 */
.login-wrap { min-height: 100vh; display: flex; background: #fff; }
.login-brand { flex: 1.15; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, #022e2c 0%, #05524c 52%, #00A4A6 138%);
  display: flex; flex-direction: column; justify-content: center; padding: 64px 72px; }
.login-brand::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 216, 218, .3) 0%, rgba(77, 216, 218, 0) 65%);
  top: -140px; right: -120px; }
.login-brand::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 65%);
  bottom: -160px; left: -100px; }
.lb-inner { position: relative; z-index: 1; max-width: 460px; }
/* 未促会品牌区：logo 透明底直出（v42-b 批注①：去白卡边框，与背景融合，同报告封面 v31 处理） */
.lb-org { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.lb-org img { height: 64px; width: auto;
  filter: brightness(0) invert(1); }  /* 深蓝底上反白，与机构名同色融合（移动端浅底不反白） */
.lb-org-txt { line-height: 1.5; }
.lb-org-txt b { display: block; font-size: 16px; letter-spacing: .06em; color: #fff; }
.lb-org-txt span { display: block; font-size: 10px; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.lb-logo { font-size: 15px; letter-spacing: .3em; color: rgba(255, 255, 255, .65);
  margin-bottom: 26px; font-weight: 600; }
.lb-title { font-size: 40px; font-weight: 700; letter-spacing: .06em; line-height: 1.35; margin-bottom: 14px; }
.lb-sub { font-size: 15px; color: rgba(255, 255, 255, .75); line-height: 1.9; margin-bottom: 40px; }
.lb-feats { display: flex; flex-direction: column; gap: 12px; }
.lb-feats span { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .88); }
.lb-feats i { width: 6px; height: 6px; border-radius: 50%; background: #4dd8da; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(77, 216, 218, .9); }
.lb-foot { margin-top: 44px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.login-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; background: #fff; }
.login-card { width: 340px; max-width: 100%; }
.login-card h1 { font-size: 22px; color: var(--text); margin-bottom: 24px; font-weight: 700;
  text-align: center; letter-spacing: .02em; }  /* v42-b 批注②：系统名居中替代「欢迎回来」 */
.login-card .sub { color: var(--text-3); font-size: 12px; margin-bottom: 30px; text-align: center; }
.login-card .field { margin-bottom: 16px; }
.login-card .field input { padding: 11px 14px; font-size: 14px; border-radius: 12px; }
.login-card .btn { width: 100%; padding: 12px; font-size: 14px; }
.login-tip { margin-top: 16px; font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.6; }
.login-foot { margin-top: 28px; font-size: 11px; letter-spacing: .08em; color: var(--text-3); text-align: center; }
/* 移动端机构标头（品牌区隐藏时顶上） */
.lc-org { display: none; align-items: center; gap: 12px; margin-bottom: 26px; }
.lc-org img { height: 52px; width: auto; }
.lc-org-txt { line-height: 1.4; }
.lc-org-txt b { display: block; font-size: 14px; color: var(--text); letter-spacing: .04em; }
.lc-org-txt span { display: block; font-size: 10px; color: var(--text-3); letter-spacing: .12em; }
@media (max-width: 860px) {
  .login-brand { display: none; }
  .login-panel { background: linear-gradient(160deg, #f0f7ff 0%, #f5f5f7 55%);
    padding: 32px 20px; }
  .lc-org { display: flex; justify-content: center; }
}

/* 方案 */
.section-head { display: flex; justify-content: space-between; align-items: center; }
.headline { font-size: 19px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.tier-table td:first-child { white-space: nowrap; font-weight: 600; width: 110px; }
.timeline td:first-child { white-space: nowrap; font-weight: 600; width: 160px; color: var(--blue); }
ul.clean { padding-left: 20px; }
ul.clean li { margin-bottom: 7px; }
.edit-area { width: 100%; min-height: 120px; font-family: inherit; font-size: 13px;
  padding: 10px; border: 1px solid var(--blue-border); border-radius: 10px; }
.custom-block { background: rgba(178, 95, 0, .07); border: 1px dashed var(--warn);
  border-radius: var(--radius-s); padding: 10px 14px; margin-top: 10px; white-space: pre-wrap; }
/* 方案页直接编辑 */
.sec-ops { display: flex; gap: 6px; }
.edit-mode input, .edit-mode textarea { width: 100%; padding: 7px 10px; font-family: inherit;
  font-size: 13px; border: 1px solid var(--blue-border); border-radius: 8px; background: #fff;
  box-sizing: border-box; }
.edit-mode input:focus, .edit-mode textarea:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .15); }
.edit-mode textarea { resize: vertical; }
.ed-label { display: block; font-size: 12px; color: var(--text-2); margin: 10px 0 4px; font-weight: 500; }

/* 问卷 */
.quiz-progress { height: 5px; background: var(--border-light); border-radius: 3px; margin: 14px 0 24px; }
.quiz-progress div { height: 100%; background: var(--blue); border-radius: 3px; transition: width .25s; }
.quiz-q { display: none; }
.quiz-q.active { display: block; animation: fadeIn .2s; }
.quiz-q .q-text { font-size: 17px; margin-bottom: 20px; font-weight: 600; letter-spacing: -.01em; }
.quiz-q .q-sec { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.quiz-opt { display: block; padding: 14px 18px; border: 1px solid var(--border-light);
  border-radius: 14px; margin-bottom: 10px; cursor: pointer; background: #fff; transition: all .15s; }
.quiz-opt:hover { border-color: var(--blue); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, .1); }
.quiz-opt.sel { border-color: var(--blue); background: var(--blue-tint); font-weight: 600;
  color: var(--blue); }

/* 后台 */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 999px; background: #fff; border: none;
  cursor: pointer; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-card); transition: all .15s; }
.tab:hover { transform: translateY(-1px); }
.tab.active { background: #111111; color: #fff; font-weight: 600; }  /* GoDaddy 黑色胶囊选中态 */

/* 后台分组导航（一级） */
.adm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 18px; }
.adm-group { background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow-card);
  transition: all .15s; display: flex; flex-direction: column; gap: 4px; }
.adm-group:hover { transform: translateY(-2px); border-color: var(--blue); }
.adm-group.active { border-color: var(--blue); background: var(--blue-light); }
.adm-group-icon { font-size: 20px; }
.adm-group-label { font-weight: 600; font-size: 15px; color: var(--text); }
.adm-group.active .adm-group-label { color: var(--blue-dark); }
.adm-group-desc { font-size: 11.5px; color: var(--text-2); line-height: 1.45; }
.adm-subtabs { margin-bottom: 16px; }
.adm-subtabs .tab { font-size: 12.5px; padding: 7px 15px; }

.admin-table-wrap { overflow-x: auto; }
/* 表头横向拖动条（YT 2026-10-06）：左右拖动看后面的列，与表格滚动同步；
   表头行同时吸顶，向下滚动时列名常驻可见 */
.adm-hscroll { overflow-x: scroll; overflow-y: hidden; height: 15px; margin: 0 0 4px; }
.adm-hscroll-inner { height: 1px; }
.adm-hscroll::-webkit-scrollbar { height: 13px; }
.adm-hscroll::-webkit-scrollbar-thumb { background: #c3ccd9; border-radius: 7px; }
.adm-hscroll::-webkit-scrollbar-track { background: #f3f5f8; border-radius: 7px; }
/* 列宽：auto 布局 + min-width 驱动（YT 2026-10-06）。
   之前用 table-layout:fixed + width，浏览器只认首行列宽、忽略 JS 改宽 → 缩窄无效；
   auto 布局下用 min-width 指定列宽，拖宽/拖窄/双击自适应都严格生效。
   box-sizing:border-box 让 min-width 含 padding，列宽所见即所得。 */
table.admin-table { table-layout: auto; width: auto; min-width: 100%; }
.admin-table th, .admin-table td { box-sizing: border-box; overflow-wrap: anywhere; }
/* 列内编辑器允许缩到内容最小宽（min-width:0）——否则 80px 下限会把列宽锁死、拉不窄（YT 2026-10-06） */
.admin-table input, .admin-table textarea { width: 100%; min-width: 0; border: 1px solid transparent;
  background: transparent; font-family: inherit; font-size: 12px; padding: 5px; border-radius: 6px; }
.admin-table input:focus, .admin-table textarea:focus { border-color: var(--blue);
  background: #fff; outline: none; }
.admin-table td { max-width: none; }
/* 表头列宽拖拽手柄（YT 2026-10-05）：右缘 8px 热区，悬停显示蓝条 */
.admin-table th { position: relative; }
/* 表头吸顶：向下滚动时列名常驻（表头左右拖动条 + 吸顶，YT 2026-10-06） */
.admin-table thead th { position: sticky; top: 0; z-index: 3; }
.admin-table th .col-rz { position: absolute; right: 0; top: 0; bottom: 0; width: 12px;
  cursor: col-resize; user-select: none; }
.admin-table th .col-rz:hover, .admin-table th .col-rz:active { background: rgba(47,111,237,.35); }
.admin-table textarea { resize: vertical; min-height: 34px; }

/* 后台表格：未保存改动 / 刚保存 */
.admin-table tr.dirty textarea { background: #fff8e6; border-color: #fcd34d; }
.admin-table tr.dirty td:first-child { color: #b45309 !important; font-weight: 700; }
.admin-table tr.saved textarea { background: #ecfdf5; border-color: #6ee7b7; }
.btn.primary-save { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn.primary-save:hover { background: var(--blue-dark); border-color: var(--blue-dark); }  /* 保存=青绿强调 */

/* 确认弹窗 */
.wb-modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .32);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 999; animation: fadeIn .15s; }
.wb-modal { background: #fff; border-radius: 20px; padding: 28px 30px; width: 380px;
  max-width: calc(100vw - 48px); box-shadow: var(--shadow-pop); }
.wb-modal-msg { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.wb-modal-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; margin-bottom: 16px; box-sizing: border-box; }
.wb-modal-err { display: none; color: #dc2626; font-size: 12px; margin: -12px 0 14px; }
.wb-modal-btns { display: flex; justify-content: flex-end; gap: 10px; }

/* 轻提示（替代原生 alert） */
.wb-toast { position: fixed; right: 24px; top: 22px; z-index: 1000; max-width: 340px;
  padding: 11px 16px; border-radius: 10px; font-size: 13px; line-height: 1.55;
  color: #fff; background: var(--blue); box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.wb-toast.show { opacity: 1; transform: translateY(0); }
.wb-toast.bad { background: #dc2626; }

/* 报告（打印）· 锁定原科技蓝（--rp-*），客户版视觉不随系统 UI 换色 */
.report-page { max-width: 800px; margin: 0 auto; background: #fff; padding: 44px 52px; }
.report-head { border-bottom: 3px solid var(--rp-blue); padding-bottom: 16px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: flex-end; }
.report-head h1 { font-size: 22px; color: var(--text); font-weight: 700; }
.report-head .brand-mark { font-size: 13px; color: var(--text-2); text-align: right; }
.report-page h2 { font-size: 15px; color: var(--text); border-left: 4px solid var(--rp-blue);
  padding-left: 10px; margin: 26px 0 10px; font-weight: 700; }
.report-page table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.report-page th { background: var(--rp-blue-light); padding: 7px 8px; text-align: left;
  border: 1px solid var(--rp-blue-border); }
.report-page td { padding: 7px 8px; border: 1px solid var(--border-light); vertical-align: top; }
.report-foot { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-3); text-align: center; }
.no-print { }
/* 报告封面页 · 浅色学术（苹果极简+科技蓝，YT 定稿 A 版） */
.report-cover { max-width: 800px; margin: 16px auto; position: relative; overflow: hidden;
  background: linear-gradient(170deg, #ffffff 0%, #f4f8ff 60%, #e8f1ff 100%); color: #1d1d1f;
  border-radius: var(--radius); min-height: 60vh; display: flex; flex-direction: column;
  justify-content: space-between; padding: 64px 60px; text-align: center;
  box-shadow: var(--shadow-card);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.report-cover::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, .10) 0%, rgba(0, 122, 255, 0) 65%);
  top: -160px; right: -120px; }
.report-cover::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 185, 255, .16) 0%, rgba(125, 185, 255, 0) 60%);
  bottom: -170px; left: -110px; }
.report-cover > * { position: relative; z-index: 1; }
/* 封面品牌区：未促会（主体）⇄ 联合主办 ⇄ 载道/合作方（纵向居中排列，兼容不同宽度 logo） */
.cover-brand-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cover-brand-org { display: flex; align-items: center; gap: 12px; }
.cover-brand-org img { height: 64px; width: auto; background: #fff; border-radius: 12px; padding: 7px 12px;
  box-shadow: 0 2px 10px rgba(0, 60, 140, .12); }
.cover-brand-org.primary img { height: 72px; background: none; box-shadow: none; padding: 0;
  border-radius: 0; }  /* v31 报告批注①：未促会 logo 不要白卡边框，直接透明底呈现 */
.cover-brand-txt { text-align: left; line-height: 1.5; }
.cover-brand-txt b { display: block; color: #1d1d1f; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.cover-brand-txt span { display: block; color: #6e6e73; font-size: 10.5px; letter-spacing: .08em; }
.cover-brand-x { color: #0071e3; font-size: 12px; letter-spacing: .28em; padding-left: .28em;
  border: 1px solid rgba(0, 113, 227, .35); border-radius: 999px; padding: 5px 14px 5px 16px; }
/* 封面系统名（载道不上报告，其品牌位用系统名） */
.cover-sysname { color: #0071e3; font-size: 15px; font-weight: 600; letter-spacing: .3em;
  padding-left: .3em; margin-top: 2px; }
@media (max-width: 720px) {
  .cover-brand-row { gap: 14px; }
  .cover-brand-org img { height: 48px; }
  .cover-brand-org.primary img { height: 56px; }
  .cover-brand-x { width: 100%; border: none; padding: 0; }
}
/* 内页页头品牌标 */
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark .brand-logo { height: 40px; width: auto; }
.brand-mark-txt { font-size: 12px; line-height: 1.6; color: var(--text-2); text-align: right; }
.brand-mark-txt b { color: var(--text); font-size: 13px; }
.cover-main h1 { font-size: 32px; color: #1d1d1f; letter-spacing: .18em; margin-bottom: 40px; font-weight: 700; }
.cover-main h1::after { content: ""; display: block; width: 56px; height: 3px; margin: 26px auto 0;
  border-radius: 2px; background: linear-gradient(90deg, #0071e3, #7db9ff); }
.cover-name { font-size: 24px; color: #0071e3; font-weight: 700; margin-bottom: 14px; }
.cover-meta { color: rgba(29, 29, 31, .7); font-size: 14px; line-height: 1.9; }
.cover-foot { color: rgba(29, 29, 31, .55); font-size: 12px;
  border-top: 1px solid rgba(128, 128, 128, .25); padding-top: 16px; }

/* 报告 · 梯度表与依据节 */
.tiers-report td:last-child, .tiers-report th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tier-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tier-chip::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--warn); }
.tier-chip.red::before { background: var(--danger); }
.tier-chip.green::before { background: var(--ok); }
.tier-chip.orange::before { background: var(--warn); }
.kb-grid { columns: 2; column-gap: 28px; }
.kb-block { break-inside: avoid; page-break-inside: avoid; margin-bottom: 12px; }
@media (max-width: 720px) { .kb-grid { columns: 1; } }
.print-footer { display: none; }

/* 焦点可见性 */
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 学生卡片删除按钮 */
.sc-del { margin-left: 6px; padding: 2px 7px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--text-3); font-size: 13px; cursor: pointer; }
.sc-del:hover { color: var(--danger); border-color: rgba(220, 38, 38, .35); background: rgba(220, 38, 38, .06); }

@page { size: A4; margin: 16mm 15mm 18mm; }
@media print {
  .no-print, .topnav, .sidebar { display: none !important; }
  body { background: #fff; }
  .print-footer { display: block; position: fixed; bottom: 5mm; left: 0; right: 0;
    text-align: center; font-size: 9.5px; color: #9a9aa0; letter-spacing: .1em; }
  .report-cover { margin: 0; max-width: none; box-shadow: none; border-radius: 0;
    min-height: 25.4cm; page-break-after: always; }
  .report-page { padding: 0; max-width: none; }
  .report-page h2 { page-break-after: avoid; }
  .report-page table, .report-page .card, .report-page .kb-block { page-break-inside: avoid; }
  .report-page p, .report-page li { orphans: 3; widows: 3; }
}

/* ===== 升学线路图（报告 + 方案页共用） ===== */
.flow-wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  row-gap: 14px; margin: 14px 0 8px; }
.flow-stage { display: flex; flex-direction: column; align-items: center; flex: none; }
.flow-node { background: #fff; border: 1.5px solid var(--rp-blue-dark); color: var(--rp-blue-dark);
  border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: 14px;
  text-align: center; line-height: 1.35; white-space: nowrap; }
.flow-node.solid { background: var(--rp-blue-dark); border-color: var(--rp-blue-dark); color: #fff; }
.flow-node.outline { border-style: dashed; color: var(--text-2); border-color: var(--text-3, #86868b); font-weight: 600; }
.flow-node-sub { font-size: 11.5px; font-weight: 400; margin-top: 2px; opacity: .85; }
/* 报告页编辑模式（校准：管理员/顾问边审报告边改） */
.rep-edit [data-e] { outline: 1px dashed rgba(0,113,227,.55); outline-offset: 2px; border-radius: 3px; cursor: text; }
.rep-edit [data-e]:focus { outline: 1.5px solid var(--rp-blue); background: #f0f7ff; }
.rep-save-btn { margin: 8px 0 12px; }
@media print { .rep-edit [data-e] { outline: none !important; } .rep-save-btn { display: none !important; } }

/* 后台表格拖拽排序（2026-10-05）：⠿ 手柄抓取，拖动行半透明，落点上边框指示 */
.adm-drag { cursor: grab; color: var(--text-3); text-align: center; user-select: none; font-size: 14px; }
.adm-drag:active { cursor: grabbing; }
tr.dragging { opacity: .4; }
tr.drop-before td { border-top: 2px solid var(--blue) !important; }

/* 语境词扫描标黄（YT 校准·维度一）：命中禁用场景词的板块黄底提醒，仅屏幕显示 */
.ctx-banner { background:#fff7e0; border:1px solid #f0c93f; border-radius:8px;
  padding:10px 14px; font-size:13px; color:#7a5c00; }
.rep-sec.ctx-warn { background:#fffbe9; outline:2px solid #f0c93f; outline-offset:4px; border-radius:6px; }
.ctx-warn-tag { display:inline-block; background:#ffe89e; color:#7a5c00; font-size:12px;
  border-radius:4px; padding:2px 8px; margin:4px 0; }
@media print {
  .rep-sec.ctx-warn { background: transparent !important; outline: none !important; }
  .ctx-warn-tag { display: none !important; }
}
.flow-when { margin-bottom: 3px; font-size: 11px; font-weight: 600; color: var(--rp-blue-dark); white-space: nowrap; }
.flow-rec { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #fff3cd; color: #8a6d00; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.flow-note { margin-top: 6px; font-size: 12px; color: var(--text-2); text-align: center; white-space: nowrap; }
.flow-line { width: 28px; height: 1.5px; background: var(--rp-blue-dark); flex: none; }
.flow-branch { position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 0 26px; flex: none; }
.flow-branch::before, .flow-branch::after { content: ""; position: absolute; top: 18%; bottom: 18%;
  width: 26px; border: 1.5px solid var(--rp-blue-dark); }
.flow-branch::before { left: 0; border-right: none; border-radius: 8px 0 0 8px; }
.flow-branch::after { right: 0; border-left: none; border-radius: 0 8px 8px 0; }
.flow-branch-mid { font-size: 12px; color: var(--rp-blue); font-weight: 600; }
@media print {
  .flow-wrap { page-break-inside: avoid; }
}

/* v24 合并路线图（YT 批注⑥）：两条赛道合并为一张图——共享起点分叉、双泳道对照、统一终点 */
.flow-merge { border: 1.5px solid var(--border); border-radius: var(--radius-s);
  padding: 14px 14px 12px; background: var(--card); }
.flow-merge-start { width: fit-content; margin: 0 auto; background: var(--rp-blue); color: #fff;
  border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; }
.flow-merge-fork { position: relative; height: 22px; margin: 0 12%; }
.flow-merge-fork::before { content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px solid var(--border); }
.flow-merge-fork::after { content: ""; position: absolute; left: 50%; top: 0; height: 50%;
  border-left: 2px solid var(--border); }
.flow-merge-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow-lane { border-radius: 10px; padding: 8px 10px; }
.flow-lane.main { background: var(--rp-blue-light); }
.flow-lane.backup { background: #fdf6ec; }
.flow-lane-head { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.flow-lane.main .flow-lane-head { color: var(--rp-blue-dark); }
.flow-lane.backup .flow-lane-head { color: #b45309; }
.flow-merge-end { margin-top: 12px; text-align: center; font-size: 12px; color: var(--text-2);
  border-top: 1px dashed var(--border); padding-top: 8px; }
@media print { .flow-merge { page-break-inside: avoid; } }

/* v21（YT 2026-10-06 内部报价升级）：我方成本列与我方总报价范围
   —— 默认不显示（客户视图）；顾问/合作方点「内部视图」加 class .show-internal 后可见；
   无论开关状态，打印/PDF 一律强制隐藏（.no-print + @media print 双保险，防打印泄露）。 */
.only-internal { display: none !important; }
.report-page.show-internal .only-internal,
body.show-internal .only-internal { display: table-cell !important; }
.report-page.show-internal div.only-internal,
body.show-internal div.only-internal { display: block !important; }
.report-page.show-internal .internal-sum,
body.show-internal .internal-sum { display: block !important; }
@media print {
  .only-internal { display: none !important; }
  .report-page.show-internal .only-internal,
  body.show-internal .only-internal { display: none !important; }
}

/* v23 批注模式（YT 2026-10-08 定在方案页）：方案页点选任意位置写修改需求，汇总成清单复制给载之。
   高亮仅屏幕可见（@media print 兜底去掉），弹窗与清单面板均带 no-print。 */
body.anno-on .content { cursor: crosshair; }
.anno-hover { outline: 1.5px dashed #f59e0b !important; outline-offset: 2px; }
.anno-marked { outline: 1.5px solid #f59e0b !important; outline-offset: 2px; }
.anno-flash { outline: 2.5px solid #dc2626 !important; outline-offset: 2px; }
#annoPop {
  position: fixed; z-index: 9999; width: 320px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  box-shadow: var(--shadow-pop); padding: 12px;
}
#annoPop textarea {
  width: 100%; min-height: 64px; resize: vertical; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px;
  font: inherit; font-size: 13px; background: var(--bg); color: var(--text);
}
#annoPanel {
  position: fixed; right: 16px; bottom: 16px; z-index: 9998; width: 320px;
  max-height: 60vh; overflow: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  box-shadow: var(--shadow-pop); padding: 12px;
}
.anno-item { display: flex; gap: 8px; padding: 7px 2px; border-top: 1px dashed var(--border-light); cursor: pointer; }
.anno-item:hover { background: var(--blue-tint); }
@media print {
  .anno-hover, .anno-marked, .anno-flash { outline: none !important; }
  #annoPop, #annoPanel { display: none !important; }
}

/* ===== 移动端适配（v37 · YT 2026-10-07 顾问手机端） ===== */
/* 抽屉汉堡钮：仅移动端显示；无侧栏的页面由 app.js 自动隐藏 */
.nav-burger { display: none; background: none; border: none; font-size: 20px; color: var(--text);
  cursor: pointer; padding: 4px 8px; margin-right: 6px; border-radius: 8px; }
.nav-burger:active { background: rgba(0, 0, 0, .06); }
.sb-mask { display: none; }

@media (max-width: 860px) {
  /* 顶栏紧凑：去英文副标与用户名，留操作链接；文字一律不换行防挤压 */
  .topnav { padding: 0 12px; }
  .topnav .brand { white-space: nowrap; font-size: 13.5px; display: flex; align-items: center;
    min-width: 0; flex-shrink: 1; overflow: hidden; }  /* 空间不足时品牌名省略号收缩，链接区不动 */
  .topnav .brand > a { overflow: hidden; text-overflow: ellipsis; }
  .topnav .brand span { display: none; }
  .topnav .nav-right { gap: 10px; font-size: 12px; flex-shrink: 0; }
  .topnav .nav-right a { white-space: nowrap; }
  .nav-right .user, .nav-right .hide-m { display: none; }  /* 修改密码低频，手机端让位（可直接访问 /password） */
  .nav-burger { display: block; }

  /* 侧栏改抽屉：默认收起，☰ 展开，遮罩/点学生后自动收起 */
  .layout { display: block; }  /* 侧栏已 fixed 脱离文档流；flex 下 .content 无 min-width:0 会被内容撑穿 */
  .fieldset { min-width: 0; }  /* fieldset UA 默认 min-width:min-content，成绩行 min-width 会撑穿页面 */
  .sb-mask { position: fixed; inset: 56px 0 0 0; background: rgba(0, 0, 0, .3); z-index: 250;
    display: block; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.sb-open .sb-mask { opacity: 1; pointer-events: auto; }
  .sidebar { position: fixed; top: 56px; left: 0; bottom: 0; z-index: 300;
    width: min(78vw, 320px); background: var(--bg); overflow-y: auto;
    -webkit-overflow-scrolling: touch; border-right: 1px solid var(--border-light);
    box-shadow: var(--shadow-pop); transform: translateX(-105%); transition: transform .22s ease; }
  body.sb-open .sidebar { transform: translateX(0); }
  .content { padding: 16px 14px; max-width: none; }

  /* 表单：三栏降一栏；输入框 16px 防 iOS 聚焦自动放大 */
  .form-grid { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .subj-row input, .subj-row select { font-size: 16px; }
  /* 成绩行动态栅格在窄屏横滚，保持列对齐 */
  .subj-rows { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .subj-row { min-width: 480px; }
  #tb-DSE .subj-row, #tb-其他 .subj-row { min-width: 340px; }
  #dseRows .subj-row, #alRows .subj-row, #apRows .subj-row { min-width: 380px; }

  /* 表格横向滑动，不挤压（方案页表格在 .card 内 → 容器滚；报告页无 thead → tbody 整体滚） */
  .card { overflow-x: auto; }
  .card table.grid { min-width: 480px; }
  .tier-table td:first-child, .timeline td:first-child { width: auto; }

  /* 学生卡片单列 */
  .stu-cards { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start !important; gap: 10px; }

  /* 报告页：收窄内边距，表格横滚（report 表格无 thead，tbody 独立成表不错位） */
  .report-page { padding: 22px 16px; }
  div.no-print[style*="max-width:800px"] { padding-left: 14px; padding-right: 14px; }  /* 报告工具条/提示条贴边修正 */
  .report-page table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .report-page table tbody { display: table; width: 100%; min-width: 440px; }
  .report-head h1 { font-size: 18px; }
  .report-cover { padding: 36px 24px; min-height: 52vh; }
  .cover-main h1 { font-size: 24px; letter-spacing: .12em; }

  /* 线路图节点缩小防溢出 */
  .flow-node { font-size: 12.5px; padding: 7px 10px; }
  .flow-branch { padding: 0 10px; }
  .flow-branch::before, .flow-branch::after { width: 10px; }

  /* 浮层全屏化 */
  .wb-toast { left: 16px; right: 16px; top: 66px; max-width: none; }
  #annoPop { width: calc(100vw - 32px); }
  #annoPanel { width: calc(100vw - 32px); right: 16px; }
}
