/* ==========================================================================
   安摩汇｜前台与后台共用样式
   - 设计令牌（与策划案一致）：主色深蓝 #163D7A / 风险橙 #f59e0b / 白色背景
   - 本文件为无依赖手写 CSS，Tailwind CDN 仅作为排版工具，两者互不冲突
   ========================================================================== */

:root {
  --brand: #163D7A;
  --brand-dark: #0F2B59;
  --brand-light: #24519E;
  --brand-soft: #EAF0FA;
  --risk: #f59e0b;
  --risk-soft: #FEF3C7;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --soft: #F7F9FC;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 43, 89, .06), 0 1px 3px rgba(16, 43, 89, .08);
  --shadow-md: 0 6px 18px rgba(16, 43, 89, .10);
  --shadow-lg: 0 14px 34px rgba(16, 43, 89, .14);
  --maxw: 1200px;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site-body,
body.admin-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.site-body { padding-bottom: 76px; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--brand-dark); line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16, 43, 89, .04);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; color: var(--brand-dark); letter-spacing: .5px; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--muted); }

.search-box { display: flex; flex: 1 1 240px; max-width: 420px; }
.search-box input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
  background: var(--soft); color: var(--ink); font-size: 14px;
}
.search-box input:focus { background: #fff; }
.search-box button {
  height: 38px; padding: 0 18px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; border-radius: 0 8px 8px 0; font-size: 14px;
}
.search-box button:hover { background: var(--brand-light); border-color: var(--brand-light); }

.nav-toggle {
  display: none; height: 38px; padding: 0 14px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; color: var(--brand-dark);
}
.site-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink-soft); font-size: 15px; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.site-nav a.is-active { background: var(--brand); color: #fff; }

/* ---------- 页面主体 / 面包屑 ---------- */
.site-main { min-height: 55vh; padding-bottom: 40px; }
.breadcrumb { padding-top: 14px; padding-bottom: 2px; font-size: 13px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #C4C9D4; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.page-head { padding-top: 20px; padding-bottom: 8px; }
.page-title { font-size: 26px; margin-bottom: 8px; }
.page-lead { color: var(--ink-soft); max-width: 860px; font-size: 14px; }

.section { padding: 22px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-title { font-size: 19px; margin: 0; padding-left: 11px; border-left: 4px solid var(--brand); }
.section-more { font-size: 13px; color: var(--muted); text-decoration: none; }

/* ---------- 大卡片（首页 / 平台列表） ---------- */
.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.platform-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CFDCEF;
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-name { font-size: 17px; margin: 0; }
.card-name a { color: var(--brand-dark); text-decoration: none; }
.card-name a:hover { color: var(--brand); text-decoration: underline; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-company { font-size: 13px; color: var(--ink-soft); margin: 0; }
.card-company span { color: var(--muted); }
.card-city { font-size: 13px; color: var(--muted); margin: 0; }
.card-desc { font-size: 14px; color: var(--ink-soft); margin: 0; }
.card-risk {
  display: flex; gap: 6px; align-items: flex-start;
  background: var(--risk-soft); border-left: 3px solid var(--risk);
  border-radius: 6px; padding: 8px 10px;
  font-size: 13px; color: #92400E; margin: 0;
}
.card-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.card-foot .card-link { color: var(--brand); font-size: 13px; text-decoration: none; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; line-height: 1.7; white-space: nowrap;
}
.tag-normal { background: var(--brand-soft); color: var(--brand); }
.tag-risk { background: var(--risk-soft); color: #B45309; border: 1px solid #FCD34D; }
.tag-muted { background: #F1F3F7; color: var(--muted); }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin: 14px 0 20px;
}
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.filter-label { min-width: 68px; color: var(--muted); font-size: 13px; }
.filter-links { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-links a {
  display: inline-block; padding: 3px 11px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; font-size: 13px; color: var(--ink-soft); text-decoration: none;
}
.filter-links a:hover { border-color: var(--brand-light); color: var(--brand); text-decoration: none; }
.filter-links a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-bar select {
  height: 34px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 0 10px; color: var(--ink);
}
.filter-bar .btn-apply {
  height: 34px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff;
}
.filter-result { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* ---------- 列表卡片（资讯 / 专题） ---------- */
.list-card { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.entry-title { font-size: 16px; margin: 0 0 8px; }
.entry-title a { color: var(--brand-dark); text-decoration: none; }
.entry-title a:hover { color: var(--brand); text-decoration: underline; }
.entry-desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.entry-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }

/* ---------- 正文排版 ---------- */
.prose { color: var(--ink); font-size: 15.5px; }
.prose h2 { font-size: 20px; margin-top: 1.6em; }
.prose h3 { font-size: 17px; margin-top: 1.4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 0 0 1.1em; padding: 10px 16px; background: var(--soft);
  border-left: 3px solid var(--brand-light); color: var(--ink-soft);
}
.prose img { border-radius: 8px; }
.prose table { margin-bottom: 1.1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--soft); }

/* ---------- 详情区块 ---------- */
.detail-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.panel-title { font-size: 16px; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 9px 4px; font-size: 14px; vertical-align: top; text-align: left; }
.info-table th { width: 118px; color: var(--muted); font-weight: 500; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.risk-box { background: var(--risk-soft); border: 1px solid #FCD34D; border-radius: var(--radius); padding: 14px 16px; }
.risk-box .risk-title { font-weight: 700; color: #92400E; margin: 0 0 6px; }
.risk-box p { margin: 0 0 6px; font-size: 14px; color: #78350F; }
.risk-box .risk-empty { color: #92400E; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; text-decoration: none; text-align: center; line-height: 1.5;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--brand-light); color: var(--brand); }
.btn-danger { background: #fff; border-color: #FCA5A5; color: #B91C1C; }
.btn-danger:hover { background: #FEF2F2; }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 6px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row > label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ink-soft); }
.form-row .req { color: #B91C1C; margin-left: 4px; }
.form-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.form-control {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 14px; font-family: inherit;
}
.form-control:focus { border-color: var(--brand-light); outline: 2px solid rgba(36, 81, 158, .15); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { height: 40px; }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 6px; flex-wrap: wrap; }
.form-grid-2 { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- 提示 ---------- */
.alert { border-radius: var(--radius); padding: 11px 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info { background: var(--brand-soft); border-color: #C7D7F0; color: var(--brand-dark); }
.alert-warn { background: var(--risk-soft); border-color: #FCD34D; color: #92400E; }

/* ---------- 分页 ---------- */
.pager { margin: 26px 0 8px; }
.pager-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.pager-link {
  display: inline-block; min-width: 34px; padding: 5px 10px; text-align: center;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
  color: var(--ink-soft); font-size: 13px; text-decoration: none;
}
.pager-link:hover { border-color: var(--brand-light); color: var(--brand); text-decoration: none; }
.pager-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-link.is-disabled { color: #B6BCC8; background: var(--soft); }
.pager-gap { padding: 0 4px; color: var(--muted); }

/* ---------- 空状态 ---------- */
.empty {
  padding: 46px 20px; text-align: center; color: var(--muted);
  background: var(--soft); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty strong { display: block; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- 专题入口 ---------- */
.topic-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-card {
  display: block; background: linear-gradient(135deg, #fff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.topic-card h3 { margin: 0 0 8px; font-size: 17px; }
.topic-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.topic-count { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--brand); }

/* 专题头图区内的自动内链：深色渐变背景需保证对比度 */
.topic-hero a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.topic-hero a:hover { color: #fff; opacity: .82; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 34px; background: #F4F7FC; border-top: 1px solid var(--line); padding: 30px 0 20px; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-title { font-size: 14px; margin: 0 0 10px; color: var(--brand-dark); }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: var(--ink-soft); font-size: 13.5px; text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-note-title { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.footer-note p { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin: 0 0 8px; }
.footer-meta { font-size: 12.5px; color: var(--muted); }
.footer-meta a { color: var(--muted); }
.footer-sep { margin: 0 6px; }

/* 底部固定免责条 */
.footer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--brand-dark); color: rgba(255, 255, 255, .92);
  padding: 9px 16px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; text-align: center;
}
.footer-bar-text { margin: 0; font-size: 12.5px; }
.footer-bar-copy { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }

/* 回到顶部 */
.back-top {
  position: fixed; right: 18px; bottom: 64px; z-index: 61;
  display: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--brand); font-size: 12.5px; box-shadow: var(--shadow-md);
}
.back-top.is-show { display: block; }

/* ==========================================================================
   后台管理端
   ========================================================================== */
body.admin-body { background: #F1F4F9; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  width: 216px; flex: 0 0 216px; background: var(--brand-dark); color: #CBD5E1;
  display: flex; flex-direction: column;
}
.admin-side-head {
  padding: 18px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.admin-side-head strong { display: block; color: #fff; font-size: 17px; }
.admin-side-head em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .55); }
.admin-nav { padding: 10px 0 24px; overflow-y: auto; }
.admin-nav-group { padding: 12px 18px 6px; font-size: 11.5px; letter-spacing: 1px; color: rgba(255, 255, 255, .38); }
.admin-nav a {
  display: block; padding: 9px 18px; color: #CBD5E1; font-size: 14px; text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.admin-nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; border-left-color: var(--risk); }
.admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.admin-top h1 { font-size: 18px; margin: 0; }
.admin-top-user { font-size: 13px; color: var(--muted); }
.admin-content { padding: 20px 22px 40px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.admin-card + .admin-card { margin-top: 18px; }
.admin-card-title { font-size: 15px; margin: 0 0 14px; padding-left: 10px; border-left: 3px solid var(--brand); }

.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--brand-dark); margin: 0; }
.stat-sub { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.stat-card.is-risk .stat-value { color: #B45309; }

.data-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table-scroll { overflow-x: auto; }
.data-table table { min-width: 720px; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: left; vertical-align: middle; }
.data-table th { background: var(--soft); color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FAFBFD; }
.data-table td .row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.data-table .col-id { width: 66px; color: var(--muted); }
.data-table .col-time { white-space: nowrap; color: var(--muted); font-size: 12.5px; }

.status-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.status-0 { background: var(--risk-soft); color: #B45309; }
.status-1 { background: #ECFDF5; color: #047857; }
.status-2 { background: #F1F3F7; color: var(--muted); }

.tool-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pager.hidden { display: none; }

/* 后台登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%); }
.login-card { width: 100%; max-width: 384px; background: #fff; border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 21px; margin: 0 0 4px; }
.login-card .login-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.login-card .form-control { padding: 11px 13px; }
.login-card .btn { width: 100%; padding: 11px; }
.login-foot { margin: 18px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* 敏感词标签输入 */
.word-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.word-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px; font-size: 13px;
}
.word-tag button { border: 0; background: transparent; color: #B91C1C; font-size: 14px; line-height: 1; }

/* 路由式说明块（前台固定页） */
.notice-list { padding-left: 1.4em; list-style: disc; }
.notice-list li { margin-bottom: .5em; color: var(--ink-soft); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.site-body { padding-bottom: 92px; }
  .container { padding: 0 13px; }
  .header-inner { gap: 10px; }
  .brand-text em { display: none; }
  .search-box { order: 3; flex: 1 1 100%; max-width: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; flex: 1 1 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; padding-bottom: 8px; }
  .site-nav a { padding: 10px 12px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .list-card { grid-template-columns: minmax(0, 1fr); }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer-bar { flex-direction: column; gap: 2px; padding: 7px 12px; }
  .page-title { font-size: 22px; }
  .back-top { right: 12px; bottom: 86px; }
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; flex: 0 0 auto; }
  .admin-nav { display: flex; flex-wrap: wrap; padding: 8px; }
  .admin-nav-group { width: 100%; }
  .admin-nav a { padding: 7px 12px; border-left: 0; border-radius: 6px; }
  .admin-content { padding: 14px 13px 32px; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .footer-bar, .back-top, .admin-side { display: none; }
  .site-body { padding-bottom: 0; }
}