@import url("theme.css?v=20260907");
@import url("components.css?v=20260907");
/* ============================================
   LLenglish 共享样式表
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #e8f0ec 0%, #f3f2ef 100%);
  min-height: 100vh;
  padding: 0;
  color: rgba(0, 0, 0, 0.9);
}

/* 登录/注册/首页：内容垂直水平居中 */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 内页（学生档案等）：常规文档流，顶部对齐 */
body.app-page {
  display: block;
  padding: 0;
  background: #f3f2ef;
}

/* ---------- 卡片（登录/注册用） ---------- */
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 36px;
  width: 100%;
  max-width: 400px;
}
.card.center { text-align: center; }

.brand {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.3px;
}
.subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 22px;
}
h1 { font-size: 20px; margin-bottom: 18px; text-align: center; }

/* ---------- 表单 ---------- */
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
}
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dcdad6;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: #fff;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input[type="file"] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px dashed #dcdad6;
  border-radius: 10px;
  font-size: 14px;
  background: #fafaf9;
}

/* 角色选择卡片 */
.role-group { display: flex; gap: 10px; margin-top: 4px; }
.role-card {
  flex: 1;
  border: 1.5px solid #dcdad6;
  border-radius: 10px;
  padding: 13px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
}
.role-card input { display: none; }
.role-card:hover { border-color: #9db8b0; }
.role-card.selected {
  border-color: var(--green);
  background: #eef5f2;
  color: var(--green);
}

/* ---------- 按钮 ---------- */
button {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  border: 0;
  border-radius: 24px;
  background: var(--green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: default; }
button.btn-ghost {
  background: transparent;
  color: rgba(0, 0, 0, 0.6);
  border: 1.5px solid #dcdad6;
  margin-top: 10px;
}
button.btn-link {
  width: auto;
  margin: 0;
  padding: 4px 12px;
  background: transparent;
  color: #4a5a57;
  font-size: 13px;
  font-weight: 500;
  border-radius: 14px;
}
button.btn-link:hover { background: rgba(23, 85, 81, 0.08); color: var(--green); }
button.btn-sm {
  width: auto;
  margin: 0;
  padding: 9px 20px;
  font-size: 14px;
}

/* ---------- 提示 ---------- */
.error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
  text-align: center;
  line-height: 1.5;
}
.ok {
  color: #1e7e34;
  font-size: 13px;
  text-align: center;
  margin-bottom: 8px;
  min-height: 18px;
}
.foot {
  text-align: center;
  font-size: 14px;
  margin-top: 18px;
  color: rgba(0, 0, 0, 0.6);
}
.foot a { color: var(--green); font-weight: 600; text-decoration: none; }

/* 首页专用 */
.role-badge {
  display: inline-block;
  background: #eef5f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  margin: 6px 0 2px;
}
.tip {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.7;
  margin: 14px 0 6px;
}

/* ============================================
   内页布局（学生档案等）
   ============================================ */
.page { max-width: 960px; margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(8px);
  color: #33413f;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 85, 81, 0.14);
}
.topbar .brand { color: var(--green); text-align: left; font-size: 19px; }
.topbar .role-badge {
  background: rgba(23, 85, 81, 0.08) !important;
  color: var(--green) !important;
  margin: 0;
}
.user-area .uname { font-weight: 600; color: #33413f; }
.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.content { padding: 20px 20px 40px; }

/* ---- 页面切换平滑（三件套） ----
   1) scrollbar-gutter:stable —— 长短页切换时滚动条槽位恒占位，消除整页横跳
   2) @view-transition —— MPA 跨文档过渡（Chrome/Edge 126+），页面切换淡入淡出
   3) html{background} 与顶栏同底色，加载瞬间不闪白 */
html {
  scrollbar-gutter: stable;
  background: #faf9f6;
}
@view-transition {
  navigation: auto;
}
.content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.content-head h2 { font-size: 22px; }


/* 学生档案表格（浅绿表头 + 行分隔线，对齐品牌色系） */
.stu-table-wrap {
  background: #fff;
  border: 1px solid rgba(18, 58, 107, 0.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(18, 58, 107, 0.35);
}
.stu-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stu-table thead th {
  background: #e8f1e9;
  color: #2c4a3e;
  text-align: left;
  font-weight: 600;
  padding: 13px 18px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.stu-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid rgba(18, 58, 107, 0.08);
  color: rgba(0, 0, 0, 0.82);
  vertical-align: middle;
}
.stu-table tbody tr:hover { background: rgba(18, 58, 107, 0.03); }
.stu-table .td-name { font-weight: 700; color: #1c2b26; }
.stu-table .dim { color: rgba(0, 0, 0, 0.38); font-size: 13px; }
.stu-table .mini-btn { white-space: nowrap; }
.st-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* 学生卡片网格 */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.student-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.student-card .savatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef5f2;
  color: var(--green);
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.student-card .sinfo { min-width: 0; flex: 1; }
.student-card .sname { font-weight: 700; font-size: 16px; }
.student-card .smeta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 2px;
}
.student-card .snotes {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 8px;
  line-height: 1.5;
  word-break: break-word;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(0, 0, 0, 0.45);
  background: #fff;
  border-radius: 12px;
  font-size: 15px;
}

/* 弹窗 */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { font-size: 19px; margin-bottom: 4px; }

/* ============================================
   做题页面
   ============================================ */
.panel {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}
.panel h2 { font-size: 20px; margin-bottom: 16px; }

/* 进度条区域 */
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.quiz-head .score-right { color: #1e7e34; }
.quiz-head .score-wrong { color: #c0392b; }

/* 题目卡片 */
.q-card {
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.q-meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}
.q-stem {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 选项按钮 */
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 1.5px solid #dcdad6;
  border-radius: 10px;
  background: #fff;
  color: rgba(0, 0, 0, 0.9);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.q-option:hover:not(:disabled) { border-color: var(--green); background: #f6faf8; }
.q-option:disabled { cursor: default; }
.q-option .q-letter {
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}
/* 选中且正确 */
.q-option.correct {
  border-color: #1e7e34;
  background: #eef8f0;
}
.q-option.correct .q-letter { color: #1e7e34; }
/* 选中但错误 */
.q-option.wrong {
  border-color: #c0392b;
  background: #fdf0ee;
}
.q-option.wrong .q-letter { color: #c0392b; }
/* 未选中，但它是正确答案（答错后提示用） */
.q-option.hint {
  border-color: #9ad0a8;
  background: #f4fbf6;
}

/* 反馈区 */
.q-feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.q-feedback.ok {
  background: #eef8f0;
  color: #1e7e34;
}
.q-feedback.no {
  background: #fdf0ee;
  color: #c0392b;
}
.q-feedback .fb-title { font-weight: 700; margin-bottom: 4px; }
.q-feedback .fb-analysis {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.7);
}

/* 结果页 */
.result-box { text-align: center; padding: 20px 0; }
.result-score {
  font-size: 46px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}
.result-text {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.6);
  margin: 10px 0 20px;
}

/* 考点标签 */
.fb-tag {
  display: inline-block;
  margin-top: 8px;
  background: #eef5f2;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
}

/* ============================================
   错题本
   ============================================ */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.filter-bar label { margin: 0; font-size: 13px; }
.filter-bar select { width: auto; min-width: 140px; margin: 0; padding: 8px 12px; font-size: 14px; }
.filter-bar .spacer { flex: 1; }

.wb-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.wb-card.done { opacity: 0.6; }
.wb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.wb-cat {
  background: #eef5f2;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
}
.wb-count {
  background: #fdf0ee;
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
}
.wb-ok {
  background: #eef8f0;
  color: #1e7e34;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
}
.wb-date { font-size: 12px; color: rgba(0, 0, 0, 0.4); margin-left: auto; }
.wb-stem {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.wb-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.wb-actions button { width: auto; margin: 0; padding: 8px 18px; font-size: 14px; }
.wb-actions button.ghost {
  background: transparent;
  color: rgba(0, 0, 0, 0.6);
  border: 1.5px solid #dcdad6;
}

/* ============================================
   学情统计
   ============================================ */
.stat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.stat-label {
  width: 110px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.stat-bar-wrap {
  flex: 1;
  background: #f0efed;
  border-radius: 8px;
  height: 22px;
  overflow: hidden;
}
.stat-bar {
  height: 100%;
  background: var(--green);
  border-radius: 8px;
}
.stat-num {
  width: 70px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0efed;
  font-size: 14px;
}
.rank-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef5f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-name { flex: 1; }
.rank-num { font-weight: 600; color: #c0392b; }

/* 统计页的"练这个"按钮 */
.practice-btn {
  width: auto;
  margin: 0;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.practice-btn:hover { opacity: 0.85; }

/* 创建成功后的"发放信息卡" */
.cred-card {
  margin-top: 16px;
  background: #eef8f0;
  border: 1px solid #bfe3c8;
  border-radius: 12px;
  padding: 16px;
}
.cred-card .cred-title {
  font-weight: 700;
  color: #1e7e34;
  margin-bottom: 10px;
  font-size: 14px;
}
.cred-card pre {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0 0 12px;
  font-family: inherit;
}
.copy-btn { width: auto; margin: 0; padding: 8px 20px; font-size: 14px; }

/* 列表内的小按钮（复制账号） */
.mini-btn {
  width: auto;
  margin: 0;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #eef5f2;
  color: var(--green);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
/* ===== 品牌主页 ===== */
.hero { text-align: center; padding: 26px 20px 34px; }
.hero-logo { height: 72px; width: auto; max-width: 70%; margin-bottom: 10px; }
.hero h1 { font-size: 26px; color: var(--green); margin: 8px 0 10px; letter-spacing: 1px; }
.hero .hero-sub { font-size: 15px; color: rgba(0, 0, 0, 0.6); line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.hero-actions button { width: auto; margin: 0; padding: 12px 36px; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.7;
  vertical-align: top;
}
.compare-table th { color: var(--green); font-size: 13px; white-space: nowrap; }
.compare-table td:first-child { color: rgba(0, 0, 0, 0.45); width: 90px; white-space: nowrap; }
.compare-table .good { color: var(--green); font-weight: 600; }

.qr-panel { text-align: center; }
.qr-panel img.qr {
  width: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.qr-wechat { font-size: 15px; font-weight: 700; color: var(--green); margin-top: 12px; user-select: all; }
.qr-note { font-size: 13px; color: rgba(0, 0, 0, 0.5); margin-top: 6px; line-height: 1.8; }

.site-footer {
  text-align: center;
  padding: 24px 0 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  line-height: 2;
}
.site-footer img { height: 20px; vertical-align: middle; margin-right: 6px; }

/* ===== 顶栏 · 墨绿品牌一行式（与招生落地页同一套品牌语言）===== */
.site-nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13.5px;
  padding: 7px 13px;
  border-radius: 17px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-nav a.nav-item { display: inline-block; }
.site-nav a.nav-item:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a.nav-item.active {
  background: #fff;
  color: var(--green);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.topbar-inner {
  position: sticky;
  top: 0;
  z-index: 50;
  /* 顶栏形态唯一来源：宽度、居中、上方留白全部在这条规则里，
     不依赖任何页面容器的 padding —— 任何页面挂载后形态必然一致。
     宽度 920px = 内容卡实际宽度（内页.page 960 - content padding 40；
     出卷器.wrap 1000 - padding 40），左右边缘与下方白卡完全对齐 */
  max-width: 920px;
  margin: 20px auto 0;
  background: var(--green);
  color: #fff;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(18, 58, 107, 0.25);
}
.topbar-inner .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 8px;
  flex: 0 0 auto;
}
.topbar-inner .brand img { height: 24px; width: auto; display: block; }
.topbar-inner .brand-name {
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.topbar-inner .role-badge {
  background: var(--gold);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 9px;
  margin: 0;
  border-radius: 12px;
  border: none;
}
.topbar-inner .site-nav { flex: 1 1 auto; min-width: 0; }
.topbar-inner .user-area {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 4px 6px 4px 6px;
}
.topbar-inner .uname {
  font-weight: 600;
  color: #fff;
  font-size: 13px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-inner .btn-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.topbar-inner .btn-link:hover { background: #fff; color: var(--green); }
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; padding: 10px 14px; row-gap: 8px; }
  .site-nav { flex-wrap: wrap; }
  .topbar-inner .user-area { margin-left: auto; }
  .topbar-inner .uname { max-width: 90px; }
}

.hero-art {
  text-align: center;
  padding: 58px 24px 46px;
  background: transparent;
  box-shadow: none;
}
.hero-art .emblem { height: 86px; width: auto; margin-bottom: 14px; }
.hero-art h1 {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 34px;
  font-weight: 600;
  color: #26332f;
  letter-spacing: 6px;
  margin: 4px 0 14px;
}
.hero-art .motto {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 2px;
  line-height: 2;
}
.hero-art .divider {
  width: 56px;
  height: 2px;
  background: rgba(23, 85, 81, 0.4);
  margin: 22px auto;
  border: 0;
}
.hero-art .lead {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  line-height: 2.1;
  max-width: 560px;
  margin: 0 auto;
}

.dual-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .dual-cards { grid-template-columns: 1fr; } }
.dual-cards .dc {
  border: 1px solid rgba(23, 85, 81, 0.16);
  border-radius: 12px;
  padding: 26px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}
.dual-cards .dc h3 {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 19px;
  color: #26332f;
  letter-spacing: 2px;
  margin: 0 0 10px;
}
.dual-cards .dc p { font-size: 13px; color: rgba(0, 0, 0, 0.5); line-height: 1.9; margin: 0 0 16px; }
.dual-cards .dc button { width: auto; margin: 0; padding: 9px 30px; font-size: 14px; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.res-grid .res {
  border-left: 3px solid rgba(23, 85, 81, 0.45);
  padding: 4px 0 4px 16px;
}
.res-grid .res h4 {
  font-size: 15px;
  color: #26332f;
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.res-grid .res p { font-size: 13px; color: rgba(0, 0, 0, 0.5); line-height: 1.9; margin: 0; }

.contact-lite { text-align: center; }
.contact-lite img.qr { width: 150px; border-radius: 10px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1); }
.contact-lite .wx {
  font-size: 14px;
  color: #26332f;
  margin-top: 12px;
  letter-spacing: 1px;
  user-select: all;
}
.contact-lite .note { font-size: 13px; color: rgba(0, 0, 0, 0.45); margin-top: 8px; line-height: 1.9; }

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(23, 85, 81, 0.65);
  text-align: center;
  margin-bottom: 6px;
}
.panel h2.serif {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 21px;
  letter-spacing: 3px;
  color: #26332f;
  text-align: center;
  margin-bottom: 22px;
}



/* 顶部浮动提示条（替代 alert，不会被浏览器拦截） */
.toast {
  display: none;
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(23, 85, 81, 0.95);
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  max-width: 80%;
}
.toast.err { background: rgba(192, 57, 43, 0.95); }

.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-actions button { margin-top: 0; }

/* 回收账号按钮（危险操作，用幽灵红框降低误点概率） */
.revoke-btn {
  width: auto;
  margin: 0;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #c0392b;
  border: 1px solid #e8b4ae;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.revoke-btn:hover { background: #fdf0ee; }

/* 做题页的专项模式提示条 */
.focus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eef5f2;
  border: 1px solid #cfe3dc;
  color: var(--green);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 16px;
  font-size: 14px;
}
.focus-bar strong { font-weight: 700; }
.focus-bar button {
  width: auto;
  margin: 0;
  padding: 5px 14px;
  font-size: 13px;
  background: var(--green);
}

/* ===== nav: grouped dropdown + badge + hamburger ===== */
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nav-group { position: relative; }
.nav-item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: 16px; font-size: 13.5px;
  color: rgba(255,255,255,0.88); text-decoration: none; white-space: nowrap;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.nav-item:hover { background: rgba(255,255,255,0.14); color: #fff; }
.nav-item.active { background: #fff; color: var(--green); font-weight: 700; }
.caret { font-size: 10px; opacity: 0.7; }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 148px;
  background: #fff; border-radius: 10px; margin-top: 0; padding: 6px;
  border-top: 6px solid transparent; background-clip: padding-box;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22); z-index: 80;
}
.dd-menu.right { left: auto; right: 0; }
.dd-menu.open { display: block; }
.dd-item {
  display: block; padding: 9px 14px; border-radius: 7px; font-size: 13.5px;
  /* !important：压过顶栏 .site-nav a 的白字继承（白底白字曾致下拉看似空白） */
  color: #2c4a3e !important; text-decoration: none; white-space: nowrap;
  font-weight: 500;
}
.dd-item:hover { background: rgba(18,58,107,0.08); }
.dd-item.active { color: var(--green); font-weight: 700; background: rgba(18,58,107,0.06); }
.nav-badge {
  display: none; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 2px;
  background: #e5533d; color: #fff; border-radius: 9px; font-size: 11px;
  font-weight: 700; line-height: 17px; text-align: center;
}
.user-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px; color: #fff; cursor: pointer; font-family: inherit; font-size: 13px;
}
.user-btn:hover { background: rgba(255,255,255,0.18); }
.user-group .uname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hamburger {
  display: none; background: transparent; border: 0; color: #fff;
  font-size: 22px; cursor: pointer; padding: 4px 10px;
}

/* narrow screens: hamburger drawer */
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: nowrap; justify-content: space-between; }
  .hamburger { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--green); box-shadow: 0 12px 24px rgba(0,0,0,0.25); z-index: 90;
  }
  .site-nav.open { display: flex; }
  .nav-item { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .dd-menu { position: static; box-shadow: none; margin: 4px 0 4px 12px; background: rgba(255,255,255,0.96); }
  .topbar-inner { position: relative; }
}




/* ---- 顶栏菜单项垂直对齐统一：a 与 button 盒模型拉平 ----
   链接(7px padding)与下拉按钮(8px padding + button默认边框/字体)基线不齐，
   此规则统一两者：同 padding、同 line-height、清 button 默认外观 */
.site-nav .nav-item,
.site-nav button.nav-item.dd-toggle {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 8px 13px;
  line-height: 1;
  border: 0;
  font: inherit;
  cursor: pointer;
}
/* active 白底保障（特异性压过盒模型统一规则） */
.site-nav .nav-item.active { background: #fff; color: var(--green); font-weight: 700; }

.site-nav .nav-group { display: flex; align-items: center; }

.site-nav .nav-group { align-self: center; height: auto; }

/* 宽屏：group 锁定与链接同高(37px)，修复 group 被异常拉伸至59px导致的菜单基线下沉；
   dd-menu 为 absolute 定位不受影响；窄屏(≤900)汉堡布局走 column 不加锁 */
@media (min-width: 901px) {
  .site-nav .nav-group { height: 37px; }
}

/* 根治：落地页裸 button{margin-top:22px;width:100%} 命中顶栏按钮致菜单基线下沉，
   顶栏作用域内覆盖（不影响落地页表单按钮） */
.topbar-inner button { margin-top: 0; width: auto; }

/* 预约测评入口的待联系红点：金色（区别于作业待批改的红色） */
.nav-badge--gold { background: var(--gold); color: #fff; }

/* ── 移动端表单控件字号兜底（2026-09-17 全平台验收）───────────────────────
   iOS Safari 在聚焦「字号 <16px」的输入框/下拉时会自动放大整页，放大后页面
   要手动双指缩回。实测本站在手机会踩到的控件：作业页(选择学生/作业名称/备注)、
   练习页三个筛选下拉、改密页三个密码框、账号管理页三个输入框，均为 15px。
   这里只在窄屏抬到 16px，桌面视觉不受影响。 */
@media (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea { font-size: 16px; }
}
