/* ==========================================================================
   全民资讯 · 城市资讯门户 —— 全新主题（编辑主义风格）
   设计要点：大字号标题 / 克制留白 / 深线分隔 / 深浅双色 / 移动优先
   ========================================================================== */

:root {
  /* 浅色（默认） */
  --bg: #fbfbfa;
  --bg-soft: #f4f3f0;
  --surface: #ffffff;
  --ink: #14171a;
  --ink2: #4a5158;
  --muted: #8a9199;
  --line: #e6e4de;
  --line-soft: #f0eeea;
  --accent: #c8372d;
  --accent-2: #a52a22;
  --accent-soft: #fdf1ef;
  --shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 8px 24px -12px rgba(20, 23, 26, .12);
  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 深色：跟随系统 或 手动切换 */
[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-soft: #0f151c;
  --surface: #131a23;
  --ink: #e8eaed;
  --ink2: #a9b3be;
  --muted: #6d7885;
  --line: #222c37;
  --line-soft: #1a232d;
  --accent: #e8645a;
  --accent-2: #f28079;
  --accent-soft: #2a1a19;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -16px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #0b0f14; --bg-soft: #0f151c; --surface: #131a23;
    --ink: #e8eaed; --ink2: #a9b3be; --muted: #6d7885;
    --line: #222c37; --line-soft: #1a232d;
    --accent: #e8645a; --accent-2: #f28079; --accent-soft: #2a1a19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -16px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.75 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { left: 12px; }

/* ---------------- 顶部条 ---------------- */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 36px; }
.topbar-date { white-space: nowrap; letter-spacing: .04em; }
.topbar-nav { display: flex; gap: 14px; margin-left: auto; overflow: hidden; white-space: nowrap; }
.topbar-nav a { color: var(--muted); }
.topbar-nav a:hover { color: var(--accent); }
.theme-toggle {
  background: none; border: 1px solid var(--line); color: var(--ink2);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; line-height: 1;
  display: grid; place-items: center; flex: 0 0 26px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- 头部 ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--serif); font-size: 20px;
  box-shadow: var(--shadow);
}
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  padding: 8px 13px; border-radius: 7px; font-size: 15px; color: var(--ink2);
  position: relative; white-space: nowrap;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a.on { color: var(--accent); font-weight: 600; }
.nav a.on::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.hsearch { margin-left: auto; display: flex; align-items: center; gap: 0; }
.hsearch input {
  width: 180px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px 0 0 8px;
  background: var(--bg); font-size: 14px; transition: width .18s ease, border-color .18s ease;
}
.hsearch input:focus { width: 230px; border-color: var(--accent); outline: none; }
.hsearch button {
  padding: 8px 13px; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0;
  background: var(--bg); cursor: pointer; color: var(--ink2);
}
.hsearch button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------- 快讯条 ---------------- */
.ticker { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.ticker-in { display: flex; align-items: center; gap: 12px; height: 40px; overflow: hidden; }
.ticker-tag {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 4px;
}
.ticker-list {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
  overflow: hidden; flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink2);
}
.ticker-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-time { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------- 主区 ---------------- */
.main { padding: 26px 20px 60px; }

/* 头条区 */
.hero { display: grid; grid-template-columns: 1.62fr 1fr; gap: 18px; margin-bottom: 26px; }
.hero-main { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.hero-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.hero-main:hover img { transform: scale(1.03); }
.hero-txt {
  position: absolute; inset: auto 0 0 0; padding: 46px 24px 22px;
  background: linear-gradient(to top, rgba(6, 10, 14, .92) 12%, rgba(6, 10, 14, .55) 55%, transparent);
  color: #fff;
}
.hero-kicker {
  display: inline-block; font-size: 12px; letter-spacing: .12em; padding: 2px 8px;
  background: var(--accent); border-radius: 3px; margin-bottom: 10px; font-weight: 700;
}
.hero-txt h2 {
  margin: 0 0 8px; font-family: var(--serif); font-size: 27px; line-height: 1.36; font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-txt p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .82); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side { display: grid; gap: 12px; align-content: start; }
.hero-item { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-item h3 { margin: 10px 12px 4px; font-size: 14.5px; line-height: 1.5; font-weight: 600; }
.hero-item time { display: block; margin: 0 12px 10px; font-size: 12px; color: var(--muted); }
.hero-list { list-style: none; margin: 0; padding: 0 2px; display: grid; gap: 7px; }
.hero-list li { position: relative; padding-left: 14px; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.hero-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); opacity: .55;
}
.hero-list a { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 轮播位 */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 26px; }
.banners a { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.banners img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }

/* 首页两栏 */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 30px; align-items: start; }
@media (max-width: 1020px) { .home-cols { grid-template-columns: 1fr; } }

/* 栏目块 */
.block { margin-bottom: 34px; }
.block-hd {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.block-title {
  margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .02em;
  position: relative;
}
.block-title a:hover { color: var(--accent); }
.block-more { margin-left: auto; font-size: 13px; color: var(--muted); }
.block-more:hover { color: var(--accent); }
.block-body { display: grid; grid-template-columns: 0.95fr 1fr; gap: 22px; }
@media (max-width: 720px) { .block-body { grid-template-columns: 1fr; } }
.block-lead { display: block; }
.block-lead img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.block-lead h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; font-weight: 700; }
.block-lead p {
  margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; }
.block-list li {
  display: flex; gap: 14px; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.block-list li:last-child { border-bottom: 0; }
.block-list a { font-size: 14.5px; line-height: 1.6; color: var(--ink); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.block-list time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 侧栏 */
.home-side { display: grid; gap: 20px; position: sticky; top: 92px; }
@media (max-width: 1020px) { .home-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.side-title {
  margin: 0 0 14px; font-family: var(--serif); font-size: 16px; font-weight: 700;
  padding-left: 10px; border-left: 3px solid var(--accent); line-height: 1.2;
}
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.rank li:last-child { border-bottom: 0; }
.rank i {
  font-style: normal; font-family: var(--serif); font-size: 15px; font-weight: 700;
  color: var(--muted); width: 18px; flex: 0 0 18px; font-variant-numeric: tabular-nums;
}
.rank li.top i { color: var(--accent); }
.rank a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.side-list li:last-child { border-bottom: 0; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud a {
  padding: 3px 10px; border-radius: 99px; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--ink2); font-size: 12.5px;
}
.tagcloud a:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.tag-w3 { font-size: 14.5px !important; font-weight: 600; }
.tag-w2 { font-size: 13px !important; }
.citycloud { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.citycloud a { color: var(--ink2); }
.citycloud a:hover { color: var(--accent); }

/* ---------------- 卡片列表 ---------------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px; transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card .c-img { flex: 0 0 148px; }
.card .c-img img { width: 148px; height: 96px; object-fit: cover; border-radius: 8px; }
.card.no-img .c-img { display: none; }
.c-body { min-width: 0; }
.c-kicker { font-size: 11.5px; color: var(--accent); letter-spacing: .06em; font-weight: 600; }
.c-title { margin: 3px 0 6px; font-size: 15.5px; line-height: 1.55; font-weight: 600; }
.c-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-sum {
  margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }

/* ---------------- 分页 ---------------- */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 36px 0 0; flex-wrap: wrap; }
.pg {
  min-width: 38px; height: 38px; padding: 0 13px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums;
}
.pg:hover { border-color: var(--accent); color: var(--accent); }
.pg.cur { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.pg.gap { border: 0; background: none; color: var(--muted); }

/* ---------------- 面包屑与页头 ---------------- */
.crumb { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.crumb .sep { color: var(--line); }
.page-hd { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.page-hd h1 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.list-h { font-family: var(--serif); font-size: 24px; margin: 0 0 18px; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* ---------------- 文章页 ---------------- */
.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 46px 42px; max-width: 860px; margin: 0 auto;
}
@media (max-width: 760px) { .post { padding: 24px 20px 30px; border-radius: var(--radius); } }
.a-hd { margin-bottom: 22px; }
.a-kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 4px; margin-bottom: 14px;
}
.a-title {
  margin: 0 0 14px; font-family: var(--serif); font-size: 32px; line-height: 1.42; font-weight: 700;
  letter-spacing: -.01em;
}
@media (max-width: 760px) { .a-title { font-size: 25px; } }
.a-lead {
  margin: 0 0 18px; font-size: 16px; line-height: 1.8; color: var(--ink2);
  padding-left: 14px; border-left: 3px solid var(--line);
}
.a-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 13px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.a-author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); font-weight: 600; }
.a-author img { border-radius: 50%; object-fit: cover; }
.a-author em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.a-cover { margin: 0 0 24px; }
.a-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.a-cover figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }

.a-body { font-size: 17px; line-height: 1.95; color: var(--ink); }
@media (max-width: 760px) { .a-body { font-size: 16px; line-height: 1.9; } }
.a-body > p:first-of-type { font-size: 17.5px; color: var(--ink2); }
.a-body h2 {
  margin: 36px 0 14px; font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.4;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
.a-body h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; }
.a-body p { margin: 0 0 16px; }
.a-body ul, .a-body ol { margin: 0 0 18px; padding-left: 22px; }
.a-body li { margin: 8px 0; }
.a-body a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.a-body blockquote {
  margin: 22px 0; padding: 14px 18px; background: var(--bg-soft);
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: var(--ink2); font-size: 15.5px;
}
.a-body table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 14.5px; }
.a-body th, .a-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.a-body th { background: var(--bg-soft); font-weight: 700; }
.a-body img { border-radius: 8px; margin: 18px 0; }

.inline-rel {
  margin: 28px 0 0; padding: 16px 18px; background: var(--bg-soft);
  border-radius: var(--radius); font-size: 14.5px; line-height: 2;
}
.inline-rel b { display: block; color: var(--ink); margin-bottom: 4px; }
.inline-rel a { margin-right: 14px; color: var(--accent); }

.a-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.a-tags a {
  font-size: 13px; padding: 4px 11px; border-radius: 99px;
  background: var(--bg-soft); color: var(--ink2); border: 1px solid var(--line);
}
.a-tags a:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.pn-item {
  display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-soft);
}
.pn-item span { font-size: 12px; color: var(--muted); }
.pn-item b { font-size: 14px; font-weight: 600; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn-item.next { text-align: right; }
.pn-item.empty { visibility: hidden; }
@media (max-width: 640px) { .pn { grid-template-columns: 1fr; } }

.author-box {
  display: flex; gap: 16px; align-items: flex-start; max-width: 860px; margin: 22px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px;
}
.author-box img { border-radius: 50%; object-fit: cover; flex: 0 0 56px; }
.author-box h4 { margin: 0 0 6px; font-size: 15px; }
.author-box h4 a { color: var(--ink); }
.author-box p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

.related { max-width: 860px; margin: 34px auto 0; }
.related .block-title { margin-bottom: 16px; }

/* 作者档案页 */
.author-hd { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.author-avatar { border-radius: 50%; object-fit: cover; }
.author-title { color: var(--muted); font-size: 13.5px; }
.author-bio {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; color: var(--ink2); font-size: 14.5px; line-height: 1.9; margin-bottom: 26px;
}

/* ---------------- 页脚 ---------------- */
.ftr { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 26px; font-size: 13px; color: var(--muted); }
.ftr-in { display: grid; gap: 24px; }
.ftr-brand .ftr-logo { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ftr-brand p { margin: 0; }
.ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.ftr-cols h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.ftr-cols a { display: block; padding: 3px 0; color: var(--muted); }
.ftr-cols a:hover { color: var(--accent); }
.ftr-friend { line-height: 2.1; }
.ftr-friend b { color: var(--ink); margin-right: 10px; }
.ftr-friend a { margin-right: 12px; color: var(--muted); }
.ftr-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 12.5px;
}
.ftr-bottom a { color: var(--muted); }

/* ---------------- 表单 / 提示 ---------------- */
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: grid; gap: 15px; max-width: 760px;
}
.form label { display: grid; gap: 7px; font-size: 14px; color: var(--ink2); }
.form input, .form select, .form textarea {
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14.5px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea.ta { font-family: ui-monospace, Menlo, Consolas, monospace; line-height: 1.75; resize: vertical; }
.form button, .tbl button {
  padding: 10px 20px; background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 600; justify-self: start;
}
.form button:hover, .tbl button:hover { background: var(--accent-2); }
.callout { padding: 13px 17px; border-radius: 8px; margin: 0 0 18px; font-size: 14px; }
.callout.ok { background: #eaf5ee; color: #1c6b3a; border-left: 3px solid #2f9e5b; }
.callout.bad { background: #fdeeee; color: #8a2b2b; border-left: 3px solid #c94a4a; }
[data-theme="dark"] .callout.ok { background: #12251a; color: #7fd7a0; }
[data-theme="dark"] .callout.bad { background: #2a1616; color: #f0938c; }

/* ---------------- 后台 ---------------- */
body.admin { background: var(--bg-soft); }
body.admin .hdr { position: static; backdrop-filter: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12.5px; }
.tbl {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px;
}
.tbl th, .tbl td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.tbl th { background: var(--bg-soft); font-weight: 700; font-size: 13px; color: var(--ink2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { color: var(--accent); }
.tbl img { border-radius: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .nav { overflow-x: auto; flex-wrap: nowrap; }
  .brand-text { display: none; }
  .hsearch input { width: 130px; }
  .hsearch input:focus { width: 160px; }
  .topbar-nav a:nth-child(n+6) { display: none; }
}
