:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #1f2533;
  --ink-2: #5b6478;
  --ink-3: #9aa3b2;
  --line: #e7ebf2;
  --brand: #5e43e0;
  --brand-soft: #f2f0fd;
  --accent: #0ca678;
  --shadow: 0 1px 3px rgba(20, 30, 60, .06), 0 8px 24px rgba(20, 30, 60, .06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* 启动防闪烁：门禁/封面检测期间隐藏页面内容，避免先闪现主页再进封面 */
body.boot-hide > *:not(.gate-mask):not(.cover-mask) { visibility: hidden !important; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(120deg, #5648de 0%, #5e43e0 55%, #6e3fe3 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(94, 67, 224, .25);
}
.top-inner {
  max-width: none; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { font-size: 26px; }
.brand-text h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .3px; }
.brand-text p { margin: 2px 0 0; font-size: 12.5px; opacity: .85; }
.top-actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-width: 240px; }
.channel-logo {
  height: 56px; width: auto; flex-shrink: 0;
  background: transparent; border: none; display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .18));
}
@media (max-width: 640px) { .channel-logo { height: 42px; } }
.search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 14px; border-radius: 999px; width: 100%; max-width: 380px;
  backdrop-filter: blur(4px);
}
.search .ico { font-size: 16px; opacity: .9; }
.search input {
  flex: 1; border: none; outline: none; background: transparent; color: #fff; font-size: 14px;
}
.search input::placeholder { color: rgba(255, 255, 255, .8); }

/* ---------- Layout ---------- */
.layout { max-width: none; margin: 0 auto; padding: 22px 28px; display: flex; gap: 22px; align-items: flex-start; }
.sidebar {
  width: 248px; flex: none; position: sticky; top: 92px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow: auto;
}
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; font-weight: 700; font-size: 13px; color: var(--ink-2);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.side-close { display: none; border: none; background: transparent; font-size: 16px; color: var(--ink-3); cursor: pointer; }
#nav { padding: 8px; }
.cat-group { margin-bottom: 6px; }
.cat-name {
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3);
  text-transform: uppercase; padding: 10px 10px 2px;
}
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--ink);
  font-size: 14px; transition: background .15s;
}
.nav-item:hover { background: var(--brand-soft); }
.nav-item.on { background: var(--brand); color: #fff; }
.nav-item.on .count { background: rgba(255, 255, 255, .25); color: #fff; }
.count {
  font-size: 11px; min-width: 18px; text-align: center; padding: 1px 7px; border-radius: 999px;
  background: #eef1f6; color: var(--ink-3); font-weight: 600;
}

.main { flex: 1; min-width: 0; }

/* ---------- Home ---------- */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; min-width: 150px;
}
.stat b { font-size: 24px; color: var(--brand); display: block; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--ink-2); }
.stat .ic { font-size: 22px; }

.section-title { font-size: 16px; font-weight: 700; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .bar { width: 4px; height: 16px; background: var(--brand); border-radius: 3px; }

/* recent updates */
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 26px; }
.rcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; border-left: 3px solid var(--brand);
}
.rcard:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20, 30, 60, .12); }
.rcard .rp { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.rcard .rt { font-size: 14px; margin: 4px 0; font-weight: 600; }
.rcard .rd { font-size: 12px; color: var(--ink-3); }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20, 30, 60, .12); }
.pcard h3 { margin: 0 0 6px; font-size: 15px; }
.pcard p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.pcard .badge { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--ink-3); background: #eef1f6; padding: 2px 9px; border-radius: 999px; }
.pcard .badge.upd { margin-top: 0; font-weight: 700; color: #15803d; background: #e7f6ec; border: 1px solid #bbe9cc; }

/* first screen: hero + category tabs + selector cards */
/* 首页布局：hero 在上、最近更新在下（所有屏宽一致）；recent-mini 限高内滚 */
.home-duo {
  display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px;
}
.home-duo .hero {
  margin-bottom: 0;
}
.home-duo .recent-mini {
  margin-bottom: 0;
  max-height: calc(100vh - 280px); /* 限制高度避免整页超出一屏，超出部分卡片内滚动 */
  overflow-y: auto;
}
/* 主页锁定一屏：禁止整页上下滚动（详情页移除该类恢复滚动） */
body.home-lock { overflow: hidden; height: 100vh; }
@media (max-width: 900px) { body.home-lock { overflow: visible; height: auto; } }
.hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 34px 20px; margin-bottom: 18px; box-shadow: var(--shadow);
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 18px;
  background: #fff; border: 1px solid rgba(94, 67, 224, .25);
  font-size: 14px; font-weight: 700; color: var(--brand);
  box-shadow: 0 4px 14px rgba(94, 67, 224, .10);
}
.hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: .5px; color: var(--ink); line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.hero-sub2 { margin: 0 auto 0; font-size: 14px; line-height: 1.7; color: var(--ink-3); max-width: none; white-space: nowrap; }
.hero-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.hero-cat {
  padding: 7px 18px; border-radius: 999px; background: var(--bg); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-bottom { display: flex; align-items: stretch; justify-content: center; gap: 18px; }
.hstat-card {
  display: inline-flex; align-items: stretch;
  background: var(--bg); border-radius: 12px; padding: 14px 6px;
  border: 1px solid var(--line);
}
.hstat { padding: 0 30px; display: flex; flex-direction: column; justify-content: center; }
.hstat + .hstat { border-left: 1px solid var(--line); }
.hstat b { font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.hstat span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hero-cta { align-self: center; padding: 16px 34px; font-size: 17px; border-radius: 12px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .15s; border: 1px solid transparent;
}
.hbtn.primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(94, 67, 224, .28); }
.hbtn.primary:hover { background: #533bc5; box-shadow: 0 6px 16px rgba(94, 67, 224, .34); transform: translateY(-1px); }
.hbtn.ghost { background: #fff; color: var(--ink); border-color: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hbtn.ghost:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
/* 「查看全部更新」点击后最近更新栏的临时提示高亮 */
.recent-mini.flash { box-shadow: 0 0 0 3px rgba(94, 67, 224, .35), var(--shadow); transition: box-shadow .2s; }
@media (max-width: 1100px) {
  .hero p.hero-sub2 { white-space: normal; font-size: 14.5px; }
}

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ctab {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
  white-space: nowrap; flex-shrink: 0; /* 地区多了不压扁胶囊，整颗换到下一行 */
}
.ctab:hover { border-color: var(--brand); color: var(--brand); }
.ctab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ctab i { font-style: normal; font-size: 11px; background: rgba(20,30,60,.06); padding: 0 6px; border-radius: 999px; }
.ctab.on i { background: rgba(255,255,255,.25); color: #fff; }

.recent-mini {
  position: relative; overflow: hidden;
  margin-bottom: 26px;
  padding: 20px 26px 8px; background: #fff; border: 1px solid #ececf3; border-radius: 14px;
  box-shadow: 0 6px 24px rgba(30, 30, 60, .06);
}
.recent-mini::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #5648de, #6e3fe3);
}
.rm-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding-bottom: 14px;
}
.rm-head .rm-all {
  font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; cursor: pointer;
}
.rm-head .rm-all:hover { color: #533bc5; text-decoration: underline; }
.rm-list { display: flex; flex-direction: column; }
.rm-empty { padding: 18px 6px; font-size: 13.5px; color: var(--ink-2); }
.rm-item {
  display: flex; flex-direction: column; gap: 7px;
  padding: 15px 10px; margin: 0 -10px; text-decoration: none; cursor: pointer;
  border-bottom: 1px solid #f0f0f5; border-radius: 10px;
  transition: background .15s;
}
.rm-item:last-child { border-bottom: none; }
.rm-item:hover { background: var(--brand-soft); }
.rm-item .rm-top {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.rm-item .rm-name {
  font-size: 13.5px; font-weight: 600; color: var(--brand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rm-item .rm-date { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 12.5px; font-weight: 400; white-space: nowrap; }
.rm-item .rm-title {
  font-weight: 500; font-size: 14.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 学段徽标（最新更新条目 / 更新卡片）：小胶囊，标明该更新所属学段 */
.phase-badge {
  display: inline-block; vertical-align: 2px;
  margin-left: 8px; padding: 1px 8px;
  font-size: 12px; font-weight: 600; line-height: 18px;
  color: #1d7a3e; background: #dcf3e4; border: 1px solid #b7e2c5;
  border-radius: 999px; white-space: nowrap;
}
.uhead .phase-badge { margin-left: 10px; vertical-align: middle; }
/* 地域徽标（AI职教等有地域属性的更新）：橙色小胶囊，与学段绿色区分 */
.region-badge {
  display: inline-block; vertical-align: 2px;
  margin-left: 6px; padding: 1px 8px;
  font-size: 12px; font-weight: 600; line-height: 18px;
  color: #b45309; background: #fef0dc; border: 1px solid #f5d9a8;
  border-radius: 999px; white-space: nowrap;
}
.uhead .region-badge { margin-left: 10px; vertical-align: middle; }
/* 地域筛选标签行：放不下整颗换到下一行（不横向滚动），选中态橙色 */
.region-tabs { flex-wrap: wrap; overflow-x: visible; padding-bottom: 4px; }
.region-tabs .ctab.on { color: #b45309; border-color: #e8a44a; background: #fef0dc; }
.region-tabs .ctab.on i { color: #b45309; }
@media (max-width: 640px) { .rm-item .rm-title { display: none; } }

/* 视频号视频按钮（微信绿描边，点击跳转视频号观看） */
.attach.vd { border-color: #26c05c; background: #f0fbf4; }
.attach.vd .ai { color: #1aad19; }
.attach.vd .ad { color: #1aad19; }
.attach.vd:hover { background: #e2f8e9; }
/* 跳转链接按钮（蓝描边，点击打开其他网页） */
.attach.lk { border-color: #c9bdf6; background: #f6f3fe; }
.attach.lk .ai { color: var(--brand); }
.attach.lk .ad { color: var(--brand); }
.attach.lk:hover { background: #e5f1ff; }

/* 附件单行布局：文件名 + 操作按钮（在线预览/下载/视频号/跳转） */
.att-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e8ef;
}
.att-name {
  flex: 1; min-width: 140px; font-size: 13px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.abtn-mini {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid #dbe2ec; background: #fff; color: var(--ink);
}
.abtn-mini.pv { border-color: #b7e4c7; background: #f0fbf4; color: #15803d; }
.abtn-mini.pv:hover { background: #e2f8e9; }
.abtn-mini.dl { color: var(--brand); }
.abtn-mini.dl:hover { background: #eef6ff; }
.abtn-mini.vd { border-color: #26c05c; background: #f0fbf4; color: #1aad19; }
.abtn-mini.vd:hover { background: #e2f8e9; }
.abtn-mini.lk { border-color: #c9bdf6; background: #f6f3fe; color: var(--brand); }
.abtn-mini.lk:hover { background: #e5f1ff; }

/* 内容富文本编辑器（编辑弹窗） */
.editor-toolbar { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.etool {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--ink);
}
.etool:hover { background: #f2f6fb; border-color: var(--brand); }
.fcontent-edit {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  min-height: 110px; max-height: 320px; overflow: auto;
  font-size: 14px; line-height: 1.6; color: var(--ink); background: #fff;
}
.fcontent-edit:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(94,67,224,.10); }
.fcontent-edit img { max-width: 100%; border-radius: 8px; margin: 6px 0; display: block; }
.fcontent-edit.drop-hint { border-color: var(--accent); background: #f0fdf4; box-shadow: 0 0 0 2px rgba(22,163,74,.12); }
/* 编辑弹窗：一键复制栏 */
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding: 8px 12px; border-radius: 9px;
  background: #f6f9ff; border: 1px dashed #c9d8f2;
}
.copy-row .copy-label { font-size: 12.5px; color: var(--ink-3); }
.copy-row .copy-btn { flex: none; }
/* 详情页更新卡片：复制文案按钮 */
.ucard .copy-u { margin-left: auto; font-size: 12px; padding: 3px 10px; }
/* 前台：更新内容中的图片默认缩略图展示，双击放大查看 */
.ucontent img {
  max-width: 260px; max-height: 200px; border-radius: 8px; margin: 6px 6px 6px 0;
  display: inline-block; cursor: zoom-in; border: 1px solid var(--line); object-fit: cover;
}

/* 企业微信扫码登录门禁 */
.gate-mask {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef4ff 0%, #f7fbff 60%, #eefaf2 100%);
}
.gate-box {
  width: min(420px, 92vw); text-align: center; padding: 44px 36px;
  background: #fff; border-radius: 16px; box-shadow: 0 12px 48px rgba(23, 58, 110, .12);
}
.gate-logo { font-size: 44px; display: block; margin-bottom: 8px; }
.gate-box h2 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.gate-sub { margin: 0 0 22px; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.gate-scan { width: 100%; padding: 12px; font-size: 15px; }
.gate-pw {
  width: 100%; box-sizing: border-box; padding: 12px 14px; margin-bottom: 10px;
  font-size: 15px; text-align: center; letter-spacing: 2px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; color: var(--ink);
}
.gate-pw:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(94,67,224,.10); }
.gate-err { min-height: 20px; margin-top: 12px; font-size: 13px; color: #dc2626; }
.gate-tip { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }

/* ---------- 封面页（门禁通过后展示） ---------- */
.cover-mask {
  position: fixed; inset: 0; z-index: 2800; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 560px at 10% -12%, rgba(94, 67, 224, .16), transparent 62%),
    radial-gradient(880px 460px at 92% 112%, rgba(16, 132, 96, .13), transparent 60%),
    linear-gradient(160deg, #f3f6ff 0%, #f9fbff 55%, #eefaf3 100%);
  opacity: 1; transition: opacity .25s ease;
}
.cover-mask.closing { opacity: 0; }
/* 装饰光斑（缓慢漂浮） */
.cover-glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cover-glow.g1 { width: 320px; height: 320px; left: 8%; top: 12%; background: rgba(94, 67, 224, .14); animation: gfloat 9s ease-in-out infinite; }
.cover-glow.g2 { width: 260px; height: 260px; right: 10%; top: 58%; background: rgba(16, 132, 96, .12); animation: gfloat 11s ease-in-out infinite reverse; }
.cover-glow.g3 { width: 200px; height: 200px; right: 26%; top: 8%; background: rgba(217, 119, 6, .10); animation: gfloat 13s ease-in-out infinite; }
@keyframes gfloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(22px, -18px); } }

.cover-inner { position: relative; text-align: center; padding: 0 24px; max-width: 720px; }
.cover-inner > * { animation: coverIn .55s cubic-bezier(.22, .8, .36, 1) both; }
.cover-inner > *:nth-child(2) { animation-delay: .08s; }
.cover-inner > *:nth-child(3) { animation-delay: .16s; }
.cover-inner > *:nth-child(4) { animation-delay: .24s; }
.cover-inner > *:nth-child(5) { animation-delay: .32s; }
.cover-inner > *:nth-child(6) { animation-delay: .40s; }
.cover-inner > *:nth-child(7) { animation-delay: .48s; }
@keyframes coverIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cover-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; margin-bottom: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); backdrop-filter: blur(6px);
  border: 1px solid rgba(94, 67, 224, .22);
  font-size: 13.5px; font-weight: 700; letter-spacing: 1px; color: var(--brand);
  box-shadow: 0 4px 14px rgba(94, 67, 224, .12);
}
.cover-title {
  margin: 0 0 14px; font-size: 46px; font-weight: 800; letter-spacing: 2px;
  color: var(--ink); line-height: 1.25;
  background: linear-gradient(115deg, #241d52 30%, #5e43e0 70%, #9b7cf5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cover-sub { margin: 0 0 24px; font-size: 16.5px; color: var(--ink-2); line-height: 1.85; }
.cover-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.cover-chip {
  padding: 5px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(30, 42, 82, .06);
}
.cover-stats {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 18px 38px; margin-bottom: 32px; border-radius: 18px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px);
  border: 1px solid rgba(94, 67, 224, .14);
  box-shadow: 0 10px 32px rgba(23, 58, 110, .10);
}
.cstat { text-align: center; min-width: 86px; }
.cstat b { display: block; font-size: 32px; font-weight: 800; color: var(--brand); line-height: 1.15; }
.cstat span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); letter-spacing: 1px; }
.cstat-sep { width: 1px; height: 42px; background: var(--line); }
.cover-enter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 52px; font-size: 16.5px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(120deg, #5648de, #6e3fe3); color: #fff; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 10px 26px rgba(94, 67, 224, .34); transition: all .15s;
}
.cover-enter:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(94, 67, 224, .40); background: linear-gradient(120deg, #4c3ec9, #6136cf); }
.cover-enter .ce-arr { transition: transform .15s; }
.cover-enter:hover .ce-arr { transform: translateX(4px); }
.cover-tip { margin: 24px 0 0; font-size: 12.5px; color: var(--ink-3); letter-spacing: .5px; }
.cover-foot {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--ink-3); letter-spacing: .5px; opacity: .75;
}
@media (max-width: 640px) {
  .cover-title { font-size: 30px; }
  .cover-sub { font-size: 14px; }
  .cover-stats { gap: 16px; padding: 14px 20px; }
  .cstat b { font-size: 25px; }
  .cstat { min-width: 64px; }
}
/* 编辑弹窗：多行跳转链接管理 */
.lk-row { display: flex; gap: 6px; margin-bottom: 6px; }
.lk-row .lk-url { flex: 1.6; }
.lk-row .lk-text { flex: 1; }
.lk-row .lk-del { flex: none; }
/* 拖拽上传：跳转链接多行输入 */
.dz-flink {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 7px 10px;
  font-size: 12px; font-family: inherit; color: var(--ink); resize: vertical;
  border: 1px solid #dbe7f5; border-radius: 8px; background: #fbfdff;
}
.dz-flink:focus { outline: none; border-color: var(--brand); }
/* 拖拽上传：链接模式下拉选择与展开区 */
.dz-lmode {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 7px 8px;
  font-size: 12px; color: var(--ink-2); border: 1px solid #dbe7f5; border-radius: 8px; background: #fbfdff; cursor: pointer;
}
.dz-lmode:focus { outline: none; border-color: var(--brand); }
.dz-fvideo {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 7px 10px;
  font-size: 12px; color: var(--ink); border: 1px solid #dbe7f5; border-radius: 8px; background: #fbfdff;
}
.dz-fvideo:focus { outline: none; border-color: var(--brand); }
.dz-llist { margin-top: 6px; }
.lk-row .lk-no { flex: none; font-size: 12px; color: var(--ink-3); width: 14px; text-align: center; line-height: 32px; }
/* 编辑弹窗：附件区下方加号添加链接 */
.lk-plus-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.lk-plus { background: #fff; }
.lk-bar { display: inline-flex; gap: 6px; }
.lk-bar .lk-opt { background: #fff; }
.lk-bar .lk-opt:hover { background: #eef6ff; }

.pcard.select { display: flex; flex-direction: column; min-height: 134px; }
.pcard .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pcard.select h3 { margin: 0; font-size: 15px; }
.pcard .enter { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--brand); }
.pcard.select:hover .enter { text-decoration: underline; }

/* ---------- Product detail ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumbs a.back-btn {
  display: inline-flex; align-items: center; gap: 4px; color: var(--brand); cursor: pointer;
  background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.crumbs a.back-btn:hover { filter: brightness(.97); text-decoration: none; }
.crumbs .cur { font-weight: 700; color: var(--ink); }
.phead { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.phead .cat-tag { font-size: 12px; color: #fff; background: var(--accent); padding: 2px 10px; border-radius: 999px; }
.phead h2 { margin: 10px 0 6px; font-size: 22px; }
.phead p { margin: 0; color: var(--ink-2); font-size: 14px; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.ucard {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.ucard::before {
  content: ""; position: absolute; left: -19px; top: 20px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.ucard .uhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
/* 从「最近更新」点击直达时的高亮闪烁 */
.ucard.flash { animation: ucard-flash 2.4s ease; }
@keyframes ucard-flash {
  0% { background: var(--brand-soft); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(94,67,224,.25); }
  60% { background: var(--brand-soft); border-color: var(--brand); }
  100% { background: var(--panel); }
}
.ucard .udate { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ucard .utitle { font-size: 16px; font-weight: 700; margin: 0; }
.ucard .ucontent { font-size: 14px; color: var(--ink); white-space: pre-wrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.tag.demo { background: #fff4e6; color: #e8590c; }
.attach {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px;
  color: var(--ink); text-decoration: none; background: #fff; padding: 8px 14px; border-radius: 9px;
  border: 1.5px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s ease, background .15s ease;
}
.attach:hover { border-color: var(--brand); background: var(--brand-soft); }
.attach .ai { font-size: 15px; }
.attach .an { font-weight: 600; }
.attach .ad {
  margin-left: 4px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
}
.attach.dl:hover .ad { background: var(--brand); color: #fff; }

.empty { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 12px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }

/* ---------- Misc ---------- */
.foot { max-width: none; margin: 10px auto 30px; padding: 14px 28px; font-size: 12px; color: var(--ink-3); text-align: center; }
.foot .beian { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.foot .beian a { color: var(--ink-3); text-decoration: none; }
.foot .beian a:hover { color: var(--ink-2); text-decoration: underline; }
/* 学段多选勾选框（编辑弹窗） */
.phase-cks { display: flex; gap: 8px; flex-wrap: wrap; }
.phase-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; cursor: pointer; user-select: none; }
.phase-check:has(input:checked) { border-color: var(--brand); color: var(--brand); background: rgba(30,100,220,.06); }
.phase-check input { margin: 0; cursor: pointer; }
.totop {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--brand); color: #fff; font-size: 18px; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.totop.show { opacity: 1; pointer-events: auto; }

.side-open { display: none; margin-bottom: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 14px; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout { flex-direction: column; padding: 14px; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 80%; max-width: 300px; z-index: 50;
    border-radius: 0; max-height: none; transform: translateX(-105%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.3);
  }
  .sidebar.open { transform: translateX(0); }
  .side-close { display: block; }
  .side-open { display: inline-block; }
  .top-inner { padding: 12px 14px; }
  .brand-text h1 { font-size: 16px; }
}

/* ---------- 管理模式 ---------- */
.admin-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow);
}
.admin-btn:hover { border-color: var(--brand); color: var(--brand); }
.admin-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 管理工具栏：仅在管理模式显示，固定在管理按钮上方 */
.admin-bar {
  position: fixed; right: 22px; bottom: 80px; z-index: 40;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.admin-bar .abtn {
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow); white-space: nowrap;
}
.admin-bar .abtn:hover { border-color: var(--brand); color: var(--brand); }
.admin-bar .abtn.warn:hover { border-color: #ffc9c9; color: #e03131; }
.totop { right: 22px; bottom: 80px; }

.padmin { margin-bottom: 16px; }
.add-upd { font-size: 14px; }
.uadmin { display: flex; gap: 8px; margin-bottom: 8px; }
.ubtn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; padding: 4px 12px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.ubtn:hover { border-color: var(--brand); color: var(--brand); }
.ubtn.del:hover { border-color: #ffc9c9; color: #e03131; }
.ubtn.del.arming { border-color: #e03131; background: #fff5f5; color: #e03131; }

/* ---------- Modal & Toast ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(20, 30, 60, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 540px;
  max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.modal-hd {
  padding: 16px 20px; font-size: 16px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.modal-x { border: none; background: transparent; font-size: 20px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.modal-bd { padding: 18px 20px; }
.modal-ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 更新统计面板（管理工具栏「📊 更新统计」） ---------- */
.st-cards { display: flex; gap: 10px; margin-bottom: 14px; }
.st-card { flex: 1; background: var(--brand-soft); border-radius: 10px; padding: 12px 10px; text-align: center; }
.st-big { display: block; font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.st-label { font-size: 11.5px; color: var(--ink-3); }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th, .st-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.st-table th { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.st-table .st-pname { font-weight: 600; }
.st-table .st-num { text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.st-table .st-num.hot { color: var(--brand); font-weight: 700; }
.st-empty { text-align: center; color: var(--ink-3); padding: 18px 0; }
.st-details { margin-top: 12px; }
.st-details summary { font-size: 12.5px; color: var(--brand); cursor: pointer; font-weight: 600; }
.st-detail-item { margin-top: 10px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.st-detail-item > b { display: block; margin-bottom: 4px; }
.st-li { padding: 3px 0; border-top: 1px dashed var(--line); color: var(--ink-2); }
.st-li:first-of-type { border-top: none; }
.st-li em { font-style: normal; color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; }
.st-tip { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); }
.fld { margin-bottom: 14px; }

.fld label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--brand); }
.fld textarea { min-height: 92px; resize: vertical; }
.cur-att { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.cur-att .rm { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-weight: 500; cursor: pointer; }
.btn { border: none; border-radius: 9px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.login-err { color: #e03131; font-size: 12.5px; min-height: 16px; margin-top: 8px; }
.login-hint { margin-top: 10px; font-size: 12px; color: var(--ink-3); background: var(--brand-soft); border: 1px solid #dbe2ff; border-radius: 9px; padding: 8px 10px; line-height: 1.5; }

.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px;
  z-index: 80; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: .96; transform: translateX(-50%) translateY(0); }
.toast.err { background: #e03131; }

@media (max-width: 860px) {
  .admin-btn { right: 14px; bottom: 14px; padding: 9px 14px; }
  .admin-bar { right: 14px; bottom: 64px; }
  .totop { bottom: 70px; right: 14px; }
}

/* ---------- 导入/上传 拖拽区 ---------- */
.dropzone {
  border: 2px dashed var(--line); border-radius: 10px; padding: 26px 16px;
  text-align: center; cursor: pointer; transition: .15s; background: #fafbfc;
}
.dropzone.over, .fld.over { border-color: var(--accent); background: #f0fdf4; }
.dropzone .dz-icon { font-size: 30px; }
.dropzone .dz-text { font-weight: 700; margin-top: 6px; }
.dropzone .dz-hint { font-size: 12px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.up-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  margin-top: 8px; background: #fff; word-break: break-all;
}
.up-row.err { color: #e03131; border-color: #fecaca; background: #fff5f5; }
.up-row.ok { color: #15803d; border-color: #bbf7d0; background: #f1f9f4; }
.up-row .up-name { font-weight: 600; }
.up-row a { color: #2563eb; text-decoration: none; }
.up-row .up-copy {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  font-size: 12px; padding: 3px 8px; cursor: pointer; margin-left: auto;
}
.up-row .up-copy:hover { border-color: var(--accent); color: var(--accent); }
.drop-mini { font-size: 12px; color: var(--ink-2); margin-top: 6px; }

/* 拖拽框内待上传文件清单 */
.dz-files { margin-top: 12px; text-align: left; }
.dz-file {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; margin-top: 6px;
}
.dz-file .dz-fname { font-weight: 600; word-break: break-all; }
.dz-file .dz-fsize { color: var(--ink-2); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.dz-file .dz-fdel {
  border: none; background: #f1f5f9; border-radius: 6px; cursor: pointer;
  font-size: 11px; padding: 2px 7px; color: #64748b;
}
.dz-file .dz-fdel:hover { background: #fee2e2; color: #e03131; }
.imp-go-wrap { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.imp-go-hint { font-size: 12px; color: var(--ink-2); }

/* ---------- 附件在线预览 ---------- */
.attach.pv { border-color: #b2f2bb; background: #f1f9f4; cursor: pointer; }
.attach.pv:hover { border-color: var(--accent); }
.attach.pv .ad { color: var(--accent); }
.pv-box {
  background: var(--panel); border-radius: 12px; width: min(920px, 94vw);
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.pv-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pv-title { font-weight: 700; font-size: 14px; word-break: break-all; }
.pv-actions { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-left: 12px; }
.pv-btn {
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; border: 1px solid #b7e4c7; background: #f0fbf4; color: #15803d;
}
.pv-btn:hover { background: #e2f8e9; }
.pv-body { overflow: auto; background: #1a1d21; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.pv-img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.pv-frame { width: 100%; height: 78vh; border: none; background: #fff; }
.pv-body { position: relative; }
.pv-loading {
  position: absolute; top: 0; left: 0; right: 0; padding: 12px 18px;
  font-size: 13.5px; color: #8a6d1a; background: #fdf6e3; border-bottom: 1px solid #f1e4bc;
  z-index: 2; text-align: center;
}
/* 图片预览缩放条：－ / 百分比 / ＋ / 1:1 */
.pv-zoom { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.pv-zoom .zbtn { padding: 5px 10px; min-width: 30px; text-align: center; }
.pv-zoom-info {
  font-size: 12px; font-weight: 600; color: #15803d; min-width: 42px;
  text-align: center; user-select: none;
}

/* 待传清单里的简介输入框 */
.dz-fmain { flex: 1; min-width: 0; }
.dz-frow { display: flex; align-items: center; gap: 8px; }
.dz-fdesc {
  width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 12px; padding: 5px 8px; outline: none; box-sizing: border-box;
}
.dz-fdesc:focus { border-color: var(--accent); }

/* ---------- 站内转发面板（无系统分享 API 的环境兜底） ---------- */
.shp-sec { margin-bottom: 14px; }
.shp-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.shp-imgbox { text-align: center; background: var(--bg-soft, #f6f8fb); border-radius: 10px; padding: 8px; }
.shp-imgbox img { max-width: 100%; max-height: 300px; border-radius: 8px; }
.shp-text {
  width: 100%; box-sizing: border-box; font-size: 13.5px; line-height: 1.7;
  color: var(--ink); background: var(--bg-soft, #f6f8fb); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; resize: vertical; min-height: 120px;
  font-family: inherit; user-select: all; -webkit-user-select: all;
}
.shp-tip { font-size: 12px; color: var(--ink-3); background: #fff8ec; border: 1px solid #f5e2bd; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }
.shp-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shp-copybtn { padding: 6px 14px; font-size: 13px; flex: none; }

/* ---------- 复制/转发设置（编辑弹窗） ---------- */
.cp-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.cp-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.cp-opt input { margin: 0; }
.cp-text {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px; line-height: 1.6;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; resize: vertical; outline: none;
}
.cp-text:focus { border-color: var(--accent); }
