/* =========================================================
   天依教育集团官网 · 共享样式
   日间主色 #66CCFF ｜ 夜间深色主题 ｜ 响应式（手机/平板/电脑）
   兼容 Chrome / Firefox / Safari / Edge
   ========================================================= */

/* ---------- 主题变量 ---------- */
:root {
  --primary: #66CCFF;
  --primary-deep: #35A8E8;
  --on-primary: #06304a;
  --primary-soft: rgba(102, 204, 255, .16);
  --bg: #f2f8fc;
  --bg2: #e8f3fa;
  --card: #ffffff;
  --ink: #17293a;
  --muted: #5b7186;
  --line: #d5e6f0;
  --shadow: 0 6px 24px rgba(23, 59, 84, .07);
  --shadow-hover: 0 12px 32px rgba(102, 204, 255, .28);
  --hero-grad: linear-gradient(135deg, #d9f1fe 0%, #f2f8fc 48%, #e2f3ff 100%);
  --utility-bg: #0e2436;
  --nav-bg: rgba(255, 255, 255, .9);
  --scrollbar: #b9d8ea;
  --ok: #22c55e;
  --err: #ef4444;
  --warn: #f59e0b;
}

html[data-theme="dark"] {
  --primary: #66CCFF;
  --primary-deep: #4FB4F2;
  --on-primary: #04121f;
  --primary-soft: rgba(102, 204, 255, .12);
  --bg: #0b1420;
  --bg2: #0e1a27;
  --card: #12202e;
  --ink: #e6eef5;
  --muted: #93a7b8;
  --line: #24374a;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-hover: 0 12px 32px rgba(102, 204, 255, .16);
  --hero-grad: linear-gradient(135deg, #0e1c2b 0%, #0b1420 50%, #10202f 100%);
  --nav-bg: rgba(18, 32, 46, .92);
  --scrollbar: #24374a;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  transition: background-color .3s, color .3s;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { outline: none; font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部工具条 ---------- */
.utility { background: var(--utility-bg); color: #b9cdda; font-size: 13px; }
.utility-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.utility-text { color: #cfe4f0; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 90;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #66CCFF, #2E93D6);
  color: #fff; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(46, 147, 214, .35);
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 1px; color: var(--ink); line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  display: inline-flex; align-items: center;
  padding: 8px 15px; border-radius: 18px; font-size: 15px; color: var(--ink);
  transition: .2s; white-space: nowrap;
}
.nav-links > a:not(.active):hover { color: var(--primary-deep); background: var(--primary-soft); }
.nav-links > a.active {
  background: linear-gradient(135deg, #5FB8F5, #2E93D6); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 147, 214, .3);
}
.nav-links > a.active:hover { color: #fff; background: linear-gradient(135deg, #4FA9EE, #2784C4); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; font-size: 24px; color: var(--ink); padding: 4px 8px; }

/* ---------- 按钮 / 徽章 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px rgba(102, 204, 255, .3); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); background: var(--primary-soft); }
.btn-danger { background: rgba(239, 68, 68, .1); color: var(--err); border: 1px solid rgba(239, 68, 68, .35); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* 导航区核心 CTA：蓝底白字大圆角（图片样式） */
.btn-cta {
  background: linear-gradient(135deg, #5FB8F5, #2E93D6); color: #fff;
  border-radius: 24px; padding: 9px 24px; font-size: 15px;
  box-shadow: 0 4px 16px rgba(46, 147, 214, .35);
}
.btn-cta:hover { background: linear-gradient(135deg, #4FA9EE, #2784C4); color: #fff; transform: translateY(-1px); }
.btn-cta.btn-sm { padding: 6px 18px; font-size: 13px; border-radius: 20px; }

/* 导航右侧「夜间模式」：灰色文字入口（图片样式） */
.nav-actions .theme-btn {
  background: none; border: none; color: var(--muted);
  box-shadow: none; padding: 8px 8px; font-size: 14px;
}
.nav-actions .theme-btn:hover { color: var(--primary-deep); border: none; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 600;
}
.badge-soft { background: var(--primary-soft); color: var(--primary-deep); }
.badge-internal { background: rgba(239, 68, 68, .12); color: var(--err); font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.badge-pinned { background: rgba(245, 158, 11, .16); color: var(--warn); font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

.theme-btn {
  padding: 7px 14px; border-radius: 20px; font-size: 13px;
  background: var(--bg2); color: var(--ink); border: 1px solid var(--line); transition: .2s;
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary-deep); }

/* ---------- Hero ---------- */
.hero { background: var(--hero-grad); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(102, 204, 255, .25) 0%, rgba(102, 204, 255, 0) 68%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; padding: 72px 20px 76px; text-align: center; }
.hero .badge { margin-bottom: 18px; }
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: 4px; margin-bottom: 16px; }
.hero h1 .hl { color: var(--primary-deep); position: relative; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
section.block { padding: 56px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-title { font-size: 25px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--primary); }
.sec-sub { color: var(--muted); font-size: 14px; }
.more-link { color: var(--muted); font-size: 14px; transition: .2s; }
.more-link:hover { color: var(--primary-deep); }

/* ---------- 数据看板 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -38px; }
.stat-card {
  position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 12px; text-align: center; box-shadow: var(--shadow); transition: .25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.stat-num { font-size: 32px; font-weight: 800; color: var(--primary-deep); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; box-shadow: var(--shadow); transition: .25s;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; font-size: 25px;
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 17px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.card-tag { align-self: flex-start; font-size: 12px; color: var(--primary-deep); background: var(--primary-soft); padding: 3px 10px; border-radius: 12px; margin-top: auto; }

/* ---------- 列表 ---------- */
.panel-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--primary-soft); }
.list-item .li-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .li-meta { flex-shrink: 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.state-empty, .state-loading { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.pagination button { background: var(--card); border: 1px solid var(--line); color: var(--ink); padding: 6px 16px; border-radius: 8px; transition: .2s; }
.pagination button:hover:not([disabled]) { border-color: var(--primary); color: var(--primary-deep); }
.pagination button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 论坛 ---------- */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-chip {
  padding: 7px 18px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 14px; transition: .2s;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }

.thread-item-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .2s; }
.thread-item-row:hover { background: var(--primary-soft); }
.thread-item-row:last-child { border-bottom: none; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.thread-stats { text-align: center; flex-shrink: 0; min-width: 52px; }
.thread-stats b { display: block; font-size: 16px; color: var(--primary-deep); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; object-fit: cover; border: 2px solid var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.avatar-lg { width: 46px; height: 46px; font-size: 18px; }
.avatar-sm { width: 30px; height: 30px; font-size: 13px; border-width: 1px; }

.thread-view-head { border-bottom: 1px solid var(--line); padding: 22px 26px; }
.thread-view-title { font-size: 21px; font-weight: 800; line-height: 1.4; }
.thread-view-content { padding: 20px 26px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
.reply-item { display: flex; gap: 14px; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.reply-main { flex: 1; min-width: 0; }
.reply-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.reply-body { margin-top: 6px; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--ink); font-size: 14.5px; transition: .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input[disabled] { opacity: .6; cursor: not-allowed; }
.form-error { color: var(--err); font-size: 13px; min-height: 18px; margin-bottom: 4px; text-align: center; }
.form-ok { color: var(--ok); }

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8, 18, 28, .55);
  display: none; align-items: flex-start; justify-content: center; padding: 24px 16px;
  overflow-y: auto; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.overlay.open { display: flex; }
.dialog {
  background: var(--card); width: 100%; max-width: 440px; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; margin: auto 0;
  animation: pop .25s ease;
}
.dialog-wide { max-width: 760px; }
@keyframes pop { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.dialog-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--on-primary); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.dialog-head h3 { font-size: 17px; font-weight: 700; }
.dialog-close { background: none; border: none; font-size: 24px; line-height: 1; color: inherit; padding: 2px 6px; border-radius: 6px; transition: .2s; }
.dialog-close:hover { background: rgba(0, 0, 0, .1); }
.dialog-body { padding: 20px 22px; max-height: 72vh; overflow-y: auto; }
.dialog-foot { padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.tab-switch { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab-switch button {
  flex: 1; padding: 11px 0; background: none; border: none; font-size: 15px;
  color: var(--muted); border-bottom: 2.5px solid transparent; transition: .2s;
}
.tab-switch button.active { color: var(--primary-deep); border-bottom-color: var(--primary); font-weight: 700; }
.form-foot-link { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.form-foot-link a { color: var(--primary-deep); font-weight: 600; cursor: pointer; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-70px);
  z-index: 3000; background: #0e2436; color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); border-left: 4px solid var(--ok);
  transition: transform .3s ease; pointer-events: none; max-width: 86vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: var(--err); }
.toast.ok { border-left-color: var(--ok); }

/* ---------- 页脚 ---------- */
.footer { background: #0c1f30; color: #c8d8e4; padding: 48px 0 24px; font-size: 14px; }
.footer a { color: #9db4c6; transition: .2s; }
.footer a:hover { color: var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.footer h3 { color: #fff; font-size: 15.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer h3::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--primary); }
.footer p { color: #9db4c6; line-height: 1.9; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(148, 178, 202, .18); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: #7d94a6; font-size: 12.5px;
}
.footer-bottom a { color: #9db4c6; }

/* ---------- 统一账号平台（login.html） ---------- */
.auth-page { max-width: 980px; margin: 0 auto; padding: 46px 0 64px; }
.auth-page-head { text-align: center; margin-bottom: 34px; }
.auth-page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.auth-page-head p { color: var(--muted); font-size: 15px; }
.auth-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 28px;
}
.auth-card.center { max-width: 480px; margin: 0 auto; text-align: center; }
.auth-card-tag {
  display: inline-block; background: var(--primary-soft); color: var(--primary-deep);
  font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 14px; margin-bottom: 12px;
}
.auth-card h2 { font-size: 21px; margin-bottom: 6px; }
.auth-card-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.auth-card .form-error { text-align: left; }

/* ---------- 管理后台 ---------- */
.admin-shell { display: flex; min-height: calc(100vh - 101px); }
.admin-side {
  width: 216px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--line);
  padding: 18px 12px;
}
.admin-side .menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 14px; border-radius: 9px; background: none; border: none;
  color: var(--muted); font-size: 14.5px; transition: .2s; margin-bottom: 4px;
}
.admin-side .menu-item:hover { background: var(--bg2); color: var(--ink); }
.admin-side .menu-item.active { background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; }
.admin-main { flex: 1; padding: 26px 28px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h2 { font-size: 21px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12.5px; background: var(--bg2); }
.tbl th:first-child { border-top-left-radius: 8px; }
.tbl th:last-child { border-top-right-radius: 8px; }
.tbl tr:hover td { background: var(--primary-soft); }
.tbl .ops { display: flex; gap: 6px; flex-wrap: wrap; }

.login-gate {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 101px);
}
.login-gate .panel-card { width: 100%; }

/* ---------- 数据可视化图表 ---------- */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.chart-card { padding: 18px 20px 14px; }
.chart-card h3 {
  font-size: 15px; display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; color: var(--ink);
}
.chart-card h3::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--primary); }
.chart-box { min-height: 220px; }
@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .auth-cards { grid-template-columns: 1fr; }
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; background: var(--card);
    flex-direction: column; align-items: stretch; padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 14px; }
  .nav-links > .btn-cta { justify-content: center; margin-top: 6px; }
  .nav-actions .btn { display: none; }
  .nav-actions .theme-btn { display: inline-block; }
  .nav-in { position: relative; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; border-right: none; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 8px; }
  .admin-side .menu-item { white-space: nowrap; margin-bottom: 0; flex-shrink: 0; }
  .admin-main { padding: 18px 14px; }
  .hero h1 { font-size: 31px; letter-spacing: 2px; }
  .hero-in { padding: 50px 16px 54px; }
  section.block { padding: 40px 0; }
  .tbl-wrap { overflow-x: auto; }
}

@media (max-width: 640px) {
  .stats-grid { gap: 12px; }
  .stat-num { font-size: 24px; }
  .list-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .list-item .li-title { white-space: normal; }
  .utility-in { justify-content: center; text-align: center; }
  .thread-item-row { padding: 13px 14px; }
  .thread-view-content, .reply-item { padding-left: 16px; padding-right: 16px; }
  .thread-view-head { padding: 16px; }
  .dialog-body { padding: 16px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}