/* =========================================================
   开拓者教育 — Design System
   现代后台 / SaaS 仪表盘 / 卡片化 / 轻商务 / 柔和高级
   ========================================================= */

:root {
  /* 背景 */
  --bg: #F2F0EB;
  --bg-alt: #F5F3EF;

  /* 侧栏 */
  --sidebar: #1E2128;
  --sidebar-2: #25282E;
  --sidebar-hover: #2E323A;
  --sidebar-active: #343942;

  /* 卡片 */
  --card: #FFFFFF;
  --card-hover: #F8F7F4;
  --line: #ECEAE4;

  /* 文字 */
  --ink: #1A1A1A;
  --ink-2: #222222;
  --muted: #6B7280;
  --muted-2: #8B8B8B;

  /* 主色板 */
  --green: #B8D4C8;       /* 鼠尾草绿 / 薄荷绿 */
  --green-strong: #A8CDB8;
  --yellow: #F5D98A;      /* 暖奶油黄 */
  --yellow-strong: #F2D68A;
  --purple: #9B9BFA;      /* 薰衣草紫 */
  --purple-2: #8B8BEF;
  --violet: #8B5CF6;      /* 警告/退款 */
  --indigo: #6366F1;      /* 消息徽章 */
  --blue: #A9C7E8;        /* 柔雾蓝 */
  --silver: #D1D5DB;      /* 成功/完成 */

  /* 形状 */
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* 阴影 */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.07);

  --sidebar-w: 248px;
  --rail-w: 336px;

  --font: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
svg { display: block; }
[data-icon]{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none}
[data-icon] svg{width:100%;height:100%}
.nav-item [data-icon]{width:19px;height:19px}
.stat .s-delta [data-icon]{width:14px;height:14px}
.search [data-icon]{width:18px;height:18px;color:var(--muted)}
.cta [data-icon]{width:15px;height:15px}
.upgrade-pill [data-icon]{width:15px;height:15px}

/* =========================================================
   布局骨架：三栏（侧栏 | 主内容 | 辅助栏）
   ========================================================= */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rail-w);
  min-height: 100vh;
}

/* ---------- 左侧导航栏 ---------- */
.sidebar {
  background: var(--sidebar);
  color: #E8E8E8;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px 20px;
}
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--purple));
  display: grid; place-items: center;
  color: #1E2128; font-weight: 800; font-size: 18px;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name {
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 10px;
  color: #9aa6b2;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  padding-left: 1px;
}
.brand-logo-img {
  width: 150px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px;
  background: var(--sidebar-2);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--purple);
  color: #1E2128; font-weight: 700;
  display: grid; place-items: center; flex: none;
  font-size: 14px;
}
.user-meta .u-name { font-size: 13px; color: #fff; font-weight: 600; }
.user-meta .u-role { font-size: 11px; color: #8C9099; }

.nav-label {
  font-size: 11px; color: #71767F; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 8px 12px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-sm);
  color: #C7CACE; font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 999px;
  background: var(--green);
}
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item [data-icon] { width: 19px; height: 19px; }
.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--indigo); color: #fff;
  border-radius: 999px; padding: 1px 8px;
}
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.upgrade-pill {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff; font-weight: 600; font-size: 13px;
  padding: 12px; border-radius: var(--r-pill);
}

/* ---------- 中间主内容 ---------- */
.main {
  padding: 24px 28px 40px;
  min-width: 0;
}
.topbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.topbar h1 { font-size: 22px; }
.topbar .crumb { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); place-items: center;
}
.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: var(--r-pill);
  padding: 9px 16px; box-shadow: var(--shadow);
  color: var(--muted); min-width: 230px;
}
.search input {
  border: none; outline: none; background: none; font-size: 14px;
  color: var(--ink); width: 100%;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); display: grid; place-items: center;
  position: relative;
}
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--indigo); border: 2px solid var(--card);
}

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card.hoverable:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 700; }
.card-sub { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* ---------- 统计卡片 ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin-bottom: 18px;
}
.stat .s-label [data-icon]{ width:18px; height:18px; margin-right:7px; vertical-align:-4px; }
.about-text { font-size: 13px; line-height: 1.6; color: #1A1A1A; margin: 10px 0 0; }
.stat {
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  min-height: 152px;
  display: flex; flex-direction: column;
}
.stat.green { background: var(--green); }
.stat.yellow { background: var(--yellow); }
.stat.blue { background: var(--blue); }
.stat.purple { background: var(--purple); }
.stat .s-label { font-size: clamp(15px, 1.3vw, 17px); color: #1A1A1A; font-weight: 700; opacity: 0.92; }
.stat .s-value { font-size: 30px; font-weight: 800; color: #1A1A1A; margin-top: 6px; letter-spacing: -0.02em; }
.stat .s-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #1A1A1A; margin-top: 4px; }
.stat .s-delta svg { width: 14px; height: 14px; }
.spark { margin-top: auto; }
.stat.purple .cta {
  margin-top: auto; align-self: flex-start;
  background: #1E2128; color: #fff; font-weight: 600; font-size: 13px;
  padding: 10px 18px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  border: none; cursor: pointer; font-family: inherit;
}
.promo-text { font-size: 12.5px; line-height: 1.5; color: #2a2a2a; font-weight: 500; margin: 8px 0 0; opacity: 0.85; }
.stat-link { background: var(--yellow); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.stat-link:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0,0,0,0.09); }
.stat-link .link-cta {
  margin-top: auto; align-self: flex-start;
  background: #1E2128; color: #fff; font-weight: 600; font-size: 13px;
  padding: 10px 18px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
}
.stat-link .link-cta svg { width: 15px; height: 15px; }

/* ---------- 9.9元 弹窗 ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,20,24,0.55);
  display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(2px);
}
.modal-scrim.show { display: flex; }
.modal-card {
  background: #fff; width: 100%; max-width: 420px;
  border-radius: 22px; padding: 26px 24px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative; max-height: 90vh; overflow-y: auto;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: #F2F0EB; color: #555; display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: #e6e3dc; }
.modal-close svg { width: 17px; height: 17px; }
.modal-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #b45309;
  background: #FDE9C8; padding: 4px 10px; border-radius: 999px;
}
.modal-title { font-size: 22px; font-weight: 800; color: #1A1A1A; margin: 12px 0 6px; }
.modal-desc { font-size: 13px; line-height: 1.6; color: #555; margin: 0 0 14px; }
.blind-box { background: #F8F7F4; border: 1px solid #ECEAE3; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.bb-head { font-size: 13px; font-weight: 700; color: #1A1A1A; margin-bottom: 10px; }
.bb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bb-list li { font-size: 13px; color: #444; display: flex; gap: 8px; align-items: flex-start; }
.bb-list li span { flex: none; }
.bb-tip { font-size: 11.5px; color: #8B8B8B; margin-top: 10px; line-height: 1.5; }
/* 两种方式：复制口令 / 微信扫码 */
.method {
  border: 1px solid #ECEAE3; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
  background: #fff;
}
.method-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: #1A1A1A; }
.m-badge {
  flex: none; font-size: 11px; font-weight: 700; color: #fff; background: var(--purple);
  padding: 3px 9px; border-radius: 999px;
}
.m-badge.alt { background: #2f8a4f; }
.method-desc { font-size: 12.5px; line-height: 1.55; color: #666; margin: 8px 0 0; }
.qr-box { margin-top: 14px; text-align: center; }
.qr-img { width: 190px; height: 190px; border-radius: 14px; border: 1px solid #EEE; }
.qr-sub { font-size: 11px; color: #8B8B8B; margin-top: 8px; }
.copy-code-btn {
  width: 100%; margin-top: 12px; cursor: pointer; text-align: left;
  background: #FFF3E0; color: #B45309; border: 1px dashed #F0B860;
  border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  font-family: inherit; transition: .15s;
}
.copy-code-btn:hover { background: #FFE9CC; }
.copy-code-btn .cc-text { font-size: 13px; font-weight: 600; line-height: 1.55; word-break: break-all; color: #7a4a12; }
.copy-code-btn .cc-hint { align-self: flex-end; font-size: 12px; font-weight: 700; color: #B45309; background: #fff; border: 1px solid #F0B860; border-radius: 999px; padding: 3px 11px; }
[data-theme="dark"] .copy-code-btn { background: #3a2f1f; color: #f0c98a; border-color: #6b5333; }
[data-theme="dark"] .copy-code-btn:hover { background: #463a26; }
[data-theme="dark"] .copy-code-btn .cc-text { color: #f0c98a; }
[data-theme="dark"] .copy-code-btn .cc-hint { background: #2a2a2a; color: #f0c98a; border-color: #6b5333; }
.copy-toast {
  margin-top: 10px; text-align: center; font-size: 12.5px; color: #2f8a4f;
  background: #E7F6EC; border-radius: 10px; padding: 8px;
}

/* ---------- 主内容两栏（图表 + 列表） ---------- */
.main-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin-bottom: 18px;
}

/* 堆叠柱状图 */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar-stack { width: 60%; max-width: 34px; border-radius: 8px 8px 0 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg-alt); }
.bar-fill { width: 100%; background: #1A1A1A; border-radius: 8px 8px 0 0; }
.bar-top { width: 100%; background: #E4DFD4; }
.bar-day { font-size: 11px; color: var(--muted); }

/* 列表（销售 / 订单） */
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: none; }
.list-row .avatar { width: 40px; height: 40px; background: #EDEBE5; color: var(--ink-2); }
.lr-main { flex: 1; min-width: 0; }
.lr-name { font-size: 14px; font-weight: 600; }
.lr-desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-amount { font-size: 14px; font-weight: 700; }
a.list-row { text-decoration: none; color: inherit; cursor: pointer; border-radius: 10px; transition: background .15s; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
a.list-row:hover { background: var(--card-hover); }
.status {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.status.done { background: var(--silver); color: #3a3a3a; }
.status.prog { background: var(--green); color: #1A1A1A; }
.status.violet { background: #E9DEFC; color: var(--violet); }

/* ---------- 右侧辅助栏 ---------- */
.rail { padding: 24px 22px 40px 0; display: flex; flex-direction: column; gap: 18px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-center { font-size: 18px; font-weight: 800; fill: #1A1A1A; }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .lv { margin-left: auto; font-weight: 700; }

.rail-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; }

/* =========================================================
   内容页通用（我要留学 / 联系 / 案例）
   ========================================================= */
.section { margin-bottom: 22px; }
.hero {
  background: linear-gradient(135deg, #1E2128, #2c313b);
  color: #fff; border-radius: var(--r-lg);
  padding: 30px 28px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero h2 { font-size: 26px; }
.hero p { color: #B9BDC4; font-size: 14px; max-width: 560px; margin-top: 8px; }
.hero .hero-badge {
  background: var(--green); color: #1A1A1A; font-weight: 700;
  padding: 8px 16px; border-radius: var(--r-pill); font-size: 13px; white-space: nowrap;
}

.toc {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px;
}
.toc a {
  background: var(--card); box-shadow: var(--shadow);
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: transform 0.15s;
}
.toc a:hover { transform: translateY(-2px); }

.article {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 18px;
}
.article h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article h3 .ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #1A1A1A;
}
.article h4 { font-size: 15px; margin: 16px 0 6px; }
.article p { font-size: 14px; color: #3c3c3c; margin: 8px 0; }
.article ul.bullets { margin: 8px 0; display: flex; flex-direction: column; gap: 7px; }
.article ul.bullets li {
  font-size: 14px; color: #3c3c3c; padding-left: 22px; position: relative;
}
.article ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-strong);
}
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.course {
  background: var(--bg-alt); border-radius: var(--r-md);
  padding: 16px; border: 1px solid var(--line);
}
.course .c-name { font-weight: 700; font-size: 14px; }
.course .c-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 新西兰八所大学 */
.uni-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 6px; }
.uni-card {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px;
  display: flex; flex-direction: column; gap: 9px;
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.uni-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); background: var(--card); }
.uni-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uni-rank {
  font-size: 12px; font-weight: 800; padding: 4px 11px;
  border-radius: 999px; color: #1A1A1A; letter-spacing: 0.01em; white-space: nowrap;
}
.uni-city { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.uni-city svg { width: 13px; height: 13px; }
.uni-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.uni-en { font-size: 12px; color: var(--muted-2); }
.uni-desc { font-size: 13px; color: #3c3c3c; line-height: 1.55; }
.uni-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--violet);
}
.uni-link svg { width: 14px; height: 14px; }
.uni-link:hover { text-decoration: underline; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 14px; font-family: inherit;
  background: var(--bg-alt); color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple-2); }
.btn-primary {
  background: #1E2128; color: #fff; font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: var(--r-pill); display: inline-flex;
  align-items: center; gap: 8px; transition: transform 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); }
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #1A1A1A;
}
.info-row .ir-label { font-size: 12px; color: var(--muted); }
.info-row .ir-value { font-size: 14px; font-weight: 600; }
.map-ph {
  height: 180px; border-radius: var(--r-md); background:
    repeating-linear-gradient(45deg, #ECEAE4, #ECEAE4 12px, #E6E3DB 12px, #E6E3DB 24px);
  display: grid; place-items: center; color: var(--muted); margin-top: 14px;
}

/* 案例页 */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 22px; transition: box-shadow 0.18s, transform 0.18s;
}
.case:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.case-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-top .avatar { background: var(--green); width: 46px; height: 46px; font-size: 16px; }
.case-name { font-weight: 700; font-size: 15px; }
.case-tag { font-size: 12px; color: var(--muted); }
.case-result {
  background: var(--bg-alt); border-radius: var(--r-md); padding: 12px 14px;
  font-size: 13px; margin-top: 12px; display: flex; align-items: center; gap: 8px;
}
.case-result .ok { color: var(--violet); }
a.case-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.case-hint {
  margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--purple);
  display: inline-flex; align-items: center; gap: 4px;
}
.case-link:hover .case-hint { text-decoration: underline; }

/* 页脚 */
.foot {
  grid-column: 1 / -1;
  text-align: center; color: var(--muted); font-size: 12px;
  padding: 24px 0 8px;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0;
    transform: translateX(-100%); transition: transform 0.25s;
    width: 260px; box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: grid; }
  .main { padding: 18px 16px 36px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; }
  .hero h2 { font-size: 22px; }
  .hero-badge { white-space: normal; }
  .stat-grid { grid-template-columns: 1fr; }
  .main-grid { grid-template-columns: 1fr; }
  .course-grid, .case-grid, .contact-grid, .uni-grid { grid-template-columns: 1fr; }
  .search { display: none; }
  .scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 40;
    display: none;
  }
  .scrim.show { display: block; }
}

/* 深色模式（内置，可切换） */
[data-theme="dark"] {
  --bg: #131519;
  --bg-alt: #1B1F26;
  --card: #1B1F26;
  --card-hover: #222732;
  --line: #2A2F38;
  --ink: #F2F0EB;
  --ink-2: #E9E7E1;
  --muted: #9AA0AB;
  --muted-2: #7E848F;
  --shadow: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-hover: 0 10px 30px rgba(0,0,0,0.5);
}
[data-theme="dark"] .stat .s-value,
[data-theme="dark"] .stat .s-label,
[data-theme="dark"] .stat .s-delta { color: #1A1A1A; }
[data-theme="dark"] .bar-top { background: #2A2F38; }
[data-theme="dark"] .list-row .avatar { background: #2A2F38; color: #F2F0EB; }
[data-theme="dark"] .course { background: #222732; }
[data-theme="dark"] .case-result { background: #222732; }

/* ===== 首页「免服务费申请，全流程介绍」流程模块 ===== */
.flow-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.flow-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--line);
}
.flow-item:first-child { border-top: none; padding-top: 4px; }
.flow-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--purple); color: #fff;
  font-size: 14px; font-weight: 800;
}
.flow-body { min-width: 0; }
.flow-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.flow-tag {
  font-size: 13px; color: var(--purple-2); font-weight: 600;
  margin-top: 2px;
}
.flow-desc { font-size: 14px; line-height: 1.7; color: #3c3c3c; margin: 8px 0 0; }

@media (max-width: 860px) {
  .flow-item { gap: 12px; }
  .flow-num { width: 26px; height: 26px; font-size: 13px; }
  .flow-title { font-size: 15px; }
  .flow-desc { font-size: 13px; }
}
[data-theme="dark"] .flow-desc { color: #C7CBD2; }
[data-theme="dark"] .flow-title { color: #F2F0EB; }

/* =========================================================
   首页 Banner + 标签区
   ========================================================= */
.home-banner {
  background: linear-gradient(120deg, var(--green) 0%, var(--yellow) 48%, var(--purple) 100%);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  color: #1A1A1A;
}
.home-banner .hb-quote {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 780px;
}
.home-banner .hb-quote .em { color: #6D28D9; }
.hb-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hb-tag {
  background: rgba(255, 255, 255, 0.7);
  color: #1A1A1A;
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-pill);
}
.hb-tag.hi { background: #1E2128; color: #fff; }

/* =========================================================
   首页 关于我和"开拓者"
   ========================================================= */
.about-me {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.about-me .am-title {
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.about-me .am-title [data-icon] { color: var(--purple); }
.about-me .am-body { margin: 12px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.about-me .am-body p { font-size: 14.5px; line-height: 1.8; color: #3c3c3c; margin: 0; }

/* =========================================================
   首页 服务亮点
   ========================================================= */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; margin-top: 6px;
}
.highlight {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.highlight:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.highlight .h-ic { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.highlight .h-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.highlight .h-meta { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   关于我页 · 我的理念（有序列表）
   ========================================================= */
.philo {
  margin: 12px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 18px;
  counter-reset: ph;
}
.philo li { position: relative; padding-left: 46px; }
.philo li::before {
  counter-increment: ph; content: counter(ph);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--purple); color: #1E2128;
  font-weight: 800; font-size: 15px;
  display: grid; place-items: center;
}
.philo li b { display: block; font-size: 15px; margin-bottom: 5px; color: var(--ink); }
.philo li span { font-size: 14px; color: #3c3c3c; line-height: 1.75; }

@media (max-width: 860px) {
  .home-banner { padding: 26px 22px; }
  .home-banner .hb-quote { font-size: 21px; }
}

/* 深色模式适配 */
[data-theme="dark"] .home-banner { color: #1A1A1A; }
[data-theme="dark"] .home-banner .hb-quote .em { color: #6D28D9; }
[data-theme="dark"] .about-me .am-body p { color: #C7CBD2; }
[data-theme="dark"] .highlight { background: #222732; }
[data-theme="dark"] .highlight .h-meta { color: #9AA0AB; }
[data-theme="dark"] .philo li span { color: #C7CBD2; }

/* ===== 经历与证书画廊 ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.cert-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: var(--purple);
}
.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.cert-cap {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
@media (max-width: 860px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-cap { font-size: 12px; padding: 8px 10px; }
}
@media (max-width: 520px) {
  .cert-grid { grid-template-columns: 1fr; }
}
[data-theme="dark"] .cert-card { background: #1E2128; border-color: #333942; }
[data-theme="dark"] .cert-card:hover { border-color: var(--violet); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
[data-theme="dark"] .cert-cap { color: #E5E7EB; }

/* =========================================================
   政策更新（首页板块 + 文章页表格）
   ========================================================= */
.policy-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.policy-card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.policy-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--purple); }
.pc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pc-badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--purple); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pc-date { font-size: 12px; color: var(--muted); margin-left: auto; }
.pc-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.pc-summary { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 8px 0 12px; }
.pc-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--violet); }
.pc-more svg { width: 14px; height: 14px; }
.policy-card:hover .pc-more { text-decoration: underline; }

/* 文章页：政策对比表格 */
.table-scroll { overflow-x: auto; margin: 12px 0; border-radius: var(--r-md); border: 1px solid var(--line); }
.policy-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.policy-table th, .policy-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.policy-table thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); white-space: nowrap; }
.policy-table tbody tr:last-child td { border-bottom: none; }
.policy-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.article-note { font-size: 12.5px; color: var(--muted); background: var(--bg-alt); border-left: 3px solid var(--purple); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 14px 0; line-height: 1.6; }
.article-cta { margin-top: 22px; }

@media (max-width: 860px) {
  .policy-table { font-size: 12.5px; }
  .policy-table th, .policy-table td { padding: 10px 12px; }
}

/* 深色模式 */
[data-theme="dark"] .policy-card { background: #222732; }
[data-theme="dark"] .policy-card:hover { border-color: var(--violet); }
[data-theme="dark"] .pc-summary { color: #9AA0AB; }
[data-theme="dark"] .policy-table thead th { background: #222732; }
[data-theme="dark"] .policy-table tbody tr:nth-child(even) { background: #1B1F26; }
[data-theme="dark"] .article-note { background: #222732; }

/* ===== 文章内嵌图片（政策清单表格图）===== */
.article-figure {
  margin: 20px 0 18px;
  text-align: center;
}
.article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-figure img:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.article-figure figcaption small {
  font-size: 11.5px;
  opacity: 0.8;
}
.article-figure--wide {
  margin: 24px -8px;
}
@media (max-width: 640px) {
  .article-figure--wide { margin: 20px 0; }
}

/* 深色模式 — 文章图片 */
[data-theme="dark"] .article-figure img {
  border-color: #333A47;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
[data-theme="dark"] .article-figure img:hover {
  box-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
