/* ============================================================
   北京世纪华园教育科技有限公司 — 官网样式
   风格：简约大气 / 留白充足 / 青绿主色
   ============================================================ */

:root {
  /* 主色：蓝（科技、可信） */
  --brand: #1a56db;
  --brand-600: #1648bd;
  --brand-700: #10389a;
  --brand-50: #eef3fe;
  --brand-100: #dbe6fd;

  /* 点缀一：金 / 黄（喜庆、品质） */
  --accent: #e9a72b;
  --accent-50: #fdf6e7;

  /* 点缀二：喜庆红（重点强调、活动、号召） */
  --festive: #d92b2b;
  --festive-50: #fdeeec;

  /* 辅助：原品牌青绿（成长、生态语义保留） */
  --aux: #0e7c66;
  --aux-50: #eaf5f2;

  --ink: #10233f;
  --ink-2: #33475f;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e6ecf5;
  --line-2: #f2f6fb;
  --bg: #ffffff;
  --bg-soft: #f7fafd;
  --bg-soft-2: #eff5fc;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --shadow-s: 0 1px 2px rgba(20, 35, 31, .05);
  --shadow: 0 4px 20px rgba(20, 35, 31, .07);
  --shadow-l: 0 18px 48px rgba(20, 35, 31, .12);

  --max: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; }

/* ---------- 通用排版 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); font-weight: 700;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px;
}
.sec-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 14px 0 12px;
}
.sec-desc {
  color: var(--muted); font-size: 17px; max-width: 680px; line-height: 1.85;
}
section { padding: 96px 0; }
.sec-soft { background: var(--bg-soft); }
.center { text-align: center; }
.center .sec-desc { margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  height: 74px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, #17a086 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(14, 124, 102, .28);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-txt strong { display: block; font-size: 16px; line-height: 1.3; letter-spacing: .02em; }
.logo-txt span { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: .22em; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 9px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: .18s; font-weight: 500;
}
.nav a:hover { background: var(--brand-50); color: var(--brand); }
.nav a.active { color: var(--brand); font-weight: 700; background: var(--brand-50); }

.hd-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(14, 124, 102, .24); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(14, 124, 102, .3); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 88px;
  background:
    radial-gradient(1100px 520px at 82% -8%, var(--brand-100) 0%, transparent 62%),
    radial-gradient(700px 420px at 4% 100%, #fdf3e8 0%, transparent 60%),
    var(--bg);
}
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 8px;
  background: #fff; border: 1px solid var(--brand-100); border-radius: 999px;
  font-size: 13px; color: var(--brand-700); font-weight: 600; box-shadow: var(--shadow-s);
}
.hero-tag b { background: var(--brand-50); color: var(--brand); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.22; margin: 22px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 540px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted-2); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line);
}
.stat b { display: block; font-size: 30px; color: var(--brand); line-height: 1.2; font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); }

/* Hero 视觉 */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(14, 124, 102, .16)); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 30px; transition: .24s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }

.sc-card { display: block; }
.sc-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 20px; transition: .24s;
}
.sc-ico svg { width: 26px; height: 26px; }
.card:hover .sc-ico { background: var(--brand); color: #fff; }
.sc-card h3 { font-size: 19px; margin-bottom: 10px; }
.sc-card p { color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.sc-list { margin-top: 18px; display: grid; gap: 8px; }
.sc-list li { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.sc-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  margin-top: 10px; flex-shrink: 0;
}
.sc-more { margin-top: 20px; font-size: 14px; color: var(--brand); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.sc-more::after { content: "→"; transition: .2s; }
.card:hover .sc-more::after { transform: translateX(4px); }

/* ---------- 优势 ---------- */
.adv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.adv-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.adv-item h4 { font-size: 17px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.adv-num {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.adv-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- 案例 ---------- */
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; transition: .24s; display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-top {
  padding: 26px 28px 20px; background: linear-gradient(160deg, var(--brand-50), #fff 70%);
  border-bottom: 1px solid var(--line-2);
}
.case-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-700);
  background: #fff; border: 1px solid var(--brand-100); border-radius: 999px; padding: 3px 12px;
}
.case-top h3 { font-size: 18px; margin: 12px 0 6px; }
.case-meta { font-size: 13px; color: var(--muted); }
.case-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.case-label { font-size: 12px; color: var(--muted-2); font-weight: 700; letter-spacing: .1em; margin-bottom: 6px; }
.case-body p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.case-res {
  margin-top: auto; background: var(--bg-soft); border-radius: var(--radius-s);
  padding: 14px 16px; font-size: 14px; color: var(--brand-700); line-height: 1.8;
}

/* ---------- 新闻 ---------- */
.news-item {
  display: grid; grid-template-columns: 78px 1fr; gap: 22px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--line-2);
}
.news-item:last-child { border-bottom: 0; }
.news-date { text-align: center; background: var(--bg-soft); border-radius: 12px; padding: 10px 0; }
.news-date b { display: block; font-size: 24px; color: var(--brand); line-height: 1.1; font-weight: 800; }
.news-date span { font-size: 12px; color: var(--muted-2); }
.news-item h4 { font-size: 17px; margin-bottom: 6px; transition: .2s; }
.news-item:hover h4 { color: var(--brand); }
.news-item p { font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-cat { font-size: 12px; color: var(--brand); font-weight: 700; margin-right: 10px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--brand-100);
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.tl-year { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.tl-item h4 { font-size: 17px; margin: 4px 0 6px; }
.tl-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- 资源中心 ---------- */
.res-item {
  display: flex; gap: 18px; align-items: center; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .22s;
}
.res-item:hover { border-color: var(--brand-100); box-shadow: var(--shadow-s); }
.res-ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.res-ico svg { width: 22px; height: 22px; }
.res-main { flex: 1; min-width: 0; }
.res-main h4 { font-size: 16.5px; margin-bottom: 4px; }
.res-main p { font-size: 14px; color: var(--muted); }
.res-meta { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.field label .req { color: #d6483b; }
.input, .textarea, .select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink); transition: .18s; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.textarea { min-height: 118px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.info-block { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.info-block:last-child { border-bottom: 0; }
.info-ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.info-ico svg { width: 20px; height: 20px; }
.info-block h4 { font-size: 15px; margin-bottom: 2px; }
.info-block p { font-size: 14.5px; color: var(--muted); }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow);
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand) 55%, #1a9b80 100%);
  border-radius: var(--radius-xl); padding: 62px 56px; color: #fff; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .84); font-size: 16.5px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { background: var(--brand-50); }
.btn-outline-w { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-w:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- 页脚 ---------- */
.ft { background: #10201c; color: #a9bcb6; padding: 68px 0 0; margin-top: 0; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.ft h5 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.ft li { margin-bottom: 10px; font-size: 14px; }
.ft li a {
  color: #d7e6e0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .3);
  transition: .18s;
}
.ft li a:hover { color: #fff; text-decoration-color: #fff; }
.ft-about p { font-size: 14px; line-height: 1.9; max-width: 320px; }
.ft-logo { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 16px; }
.ft-logo strong { font-size: 16px; }
.ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap;
}

/* ---------- 登录 / 会员 ---------- */
.auth-wrap {
  min-height: calc(100vh - 74px - 200px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.auth-side {
  background: linear-gradient(150deg, var(--brand-700), var(--brand) 60%, #1a9b80);
  color: #fff; padding: 72px 60px; display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { font-size: 32px; margin-bottom: 16px; }
.auth-side > p { color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.9; }
.auth-points { margin-top: 34px; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.9); }
.auth-points svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; opacity: .9; }
.auth-main { padding: 72px 60px; display: flex; align-items: center; justify-content: center; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 28px; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }

.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-soft-2);
  border-radius: 999px; padding: 4px; margin-bottom: 28px;
}
.tabs button {
  border: 0; background: transparent; height: 38px; border-radius: 999px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 14px; transition: .2s;
}
.tabs button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-s); }

.otp-row { display: flex; gap: 10px; }
.otp-row .input { flex: 1; }
.link-btn {
  background: none; border: 0; color: var(--brand); cursor: pointer; font-size: 14px;
  font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.form-hint { font-size: 13px; color: var(--muted-2); margin-top: 10px; }

/* 会员中心 */
.mem-head {
  background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #1a9b80);
  color: #fff; padding: 46px 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.mem-head-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  display: grid; place-items: center; font-size: 24px; font-weight: 700; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .35);
}
.mem-head h1 { font-size: 24px; margin-bottom: 4px; }
.mem-head p { color: rgba(255, 255, 255, .8); font-size: 14px; }
.mem-head .spacer { flex: 1; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 30px; margin-bottom: 22px;
}
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-head h3 { font-size: 18px; }
.panel-head p { font-size: 13.5px; color: var(--muted); }
.panel-head .spacer { flex: 1; }

.file-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-s); margin-bottom: 10px;
  background: var(--bg-soft);
}
.file-row .fname { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fmeta { font-size: 12.5px; color: var(--muted-2); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .18s; flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover { border-color: #d6483b; color: #d6483b; }
.icon-btn svg { width: 16px; height: 16px; }

.upload-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center;
  background: var(--bg-soft); transition: .2s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--brand); background: var(--brand-50); }
.upload-zone svg { width: 30px; height: 30px; color: var(--brand); margin: 0 auto 10px; }
.upload-zone p { font-size: 14px; color: var(--muted); }
.upload-zone b { color: var(--brand); }

/* ---------- 状态提示 ---------- */
.msg {
  padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; margin-bottom: 16px;
  display: none; line-height: 1.7;
}
.msg.show { display: block; }
.msg.err { background: #fdeceb; color: #a8322a; border: 1px solid #f8cec9; }
.msg.ok { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.msg.info { background: var(--accent-50); color: #8a5518; border: 1px solid #f6dfc0; }

.empty { text-align: center; padding: 34px 0; color: var(--muted-2); font-size: 14.5px; }
.loading { text-align: center; padding: 30px 0; color: var(--muted-2); font-size: 14px; }
.skeleton {
  height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), var(--bg-soft-2), var(--line-2));
  background-size: 200% 100%; animation: sk 1.3s infinite; margin-bottom: 10px;
}
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

.badge {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700); font-weight: 600;
}
.badge.gray { background: var(--bg-soft-2); color: var(--muted); }

.member-only {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent);
  font-weight: 600; background: var(--accent-50); padding: 2px 10px; border-radius: 999px;
}

/* ---------- 维护后台 ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #f4f6f5; }

/* 侧边栏 */
.admin-side {
  width: 232px; flex: 0 0 232px; background: #10201c; color: #cfe0db;
  display: flex; flex-direction: column; padding: 20px 14px 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; }
.admin-brand .logo-mark { background: var(--brand); color: #fff; flex: 0 0 auto; }
.admin-brand b { color: #fff; font-size: 15.5px; line-height: 1.3; }
.admin-brand small { display: block; color: #7e948d; font-size: 11.5px; font-weight: 500; margin-top: 2px; }
.side-title {
  font-size: 11px; letter-spacing: .16em; color: #6f867f; padding: 0 12px;
  margin: 18px 0 8px; font-weight: 700;
}
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0;
  background: transparent; padding: 10px 12px; border-radius: 9px; font-size: 14px;
  color: #cfe0db; cursor: pointer; transition: .16s; font-weight: 500; font-family: inherit;
}
.admin-side nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side nav button.on {
  background: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(14, 124, 102, .35);
}
.admin-side nav button .cnt {
  margin-left: auto; font-size: 11.5px; background: rgba(255, 255, 255, .12);
  padding: 1px 8px; border-radius: 999px; font-weight: 700;
}
.admin-side nav button.on .cnt { background: rgba(255, 255, 255, .24); }

/* 顶栏 */
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 30px;
  position: sticky; top: 0; z-index: 30;
}
.admin-topbar h1 { font-size: 17px; font-weight: 700; }
.admin-topbar .crumb { font-size: 13px; color: var(--muted); }
.admin-topbar .spacer { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px;
}
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.role-tag {
  font-size: 11.5px; background: var(--brand-50); color: var(--brand-700);
  border-radius: 999px; padding: 1px 8px; font-weight: 700;
}
.role-tag.super { background: #fff2e0; color: #a8641a; }

.admin-body { padding: 26px 30px 80px; }
.admin-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h2 { font-size: 22px; margin-bottom: 4px; }
.admin-head p { font-size: 14px; color: var(--muted); }
.admin-head .spacer { flex: 1; }

/* 卡片与表格 */
.tbl-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-s);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; background: #fafcfb; padding: 12px 16px; font-size: 13px;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: #fafcfb; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.act { text-align: right; white-space: nowrap; }
.tbl .t-main { font-weight: 600; }
.tbl .t-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }

.editor {
  background: #fff; border: 1px solid var(--brand-100); border-radius: var(--radius-l);
  padding: 26px 28px; margin-bottom: 20px; display: none; box-shadow: var(--shadow);
}
.editor.show { display: block; }
.editor h3 { font-size: 17px; margin-bottom: 20px; }
.editor .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-actions { display: flex; gap: 12px; margin-top: 10px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-s); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; right: -18px; top: -18px; width: 62px; height: 62px;
  border-radius: 50%; background: var(--brand-50);
}
.stat-card b { display: block; font-size: 28px; color: var(--brand); line-height: 1.2; font-weight: 800; position: relative; }
.stat-card span { font-size: 13px; color: var(--muted); position: relative; }

.code-box {
  display: flex; align-items: center; gap: 12px; background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 12px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
  word-break: break-all;
}

/* 富文本编辑器容器 */
.rich-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.rich-box .w-e-toolbar { flex-wrap: wrap; border-bottom: 1px solid var(--line) !important; }
.rich-box .w-e-text-container { min-height: 330px; }
.rich-box .w-e-bar-item .w-e-select-list { max-height: 320px; }
.rich-tip { font-size: 12.5px; color: var(--muted-2); margin-top: 8px; }
.rich-loading { padding: 16px; font-size: 14px; color: var(--muted); }

/* 新闻正文预览 */
.rich-body { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.rich-body p { margin-bottom: 14px; }
.rich-body img { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.rich-body video, .rich-body iframe { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.rich-body h1, .rich-body h2, .rich-body h3 { margin: 20px 0 10px; font-weight: 800; }
.rich-body blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 14px; color: var(--muted); margin: 14px 0; }
.rich-body ul, .rich-body ol { padding-left: 24px; margin-bottom: 14px; }
.rich-body table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.rich-body table td, .rich-body table th { border: 1px solid var(--line); padding: 8px 10px; }

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; flex: none; height: auto; position: static; padding: 14px 12px; }
  .admin-side nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-side .side-title { display: none; }
  .admin-topbar { padding: 0 16px; }
  .admin-body { padding: 20px 16px 56px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .editor .grid-2 { grid-template-columns: 1fr; }
  .tbl-wrap { overflow-x: auto; }
  .tbl { min-width: 640px; }
}

/* ---------- 权限勾选 ---------- */
.perm-grid { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 2px 0 6px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); cursor: pointer; user-select: none; }
.chk input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; margin: 0; }
.chk.off { opacity: .45; }
.perm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-tags .badge { font-size: 12px; padding: 2px 9px; }
.who-me { font-size: 12px; color: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 1px 8px; margin-left: 8px; }
.hint-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------- 新闻详情弹窗 ---------- */
.news-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.news-modal.show { display: block; }
.news-modal .nm-mask { position: absolute; inset: 0; background: rgba(14, 28, 24, .55); animation: nmFade .2s ease; }
.news-modal .nm-panel {
  position: relative; max-width: 840px; margin: 7vh auto; background: #fff;
  border-radius: 20px; padding: 40px 44px; max-height: 84vh; overflow: auto;
  box-shadow: var(--shadow-l); animation: nmUp .24s cubic-bezier(.2, .8, .3, 1);
}
.news-modal .nm-close {
  position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border: 0;
  background: var(--bg-soft); border-radius: 50%; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: .16s;
}
.news-modal .nm-close:hover { background: var(--line); color: var(--ink); }
.news-modal .nm-close svg { width: 18px; height: 18px; }
.news-modal .nm-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.news-modal .nm-panel h2 { font-size: 26px; line-height: 1.4; margin-bottom: 12px; }
.news-modal .nm-sum {
  font-size: 15px; color: var(--muted); background: var(--bg-soft); border-left: 3px solid var(--brand);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin-bottom: 20px; line-height: 1.8;
}
@keyframes nmFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes nmUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@media (max-width: 700px) {
  .news-modal .nm-panel { margin: 0; max-height: 100vh; height: 100vh; border-radius: 0; padding: 30px 20px; }
}

/* ---------- 兼容旧版后台结构（浏览器缓存旧 HTML 时兜底） ---------- */
.admin-bar { background: #10201c; color: #fff; }
.admin-bar-in { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; flex-wrap: wrap; }
.admin-bar .spacer { flex: 1; }
.admin-bar .who { font-size: 13px; color: #9db3ac; }
.admin-wrap { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.admin-wrap .admin-side { width: auto; flex: none; height: auto; position: static; overflow: visible; }
.admin-wrap .admin-main { display: block; padding: 26px 30px 80px; }

/* ---------- 页面内容管理 ---------- */
.btn-xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-sm.danger, .btn-xs.danger { color: #b8412f; }
.btn-sm.danger:hover, .btn-xs.danger:hover { background: #fdeceb; border-color: #e8b3aa; }
.hint { font-size: 13px; color: var(--muted-2); margin-top: 6px; line-height: 1.7; }

.page-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ptab {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; cursor: pointer;
  transition: .18s; font-weight: 500;
}
.ptab:hover { border-color: var(--brand-100); color: var(--brand); }
.ptab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.cms-intro { margin-bottom: 18px; }
.cms-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.cms-head {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px; flex-wrap: wrap;
}
.cms-hd-l b { font-size: 15px; font-weight: 600; }
.cms-state { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }
.cms-state.on { color: var(--brand); font-weight: 600; }
.cms-act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.cms-body { display: none; padding: 4px 20px 20px; border-top: 1px solid var(--line-2); }
.cms-body.show { display: block; }

.cms-item { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; margin-top: 14px; background: var(--bg-soft); }
.cms-item-hd { display: flex; align-items: center; margin-bottom: 12px; }
.cms-item-hd b { font-size: 14px; }
.cms-move { margin-left: auto; display: flex; gap: 6px; }
.cms-item-bd { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cms-item-bd .field:only-child { grid-column: 1 / -1; }
.cms-list-foot { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .cms-item-bd { grid-template-columns: 1fr; }
  .cms-act { margin-left: 0; width: 100%; }
}

/* ---------- 后台图片字段 ---------- */
.img-field { border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 14px; background: var(--bg-soft); }
.img-prev { min-height: 44px; display: flex; align-items: center; margin-bottom: 10px; }
.img-empty { font-size: 13px; color: var(--muted-2); }
.img-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.img-ops .btn { padding: 6px 12px; font-size: 13px; }

/* ---------- 清除缓存菜单 ---------- */
.cache-menu { position: relative; }
.cache-drop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 400; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 12px 30px rgba(16,40,34,.14); padding: 6px; }
.cache-drop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.cache-drop button:hover { background: var(--bg-soft); color: var(--brand); }
.cache-tip { margin: 4px 12px 6px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

/* ---------- 数据大屏 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.chart-box { width: 100%; overflow: hidden; }
.hbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13.5px; }
.hbar-l { flex: 0 0 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar-t { flex: 1; height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; background: linear-gradient(90deg, #0e7c66, #2aa98d); border-radius: 999px; }
.hbar-n { flex: 0 0 44px; text-align: right; font-weight: 700; color: var(--brand); }
.donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lg-box { display: grid; gap: 8px; }
.lg { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.lg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg b { margin-left: auto; color: var(--ink); }
.lg span { color: var(--muted-2); font-size: 12.5px; min-width: 38px; text-align: right; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 页脚订阅框 ---------- */
.sub-box { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: space-between; background: var(--bg-soft-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 18px; }
.sub-txt { display: flex; flex-direction: column; gap: 4px; }
.sub-txt b { font-size: 15.5px; color: var(--ink); }
.sub-txt span { font-size: 13px; color: var(--muted-2); }
.sub-form { display: flex; gap: 10px; }
.sub-form .input { width: 220px; }
.sub-msg { flex-basis: 100%; font-size: 13px; }
.sub-msg.ok { color: var(--brand-600); }
.sub-msg.err { color: #d6483b; }
@media (max-width: 640px) {
  .sub-form { width: 100%; }
  .sub-form .input { width: 100%; flex: 1; }
}

.bind-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.bind-row .t-main { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.bind-row .t-sub { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.bind-row .spacer { flex: 1; }

/* ---------- 会员资料卡 ---------- */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 6px; }
.prof-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.prof-item span { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.prof-item b { font-size: 15px; color: var(--ink); word-break: break-all; }
.row-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }

/* ---------- 富文本媒体工具栏 ---------- */
.rich-media { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 12px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-s); }
.rich-media-t { font-size: 13px; font-weight: 700; color: var(--muted); }
.rich-media button { font-size: 13px; padding: 6px 14px; border: 1px solid var(--brand-100); background: #fff; color: var(--brand-700); border-radius: 8px; cursor: pointer; transition: .18s; }
.rich-media button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.rich-media-h { font-size: 12.5px; color: var(--muted-2); }

/* ---------- 第三方登录 ---------- */
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--muted-2); font-size: 13px; }
.oauth-sep::before, .oauth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.oauth-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.oauth-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; padding: 10px 18px; border-radius: 10px; cursor: pointer; transition: .18s; }
.oauth-btn svg { width: 18px; height: 18px; }
.oauth-btn:hover { border-color: var(--brand-100); background: var(--bg-soft); }
.oauth-btn.wx svg { color: #07c160; }
.oauth-btn.qq svg { color: #12b7f5; }

/* ---------- 网站动态页 ---------- */
.news-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.news-tab { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: .18s; }
.news-tab:hover { border-color: var(--brand-100); color: var(--brand); }
.news-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.news-tab span { margin-left: 7px; font-size: 12px; opacity: .7; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; text-decoration: none; color: inherit; transition: .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,40,34,.09); border-color: var(--brand-100); }
.news-cover { height: 168px; background: var(--brand-50); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cover.ph { display: flex; align-items: center; justify-content: center; }
.news-cover.ph span { font-size: 30px; font-weight: 800; color: var(--brand-700); opacity: .55; letter-spacing: .04em; }
.news-card-bd { padding: 18px 20px 20px; }
.news-card-bd h3 { font-size: 17px; margin: 10px 0 8px; line-height: 1.5; }
.news-card-bd p { font-size: 14px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; }

.art-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-l); margin-bottom: 26px; display: block; }
.art-body { font-size: 16.5px; line-height: 1.95; color: var(--ink-2); }
.art-body img { max-width: 100%; border-radius: 10px; margin: 18px 0; height: auto; }
.art-body video { max-width: 100%; border-radius: 10px; margin: 18px 0; }
.art-body iframe { max-width: 100%; border-radius: 10px; margin: 18px 0; }
.art-body h1, .art-body h2, .art-body h3 { margin: 26px 0 14px; color: var(--ink); }
.art-body p { margin: 0 0 16px; }
.art-body ul, .art-body ol { margin: 0 0 16px; padding-left: 24px; }
.art-body blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 8px 8px 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.art-body th, .art-body td { border: 1px solid var(--line); padding: 10px 12px; }
.art-body th { background: var(--bg-soft); }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ---------- 数据库管理 ---------- */
.db-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.db-table th { text-align: left; background: var(--bg-soft); padding: 12px 16px; font-size: 13px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.db-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.db-table tr:last-child td { border-bottom: 0; }
.db-num { font-size: 20px; font-weight: 800; color: var(--brand); }
.db-empty { color: var(--muted-2); font-size: 13px; }
.btn-sm.danger-text { color: #c0392b; border-color: #eccfca; }
.btn-sm.danger-text:hover { background: #fdf1ef; }

/* ---------- 页脚友情链接 ---------- */
.ft-links {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 0; margin-top: 4px;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.ft-links-t { font-size: 13px; font-weight: 700; color: var(--muted-2); letter-spacing: .08em; flex: 0 0 auto; }
.ft-links-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.ft-links-list a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; transition: .18s; }
.ft-links-list a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 前台可视化编辑 ---------- */
.hy-ed-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; background: #0f211d; color: #fff; }
.hy-ed-bar.busy { opacity: .7; }
.hy-ed-bar-in { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; flex-wrap: wrap; }
.hy-ed-logo { font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.hy-ed-page { font-size: 13px; background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 999px; }
.hy-ed-hint { font-size: 12.5px; color: #9db3ac; }
.hy-ed-sp { flex: 1; }
.hy-ed-btn { border: 1px solid rgba(255,255,255,.24); background: transparent; color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.hy-ed-btn:hover { background: rgba(255,255,255,.1); }
.hy-ed-btn.primary { background: var(--brand); border-color: transparent; font-weight: 600; }
.hy-ed-btn.on { background: var(--accent); border-color: transparent; }
.hy-ed-state { font-size: 12.5px; color: #9db3ac; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.hy-ed-state.dirty { color: #fff; background: var(--accent); font-weight: 600; }
#hyEdSave { padding: 7px 18px; font-size: 13.5px; }
#hyEdSave.has-pending { animation: hyPulse 1.6s ease-in-out infinite; }
@keyframes hyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,139,62,.65); }
  50% { box-shadow: 0 0 0 6px rgba(224,139,62,0); }
}
body.hy-editing-body { padding-top: 52px; }

.hy-ed-text { position: relative; outline: 1px dashed rgba(14,124,102,.45); outline-offset: 3px; cursor: text; }
.hy-ed-text:hover { outline-color: rgba(14,124,102,.9); background: rgba(14,124,102,.045); }
.hy-ed-tag { position: absolute; top: -20px; left: 0; font-size: 11px; background: var(--brand); color: #fff; padding: 1px 7px; border-radius: 4px; opacity: 0; pointer-events: none; white-space: nowrap; z-index: 60; }
.hy-ed-text:hover .hy-ed-tag { opacity: 1; }
.hy-ed-active { outline: 2px solid var(--brand) !important; background: #fff !important; }

.hy-ed-listbox { position: relative; outline: 1px dashed rgba(224,139,62,.5); outline-offset: 6px; }
.hy-ed-listbar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 12.5px; flex-wrap: wrap; }
.hy-ed-listname { font-weight: 700; color: var(--accent); }
.hy-ed-listbar button { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.hy-ed-item { position: relative; }
.hy-ed-item:hover { outline: 2px dashed rgba(14,124,102,.5); outline-offset: 2px; }
.hy-ed-tools { position: absolute; top: 6px; right: 6px; display: none; gap: 4px; z-index: 70; }
.hy-ed-item:hover .hy-ed-tools { display: flex; }
.hy-ed-tools button { width: 25px; height: 25px; line-height: 1; font-size: 12px; border: 0; border-radius: 6px; background: var(--brand); color: #fff; cursor: pointer; }
.hy-ed-tools button[data-a="del"] { background: #c0392b; }
.hy-dragging { opacity: .4; }
.hy-drag-over { outline: 2px solid var(--accent) !important; }

body.hy-sec-mode .hy-ed-sec { position: relative; outline: 1px dashed rgba(14,124,102,.4); outline-offset: 4px; }
.hy-ed-secbar { display: none; position: absolute; top: 8px; left: 8px; gap: 6px; align-items: center; background: var(--brand); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; z-index: 80; }
body.hy-sec-mode .hy-ed-sec:hover .hy-ed-secbar { display: flex; }
.hy-ed-secbar button { border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; cursor: pointer; }

.hy-ed-panel { position: fixed; top: 52px; right: 0; bottom: 0; width: 380px; max-width: 92vw; background: #fff; z-index: 9200; box-shadow: -8px 0 28px rgba(0,0,0,.14); display: flex; flex-direction: column; }
.hy-ed-panel-hd { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.hy-ed-panel-hd b { font-size: 15px; }
.hy-ed-panel-hd button { margin-left: auto; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.hy-ed-panel-bd { flex: 1; overflow-y: auto; padding: 18px; }
.hy-ed-panel-ft { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.hy-ed-panel-ft .hy-ed-sp { flex: 1; }
.hy-ed-panel-ft button { font-size: 13.5px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.hy-ed-panel-ft button.primary { background: var(--brand); color: #fff; border-color: transparent; font-weight: 600; }
.hy-ed-panel-ft button.danger { color: #c0392b; border-color: #f0c8c2; }
.hy-ed-f { margin-bottom: 18px; }
.hy-ed-f label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hy-ed-f input, .hy-ed-f textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: inherit; }
.hy-ed-imgbox { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; background: var(--bg-soft); }
.hy-ed-imgbox img { max-width: 100%; max-height: 140px; border-radius: 8px; }
.hy-ed-imgbox svg { width: 46px; height: 46px; color: var(--brand); }
.hy-ed-empty { font-size: 13px; color: var(--muted-2); }
.hy-ed-imgops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hy-ed-imgops button { font-size: 12.5px; padding: 6px 11px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; }
.hy-ed-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.hy-ed-icons button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 0; cursor: pointer; color: var(--brand); }
.hy-ed-icons svg { width: 20px; height: 20px; }
.hy-ed-tip { font-size: 12px; color: var(--muted-2); margin-top: 6px; line-height: 1.6; }

.hy-ed-toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); background: #0f211d; color: #fff; font-size: 13.5px; padding: 11px 20px; border-radius: 999px; z-index: 9500; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 86vw; text-align: center; }
.hy-ed-toast.err { background: #c0392b; }

.sc-ico img, .info-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

@media (max-width: 720px) {
  .hy-ed-hint { display: none; }
  .hy-ed-panel { width: 100%; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .g5 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 480px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .adv, .contact-grid, .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 48px 28px; }
  .auth-main { padding: 48px 28px; }
  .cta-band { padding: 44px 28px; }
  .form-card { padding: 28px 22px; }
  section { padding: 68px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 30px; }
  .hd-in { height: 64px; gap: 14px; }
  .logo-txt strong { font-size: 14px; }
  .btn { height: 42px; padding: 0 18px; }
  .res-item { flex-wrap: wrap; }
  .timeline { padding-left: 26px; }
  .tl-item::before { left: -26px; }
}

/* ---------- 手机端后台：侧边栏改为横向可滑动菜单（放最后，确保覆盖前面的规则） ---------- */
@media (max-width: 900px) {
  .admin-shell { flex-direction: column !important; }
  .admin-side {
    width: 100% !important; flex: none !important; height: auto !important;
    position: static !important; padding: 12px 0 14px !important; overflow: visible !important;
  }
  .admin-side .admin-brand { padding: 0 16px; margin-bottom: 12px; }
  .admin-side nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-auto-flow: row !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 6px 16px 10px;
  }
  .admin-side nav::-webkit-scrollbar { height: 4px; }
  .admin-side nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; }
  .admin-side .side-title { display: none !important; }
  .admin-side nav button {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 9px 15px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px !important;
  }
  .admin-side nav button .cnt { margin-left: 6px; }
  .admin-main { padding: 20px 16px 56px !important; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
