/* ============================================================
   AI 教师赋能平台 · 前台样式
   科技感 + 教育感 / 浅色学习界面 / 桌面与手机自适应
   ============================================================ */
:root {
  --primary: #1b3a8f;
  --primary-2: #2563eb;
  --accent: #16b8a6;
  --accent-2: #25d0c0;
  --ink: #172b4d;
  --ink-2: #30456e;
  --muted: #6b7a99;
  --light: #9aa7bd;
  --bg: #f4f7fc;
  --card: #ffffff;
  --line: #e3e9f5;
  --soft: #f7f9fe;
  --gold: #d99a2b;
  --shadow: 0 10px 30px rgba(24, 52, 112, .08);
  --shadow-lg: 0 20px 50px rgba(20, 45, 100, .14);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 12px; color: var(--ink); }
p { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
code { font-family: Consolas, Monaco, monospace; background: #eef3ff; color: var(--primary); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.container { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }
.main-wrap { min-height: 60vh; padding-top: 28px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.kicker { display: inline-block; font-size: 11px; letter-spacing: 2.2px; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.arrow { color: var(--light); margin-left: auto; }

/* ---------- 环境背景 ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .20; }
.orb-a { width: 460px; height: 460px; background: #7aa5ff; top: -160px; right: -80px; }
.orb-b { width: 380px; height: 380px; background: #56e0cd; bottom: -180px; left: -120px; opacity: .14; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(30,70,150,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30,70,150,.035) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 70%); }
/* 浮层（公众号弹窗 / Toast / 移动下拉菜单）必须保持 fixed，不能被本规则拉回文档流 */
.front-body > *:not(.ambient):not(.oa-mask):not(.wb-toast):not(.mobile-nav) { position: relative; z-index: 1; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 18px rgba(30, 70, 170, .22); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 24px rgba(30, 70, 170, .3); }
.btn-outline { border-color: #cdd9ef; background: #fff; color: var(--primary); }
.btn-outline:hover { background: #f0f5ff; color: var(--primary-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef3fb; color: var(--primary); }
/* btn-glass / btn-white 仅用于深蓝渐变容器（course-hero / td-cta / cta-band）；
   浅色首屏误用时白字会看不见，这里按容器兜底强制改成深蓝字白底 */
.hero-actions .btn-glass,
.hero-actions .btn-white { background: #fff; color: var(--primary); border-color: #cdd9ef; }
.hero-actions .btn-glass:hover,
.hero-actions .btn-white:hover { background: #f0f5ff; color: var(--primary-2); }
.btn-glass { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-glass:hover { background: rgba(255,255,255,.32); color: #fff; }
.btn-light { background: #fff; color: #1b3a8f; border-color: #fff; box-shadow: 0 8px 18px rgba(10,30,90,.18); }
.btn-light:hover { background: #eef4ff; color: #12306e; }
.btn-white { background: #fff; color: var(--primary); }
.btn-danger { background: #fff1f0; border-color: #ffccc7; color: #c02a1d; }
.btn-done { background: #e8f7f0; color: #12805f; box-shadow: none; }
.btn.block { display: flex; width: 100%; margin: 8px 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-xs { padding: 4px 9px; }

/* ---------- 标签 / 提示 ---------- */
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #eaf1ff; color: var(--primary-2); white-space: nowrap; }
.chip-soft { background: #f0f4fb; color: #5a6b8c; }
.chip-hot { background: #fff2e2; color: #c57312; }
.chip-gold { background: #fff5dd; color: #9a6812; }
.chip-glass { background: rgba(255,255,255,.18); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 8px; background: #eef3ff; color: var(--primary); font-size: 13px; margin: 0 8px 8px 0; }
.tag:hover { background: #dfeaff; }
.tag-list { margin-top: 22px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fff1f0; border: 1px solid #ffccc7; color: #a8071a; }
.alert-success, .alert-info { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill.on, .status.s-ok { background: #e7f8f1; color: #0b7a58; }
.pill.off, .status.s-bad { background: #fff0ef; color: #b3241a; }
.pill.info, .status.s-info { background: #eaf1ff; color: #2456bd; }
.status.s-wait { background: #fff5e3; color: #b87414; }
.status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-chip { font-size: 12px; }

/* ---------- 顶部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.brand-mark { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; letter-spacing: .3px; }
.brand-text small { font-size: 11px; color: var(--muted); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: #eaf1ff; color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.head-search { display: flex; align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.head-search input { width: 130px; border: 0; background: transparent; padding: 7px 10px; font-size: 13px; outline: none; }
.head-search button { border: 0; background: transparent; padding: 5px 10px; font-size: 18px; color: var(--primary); cursor: pointer; }
.avatar-chip { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 22px; background: #eef3ff; font-size: 13px; font-weight: 600; color: var(--primary); }
.avatar { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; font-size: 13px; }
.avatar.small { width: 26px; height: 26px; font-size: 12px; }
.avatar.big { width: 66px; height: 66px; font-size: 26px; }
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 22px; color: var(--primary); cursor: pointer; }
.mobile-nav { display: none; }

/* ---------- 首页 Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding: 40px 0 26px; }
.hero-badge { display: inline-block; padding: 6px 14px; border: 1px solid #cfdcf5; border-radius: 20px; background: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.22; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--primary-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { font-size: 16px; color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-search { display: flex; align-items: center; max-width: 540px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 5px 5px 5px 16px; box-shadow: var(--shadow); }
.hero-search .hs-ico { font-size: 22px; color: var(--accent); }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 10px 12px; font-size: 15px; background: transparent; }
.hero-search button { border: 0; background: var(--primary); color: #fff; padding: 10px 22px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.hero-hot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-hot a { color: var(--primary-2); }
.hero-visual { position: relative; height: 390px; }
.hv-ring { position: absolute; width: 330px; height: 330px; border: 1px dashed rgba(37,99,235,.25); border-radius: 50%; top: 20px; left: 70px; }
.hv-ring::after { content: ''; position: absolute; inset: 40px; border: 1px solid rgba(22,184,166,.18); border-radius: 50%; }
.hv-card { position: absolute; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hv-main { width: 290px; padding: 24px; top: 60px; left: 30px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-3deg); }
.hv-label { font-size: 12px; color: var(--accent); font-weight: 700; }
.hv-main strong { font-size: 22px; line-height: 1.4; }
.hv-meta { font-size: 12px; color: var(--muted); }
.hv-btn { align-self: flex-start; margin-top: 6px; padding: 7px 14px; border-radius: 8px; background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; font-size: 13px; }
.hv-small { width: 132px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.hv-small span { font-size: 22px; color: var(--accent); }
.hv-small b { font-size: 15px; }
.hv-small small { font-size: 11px; color: var(--muted); }
.hv-a { top: 20px; right: 10px; transform: rotate(5deg); }
.hv-b { bottom: 30px; left: 0; transform: rotate(-6deg); }
.hv-c { bottom: 10px; right: 20px; transform: rotate(4deg); }
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-strip div { text-align: center; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border: 0; }
.stat-strip strong { display: block; font-size: 26px; color: var(--primary); line-height: 1.3; }
.stat-strip span { font-size: 12px; color: var(--muted); }

/* 首页公众号关注：只占一条窄条，不挤压课程与提示词区域 */
.oa-strip { display: flex; align-items: center; gap: 13px; margin: 16px 0 0; padding: 11px 16px; border: 1px solid var(--line); border-left: 4px solid #07b45c; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.oa-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #e8f8ef; color: #07a854; }
.oa-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.oa-text strong { font-size: 15px; color: var(--ink); white-space: nowrap; }
.oa-text span { font-size: 13px; color: var(--muted); }
.oa-btn { flex: 0 0 auto; padding: 8px 17px; border-color: #07b45c; background: #07b45c; color: #fff; border-radius: 10px; }
.oa-btn:hover { background: #0a9d53; border-color: #0a9d53; color: #fff; }
/* 非微信端关注弹窗 */
.oa-mask { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(12, 25, 55, .55); }
.oa-modal { position: relative; width: min(340px, 100%); padding: 26px 22px 22px; border-radius: 18px; background: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.oa-close { position: absolute; right: 10px; top: 6px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.oa-modal h3 { margin: 2px 0 6px; font-size: 18px; }
.oa-desc { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.oa-qr { display: block; width: 210px; height: 210px; margin: 0 auto 10px; padding: 6px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.oa-tip { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.oa-copy { width: 100%; }

/* ---------- 通用区块 ---------- */
.section { margin-top: 46px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 23px; margin: 0; }
.section-head p { font-size: 13px; color: var(--muted); margin: 0; }
.more-link { font-size: 13px; color: var(--primary-2); font-weight: 600; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; }
.page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.page-hero h1 { font-size: 30px; margin: 0 0 6px; }
.page-hero p { color: var(--muted); margin: 0; font-size: 14px; }
.hero-note { font-size: 12px; color: var(--muted); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary-2); }
.block-title { font-size: 18px; margin: 28px 0 12px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 46px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 34px; color: #b9c7df; }
.empty-state p { margin: 6px 0; }
.empty-state small { font-size: 12px; }
.result-line { font-size: 13px; color: var(--muted); margin: 14px 0 16px; }
.result-line b { color: var(--primary); font-size: 16px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; justify-content: center; margin: 30px 0; }
.pg { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.pg.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pg.disabled { opacity: .45; pointer-events: none; }
.pg-info { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* ---------- 快捷路径 / 卡片 ---------- */
.path-grid, .quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.path-card, .quick-grid a { position: relative; display: block; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: .2s; overflow: hidden; }
.path-card:hover, .quick-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d9f6; }
.path-no { position: absolute; right: 16px; top: 12px; font-size: 30px; font-weight: 800; color: #eef3fb; }
.path-ico, .quick-grid a > span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: #eaf1ff; color: var(--primary); font-size: 21px; margin-bottom: 12px; }
.path-card h3, .quick-grid a b { font-size: 16px; margin-bottom: 6px; display: block; }
.path-card p, .quick-grid a small { font-size: 13px; color: var(--muted); display: block; margin: 0; }
.path-card b { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--primary-2); }
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prompt-card { display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: .2s; min-height: 190px; }
.prompt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d9f6; }
.pc-top { display: flex; gap: 6px; margin-bottom: 12px; }
.prompt-card h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.45; }
.prompt-card > p { font-size: 13px; color: var(--muted); margin: 0 0 12px; flex: 1; }
.pc-preview { font-size: 12px; color: #8a97ae; background: var(--soft); border-radius: 8px; padding: 9px 11px; margin-bottom: 12px; line-height: 1.6; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.pc-copy { color: var(--primary-2); font-weight: 600; }
.pc-btns { display: flex; gap: 5px; }
.copy-btn.mini, .fav-btn.mini { border: 1px solid var(--line); background: #fff; color: var(--primary); border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.copy-btn.copied, .copy-btn.mini.copied { background: #0e9f8a !important; border-color: #0e9f8a !important; color: #fff !important; }
.fav-btn.on { color: #d99a2b; border-color: #f0d9a8; background: #fffaee; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-grid.wide { grid-template-columns: repeat(3, 1fr); }
.case-card { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case-cover { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(145deg, var(--cc), #12295f); color: #fff; }
.case-cover i { font-style: normal; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.case-cover small { font-size: 11px; opacity: .8; }
.case-body { padding: 16px; flex: 1; min-width: 0; }
.case-body h3 { font-size: 15px; margin: 9px 0 7px; line-height: 1.45; }
.case-body p { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.case-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--light); }
.course-list { display: flex; flex-direction: column; gap: 10px; }
.course-row { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.course-row:hover { border-color: #c9d9f6; }
.course-cover { display: flex; width: 58px; height: 58px; flex: none; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(140deg, var(--c1), #1ec8b6); color: #fff; font-size: 20px; }
.course-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.course-info strong { font-size: 15px; }
.course-info small { font-size: 12px; color: var(--muted); }
.course-min { font-size: 12px; color: var(--muted); }
.notice-box, .honor-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; box-shadow: var(--shadow); }
.notice-box a { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.notice-box a:last-child { border-bottom: 0; }
.nb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.notice-box a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.notice-box strong { font-weight: 600; }
.notice-box small { font-size: 11px; color: var(--light); }
.honor-box { margin-top: 16px; padding-top: 16px; }
.honor-box h3 { font-size: 15px; }
.honor-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; }
.honor-row small { color: var(--muted); flex: 1; }
.rank { width: 21px; height: 21px; border-radius: 6px; background: #eef3fb; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.rank.r1, .rank-num.r1 { background: #ffd76e; color: #7a4d00; }
.rank.r2, .rank-num.r2 { background: #dfe6ee; color: #4a5a70; }
.rank.r3, .rank-num.r3 { background: #f4cfae; color: #8a4e1d; }
.pts { color: var(--primary); font-weight: 700; }
.achievement-strip { display: flex; align-items: center; gap: 24px; background: linear-gradient(110deg, #eef4ff, #e8fbf7); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.achievement-strip h2 { font-size: 19px; margin: 0; white-space: nowrap; }
.as-list { display: flex; flex-wrap: wrap; gap: 10px; }
.as-list span { background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 13px; border: 1px solid var(--line); }
.as-list i { font-style: normal; margin-right: 5px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 10px; padding: 30px 34px; border-radius: 20px; background: linear-gradient(115deg, var(--primary), #2b5fd4 60%, var(--accent)); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 23px; }
.cta-band p { margin: 0; opacity: .86; font-size: 14px; }

/* ---------- 筛选 ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-tab { padding: 7px 13px; border-radius: 9px; font-size: 13px; color: var(--ink-2); background: var(--soft); border: 1px solid transparent; white-space: nowrap; }
.cat-tab:hover { background: #eaf1ff; }
.cat-tab.active { background: var(--primary); color: #fff; }
.cat-tab b { font-size: 11px; opacity: .8; }
.filter-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-search { display: flex; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.inline-search input { border: 0; background: transparent; padding: 8px 12px; min-width: 210px; outline: 0; font-size: 13px; }
.inline-search button { border: 0; background: transparent; padding: 4px 12px; font-size: 17px; color: var(--primary); cursor: pointer; }
.inline-search.subj-filter select,
.inline-search.cat-filter select { border: 0; background: transparent; padding: 8px 12px; font-size: 13px; color: var(--ink, #172b4d); outline: 0; cursor: pointer; min-width: 130px; }
.filter-tools.single { border-top: 0; margin-top: 0; padding-top: 0; }
.filter-tools.single > .cat-filter { min-width: 220px; }
.sort-group { display: flex; gap: 4px; }
.sort-group a { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.sort-group a.active { background: #eaf1ff; color: var(--primary); font-weight: 600; }
.sub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.sub-tabs a { padding: 9px 16px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.sub-tabs a.active { color: var(--primary); border-color: var(--primary); font-weight: 700; }

/* ---------- 详情 / 文章 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.detail-card, .article-card, .card-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.detail-card h1, .article-card h1 { font-size: 27px; line-height: 1.4; margin-bottom: 12px; }
.article-meta { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.lead { font-size: 16px; color: var(--ink-2); line-height: 1.8; }
.prompt-box { border: 1px solid #d9e3f6; border-radius: 12px; overflow: hidden; background: #fbfcff; }
.prompt-box-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #eef3ff; font-size: 13px; font-weight: 700; color: var(--primary); border-bottom: 1px solid #d9e3f6; }
.prompt-box pre { margin: 0; padding: 20px; white-space: pre-wrap; word-break: break-word; font: 14px/1.9 "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--ink-2); }
.use-tips { margin-top: 24px; padding: 18px 20px; background: #f7fafe; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.use-tips h3 { font-size: 15px; }
.use-tips ol { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin-bottom: 12px; }
.side-link { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.side-link:last-child { border-bottom: 0; }
.side-link span { color: var(--accent); }
.side-tip { background: linear-gradient(150deg, #f2f7ff, #edfbf8); }
.side-tip p { font-size: 13px; color: var(--ink-2); }
.side-tip a, .side-tip ul { font-size: 13px; color: var(--primary-2); }
.side-tip ul { padding-left: 18px; }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; padding: 16px; background: var(--soft); border-radius: 12px; }
.case-facts div { display: flex; flex-direction: column; }
.case-facts span { font-size: 11px; color: var(--muted); }
.case-facts b { font-size: 13px; }
.exam-card .btn { margin-top: 6px; }
.ok-line { background: #ecfdf5; color: #065f46; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 10px 0; }
.ai-warning { display: flex; gap: 12px; background: #fffaf0; border: 1px solid #f5dfae; border-left: 4px solid #e0a02a; border-radius: 10px; padding: 14px 18px; margin-top: 22px; }
.ai-warning-icon { display: flex; width: 24px; height: 24px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: #e0a02a; color: #fff; font-weight: 800; font-size: 13px; }
.ai-warning strong { font-size: 13px; color: #8a5a10; }
.ai-warning p { font-size: 12.5px; color: #8a6a30; margin: 3px 0 0; }
.warning-wrap { padding-bottom: 20px; }
.warning-wrap .ai-warning { margin-top: 0; }

/* ---------- Markdown 正文 ---------- */
.md-body { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.md-body h1, .md-body h2 { font-size: 20px; margin: 28px 0 12px; padding-left: 11px; border-left: 4px solid var(--accent); }
.md-body h3 { font-size: 17px; margin: 22px 0 10px; }
.md-body h4 { font-size: 15px; }
.md-body p { margin: 10px 0; }
.md-body ul, .md-body ol { margin: 10px 0 16px; padding-left: 22px; }
.md-body li { margin: 4px 0; }
.md-body blockquote { margin: 14px 0; padding: 10px 16px; background: #f0f7ff; border-left: 4px solid var(--primary-2); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.md-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.md-body code { font-size: 13px; }
.md-body strong { color: var(--primary); }
.md-table { overflow-x: auto; margin: 16px 0; }
.md-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.md-table th { background: var(--soft); color: var(--primary); }
.md-code { margin: 16px 0; border: 1px solid #d9e3f6; border-radius: 10px; overflow: hidden; }
.md-code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #eef3ff; color: var(--primary); font-size: 12px; font-weight: 700; }
.md-code pre { margin: 0; padding: 16px; background: #fbfcff; white-space: pre-wrap; word-break: break-word; font: 13px/1.8 "Microsoft YaHei", sans-serif; color: var(--ink-2); }

/* ---------- 课程 ---------- */
.course-hero { border-radius: 20px; background: linear-gradient(120deg, #12306e, #2563eb 60%, #16b8a6); color: #fff; padding: 38px; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.course-hero h1 { color: #fff; font-size: 30px; margin: 10px 0; }
.course-hero p { font-size: 15px; opacity: .88; }
.course-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; opacity: .9; margin: 18px 0; }
.course-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.course-hero .btn-glass.fav-btn.on { background: #ffd76e; color: #7a4d00; border-color: transparent; }
.progress-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; box-shadow: var(--shadow); }
.progress-panel h3 { font-size: 16px; margin: 0 0 4px; }
.progress-panel p { font-size: 13px; color: var(--muted); margin: 0; }
.pp-right { min-width: 190px; text-align: right; }
.pp-right strong { font-size: 22px; color: var(--primary); }
.pp-right small { font-size: 12px; color: var(--muted); }
.progress { height: 8px; border-radius: 8px; background: #e8eef8; overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-2), var(--accent)); border-radius: 8px; }
.progress.small { height: 6px; width: 110px; display: inline-block; vertical-align: middle; margin: 0 8px 0 0; }
.card-block h2 { font-size: 19px; }
.card-block h2 small { font-size: 13px; color: var(--muted); font-weight: 400; }
.card-block + .card-block { margin-top: 18px; }
.card-block.narrow { max-width: 700px; }
.lesson-table a { display: flex; align-items: center; gap: 14px; padding: 13px 8px; border-bottom: 1px solid var(--line); }
.lesson-table a:last-child { border-bottom: 0; }
.lt-no { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: #eef3ff; color: var(--primary); font-size: 12px; font-weight: 700; }
.lt-no.done { background: #e7f8f1; color: #0b7a58; }
.lt-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lt-title b { font-size: 14px; }
.lt-title small { font-size: 12px; color: var(--muted); }
.lt-min { font-size: 12px; color: var(--muted); }
.lt-go { color: var(--light); }
.course-section { margin: 34px 0; }
.course-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cc-cover { height: 112px; background: linear-gradient(130deg, #1b3a8f, #2563eb 60%, #16b8a6); position: relative; display: flex; align-items: center; justify-content: center; }
.cc-play { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 1px solid rgba(255,255,255,.5); }
.cc-tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.2); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 12px; }
.cc-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.cc-body h3 { font-size: 16px; margin: 0 0 8px; }
.cc-body p { font-size: 13px; color: var(--muted); flex: 1; }
.cc-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cc-progress small { font-size: 11px; color: var(--muted); }
.cc-link { display: inline-block; margin-top: 12px; color: var(--primary-2); font-weight: 700; font-size: 13px; }
.learn-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.learn-side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.learn-progress { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.learn-progress span { font-size: 12px; color: var(--muted); }
.learn-progress strong { float: right; color: var(--primary); }
.learn-progress small { font-size: 12px; color: var(--muted); }
.lesson-nav { max-height: 60vh; overflow-y: auto; margin-top: 12px; }
.lesson-nav h3 { font-size: 14px; }
.lesson-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 6px; border-radius: 8px; font-size: 13px; border-bottom: 1px dashed var(--line); }
.lesson-nav a.active { background: #eaf1ff; color: var(--primary); font-weight: 600; }
.lesson-nav a > span { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #eef3fb; font-size: 11px; }
.lesson-nav a.done > span { background: #e7f8f1; color: #0b7a58; }
.lesson-nav a b { flex: 1; font-weight: 500; line-height: 1.5; }
.lesson-nav a small { font-size: 10px; color: var(--light); }
.learn-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.learn-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.learn-head h1 { font-size: 26px; margin: 6px 0; }
.learn-head p { color: var(--muted); font-size: 14px; }
.learn-meta { font-size: 12px; color: var(--light); }
.lesson-body { min-height: 420px; }
.learn-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 22px; margin-top: 10px; border-top: 1px solid var(--line); }

/* ---------- 考核 / 证书 ---------- */
.quiz-form { display: flex; flex-direction: column; gap: 16px; }
.quiz-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quiz-item h3 { font-size: 16px; margin-bottom: 14px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-options label { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.quiz-options label:hover, .quiz-options label:has(input:checked) { border-color: var(--primary-2); background: #f4f8ff; }
.op-letter { width: 24px; height: 24px; flex: none; border-radius: 6px; background: #eef3ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.quiz-submit { display: flex; gap: 12px; align-items: center; margin: 10px 0 30px; }
.quiz-result { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.qr-score { font-size: 62px; font-weight: 800; color: var(--primary); line-height: 1; }
.qr-score small { font-size: 18px; }
.quiz-result h2 { margin: 10px 0; }
.quiz-result.pass .qr-score { color: #0b9d72; }
.quiz-result.fail .qr-score { color: #d97706; }
.qr-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.quiz-review { margin-top: 22px; }
.review-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid #0b9d72; border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 10px; }
.review-item.bad { border-left-color: #d94b3a; }
.review-item b { font-size: 14px; }
.review-item p { font-size: 13px; margin: 4px 0; }
.ok-banner { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.ok-banner a { font-weight: 700; text-decoration: underline; }
.cert-verify { max-width: 760px; margin: 20px auto 40px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg); text-align: center; }
.cert-verify h1 { font-size: 24px; }
.verify-ok { display: flex; gap: 24px; text-align: left; margin: 24px 0; padding: 24px; border: 2px solid #d9e3f6; border-radius: 14px; background: linear-gradient(140deg, #fbfdff, #f1f8ff); }
.verify-seal { width: 66px; height: 66px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.verify-ok h2 { font-size: 20px; }
.verify-ok table { width: 100%; border-collapse: collapse; font-size: 14px; }
.verify-ok th, .verify-ok td { border-bottom: 1px solid var(--line); padding: 8px 4px; }
.verify-ok th { width: 100px; color: var(--muted); font-weight: 500; text-align: left; }
.verify-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.verify-fail { padding: 30px; background: #fff1f0; color: #a8071a; border-radius: 12px; margin-top: 20px; }

/* ---------- 工具 / 榜单 / 搜索 ---------- */
.tool-section { margin-bottom: 38px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-logo { width: 44px; height: 44px; flex: none; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.tool-head h3 { font-size: 16px; margin: 0; }
.tool-head small { font-size: 11px; color: var(--muted); }
.tool-intro { font-size: 13px; color: var(--ink-2); flex: 1; }
.tool-dl { display: grid; grid-template-columns: 62px 1fr; gap: 5px 10px; font-size: 12.5px; margin: 12px 0; }
.tool-dl dt { color: var(--primary); font-weight: 600; }
.tool-dl dd { margin: 0; color: var(--muted); }
/* 列表卡片底部的「访问官网」整行链接；只作用于工具网格，避免污染详情页的按钮 */
.tool-btns .tool-go { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--primary-2); border-top: 1px solid var(--line); padding-top: 12px; width: 100%; }
.notice-panel { margin-top: 30px; background: #fffaf0; border: 1px solid #f5dfae; border-radius: var(--radius); padding: 20px 24px; }
.notice-panel h3 { font-size: 15px; color: #8a5a10; }
.notice-panel ul { font-size: 13px; color: #8a6a30; }
.rank-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-head, .rank-row { display: grid; grid-template-columns: 70px 1.4fr 1.2fr .7fr .8fr .7fr; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank-head { background: var(--soft); font-size: 12px; color: var(--muted); font-weight: 600; }
.rank-row:last-child { border-bottom: 0; }
.rank-num { width: 24px; height: 24px; border-radius: 7px; background: #eef3fb; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rank-name { display: flex; align-items: center; gap: 8px; }
.rank-points { color: var(--primary); font-weight: 700; }
.award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.award-card { background: #fff; border: 1px solid #f0d9a8; border-radius: var(--radius); padding: 18px; }
.award-card h3 { font-size: 15px; margin: 10px 0 6px; }
.award-card p { font-size: 12px; color: var(--muted); margin: 0; }
.award-card small { font-size: 11px; color: var(--light); }
.big-search { display: flex; gap: 10px; max-width: 760px; margin: 0 auto 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.big-search input { flex: 1; border: 0; outline: 0; padding: 10px 16px; font-size: 15px; }
.search-hint { text-align: center; margin-top: 30px; }
.search-hint h3 { font-size: 16px; }
.search-group { margin: 28px 0; }
.search-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.search-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.search-row:last-child { border-bottom: 0; }
.sr-type { flex: none; width: 58px; text-align: center; font-size: 11px; padding: 3px 0; border-radius: 6px; background: #eef3ff; color: var(--primary); }
.search-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.search-row small { font-size: 12px; color: var(--muted); }
.sr-cat { font-size: 12px; color: var(--light); }
.list-stack { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notice-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.notice-row:last-child { border: 0; }
.notice-tag { font-size: 11px; background: #eef3ff; color: var(--primary); padding: 3px 9px; border-radius: 12px; }
.notice-row strong { flex: 1; font-size: 14px; font-weight: 600; }
.notice-date { font-size: 12px; color: var(--muted); }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; max-width: 1000px; margin: 30px auto; }
.auth-side { background: linear-gradient(135deg, #12306e, #2563eb 65%, #16b8a6); color: #fff; border-radius: 22px; padding: 42px; box-shadow: var(--shadow-lg); }
.auth-side h1 { color: #fff; font-size: 34px; line-height: 1.35; }
.auth-side p { opacity: .86; }
.auth-side ul { list-style: none; padding: 0; margin-top: 24px; font-size: 14px; }
.auth-side li { padding: 6px 0; opacity: .92; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card h2 { font-size: 22px; }
.auth-foot { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--primary-2); font-weight: 700; }
.form-row { display: block; margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-label i { color: #d94b3a; font-style: normal; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid #d8e1f0; border-radius: 9px; background: #fbfcff; font-size: 14px; color: var(--ink); outline: none; }
.form-control:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { resize: vertical; line-height: 1.7; }
.code-area { font-family: Consolas, "Microsoft YaHei", monospace; font-size: 13.5px; }
.form-hint { display: block; font-size: 11.5px; color: var(--light); margin-top: 4px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-btns { display: flex; gap: 12px; margin-top: 22px; }

/* ---------- 个人中心 / 投稿 ---------- */
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(115deg, #12306e, #2563eb 65%, #16b8a6); color: #fff; border-radius: 20px; padding: 26px 30px; }
.pt-user { display: flex; align-items: center; gap: 16px; }
.pt-user h1 { color: #fff; font-size: 23px; margin: 0 0 4px; }
.pt-user p { margin: 0; font-size: 13px; opacity: .85; }
.pt-points { text-align: right; display: flex; flex-direction: column; }
.pt-points small { font-size: 12px; opacity: .8; }
.pt-points strong { font-size: 40px; line-height: 1.1; }
.pt-points span { font-size: 11px; opacity: .75; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 22px; border-bottom: 1px solid var(--line); }
.profile-tabs a { padding: 10px 15px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.profile-tabs a.active { color: var(--primary); font-weight: 700; border-color: var(--primary); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.stat-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #eaf1ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.stat-body { display: flex; flex-direction: column; }
.stat-body small { font-size: 12px; color: var(--muted); }
.stat-body strong { font-size: 22px; color: var(--primary); line-height: 1.3; }
.stat-body span { font-size: 11px; color: var(--light); }
.mini-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mini-list > div { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mini-list > div:last-child { border-bottom: 0; }
.mini-list > div > span:first-child { color: var(--accent); font-weight: 700; min-width: 24px; }
.mini-list b { font-weight: 600; }
.mini-list small { color: var(--muted); flex: 1; }
.mini-list time { font-size: 12px; color: var(--light); }
.quick-grid { grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.info-line { background: #eef4ff; border: 1px solid #d9e3f6; border-radius: 10px; padding: 11px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.sub-list { display: flex; flex-direction: column; gap: 12px; }
.sub-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.si-head { display: flex; align-items: center; gap: 10px; }
.si-head b { flex: 1; font-size: 15px; }
.si-meta { font-size: 12px; color: var(--muted); margin-top: 7px; }
.reject-reason { margin-top: 10px; background: #fff1f0; color: #a8071a; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.award-line { margin-top: 10px; display: flex; align-items: center; gap: 12px; color: #9a6812; font-size: 13px; }
.cert-grid, .ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cert-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cert-icon { font-size: 30px; }
.cert-card > div { flex: 1; }
.cert-card h3 { font-size: 14px; margin: 8px 0 4px; }
.cert-card p { font-size: 11.5px; color: var(--muted); margin: 0; }
.ach-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: linear-gradient(150deg, #fffdf6, #fff); border: 1px solid #f0e0bb; border-radius: 14px; padding: 18px; }
.ach-card > span { font-size: 28px; }
.ach-card b { font-size: 15px; }
.ach-card small, .ach-card time { font-size: 12px; color: var(--muted); }
.flow-steps { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.flow-steps div { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow-steps span { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.flow-steps b { font-size: 13px; }
.flow-steps small { font-size: 11px; color: var(--muted); }
.flow-steps i { color: var(--light); font-style: normal; }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.type-switch { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.type-switch a { padding: 9px 16px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.type-switch a.active { color: var(--primary); border-color: var(--primary); font-weight: 700; }

/* ---------- 海报 ---------- */
.poster-intro { text-align: center; margin-bottom: 24px; }
.poster-intro h1 { font-size: 26px; }
.poster-intro p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.poster-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: start; }
.poster-preview { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-lg); }
.poster-preview canvas { display: block; width: 100%; height: auto; border-radius: 10px; }
.poster-panel { display: flex; flex-direction: column; gap: 12px; }
.pp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pp-card h2 { font-size: 19px; }
.pp-card dl { display: grid; grid-template-columns: 84px 1fr; gap: 9px 12px; font-size: 13.5px; margin: 0; }
.pp-card dt { color: var(--muted); }
.pp-card dd { margin: 0; font-weight: 600; }
.qr-url { word-break: break-all; font-size: 11px !important; color: var(--primary-2); font-weight: 400 !important; }
.poster-steps, .poster-note { background: #f7fafe; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.poster-steps h3 { font-size: 14px; }
.poster-steps ol { font-size: 13px; color: var(--ink-2); margin: 0; padding-left: 20px; }
.poster-note { font-size: 12px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 40px; background: #0e2049; color: #b9c8e6; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr; gap: 28px; padding: 36px 0 22px; }
.footer-about strong { color: #fff; font-size: 17px; }
.footer-about p { font-size: 13px; margin: 8px 0 0; }
.footer-mini { font-size: 11px; opacity: .6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; align-content: start; }
.footer-links a:hover { color: #fff; }
.footer-copy { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-align: right; opacity: .7; }
/* 备案信息单独占页脚底部整行，避免挤在右上角窄栏里折行错乱 */
.footer-beian { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 24px; padding: 14px 0 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #d5e1f5; text-align: center; }
.footer-beian > * { overflow-wrap: anywhere; }
.footer-beian a { color: inherit; }
.footer-beian a:hover { color: #fff; text-decoration: underline; }

/* ---------- Toast ---------- */
.wb-toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); background: #12306e; color: #fff; padding: 11px 22px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 999; }
.wb-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wb-toast.bad { background: #b3241a; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .main-nav a { padding: 8px 8px; font-size: 13px; }
  .head-search input { width: 92px; }
  .path-grid, .quick-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid, .course-card-grid, .prompt-grid { grid-template-columns: repeat(2, 1fr); }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav, .head-search { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav { display: none; position: sticky; top: 72px; z-index: 29; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 18px; flex-direction: column; box-shadow: var(--shadow); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 9px 6px; border-bottom: 1px dashed var(--line); font-size: 14px; }
  .mobile-nav a.active { color: var(--primary); font-weight: 700; }
  .header-inner { height: 64px; }
  .brand { min-width: 0; }
  .brand-text small { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-visual { height: 320px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hv-main { left: 20px; top: 50px; }
  .two-col, .detail-layout, .submit-layout, .learn-layout, .poster-layout, .auth-wrap { grid-template-columns: 1fr; }
  .learn-side { position: static; }
  .lesson-nav { max-height: 260px; }
  .poster-preview { max-width: 380px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
  .footer-beian { justify-content: flex-start; text-align: left; gap: 6px 16px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 24px); }
  .main-wrap { padding-top: 18px; }
  .hero h1 { font-size: 32px; }
  .hero-search button { padding: 9px 14px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .stat-strip div:nth-child(3) { border-right: 0; }
  .stat-strip strong { font-size: 21px; }
  .path-grid, .quick-grid, .prompt-grid, .case-grid, .case-grid.wide, .tool-grid, .course-card-grid, .stat-grid, .cert-grid, .ach-grid, .award-grid, .form-two, .quiz-options { grid-template-columns: 1fr; }
  .page-hero { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .detail-card, .article-card, .card-block, .learn-main { padding: 20px; }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .course-hero { padding: 24px; }
  .course-hero h1 { font-size: 23px; }
  .filter-tools { flex-direction: column; align-items: stretch; }
  .inline-search input { min-width: 0; flex: 1; }
  .sort-group { justify-content: flex-start; }
  .flow-steps { flex-wrap: wrap; }
  .flow-steps div { min-width: 40%; }
  .flow-steps i { display: none; }
  .rank-head, .rank-row { grid-template-columns: 40px 1.3fr .8fr .6fr; font-size: 12px; padding: 10px; }
  .rank-head span:nth-child(3), .rank-head span:nth-child(5), .rank-row > span:nth-child(3), .rank-row > span:nth-child(5) { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cta-band h2 { font-size: 19px; }
  .oa-strip { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .oa-text { flex-basis: calc(100% - 50px); }
  .oa-btn { width: 100%; }
  .learn-foot { flex-wrap: wrap; }
  .big-search { flex-direction: column; }
  .big-search .btn { width: 100%; }
  .profile-top { flex-direction: column; align-items: flex-start; }
  .pt-points { text-align: left; }
  .auth-side { display: none; }
  .auth-card { padding: 24px; }
  .hv-small { width: 110px; padding: 10px; }
  .hv-main { width: 240px; padding: 18px; }
  .hv-ring { width: 260px; height: 260px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 工具详情 / WorkBuddy 能力指南（新增模块） ============ */
.tool-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 6px; padding: 14px 18px; background: linear-gradient(100deg, #eef4ff, #e9fbf8); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.tool-top-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); font-size: 14px; }
.tool-top-link span { font-size: 18px; }
.tool-top-link:hover { text-decoration: underline; }
.tool-card .tool-level { margin: 0 0 12px; font-size: 12px; color: var(--primary); background: #f0f5ff; display: inline-block; padding: 4px 10px; border-radius: 20px; }
.tool-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.tool-detail-link { font-size: 13px; font-weight: 700; color: var(--primary); }
.tool-detail-link:hover { text-decoration: underline; }
.tool-card { display: flex; flex-direction: column; }

.tool-detail { padding: 8px 0 20px; }
.td-head { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding: 26px; border-radius: 18px; background: linear-gradient(110deg, #f2f7ff, #eafbf8 70%, #fff); border: 1px solid var(--line); }
.td-head .tool-logo.big { width: 64px; height: 64px; font-size: 28px; flex: none; }
.td-head-main { flex: 1; min-width: 240px; }
.td-head h1 { font-size: 28px; margin: 10px 0 8px; }
.td-head h1 small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3, #6b7b96); margin-top: 4px; }
.td-head .lead { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin: 0 0 10px; }
.td-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted, #7a88a3); }
/* 详情页的「访问官网」是蓝底白字按钮，必须显式覆盖列表链接样式与 a:hover */
.td-head a.tool-go, .td-head a.tool-go:hover { flex: none; width: auto; align-self: flex-start; color: #fff; border-top: 0; padding-top: 0; font-size: 14px; }
.td-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 24px; }
.td-facts > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.td-facts span { display: block; font-size: 12px; color: var(--muted, #7a88a3); margin-bottom: 8px; }
.td-facts b { font-size: 14px; font-weight: 600; line-height: 1.7; }
.td-guide, .td-choose { margin-bottom: 18px; }
.td-choose { background: linear-gradient(180deg, #fff, #f7fbff); }
.td-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 22px 0 6px; padding: 22px 26px; border-radius: 16px; background: linear-gradient(100deg, #1b3a8f, #2563eb); color: #fff; }
/* 全局 h1~h4 是深蓝色，深蓝 CTA 内的标题必须显式改白，否则蓝底深蓝字看不清 */
.td-cta h1, .td-cta h2, .td-cta h3, .td-cta h4, .td-cta strong { color: #fff; }
.td-cta h3 { font-size: 18px; margin: 0 0 6px; }
.td-cta p { opacity: .88; font-size: 13px; margin: 0; }
.td-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* 深蓝 CTA 内的按钮必须显式覆盖背景，避免 .btn-outline 白底 + 白字导致文字不可见 */
.td-cta .btn-outline { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.14); color: #fff; }
.td-cta .btn-outline:hover { background: rgba(255,255,255,.26); color: #fff; }
.td-cta .btn-ghost { color: #fff; }
.td-cta .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.td-cta .btn-light { color: #1b3a8f; }
.side-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.side-link-grid .side-link { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.side-link-grid .side-link small { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--muted, #7a88a3); }

.wb-guide { padding-bottom: 10px; }
.wb-intro { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin: 22px 0 8px; }
.wb-intro h2 { font-size: 21px; margin: 0 0 10px; }
.wb-intro > p { color: var(--ink-2); line-height: 1.9; font-size: 14px; }
.wb-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.wb-t-card { background: linear-gradient(180deg, #f8fbff, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.wb-t-ico { font-size: 26px; }
.wb-t-card h3 { font-size: 17px; margin: 8px 0 4px; }
.wb-t-card b { display: block; color: var(--primary); font-size: 13px; margin-bottom: 8px; }
.wb-t-card p { font-size: 13px; color: var(--ink-2); line-height: 1.8; margin: 0; }
.wb-tip { background: #eaf1ff; border-left: 4px solid var(--primary); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.wb-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wb-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.wb-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wb-item h3 { font-size: 16px; margin: 0; }
.wb-item dl { margin: 0; font-size: 13px; line-height: 1.8; }
.wb-item dt { font-weight: 700; color: var(--primary); margin-top: 8px; }
.wb-item dd { margin: 2px 0 0; color: var(--ink-2); }
.wb-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.wb-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.75; }
.wb-table th { background: #f3f7ff; text-align: left; padding: 13px 16px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.wb-table td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.wb-table td:first-child { color: var(--ink); }
.wb-flows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wb-flow { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.wb-flow-no { font-size: 26px; font-weight: 800; color: #d7e4ff; }
.wb-flow h3 { font-size: 16px; margin: 4px 0 10px; }
.wb-flow p { font-size: 13px; color: var(--ink-2); line-height: 1.9; margin: 12px 0 0; }
.wb-note { margin-top: 14px; padding: 13px 16px; background: #fffbeb; border: 1px solid #fde8b8; border-left: 4px solid #f0b429; border-radius: 0 10px 10px 0; font-size: 13px; line-height: 1.8; color: #7a5a12; }
.wb-three.small .wb-t-card { background: #fff; }
@media (max-width: 900px) {
  .wb-three, .wb-flows, .side-link-grid, .td-facts { grid-template-columns: 1fr; }
  .wb-list { grid-template-columns: 1fr; }
  .td-head h1 { font-size: 22px; }
  .tool-topbar { flex-direction: column; align-items: flex-start; }
}

/* ---------------- 课时多媒体附件 ---------------- */
.lesson-media { margin: 26px 0 8px; }
.lesson-media .section-head { margin-bottom: 14px; }
.media-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm, 0 4px 14px rgba(20,50,110,.05)); }
.media-item-head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.media-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; font-size: 21px; border-radius: 11px; background: #eef4ff; }
.media-item-head > div:nth-child(2) { flex: 1; min-width: 160px; }
.media-item-head h3 { margin: 0 0 3px; font-size: 15px; }
.media-item-head small { color: var(--ink-2, #6b7a99); font-size: 12px; }
.media-item-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.media-preview { margin-top: 14px; }
.media-preview img { max-width: 100%; border-radius: 10px; display: block; margin: 0 auto; }
.media-preview audio { width: 100%; }
.media-preview video { width: 100%; max-height: 480px; background: #101a30; border-radius: 10px; display: block; }
.media-preview iframe { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fc; }
.media-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2, #6b7a99); line-height: 1.8; }
@media (max-width: 700px) {
  .media-preview iframe { height: 380px; }
  .media-item-btns { width: 100%; }
  .media-item-btns .btn { flex: 1; text-align: center; }
}

/* ---------------- 免责声明 / 关于我们 ---------------- */
.info-page { max-width: 900px; margin: 0 auto; }
.info-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.info-toc a { font-size: 13px; padding: 6px 13px; border-radius: 20px; background: #eef4ff; color: var(--primary, #1b3a8f); text-decoration: none; }
.info-toc a:hover { background: #dbe7ff; }
.info-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; margin-bottom: 16px; }
.info-block h2 { font-size: 18px; margin: 0 0 12px; padding-left: 11px; border-left: 4px solid #25d0c0; }
.info-block .md-body { font-size: 14.5px; }
.info-note { background: #fffbeb; border: 1px solid #fde8b8; border-left: 4px solid #f0b429; border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.9; color: #7a5a12; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
.info-grid > div { background: #f7faff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.info-grid b { display: block; color: var(--primary, #1b3a8f); margin-bottom: 6px; }
.info-grid p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--ink-2, #6b7a99); }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } .info-block { padding: 18px; } }

/* ---------------- 登录：微信号方式 ---------------- */
.login-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.login-tab { padding: 10px 18px; font-size: 14px; color: var(--ink-2, #6b7a99); text-decoration: none; border-bottom: 2px solid transparent; }
.login-tab.active { color: var(--primary, #1b3a8f); border-bottom-color: var(--primary, #1b3a8f); font-weight: 700; }
.agree-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.8; margin: 14px 0; }
.agree-row input { margin-top: 4px; }
.bind-card { background: #f7faff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 16px; }
.bind-card h3 { margin: 0 0 8px; font-size: 16px; }
.bind-card p { font-size: 13px; color: var(--ink-2, #6b7a99); line-height: 1.8; margin: 0 0 12px; }
