/* 确认键专升本 · 官网样式系统 */

:root {
  --brand: #e11d2a;
  --brand-dark: #b3121c;
  --brand-light: #fdeaec;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #1a2233;
  --ink-2: #4a5568;
  --ink-3: #8492a6;
  --line: #e6ebf2;
  --bg: #f8f6f6;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(120, 30, 40, 0.06);
  --shadow: 0 10px 30px rgba(120, 30, 40, 0.10);
  --shadow-lg: 0 20px 50px rgba(120, 30, 40, 0.16);
  --maxw: 1160px;
  --theme: #e11d2a;
  --theme-dark: #b3121c;
  --theme-light: #fdeaec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
}

body[data-province="home"]    { --theme: #e11d2a; --theme-dark: #b3121c; --theme-light: #fdeaec; }
body[data-province="jiangxi"] { --theme: #2563eb; --theme-dark: #1d4ed8; --theme-light: #e8efff; }
body[data-province="sichuan"] { --theme: #0d9488; --theme-dark: #0b7c72; --theme-light: #e3f5f2; }
body[data-province="fujian"]  { --theme: #7c3aed; --theme-dark: #6d28d9; --theme-light: #f0e9fe; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; -webkit-tap-highlight-color: transparent; }
/* 兼容微信 X5 内核：min()/CSS 变量逐级降级，并预留刘海屏安全区 */
.container {
  width: calc(100% - 40px);
  max-width: 1160px;
  max-width: var(--maxw);
  width: min(calc(100% - 40px), 1160px);
  width: min(calc(100% - 40px), var(--maxw));
  margin: 0 auto;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  background: var(--theme-dark);
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar b { color: #fff; font-weight: 600; }

.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar .container { display: flex; align-items: center; height: 72px; gap: 34px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--theme), var(--theme-dark));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 14px rgba(30,94,184,.28);
}
.logo-mark svg { width: 24px; height: 24px; }
/* 真实品牌 logo（红色"确认键"字标） */
.nav-logo-img { height: 34px; width: auto; display: block; }
.logo-text strong { display: block; font-size: 18px; letter-spacing: .5px; line-height: 1.15; }
.logo-text small { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 16px; font-size: 14.5px; color: var(--ink-2); border-radius: 8px;
  font-weight: 500; transition: .2s;
}
.nav-links a:hover { color: var(--theme); background: var(--theme-light); }
.nav-links a.active { color: var(--theme); background: var(--theme-light); font-weight: 600; }
.nav-app { color: var(--theme) !important; font-weight: 600 !important; }
.nav-app:hover { background: var(--theme-light) !important; }
.nav-course { color: var(--theme) !important; font-weight: 600 !important; }
.nav-course:hover { background: var(--theme-light) !important; }
.nav-admin {
  margin-left: 8px; padding: 9px 18px !important;
  border: 1px solid var(--line); color: var(--ink-2) !important; font-size: 13.5px !important;
}
.nav-admin:hover { border-color: var(--theme) !important; background: #fff !important; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, #b3121c 0%, #e11d2a 55%, #f04438 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255,255,255,.06); top: -220px; right: -120px;
}
.hero::after {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.05); bottom: -180px; left: -80px;
}
.hero .container { position: relative; z-index: 1; padding: 84px 0 92px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; background: #fbbf24; border-radius: 50%; }
.hero h1 { font-size: 42px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; font-weight: 800; letter-spacing: -.5px; margin-bottom: 20px; }
.hero h1 .hl { color: #fde68a; }
.hero p { font-size: 17px; color: rgba(255,255,255,.86); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 0; transition: .22s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn svg { width: 17px; height: 17px; }
.hero-stats { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .stat span { font-size: 13.5px; color: rgba(255,255,255,.72); }
/* 课程导航页hero：复用品牌红色，但不放右侧品牌卡 */
.course-hero .container { padding: 62px 0 68px; }
.course-hero p { margin-bottom: 28px; }
/* Hero 右侧品牌卡片展示真实 logo */
.hero-brand { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 2; }
.hero-brand-card { background: #fff; border-radius: 18px; padding: 26px 34px; box-shadow: 0 20px 50px rgba(0,0,0,.2); text-align: center; transform: rotate(-3deg); }
.hero-brand-card img { height: 92px; width: auto; display: block; margin: 0 auto; }
.hero-brand-card .hb-line { width: 60px; height: 3px; background: var(--theme); border-radius: 2px; margin: 18px auto 14px; }
.hero-brand-card span { font-size: 14px; color: var(--theme); font-weight: 700; letter-spacing: 1px; white-space: nowrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 68px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { font-size: 29px; font-weight: 800; letter-spacing: -.3px; }
.section-head h2 .bar { display: inline-block; width: 5px; height: 28px; background: var(--theme); border-radius: 3px; margin-right: 13px; vertical-align: -3px; }
.section-head p { color: var(--ink-3); font-size: 14.5px; margin-top: 8px; }
.section-head .more { color: var(--theme); font-size: 14px; white-space: nowrap; font-weight: 600; }
.section-head .more:hover { text-decoration: underline; }

/* ---------- 省份卡片 ---------- */
.province-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.province-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: .28s; display: block;
}
.province-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pc-top { height: 128px; position: relative; padding: 24px; color: #fff; overflow: hidden; }
.pc-top::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); right: -40px; top: -60px; }
.pc-top.jiangxi { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pc-top.sichuan  { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.pc-top.fujian   { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.pc-top .pc-name { font-size: 25px; font-weight: 800; position: relative; z-index: 1; }
.pc-top .pc-en { font-size: 12px; letter-spacing: 2px; opacity: .75; position: relative; z-index: 1; text-transform: uppercase; }
.pc-body { padding: 22px 24px 26px; }
.pc-body .pc-desc { color: var(--ink-2); font-size: 14px; min-height: 48px; }
.pc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 18px; }
.pc-tags span { background: var(--bg); color: var(--ink-2); font-size: 12px; padding: 5px 11px; border-radius: 6px; }
.pc-link { color: var(--theme); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.pc-link svg { width: 16px; height: 16px; transition: .2s; }
.province-card:hover .pc-link svg { transform: translateX(4px); }

/* ---------- 信息列表 ---------- */
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.info-item {
  display: flex; gap: 15px; align-items: flex-start; padding: 17px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: .2s;
}
.info-item:hover { border-color: var(--theme); box-shadow: var(--shadow-sm); }
.info-date { text-align: center; flex-shrink: 0; width: 46px; padding-top: 2px; }
.info-date b { display: block; font-size: 22px; color: var(--theme); line-height: 1; font-weight: 800; }
.info-date span { font-size: 11px; color: var(--ink-3); }
.info-main h4 { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 5px; }
.info-main h4 a:hover { color: var(--theme); }
.info-meta { font-size: 12.5px; color: var(--ink-3); }
.tag-chip { display: inline-block; font-size: 11px; color: var(--theme); background: var(--theme-light); padding: 2px 8px; border-radius: 5px; margin-right: 8px; }

/* ---------- 内容卡片网格（省份页） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .25s; display: flex; flex-direction: column; min-height: 210px;
}
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--theme); background: var(--theme-light); padding: 5px 12px; border-radius: 6px; margin-bottom: 15px; }
.card-tag.accent { color: var(--accent-dark); background: #fef3c7; }
.content-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.content-card .summary { color: var(--ink-2); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.card-foot .read { color: var(--theme); font-weight: 600; }

/* ---------- Tab 切换 ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 2px solid var(--line); }
.tab {
  padding: 11px 22px; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: .2s;
}
.tab:hover { color: var(--theme); }
.tab.active { color: var(--theme); border-bottom-color: var(--theme); }

/* ---------- 省份页 Hero ---------- */
.prov-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(120deg, var(--theme-dark), var(--theme)); }
.prov-hero .container { padding: 60px 0 64px; position: relative; z-index: 1; }
.prov-hero .crumb { font-size: 13px; opacity: .8; margin-bottom: 20px; }
.prov-hero .crumb a:hover { text-decoration: underline; }
.prov-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.prov-hero p { font-size: 16px; opacity: .88; max-width: 640px; }
.prov-hero .prov-deco { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: 160px; font-weight: 900; opacity: .08; line-height: 1; }

/* ---------- 特色服务条 ---------- */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.feature .fi { width: 42px; height: 42px; border-radius: 10px; background: var(--theme-light); color: var(--theme); display: grid; place-items: center; flex-shrink: 0; }
.feature .fi svg { width: 21px; height: 21px; }
.feature h5 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 12.5px; color: var(--ink-3); }

/* ---------- APP 下载栏目 ---------- */
.app-section { background: linear-gradient(135deg, #fff5f5 0%, #fdeaec 100%); border-top: 1px solid #f5dadd; border-bottom: 1px solid #f5dadd; }
.app-box { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.app-copy h2 { font-size: 30px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 14px; }
.app-copy h2 .bar { display: inline-block; width: 5px; height: 28px; background: var(--theme); border-radius: 3px; margin-right: 13px; vertical-align: -3px; }
.app-copy .lead { font-size: 16px; color: var(--ink-2); margin-bottom: 22px; }
.app-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.app-feats .af { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.app-feats .af .ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--theme); display: grid; place-items: center; box-shadow: var(--shadow-sm); font-size: 15px; }
.app-download-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px;
  background: linear-gradient(135deg, #e11d2a, #b3121c); color: #fff; border-radius: 12px;
  font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(225,29,42,.32); transition: .25s;
}
.app-download-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(225,29,42,.42); }
.app-download-btn svg { width: 20px; height: 20px; }
.app-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.phone-mockup { justify-self: center; width: 250px; height: 490px; background: #fff; border: 9px solid #1a2233; border-radius: 38px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; padding: 0; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: #1a2233; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { height: 100%; background: linear-gradient(170deg, #e11d2a 0%, #b3121c 46%, #f8f6f6 46%); display: flex; flex-direction: column; align-items: center; padding: 52px 18px 18px; }
.phone-logo { width: 62px; height: 62px; border-radius: 16px; background: #fff; color: var(--theme); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.phone-logo svg { width: 34px; height: 34px; }
.phone-brand { color: #fff; font-weight: 800; font-size: 17px; margin-top: 12px; }
.phone-slogan { color: rgba(255,255,255,.85); font-size: 11px; margin-top: 2px; }
.phone-cards { width: 100%; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.phone-card { background: #fff; border-radius: 11px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.phone-card .pc-line { height: 9px; border-radius: 5px; background: #eceff4; margin-bottom: 8px; }
.phone-card .pc-line.short { width: 60%; }
.phone-card .pc-line.red { background: #f4c9cd; width: 40%; }
.phone-btn { margin-top: auto; width: 100%; background: var(--theme); color: #fff; text-align: center; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 13px; }

/* ---------- 内容详情弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: min(720px, 100%); max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-head { padding: 22px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h3 { font-size: 21px; line-height: 1.4; }
.modal-head .m-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.modal-close { background: none; border: 0; font-size: 26px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 26px 28px 32px; overflow-y: auto; white-space: pre-wrap; font-size: 15px; color: var(--ink-2); line-height: 1.85; }
.modal-body a { color: var(--theme); text-decoration: underline; }

/* ---------- CTA 横幅 ---------- */
.cta-banner { background: linear-gradient(120deg, var(--theme-dark), var(--theme)); border-radius: 18px; padding: 44px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.cta-banner::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); right: -60px; top: -120px; }
.cta-banner h3 { font-size: 26px; margin-bottom: 8px; position: relative; z-index: 1; }
.cta-banner p { opacity: .85; font-size: 15px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- 页脚 ---------- */
.footer { background: #121b2e; color: rgba(255,255,255,.6); padding: 46px 0 0; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer .f-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.footer .f-logo .logo-mark { width: 36px; height: 36px; }
.footer .f-logo .logo-mark svg { width: 20px; height: 20px; }
/* 页脚深色背景：给红色 logo 加白色底衬保证清晰 */
.f-logo-img-wrap { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 5px 10px; }
.f-logo-img-wrap img { height: 30px; width: auto; display: block; }
.footer p { line-height: 1.8; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0; text-align: center; font-size: 12.5px; }
.footer-bottom a { color: rgba(255,255,255,.72); border-bottom: 1px dashed rgba(255,255,255,.4); transition: .2s; }
.footer-bottom a:hover { color: #fff; border-bottom-color: #fff; }
.disclaimer { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; margin-top: 16px; }

/* ---------- 空状态 / 加载 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty svg { width: 52px; height: 52px; opacity: .4; margin-bottom: 14px; }
.loading { text-align: center; padding: 50px; color: var(--ink-3); }

/* ---------- 管理后台 ---------- */
.admin-wrap { min-height: calc(100vh - 72px); }
.login-card { max-width: 420px; margin: 70px auto; background: #fff; border-radius: 16px; padding: 38px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-card .lg-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.login-card .lg-icon svg { width: 28px; height: 28px; }
.login-card .lg-logo { margin-bottom: 20px; }
.login-card .lg-logo img { height: 46px; width: auto; display: block; }
.login-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-card > p { color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid #d9e0ea; border-radius: 8px; font-size: 14px;
  background: #fff; color: var(--ink); transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--theme); box-shadow: 0 0 0 3px var(--theme-light); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 7px; }
.btn-plain { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-plain:hover { border-color: var(--theme); color: var(--theme); }
.btn-danger { background: #fff; border: 1px solid #fecaca; color: #dc2626; }
.btn-danger:hover { background: #fef2f2; }
.form-error { background: #fef2f2; color: #b91c1c; padding: 10px 13px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 72px); }
.admin-side { background: #121b2e; color: rgba(255,255,255,.7); padding: 24px 0; }
.admin-side .side-title { padding: 0 24px 18px; color: #fff; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: 14px; }
.admin-side a, .admin-side button.side-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 24px; font-size: 14px;
  background: none; border: 0; color: inherit; cursor: pointer; text-align: left; transition: .2s;
}
.admin-side a:hover, .admin-side button.side-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side .active { background: var(--theme); color: #fff; }
.admin-side svg { width: 17px; height: 17px; }
.admin-main { padding: 32px 38px; background: var(--bg); }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-head h2 { font-size: 25px; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-toolbar select, .admin-toolbar input { padding: 9px 12px; border: 1px solid #d9e0ea; border-radius: 8px; font-size: 13.5px; background: #fff; }
.admin-toolbar .spacer { flex: 1; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { background: #f8fafc; text-align: left; padding: 13px 16px; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcff; }
.pill { display: inline-block; font-size: 11.5px; padding: 3px 9px; border-radius: 100px; font-weight: 600; }
.pill.jiangxi { background: #e8efff; color: #2563eb; }
.pill.sichuan { background: #e3f5f2; color: #0d9488; }
.pill.fujian { background: #f0e9fe; color: #7c3aed; }
.pill.policy { background: #dbeafe; color: #1d4ed8; }
.pill.course { background: #dcfce7; color: #15803d; }
.pill.truequestion { background: #fef3c7; color: #b45309; }
.pill.notice { background: #f1f5f9; color: #475569; }
.row-actions { display: flex; gap: 6px; }

/* 编辑抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 200; display: none; }
.drawer-mask.show { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; z-index: 201;
  box-shadow: -10px 0 40px rgba(0,0,0,.12); transform: translateX(100%); transition: .3s; display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 22px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 19px; }
.drawer-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.checkbox-field input { width: 17px; height: 17px; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1a2233; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; z-index: 300; opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 本省考纲独立教研 ---------- */
.research-section { background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0; }
.research-card {
  position: relative; overflow: hidden; border-radius: 16px; padding: 34px 40px;
  background: linear-gradient(120deg, var(--theme-dark), var(--theme)); color: #fff;
  box-shadow: var(--shadow);
}
.research-card::after { content: '教'; position: absolute; right: 26px; top: -30px; font-size: 190px; font-weight: 900; opacity: .07; line-height: 1; }
.research-badge { display: inline-block; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 6px 15px; border-radius: 100px; margin-bottom: 16px; }
.research-card h2 { font-size: 27px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.research-card p { font-size: 15px; color: rgba(255,255,255,.9); max-width: 820px; line-height: 1.85; position: relative; z-index: 1; }
.research-points { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.research-points span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 8px; font-size: 13.5px; }
.research-points b { color: #fde68a; margin-right: 4px; }

/* ---------- 后台 Logo 设置 ---------- */
.logo-setting { display: flex; align-items: center; gap: 20px; }
.logo-preview { width: 180px; height: 90px; display: grid; place-items: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.license-preview { width: 200px; height: 130px; }
.license-preview img { object-fit: contain; }
.logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---------- 富文本编辑器 ---------- */
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; background: #f8fafc; border: 1px solid #d9e0ea; border-bottom: 0; border-radius: 8px 8px 0 0; }
.ed-group { display: flex; gap: 3px; padding-right: 8px; margin-right: 4px; border-right: 1px solid #e2e8f0; }
.ed-group:last-child { border-right: 0; }
.ed-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; user-select: none; transition: .15s; }
.ed-btn:hover { color: var(--theme); border-color: var(--theme); background: var(--theme-light); }
.ed-area { min-height: 240px; max-height: 560px; overflow-y: auto; padding: 16px 18px; border: 1px solid #d9e0ea; border-radius: 0 0 8px 8px; background: #fff; font-size: 14.5px; line-height: 1.8; color: var(--ink); outline: 0; }
.ed-area:focus { border-color: var(--theme); box-shadow: 0 0 0 3px var(--theme-light); }
.ed-area h2 { font-size: 22px; font-weight: 800; margin: 14px 0 10px; }
.ed-area h3 { font-size: 18px; font-weight: 700; margin: 12px 0 8px; }
.ed-area p { margin: 8px 0; }
.ed-area ul, .ed-area ol { padding-left: 24px; margin: 8px 0; }
.ed-area ul { list-style: disc; }
.ed-area ol { list-style: decimal; }
.ed-area blockquote { border-left: 4px solid var(--theme); background: var(--theme-light); padding: 10px 14px; margin: 12px 0; border-radius: 0 8px 8px 0; }
.ed-area img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.ed-area video { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.ed-area iframe { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.ed-area a { color: var(--theme); text-decoration: underline; }
.ed-status { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 前台富文本正文 ---------- */
.article-body { font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }
.article-body p { margin: 12px 0; }
.article-body h2 { font-size: 22px; color: var(--ink); margin: 20px 0 12px; font-weight: 800; }
.article-body h3 { font-size: 18px; color: var(--ink); margin: 16px 0 10px; font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 12px 0; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 6px 0; }
.article-body blockquote { border-left: 4px solid var(--theme); background: var(--theme-light); padding: 12px 16px; margin: 16px 0; border-radius: 0 8px 8px 0; color: var(--ink); }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.article-body video { max-width: 100%; border-radius: 10px; margin: 16px 0; }
/* 微信 X5 老版本不支持 aspect-ratio，先用固定比例高度兜底 */
.article-body iframe { width: 100%; max-width: 100%; height: 56.25vw; max-height: 520px; border: 0; border-radius: 10px; margin: 16px 0; }
@supports (aspect-ratio: 16/9) {
  .article-body iframe { aspect-ratio: 16/9; height: auto; }
}
.article-body a { color: var(--theme); text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--theme-light); }

/* ---------- 文章独立页与微信分享 ---------- */
.article-wrap { background: #fff; min-height: 60vh; padding: 42px 0 74px; }
.article-panel { max-width: 820px; margin: 0 auto; }
.article-crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.article-crumb a:hover { color: var(--theme); text-decoration: underline; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.article-header h1 { font-size: 28px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.42; font-weight: 800; margin-bottom: 14px; color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); }
.article-meta .chip { background: var(--theme-light); color: var(--theme); font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--theme-light); border: 1px solid rgba(225,29,42,.14);
  border-radius: 10px; padding: 13px 16px; margin-bottom: 28px;
}
.share-bar.bottom { margin: 42px 0 0; }
.share-bar .share-label { font-size: 13.5px; font-weight: 700; color: var(--theme); margin-right: 4px; }
.share-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 15px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s;
}
.share-btn:hover { border-color: var(--theme); color: var(--theme); }
.share-btn.primary { background: var(--theme); border-color: var(--theme); color: #fff; }
.share-btn.primary:hover { background: var(--theme-dark); border-color: var(--theme-dark); color: #fff; }
.share-hint { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.article-back { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- 微信内置浏览器适配 ---------- */
.footer-bottom { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
body[data-wechat="1"] .navbar { backdrop-filter: none; background: rgba(255,255,255,.97); }

/* 微信内转发引导：轻量横条，可关闭，同一次访问只提示一次 */
.wx-guide {
  position: fixed; top: 0; left: 0; right: 0; z-index: 260;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(18,27,46,.94); color: #fff; font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.wx-guide-arrow { font-size: 18px; letter-spacing: 2px; color: #fde68a; line-height: 1; }
.wx-guide-text { flex: 1; }
.wx-guide-close { background: none; border: 0; color: rgba(255,255,255,.75); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* 复制失败时给出可长按选择的链接 */
.copy-mask { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.6); display: grid; place-items: center; padding: 20px; }
.copy-dialog { width: min(420px, 100%); background: #fff; border-radius: 14px; padding: 24px; box-shadow: var(--shadow-lg); }
.copy-dialog h4 { font-size: 17px; margin-bottom: 8px; }
.copy-dialog p { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.copy-dialog textarea {
  width: 100%; min-height: 76px; padding: 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 12px; color: var(--ink-2); resize: none;
  -webkit-user-select: all; user-select: all;
}
.copy-dialog .share-btn { margin-top: 14px; }
.wx-video-tip { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 14px 0; }

/* ---------- 证照公示页 ---------- */
.licenses-hero { background: linear-gradient(120deg, var(--theme-dark), var(--theme)); color: #fff; }
.licenses-hero .container { padding: 56px 0 60px; }
.licenses-hero .crumb { font-size: 13px; opacity: .8; margin-bottom: 18px; }
.licenses-hero .crumb a:hover { text-decoration: underline; }
.licenses-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.licenses-hero h1 .hl { color: #fde68a; }
.licenses-hero p { font-size: 15px; opacity: .88; }
.licenses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.license-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: 92px; }
.license-card-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.license-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--theme-light); display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.license-card-head h2 { font-size: 19px; }
.license-card-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.license-card-body { padding: 24px; min-height: 320px; display: flex; align-items: center; justify-content: center; background: #fafbfc; }
.license-figure { margin: 0; width: 100%; text-align: center; }
.license-figure img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; cursor: zoom-in; box-shadow: var(--shadow); background: #fff; }
.license-figure figcaption { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.license-empty { color: var(--ink-3); font-size: 14px; text-align: center; }
.notice-box { background: var(--theme-light); border: 1px solid rgba(225,29,42,.14); border-radius: 10px; padding: 16px 20px; font-size: 13.5px; color: var(--ink-2); }
.license-lightbox { position: fixed; inset: 0; z-index: 320; background: rgba(15,23,42,.9); display: none; align-items: center; justify-content: center; padding: 30px; }
.license-lightbox.show { display: flex; }
.license-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.license-lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .menu-toggle { display: block; }
  .province-grid, .card-grid, .licenses-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-list { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; padding: 12px; gap: 4px; }
  .admin-side .side-title { width: 100%; padding: 6px 12px 12px; }
  .admin-side a, .admin-side button.side-item { width: auto; padding: 9px 14px; }
  .admin-main { padding: 24px 18px; }
  .hero-brand { display: none; }
}
@media (max-width: 560px) {
  .feature-strip { grid-template-columns: 1fr; }
  .hero .container { padding: 60px 0 66px; }
  .hero-stats { gap: 26px; }
  .cta-banner { padding: 28px 22px; }
  .topbar .container { font-size: 11px; }
  .article-wrap { padding: 28px 0 52px; }
  .article-header h1 { font-size: 23px; }
  .share-hint { margin-left: 0; width: 100%; }
  /* iOS 微信中输入框小于 16px 会自动放大页面 */
  input, textarea, select { font-size: 16px !important; }
  .wx-guide { font-size: 12px; }
}
