/* ==========================================================
   遴选笔试训练 · 本地网站样式
   政务深蓝 + 活力橙，大字号、宽按钮，适合中年用户
   ========================================================== */
:root {
  --blue: #1E5AAC;
  --blue-dark: #174682;
  --blue-light: #EEF3FA;
  --orange: #F08A24;
  --orange-light: #FFF7ED;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1F2937;
  --text2: #4B5563;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --line: #E9EDF3;
  --green: #16A34A;
  --green-bg: #EDF9F0;
  --red: #DC2626;
  --red-bg: #FDEDED;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(30, 90, 172, .07);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #E7ECF2;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 桌面端：模拟手机窗口，居中显示 */
.phone {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(20, 40, 80, .12);
  overflow: hidden;
}

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(23, 70, 130, .18);
}
.navbar .nav-title { font-size: 18px; font-weight: 700; flex: 1; text-align: center; letter-spacing: .5px; }
.navbar .nav-side { width: 66px; display: flex; align-items: center; }
.navbar .nav-side.right { justify-content: flex-end; }
.nav-back {
  background: none; border: none; color: #fff; font-size: 16px;
  cursor: pointer; padding: 8px 4px; font-family: inherit;
}
.nav-back:active { opacity: .7; }
.nav-badge { font-size: 13px; color: #FFE3C2; }

/* ===== 内容区 ===== */
.view { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); min-height: calc(100vh - 60px); }
.view.no-tab { padding-bottom: 32px; }
.fade { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== 底部 TabBar ===== */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px;
  z-index: 30;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1; text-align: center; padding: 8px 0 9px;
  color: #8A94A6; cursor: pointer; background: none; border: none;
  font-family: inherit; font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tab-item svg { width: 23px; height: 23px; fill: currentColor; }
.tab-item.on { color: var(--blue); font-weight: 700; }
.tab-item:active { background: #F7F9FC; }

/* ===== 通用 ===== */
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap8 { gap: 8px; }
.gap12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.center { text-align: center; }
.flex1 { flex: 1; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.sec-title { font-size: 18px; font-weight: 700; margin: 4px 2px 12px; }
.sec-tip { font-size: 13px; color: var(--faint); }
.t-sub { font-size: 14px; color: var(--muted); line-height: 1.7; }
.t-small { font-size: 13px; color: var(--faint); }
.t-blue { color: var(--blue); }
.t-orange { color: var(--orange); }
.t-green { color: var(--green); }
.t-red { color: var(--red); }
.bold { font-weight: 700; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* 标签 */
.tag {
  display: inline-block; font-size: 12px; padding: 3px 10px;
  border-radius: 6px; background: var(--blue-light); color: var(--blue);
  margin: 0 6px 6px 0; white-space: nowrap;
}
.tag.orange { background: var(--orange-light); color: var(--orange); }
.tag.gray { background: #F1F3F7; color: var(--muted); }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.red { background: var(--red-bg); color: var(--red); }

/* 按钮 */
.btn {
  display: block; width: 100%; min-height: 54px;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700;
  background: var(--blue); color: #fff;
  transition: transform .08s, opacity .15s;
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn.orange { background: var(--orange); }
.btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn.soft { background: var(--blue-light); color: var(--blue); }
.btn.gray { background: #C9D3E0; }
.btn.danger { background: #fff; color: var(--red); border: 2px solid var(--red); }
.btn.sm { min-height: 42px; font-size: 15px; width: auto; padding: 0 20px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn:disabled { background: #C9D3E0; cursor: default; }

/* 输入 */
.input {
  width: 100%; height: 54px; border: 1px solid #DCE3EC; border-radius: 12px;
  background: #F9FBFD; padding: 0 14px; font-size: 16px; font-family: inherit;
  color: var(--text); outline: none; margin-top: 10px;
}
.input:focus { border-color: var(--blue); background: #fff; }

/* 进度条 */
.bar { height: 9px; background: #E9EDF3; border-radius: 9px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 9px; transition: width .3s; }
.bar > i.orange { background: var(--orange); }
.bar > i.green { background: var(--green); }

/* 筛选 chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; padding: 9px 16px; border-radius: 22px;
  background: #fff; color: var(--text2); border: 1px solid var(--line);
}
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.chip.warm { background: var(--orange-light); }
.chip.warm.on { background: var(--orange); border-color: var(--orange); }

/* ===== 首页顶部蓝色区 ===== */
.hero {
  background: var(--blue); color: #fff;
  margin: -16px -16px 14px; padding: 20px 18px 22px;
  padding-top: calc(20px + env(safe-area-inset-top));
}
.hero .greet { font-size: 18px; font-weight: 700; }
.hero .rank-line { font-size: 13px; color: #C9DCF5; margin-top: 3px; }
.rank-pill { background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 20px; }
.hero-nums { display: flex; background: rgba(255,255,255,.13); border-radius: 12px; padding: 14px 0; margin-top: 18px; }
.hero-nums > div { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,.2); }
.hero-nums > div:last-child { border-right: none; }
.hero-nums b { display: block; font-size: 24px; line-height: 1.2; }
.hero-nums span { font-size: 12px; color: #C9DCF5; }
.hero .bar { background: rgba(255,255,255,.25); }
.hero .bar > i { background: var(--orange); }
.hero-prog-text { font-size: 12px; color: #C9DCF5; margin-top: 7px; display: block; }
.checkin {
  margin-top: 16px; height: 50px; border-radius: 12px; border: none;
  background: var(--orange); color: #fff; font-size: 17px; font-weight: 700;
  width: 100%; cursor: pointer; font-family: inherit;
}
.checkin.done { background: rgba(255,255,255,.22); }

/* 每日一题 */
.daily {
  background: #fff; border-left: 5px solid var(--orange);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  margin-bottom: 18px; cursor: pointer;
}
.daily:active { background: #FFFDF8; }
.daily .d-title { font-size: 17px; font-weight: 700; color: var(--blue); }
.daily .d-stem { font-size: 14px; color: var(--text2); margin-top: 8px; line-height: 1.6; }

/* 闯关地图 */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.map-item {
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent;
}
.map-item:active { border-color: var(--blue); }
.map-item.finish { background: #FFFBF4; }
.map-item.lock { opacity: .58; }
.map-item h4 { margin: 0; font-size: 16px; }
.map-state { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--blue-light); color: var(--blue); }
.map-state.lock { background: #F1F3F7; color: var(--faint); }
.map-state.finish { background: var(--orange-light); color: var(--orange); }
.map-count { font-size: 12px; color: var(--muted); margin-top: 10px; }
.map-pct { font-size: 12px; color: var(--faint); margin-top: 5px; display: block; }

/* 入口条 */
.entry-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 2px; border-bottom: 1px solid var(--line); cursor: pointer;
  font-size: 16px;
}
.entry-row:last-child { border-bottom: none; }
.entry-row:active { background: #FAFBFD; }
.entry-row .right { color: var(--faint); font-size: 14px; }
.entry-row .arrow { color: #C0C6D0; font-size: 20px; margin-left: 8px; }

/* ===== 题库列表 ===== */
.q-item {
  background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px; cursor: pointer;
}
.q-item:active { background: #FAFBFD; }
.q-stem { font-size: 15px; line-height: 1.65; margin-top: 10px; }
.q-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

/* ===== 答题页 ===== */
.quiz-top { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.quiz-top .bar { margin-top: 10px; }
/* 答题进度条：可拖动跳转题目 */
.quiz-top .quiz-bar { position: relative; height: 22px; margin-top: 10px; display: flex; align-items: center; overflow: visible; }
.quiz-top .quiz-bar > i { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 9px; }
.quiz-range { position: absolute; left: 0; top: 0; width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.quiz-range::-webkit-slider-runnable-track { background: transparent; height: 22px; }
.quiz-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(30,90,172,.4); cursor: pointer; }
.quiz-range::-moz-range-track { background: transparent; height: 22px; }
.quiz-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(30,90,172,.4); cursor: pointer; }
.opt {
  display: flex; align-items: flex-start; gap: 12px;
  background: #F7F9FC; border: 2px solid #F7F9FC; border-radius: 12px;
  padding: 14px; margin-bottom: 10px; cursor: pointer; font-size: 16px; line-height: 1.6;
}
.opt:active { border-color: #B9C9DF; }
.opt.sel { background: var(--blue-light); border-color: var(--blue); }
.opt.right { background: var(--green-bg); border-color: var(--green); }
.opt.wrong { background: var(--red-bg); border-color: var(--red); }
.opt .key {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid #D5DCE6; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.opt.sel .key { background: var(--blue); border-color: var(--blue); color: #fff; }
.opt.right .key { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong .key { background: var(--red); border-color: var(--red); color: #fff; }
.opt .txt { flex: 1; }
.material { background: #FFFDF7; border: 1px solid #F3E7D2; }
.mat-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; color: var(--blue); font-size: 15px; }
.mat-body { font-size: 15px; color: var(--text2); line-height: 1.8; margin-top: 10px; white-space: pre-line; }
.result-box { border-left: 5px solid var(--green); }
.result-box.bad { border-left-color: var(--red); }
.res-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: var(--green-bg); }
.res-head.bad { background: var(--red-bg); }
.res-head b { font-size: 18px; }
.res-line { display: flex; font-size: 15px; margin-top: 10px; }
.res-line .lab { width: 88px; color: var(--muted); }
.res-line .val { font-weight: 700; }

/* 规范词专项入口 */
.norm-entry { border-left: 5px solid var(--blue); background: #F4F8FE; }

/* 主观题作答区 */
.essay-area {
  width: 100%; min-height: 150px; box-sizing: border-box;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; line-height: 1.8; color: var(--text); resize: vertical;
  font-family: inherit; background: #FBFCFE;
}
.essay-area:focus { outline: none; border-color: var(--blue); background: #fff; }
.result-box .tag.orange { margin-right: 6px; line-height: 2; }
/* 提交后自动滚动到答案区时，给顶部导航留出空间 */
.result-box { scroll-margin-top: 88px; }

/* 底部固定操作条 */
.sticky-action {
  position: sticky; bottom: 0; z-index: 20;
  background: #fff; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,.05);
}
/* 显示 TabBar 的页面，操作条上移，避免被 TabBar 遮住 */
.view.has-tab .sticky-action { bottom: 62px; }

/* ===== 措施卡 ===== */
.mcard {
  background: #fff; border-left: 5px solid var(--orange);
  border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
  margin-bottom: 14px; cursor: pointer; min-height: 132px;
}
.mcard:active { transform: scale(.995); }
.mcard .scene { font-size: 16px; line-height: 1.75; margin-top: 12px; }
.mcard .measure { font-size: 16px; line-height: 1.85; margin-top: 12px; font-weight: 600; }
.mcard .flip-tip { font-size: 12px; color: #C0C6D0; margin-top: 14px; }
.fav-btn {
  border: 1px solid #E5E9F0; background: #fff; color: var(--faint);
  font-size: 12px; padding: 5px 12px; border-radius: 16px; cursor: pointer; font-family: inherit;
}
.fav-btn.on { color: var(--orange); border-color: var(--orange); background: var(--orange-light); }

/* ===== 作业 ===== */
.topic {
  background: #F7F9FC; border: 2px solid #F7F9FC; border-radius: 12px;
  padding: 14px; margin-top: 10px; cursor: pointer;
}
.topic.on { background: var(--blue-light); border-color: var(--blue); }
.topic h4 { margin: 0 0 6px; font-size: 15px; }
.topic p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.img-cell { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #F1F3F7; }
.img-cell img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.img-cell .del {
  position: absolute; right: 0; top: 0; background: rgba(0,0,0,.55); color: #fff;
  border: none; font-size: 11px; padding: 3px 8px; cursor: pointer; font-family: inherit;
}
.img-add {
  aspect-ratio: 1 / 1; border: 2px dashed #C9D3E0; border-radius: 10px;
  background: #F7F9FC; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 12px;
}
.img-add b { font-size: 30px; color: var(--blue); line-height: 1; font-weight: 400; }
.img-tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 图片预览弹层 */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.overlay img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.overlay .close { position: absolute; top: 18px; right: 20px; color: #fff; font-size: 30px; cursor: pointer; }

/* 分数 */
.score-big { font-size: 64px; font-weight: 800; line-height: 1; }
.stat-grid { display: flex; text-align: center; }
.stat-grid > div { flex: 1; }
.stat-grid b { display: block; font-size: 24px; }
.stat-grid span { font-size: 12px; color: var(--muted); }
.point-item { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 15px; }
.point-item.hit { background: var(--green-bg); color: #14532D; }
.point-item.miss { background: var(--red-bg); color: #7F1D1D; }
.sug { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 6px; padding-left: 14px; position: relative; }
.sug::before { content: "·"; position: absolute; left: 2px; color: var(--orange); font-weight: 700; }
.comment { background: #F7F9FC; border-radius: 10px; padding: 14px; font-size: 15px; line-height: 1.8; margin-top: 10px; }

/* 徽章墙 */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.badge {
  background: var(--orange-light); border-radius: 12px; padding: 14px 6px; text-align: center;
}
.badge.lock { background: #F1F3F7; color: var(--faint); }
.badge .b-icon { font-size: 26px; color: var(--orange); }
.badge.lock .b-icon { color: #C0C6D0; }
.badge .b-name { font-size: 14px; font-weight: 700; margin-top: 4px; }
.badge .b-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.badge .b-prog { font-size: 11px; color: var(--orange); margin-top: 4px; }
.badge.lock .b-prog { color: var(--faint); }

/* 空态 */
.empty { text-align: center; padding: 60px 20px; color: var(--faint); font-size: 15px; }
.empty .e-btn { margin-top: 18px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  background: rgba(30, 41, 59, .92); color: #fff; font-size: 15px;
  padding: 12px 22px; border-radius: 24px; z-index: 200; max-width: 80%; text-align: center;
  animation: fade .2s;
}

@media (max-width: 480px) {
  .phone { box-shadow: none; }
  body { background: var(--bg); }
}

/* ===== 登录门 ===== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(160deg, #EAF1FB 0%, #F5F7FA 60%); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 32px 26px; box-shadow: 0 10px 40px rgba(30,90,172,.13); }
.login-logo { width: 58px; height: 58px; border-radius: 16px; background: var(--blue); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; letter-spacing: 1px; }
.login-title { text-align: center; font-size: 21px; font-weight: 800; color: var(--blue-dark); }
.login-sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.login-tabs { display: flex; gap: 6px; margin: 24px 0 18px; background: var(--bg); padding: 5px; border-radius: 12px; }
.login-tabs .lt { flex: 1; border: 0; background: transparent; padding: 10px 4px; border-radius: 9px; font-size: 14px; color: var(--muted); cursor: pointer; }
.login-tabs .lt.on { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 2px 8px rgba(30,90,172,.1); }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 7px; font-weight: 600; }
.login-field input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 16px; color: var(--text); background: #FBFCFE; }
.login-field input:focus { outline: none; border-color: var(--blue); background: #fff; }
.login-tip { font-size: 12px; color: var(--faint); text-align: center; margin-top: 14px; line-height: 1.6; }
.login-msg { margin-top: 14px; padding: 10px 12px; background: var(--red-bg); color: var(--red); border-radius: 9px; font-size: 13px; text-align: center; }

/* ===== 五大基本功模块 ===== */
.module-list { display: flex; flex-direction: column; gap: 12px; }
.module-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-left-width: 5px; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); cursor: pointer; }
.module-item:active { transform: scale(.99); }
.module-icon { width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.module-info { flex: 1; min-width: 0; }
.module-info h4 { margin: 1px 0 0; font-size: 16px; color: var(--text); }
.module-count { font-size: 12px; color: var(--faint); }
.module-desc { font-size: 12px; color: var(--muted); margin: 5px 0 9px; line-height: 1.5; }
.module-skills { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; }
.module-skills span { font-size: 11px; color: var(--muted); background: var(--blue-light); border-radius: 10px; padding: 2px 7px; }

/* ===== 老师后台：题库导入反馈 ===== */
.notice { padding: 10px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 10px; line-height: 1.5; }
.notice.ok { background: #e9f7ef; color: #16794b; }
.notice.err { background: var(--red-bg); color: var(--red); }

/* ==========================================================
   机构介绍页（手机 / 电脑通用）
   ========================================================== */
.about-page { padding-bottom: 24px; }
.about-hero {
  background: linear-gradient(135deg, #1E5AAC 0%, #174682 60%, #0f3460 100%);
  color: #fff; padding: 40px 24px 36px; position: relative; overflow: hidden;
}
.about-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(240,138,36,.18);
}
.about-hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.about-brand { font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.about-system { font-size: 16px; opacity: .9; margin-top: 4px; }
.about-tagline { font-size: 15px; margin-top: 14px; color: #FFD9A8; line-height: 1.7; max-width: 620px; }
.about-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.about-hero-tags span {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.about-section { padding: 22px 18px 4px; }
.about-sec-title {
  font-size: 18px; font-weight: 800; color: var(--blue);
  padding-left: 12px; border-left: 4px solid var(--orange); margin-bottom: 14px;
}
.about-intro p { font-size: 15px; line-height: 1.9; color: var(--text2); margin: 0 0 10px; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow);
}
.about-card-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue-light);
  color: var(--blue); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.about-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.about-card-desc { font-size: 13px; line-height: 1.75; color: var(--muted); }
.about-solve { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 16px; box-shadow: var(--shadow); }
.about-solve-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--text2); line-height: 1.7;
}
.about-solve-item:last-child { border-bottom: 0; }
.about-num {
  flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.about-courses { display: flex; flex-direction: column; gap: 12px; }
.about-course { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.about-course-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.about-course-head b { font-size: 16px; color: var(--blue); }
.about-course-head span { font-size: 12px; color: var(--faint); }
.about-course ul { margin: 0; padding-left: 18px; }
.about-course li { font-size: 13px; color: var(--text2); line-height: 1.9; }
.about-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-result {
  background: linear-gradient(135deg, #FFF7ED, #fff); border: 1px solid #FDE3C4;
  border-radius: 14px; padding: 16px; text-align: center;
}
.about-year { font-size: 13px; color: var(--muted); }
.about-score { font-size: 18px; font-weight: 800; color: var(--orange); margin-top: 4px; }
.about-note { font-size: 12px; color: var(--faint); margin-top: 10px; line-height: 1.7; }
/* 学员好评截图画廊 */
.about-praise-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 12px; }
.about-praise-item {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.about-praise-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,90,172,.14); }
.about-praise-item img {
  display: block; width: 100%; height: auto; background: #f0f3f8;
}
.about-praise-item figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; font-size: 13px; color: var(--text2); line-height: 1.5;
  border-top: 1px solid var(--line);
}
.zoom-hint {
  flex: 0 0 auto; font-size: 12px; color: var(--blue);
  background: var(--blue-light); padding: 3px 9px; border-radius: 12px;
}
.about-contact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.about-wx { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.about-wx-label { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.about-wx-ids { display: flex; flex-wrap: wrap; gap: 8px; }
.about-wx-id {
  font-size: 18px; color: var(--blue); font-family: monospace;
  background: var(--blue-light); padding: 6px 14px; border-radius: 8px;
}
.about-contact-tip { font-size: 13px; color: var(--text2); line-height: 1.8; margin-top: 12px; }
/* 联系方式：两张二维码左右并排，各自下方显示对应微信号 */
.about-contact-qrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about-qr-row {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.about-qr {
  width: 100%; max-width: 190px; position: relative; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.about-qr img { display: block; width: 100%; height: auto; }
.about-qr-tip {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 12px; color: #fff; background: rgba(30,90,172,.82); padding: 5px 0;
}
.about-contact-info { width: 100%; text-align: center; }
.about-wx { flex-direction: column; gap: 6px; justify-content: center; }
.about-wx-ids { justify-content: center; }
.about-contact-qrs > .about-contact-tip { grid-column: 1 / -1; margin-top: 0; text-align: center; }
.about-footer {
  text-align: center; font-size: 12px; color: var(--faint);
  padding: 24px 18px; margin-top: 10px; border-top: 1px solid var(--line);
}
.about-entry .tag { font-size: 12px; }

/* ===== 官网模式：未登录落地页的登录入口 ===== */
.portal-brand { font-weight: 800; font-size: 15px; letter-spacing: 1px; line-height: 1.12; text-align: center; }
.portal-brand span { display: inline-block; }
.navbar.portal .portal-brand { width: 44px; min-width: 44px; }
.portal-title { color: rgba(255,255,255,.85); font-weight: 400; }
.nav-login-btn {
  border: 1px solid rgba(255,255,255,.65); background: rgba(255,255,255,.14);
  color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 18px; cursor: pointer;
}
.nav-login-btn:hover { background: rgba(255,255,255,.28); }
.portal-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.portal-login-btn {
  background: #F08A24; color: #fff; font-size: 16px; font-weight: 700;
  padding: 13px 34px; border-radius: 26px; box-shadow: 0 6px 18px rgba(240,138,36,.35);
}
.portal-login-btn:hover { background: #d97a1c; }
.portal-cta-tip { font-size: 12px; color: rgba(255,255,255,.8); }
/* 独立模块页：页头 + 三步说明 */
.module-hero {
  background: linear-gradient(135deg, #EAF1FB, #F8FBFF); border: 1px solid #D9E4F2;
  border-radius: 16px; padding: 24px 20px; text-align: center; margin-bottom: 14px;
}
.mh-badge {
  display: inline-block; font-size: 11px; color: var(--blue); background: #fff;
  border: 1px solid #C9DCF5; border-radius: 12px; padding: 3px 10px; margin-bottom: 10px;
}
.module-hero h1 { font-size: 22px; margin: 0 0 8px; color: var(--blue); }
.module-hero p { font-size: 13px; color: var(--text2); line-height: 1.8; margin: 0 auto 14px; max-width: 620px; }
.module-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.module-steps > div {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 8px; text-align: center;
}
.module-steps b {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: 12px;
  margin-right: 6px;
}
.module-steps span { font-size: 12px; color: var(--text2); }
.module-mini-bar { height: 5px; background: var(--line); border-radius: 4px; overflow: hidden; flex: 1; }
.module-mini-bar i { display: block; height: 100%; }
.pm-progress { font-size: 11px; color: var(--faint); flex: 0 0 auto; }

/* 官网公开模块卡：内容可见，点击才要求学员登录 */
.portal-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.portal-module {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.portal-module:hover { transform: translateY(-2px); border-color: var(--blue); }
.pm-head { display: flex; align-items: center; gap: 10px; }
.pm-icon {
  width: 38px; height: 38px; border-radius: 10px; color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.pm-title { flex: 1; min-width: 0; }
.pm-title h4 { font-size: 15px; margin: 0; }
.pm-title span { font-size: 12px; color: var(--muted); }
.pm-no { font-size: 12px; color: var(--faint); font-weight: 700; flex: 0 0 auto; }
.pm-detail { font-size: 13px; color: var(--text2); line-height: 1.7; margin: 12px 0 10px; }
.pm-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-skills span { font-size: 11px; color: var(--blue); background: var(--blue-light); border-radius: 10px; padding: 3px 8px; }
.pm-sample { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; padding: 8px 10px; background: #F8FAFD; border-radius: 8px; }
.pm-foot { margin-top: auto; padding-top: 14px; }
.pm-progress-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pm-foot .btn { width: 100%; }

.portal-join {
  background: linear-gradient(135deg, #EEF3FA, #fff); border: 1px solid #D9E4F2;
  border-radius: 16px; padding: 24px 20px; text-align: center;
}
.portal-join-title { font-size: 18px; font-weight: 800; color: var(--blue); }
.portal-join-mods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.portal-mod {
  font-size: 12px; padding: 5px 12px; border: 1px solid; border-radius: 16px; background: #fff;
}
.portal-join-desc { font-size: 13px; color: var(--text2); line-height: 1.8; margin: 0 auto 16px; max-width: 560px; }
.login-back-home {
  text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; cursor: pointer;
}
.login-back-home:hover { color: var(--blue); }

/* ==========================================================
   电脑端适配（宽屏）：从手机壳切换为桌面布局
   - 顶部品牌栏 + 横向导航，内容区居中宽屏
   - 手机端(<900px)完全保持原样
   ========================================================== */
@media (min-width: 900px) {
  body { background: #EEF2F7; }

  /* 去掉手机壳限制 */
  .phone {
    max-width: none; width: 100%; min-height: 100vh;
    box-shadow: none; background: transparent; overflow: visible;
  }

  /* 顶部导航：品牌 + 标题，居中宽屏 */
  .navbar {
    position: sticky; top: 0; height: 64px; padding: 0 32px;
    background: linear-gradient(90deg, #1E5AAC, #174682);
  }
  .navbar::before {
    content: '习正遴选'; font-size: 17px; font-weight: 800; letter-spacing: 1px;
    color: #FFD9A8; padding-right: 20px; margin-right: 20px;
    border-right: 1px solid rgba(255,255,255,.3);
  }
  .navbar.portal::before { content: ''; padding: 0; margin: 0; border: 0; }
  .navbar.portal .nav-title { text-align: center; flex: 1; }
  .navbar .nav-title { text-align: left; flex: 1; font-size: 17px; }
  .navbar .nav-side { width: auto; min-width: 90px; }
  .nav-badge { font-size: 13px; }

  /* 横向导航条：由底部 TabBar 改造为顶部 sticky */
  .tabbar {
    position: sticky; top: 64px; left: auto; transform: none;
    width: 100%; max-width: none; z-index: 29;
    justify-content: center; gap: 8px;
    padding: 8px 32px; border-top: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
  }
  .tab-item {
    flex: 0 0 auto; min-width: 132px; padding: 10px 18px;
    flex-direction: row; gap: 8px; font-size: 14px; border-radius: 10px;
  }
  .tab-item svg { width: 19px; height: 19px; }
  .tab-item.on { background: var(--blue-light); }
  .tab-item:hover { background: #F7F9FC; }
  .tab-item.on:hover { background: var(--blue-light); }

  /* 内容区：居中宽屏，去掉底部 tab 预留空间 */
  .view {
    max-width: 1040px; margin: 0 auto; padding: 24px 32px 60px;
    min-height: calc(100vh - 64px - 56px);
  }
  .view.has-tab .sticky-action { bottom: 20px; }

  /* 首页五大模块：两列网格 */
  .module-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  }
  .module-item { padding: 18px; }
  .module-icon { width: 52px; height: 52px; font-size: 22px; }

  /* 卡片在宽屏下更舒展 */
  .hero { padding: 26px 30px; }
  .card { padding: 20px 22px; }

  /* 机构介绍页：优势四列、成绩四列，头图更高 */
  .about-hero { padding: 56px 32px 48px; }
  .about-section { padding: 28px 0 4px; }
  .about-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .about-praise-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-praise-item figcaption { font-size: 13px; }
  .about-courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-intro p { font-size: 16px; max-width: 860px; }

  /* 登录页在电脑端居中且稍宽 */
  .login-card { max-width: 480px; }
}

/* 中等屏幕：模块列表两列、机构优势两列 */
@media (min-width: 600px) and (max-width: 899px) {
  .module-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-praise-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* 窄屏手机：公开模块卡单列展示 */
@media (max-width: 599px) {
  .portal-modules { grid-template-columns: 1fr; }
  .module-steps { grid-template-columns: 1fr; }
  .module-hero { padding: 20px 14px; }
  .module-hero h1 { font-size: 19px; }
}

/* 窄屏手机：两张二维码仍左右并排，缩小留白与字号 */
@media (max-width: 520px) {
  .about-contact { padding: 12px; }
  .about-contact-qrs { gap: 8px; }
  .about-qr-row { padding: 10px 6px; gap: 8px; }
  .about-qr { max-width: 100%; }
  .about-wx-label { font-size: 12px; }
  .about-wx-id { font-size: 15px; padding: 5px 8px; }
  .about-contact-tip { text-align: center; }
}

/* ---------------- 题目反馈：质量评级 + 更好答案 ---------------- */
.fb-box { margin-top: 12px; }
.fb-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fb-star {
  border: none; background: transparent; font-size: 22px; line-height: 1;
  color: #c9d2dd; cursor: pointer; padding: 2px 4px;
}
.fb-star.on { color: var(--orange, #E8830C); }
.fb-answer-done {
  background: var(--blue-light, #EEF4FC); border-radius: 8px; padding: 10px 12px;
  line-height: 1.7; color: #333;
}
.fb-box .essay-area { margin-top: 10px; min-height: 88px; }
