/* =========================================================
   启航学习站 - 全站样式
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #161a2e;
  --text-soft: #3b4056;
  --muted: #6b7280;
  --brand: #5b6cff;
  --brand-2: #8b5cf6;
  --accent: #22d3ee;
  --danger: #ef4444;
  --ok: #10b981;
  --border: #e7e9f3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px -16px rgba(23, 26, 43, .22);
  --shadow-sm: 0 2px 10px rgba(23, 26, 43, .05);
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 6% -10%, rgba(91, 108, 255, .20), transparent 62%),
    radial-gradient(780px 520px at 98% 2%, rgba(139, 92, 246, .17), transparent 62%),
    radial-gradient(900px 640px at 50% 110%, rgba(34, 211, 238, .13), transparent 62%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.muted { color: var(--muted); }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231, 233, 243, .9);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .2px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px -6px rgba(91, 108, 255, .55);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
  transition: .2s;
}

.nav a:hover { background: rgba(91, 108, 255, .08); color: var(--brand); }
.nav a.active { color: var(--brand); background: rgba(91, 108, 255, .10); }
.nav a.nav-admin { color: var(--muted); font-size: 13.5px; }
.nav a.nav-danger { color: var(--danger); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* 公告条 */
.notice-bar {
  background: linear-gradient(90deg, rgba(91,108,255,.10), rgba(139,92,246,.10));
  border-bottom: 1px solid rgba(91,108,255,.15);
  font-size: 14px;
  color: var(--brand);
  padding: 9px 0;
}

/* ---------------- Hero ---------------- */
.hero { padding: 64px 0 20px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(91, 108, 255, .10);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  margin: 0 0 18px;
  letter-spacing: -1px;
  line-height: 1.18;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 16.5px;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}
.hero-stats .label {
  font-size: 13px;
  color: var(--muted);
}

.hero-art { display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 520px; height: auto; }

/* ---------------- 通用 Section ---------------- */
.section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 24px;
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 240px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: .2s;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, .12);
}
.search-box input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  width: 100%;
  color: var(--text);
  font-family: inherit;
}

/* 分类标签 */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition: .2s;
  font-weight: 500;
}

.tab:hover { border-color: var(--brand); color: var(--brand); }

.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(91, 108, 255, .65);
}

/* ---------------- 卡片网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* 资源卡片 */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: .25s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.link-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.link-card:hover::after { transform: scaleY(1); }

.link-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .35);
  font-weight: 700;
}

.link-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-title { font-weight: 600; font-size: 15.5px; color: var(--text); }

.link-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-go {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: .25s;
}
.link-card:hover .link-go { opacity: 1; transform: translateX(0); }

/* 指南卡片 */
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: .25s cubic-bezier(.4, 0, .2, 1);
  min-height: 210px;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.guide-cover {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4);
}

.guide-title {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
}

.guide-summary {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.guide-more { color: var(--brand); font-weight: 600; }

/* 空状态 */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
}

/* ---------------- 内页 Hero ---------------- */
.page-hero {
  padding: 56px 0 12px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 12px 0 14px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.page-hero .lead { margin: 0 auto; }

/* ---------------- 文章页 ---------------- */
.article-wrap { padding: 40px 0 70px; }
.article-container { max-width: 860px; }

.crumbs {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--text-soft); }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.article-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }

.article-badge {
  display: inline-block;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-head h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.article-summary {
  font-size: 15.5px;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-body { font-size: 16px; line-height: 1.85; color: var(--text-soft); }
.article-body p { margin: 0 0 16px; }
.article-body .md-h { color: var(--text); font-weight: 700; margin: 28px 0 12px; }
.article-body .md-h:first-child { margin-top: 0; }
.article-body h2.md-h { font-size: 22px; }
.article-body h3.md-h { font-size: 18px; }
.article-body h4.md-h { font-size: 16.5px; }
.article-body strong { color: var(--text); font-weight: 600; }

.article-body code {
  background: rgba(91, 108, 255, .09);
  color: var(--brand);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-body .md-pre {
  background: #161a2e;
  color: #e6e9f5;
  border-radius: var(--radius-sm);
  padding: 18px;
  overflow-x: auto;
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.65;
}
.article-body .md-pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.article-body .md-list {
  margin: 0 0 16px;
  padding-left: 22px;
}
.article-body .md-list li { margin-bottom: 6px; }

.article-body .md-quote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--brand);
  background: rgba(91, 108, 255, .06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}

.article-body a { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brand-2); }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(91, 108, 255, .75);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(91, 108, 255, .85);
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------------- 协议弹窗 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 18, 35, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: flex;
  animation: fadeIn .25s ease;
}

/* ⭐ 关键修复：让 hidden 属性真正隐藏弹窗 */
.modal-mask[hidden] {
  display: none !important;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

.modal {
  background: #fff;
  border-radius: 22px;
  width: min(620px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
  animation: slideUp .3s cubic-bezier(.2, .8, .3, 1);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(91, 108, 255, .14), rgba(139, 92, 246, .14));
  flex-shrink: 0;
}

.modal-head h3 { margin: 0 0 3px; font-size: 18px; font-weight: 700; }
.modal-head p { margin: 0; font-size: 13.5px; color: var(--muted); }

.modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
  background: #fafbff;
}
.modal-body p { margin: 0 0 12px; }
.modal-body .md-h { color: var(--text); font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.modal-body .md-h:first-child { margin-top: 0; }
.modal-body .md-list { margin: 0 0 12px; padding-left: 20px; }
.modal-body .md-list li { margin-bottom: 4px; }
.modal-body strong { color: var(--text); }

.modal-foot {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.modal-tip {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--danger);
  min-height: 18px;
}

.modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 40px;
  padding: 44px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(255, 255, 255, .55);
}

.foot-logo {
  font-weight: 800;
  font-size: 17px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.site-footer p { margin: 4px 0; font-size: 13.5px; color: var(--muted); }

.foot-beian {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

.foot-beian a { color: var(--muted); transition: .2s; }
.foot-beian a:hover { color: var(--brand); }

/* ---------------- 提示条 ---------------- */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-ok    { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }

/* ---------------- 登录页 ---------------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: #fff;
  border-radius: 22px;
  padding: 44px 38px;
  width: min(420px, 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.login-logo {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(91, 108, 255, .14), rgba(139, 92, 246, .14));
}

.login-card h1 { font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.login-sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

.login-card form { text-align: left; margin-top: 18px; }

.login-back {
  display: inline-block;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.login-back:hover { color: var(--brand); }

/* ---------------- 后台管理 ---------------- */
.admin-body { background: var(--bg); }

.admin-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 30px 0 70px;
  align-items: start;
}

.side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side a {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
  transition: .18s;
}

.side a:hover { background: rgba(91, 108, 255, .07); color: var(--brand); }
.side a.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(91, 108, 255, .7);
}

.admin-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.panel-title {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* 数据卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(91, 108, 255, .06), rgba(139, 92, 246, .06));
  border: 1px solid rgba(91, 108, 255, .14);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field-check { justify-content: flex-end; }

.field > label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: .2s;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, .12);
}

.textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 120px;
  font-size: 14px;
}

select.input { cursor: pointer; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--text-soft);
  padding: 11px 0;
}
.check input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}
.hint code {
  background: rgba(91, 108, 255, .09);
  color: var(--brand);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

/* 表格 */
.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th, .table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table th {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 13.5px;
  background: #fafbff;
  white-space: nowrap;
}

.table tbody tr:hover { background: #fafbff; }
.table a { color: var(--brand); }
.table a:hover { text-decoration: underline; }
.table .sub { font-size: 13px; margin-top: 2px; }

.pill {
  display: inline-block;
  background: rgba(91, 108, 255, .10);
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
}

.tag-ok  { color: var(--ok); font-weight: 600; font-size: 13.5px; }
.tag-off { color: var(--muted); font-weight: 600; font-size: 13.5px; }

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
  font-weight: 700;
}

.ops { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ops a { font-size: 13.5px; }

.inline-form { display: inline; }

.link-danger {
  background: none;
  border: 0;
  padding: 0;
  color: var(--danger);
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.link-danger:hover { text-decoration: underline; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 400px; margin: 0 auto; }
  .hero { padding: 40px 0 10px; }
  .hero-stats { margin-top: 28px; gap: 26px; }

  .admin-wrap { grid-template-columns: 1fr; }
  .side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }
  .side a { white-space: nowrap; padding: 9px 14px; font-size: 14px; }

  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header .inner { height: 60px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .16);
    padding: 8px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 10px; }
  .nav-toggle { display: flex; }

  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; width: 100%; }

  .grid { grid-template-columns: 1fr; }

  .panel { padding: 22px 18px; }
  .modal-head { padding: 20px 20px 14px; gap: 12px; }
  .modal-body { padding: 18px 20px; }
  .modal-foot { padding: 14px 20px 18px; }
  .modal-btns { flex-direction: column-reverse; }
  .modal-btns .btn { width: 100%; }

  .hero h1 { font-size: 28px; }
  .lead { font-size: 15.5px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 24px; }

  .table th, .table td { padding: 11px 10px; }
  .ellipsis { max-width: 150px; }
}