/* ============================================================
   AI 资讯门户 · 高级浅色杂志风（Editorial Premium）
   云白底 + 衬线大标题 + 柔和层叠阴影 + 靛蓝/琥珀点缀
   ============================================================ */
:root {
  --primary: #4f46e5;
  --primary-deep: #3730a3;
  --primary-soft: #eef2ff;
  --accent: #b45309;      /* 精选 · 琥珀 */
  --gold: #d97706;
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #a1a1aa;
  --line: #e8e6e3;
  --line-soft: #f1efec;
  --bg: #faf9f8;
  --card: #ffffff;
  --hot: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .04), 0 1px 3px rgba(24, 24, 27, .05);
  --shadow-md: 0 1px 2px rgba(24, 24, 27, .04), 0 10px 28px -8px rgba(24, 24, 27, .1);
  --shadow-lg: 0 2px 4px rgba(24, 24, 27, .04), 0 20px 48px -12px rgba(24, 24, 27, .14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 420px at 50% -160px, #edeffc 0%, rgba(250, 249, 248, 0) 70%),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
::selection { background: #e0e7ff; color: var(--primary-deep); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
mark { background: #fdeebc; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ================= Header ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.brand-name em { font-style: normal; color: var(--primary); }
.brand-sub { font-size: 11px; color: var(--ink-3); margin-top: -3px; letter-spacing: .3px; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14.5px; color: var(--ink-2); white-space: nowrap;
  transition: color .18s, background-color .18s;
}
.main-nav a:hover { background: #f4f3f8; color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 700; background: var(--primary-soft); }

.header-search { position: relative; flex-shrink: 0; }
.header-search input {
  width: 220px; height: 37px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px 0 36px; font-size: 13px; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") 13px center no-repeat;
  box-shadow: var(--shadow-sm);
  transition: width .25s, border-color .2s, box-shadow .2s;
}
.header-search input::placeholder { color: var(--ink-3); }
.header-search input:focus {
  width: 280px; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}
.gh-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  height: 37px; padding: 0 17px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  transition: background-color .18s, transform .18s, box-shadow .18s;
}
.gh-btn:hover { background: var(--primary); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .5); }

/* ================= 热词条 ================= */
.subnav {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 6px;
  height: 46px; overflow-x: auto;
}
.subnav .tag-link {
  font-size: 12.5px; color: var(--ink-3); padding: 3px 10px;
  border-radius: 999px; border: 1px dashed transparent; white-space: nowrap;
}
.subnav .tag-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

/* ================= 页面骨架 ================= */
.page { padding: 24px 0 64px; min-height: 60vh; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 324px;
  gap: 24px; align-items: start;
}
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }

/* ================= 编辑推荐横排（日期块卡片） ================= */
.featured-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px; overflow: hidden;
}
@media (max-width: 1000px) { .featured-strip { grid-template-columns: repeat(2, 1fr); } }
.featured-cell {
  display: flex; gap: 13px; padding: 18px 18px;
  border-right: 1px solid var(--line-soft); cursor: pointer;
  transition: background-color .18s;
  min-width: 0; /* 防止 nowrap 内容把 1fr 轨道撑爆 */
}
.featured-cell:last-child { border-right: 0; }
.featured-cell:hover { background: #fbfaff; }
.date-block {
  flex-shrink: 0; width: 52px; text-align: center;
  border-right: 1px solid var(--line-soft); padding-right: 12px;
}
.date-block .d {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.2;
}
.date-block .m { font-size: 11px; color: var(--ink-3); letter-spacing: .4px; }
.featured-cell .t {
  font-size: 13.5px; font-weight: 650; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-cell .s {
  margin-top: 5px; font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================= 焦点 Banner ================= */
.hero-banner {
  display: block;
  position: relative; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(900px 380px at 92% -60%, rgba(167, 139, 250, .55), transparent 62%),
    radial-gradient(720px 320px at -6% 140%, rgba(56, 189, 248, .32), transparent 60%),
    linear-gradient(115deg, #1e1b4b 0%, #312e81 32%, #4338ca 66%, #6d28d9 100%);
  color: #fff; padding: 38px 40px 40px; cursor: pointer;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-banner .hb-chip {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(4px);
  padding: 3px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero-banner h2 {
  font-family: var(--serif);
  font-size: 28px; line-height: 1.42; letter-spacing: .3px; font-weight: 700;
  max-width: 780px;
}
.hero-banner .hb-summary {
  margin-top: 12px; max-width: 720px; color: rgba(255, 255, 255, .86);
  font-size: 13.5px; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-banner .hb-meta { margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .72); display: flex; gap: 18px; }
.hero-banner .hb-go {
  position: absolute; right: 34px; bottom: 32px;
  background: #fff; color: var(--primary-deep);
  font-size: 13px; font-weight: 700; padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35);
  transition: transform .18s;
}
.hero-banner:hover .hb-go { transform: translateX(2px); }

/* ================= 区块 ================= */
.section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.section-head {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.section-head .bar {
  width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), #8b5cf6);
}
.section-head h3 { font-size: 16.5px; font-weight: 750; letter-spacing: .2px; }
.section-head .en {
  font-size: 10.5px; color: var(--ink-3); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; transform: translateY(1px);
}
.section-head .more { margin-left: auto; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.section-head .more:hover { color: var(--primary); }

/* ================= 文章列表行 ================= */
.article-rows { padding: 6px 14px; }
.article-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 14px; margin: 0 -14px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 12px; cursor: pointer;
  transition: background-color .18s;
}
.article-row:hover { background: #f8f8fd; }
.article-row:last-child { border-bottom: 0; }
.article-row:hover .ar-title { color: var(--primary); }
.ar-body { min-width: 0; flex: 1; }
.ar-title { font-size: 16px; font-weight: 650; line-height: 1.55; letter-spacing: .1px; transition: color .15s; }
.ar-summary {
  margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ar-meta { margin-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.cat-chip {
  font-size: 11.5px; font-weight: 650;
  padding: 1.5px 10px; border-radius: 999px; letter-spacing: .3px;
}

/* ================= 右侧栏 ================= */
.side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 86px; }
@media (max-width: 1000px) { .side { position: static; } }

.rank-list { padding: 8px 20px 14px; }
.rank-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f6f5f2; cursor: pointer; }
.rank-item:last-child { border-bottom: 0; }
.rank-no {
  flex-shrink: 0; width: 21px; height: 21px; margin-top: 3px;
  border-radius: 6px; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f4f3f1; color: var(--ink-3);
}
.rank-no.top1 { background: #fdf1d8; color: #b45309; }          /* 金 */
.rank-no.top2 { background: #eceef2; color: #5b6472; }          /* 银 */
.rank-no.top3 { background: #fae7d8; color: #9a3412; }          /* 铜 */
.rank-item .rt {
  font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-item:hover .rt { color: var(--primary); }

.flash-list { padding: 8px 20px 14px; }
.flash-item { display: flex; gap: 11px; padding: 9px 0; cursor: pointer; }
.flash-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; }
.flash-item .ft {
  font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-item:hover .ft { color: var(--primary); }
.flash-item .fm { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.hot-tabs { display: flex; gap: 2px; margin-left: auto; background: #f2f1ef; border-radius: 999px; padding: 2px; }
.hot-tabs a, .hot-tabs span { font-size: 12px; padding: 2px 12px; border-radius: 999px; color: var(--ink-3); cursor: pointer; transition: color .15s; }
.hot-tabs a.active, .hot-tabs span.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }

.gh-card {
  border-radius: var(--radius); padding: 22px;
  background: linear-gradient(140deg, #1c1c21 0%, #26243f 70%, #373081 160%);
  color: #fff; box-shadow: var(--shadow-md);
}
.gh-card h4 { font-size: 15.5px; margin-bottom: 7px; letter-spacing: .3px; }
.gh-card p { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-bottom: 15px; line-height: 1.75; }
.gh-card a {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; font-size: 12.5px; padding: 6px 15px; border-radius: 999px;
  transition: background-color .18s, color .18s;
}
.gh-card a:hover { background: #fff; color: var(--ink); }

/* ================= 文章详情页 ================= */
.article-page {
  max-width: 820px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 42px 48px 44px;
}
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; letter-spacing: .2px; }
.crumbs a:hover { color: var(--primary); }
.article-page h1 {
  font-family: var(--serif);
  font-size: 30px; line-height: 1.42; letter-spacing: .2px; font-weight: 700;
  margin-bottom: 16px;
}
.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
  padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 24px;
}
.article-content p { font-size: 15.5px; line-height: 1.95; color: #27272a; margin: 15px 0; text-align: justify; }
.article-tags { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags a, .article-tags span {
  font-size: 12px; color: var(--ink-2); background: #f4f3f1;
  border: 1px solid var(--line-soft);
  padding: 3px 13px; border-radius: 999px;
}
.article-tags a:hover { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.article-source {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px; padding: 10px 24px;
  background: var(--primary); color: #fff; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .45);
  transition: background-color .18s, transform .18s, box-shadow .18s;
}
.article-source:hover { background: var(--primary-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(55, 48, 163, .5); }
.back-blog { margin-left: 14px; font-size: 13px; color: var(--ink-3); }
.back-blog:hover { color: var(--primary); }
.related { margin-top: 32px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.related h4 { font-size: 15px; margin-bottom: 10px; font-weight: 700; }
.related .rk { display: block; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.related .rk:hover { color: var(--primary); }
.related .rk::before { content: "· "; color: var(--primary); font-weight: 800; }

/* ================= 搜索结果页 ================= */
.page-title {
  font-family: var(--serif);
  font-size: 24px; margin-bottom: 14px; letter-spacing: .2px;
}
.page-title em { font-style: normal; color: var(--primary); }
.result-count { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }

.empty { text-align: center; padding: 80px 0; color: var(--ink-3); }
.empty .icon { font-size: 40px; margin-bottom: 12px; }

/* ================= Footer（深色收尾） ================= */
.site-footer {
  background: #17171a;
  padding: 38px 0 46px; margin-top: 40px;
  color: #8e8e99; font-size: 13px; text-align: center; line-height: 2;
}
.site-footer .flinks {
  display: flex; justify-content: center; gap: 26px; margin-bottom: 12px; flex-wrap: wrap;
}
.site-footer .flinks a { color: #d4d4d8; font-size: 13.5px; letter-spacing: .3px; }
.site-footer .flinks a:hover { color: #fff; }
.site-footer a { color: #a1a1aa; }
.site-footer a:hover { color: #e4e4e7; }

/* ================= 响应式 ================= */
@media (max-width: 780px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  .main-nav { display: none; }
  .header-search input { width: 150px; }
  .header-search input:focus { width: 190px; }
  .wrap { padding: 0 16px; }
  .featured-strip { grid-template-columns: 1fr; }
  .featured-cell { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .featured-cell:last-child { border-bottom: 0; }
  .hero-banner { padding: 26px 24px 28px; }
  .hero-banner h2 { font-size: 21px; }
  .hero-banner .hb-go { position: static; display: inline-block; margin-top: 16px; }
  .article-page { padding: 28px 22px 30px; border-radius: var(--radius); }
  .article-page h1 { font-size: 24px; }
  .section { border-radius: 12px; }
}

/* ================= SSR：卡片级链接（<a> 代替 <div>，避免 hover 变色波及整卡） ================= */
a.hero-banner, a.hero-banner:hover { color: #fff; }
a.featured-cell, a.article-row, a.rank-item, a.flash-item { color: inherit; }
a.featured-cell:hover, a.article-row:hover, a.rank-item:hover, a.flash-item:hover { color: inherit; }

/* ================= 分页条 ================= */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 16px 20px 20px; border-top: 1px solid var(--line-soft);
}
.pager .pg {
  font-size: 13.5px; color: var(--ink-2);
  padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: color .18s, border-color .18s, transform .18s;
}
.pager .pg:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.pager .pg-info { font-size: 12.5px; color: var(--ink-3); letter-spacing: .3px; }

/* ================= 正文 Markdown 排版 ================= */
.article-content.md h1, .article-content.md h2, .article-content.md h3,
.article-content.md h4, .article-content.md h5, .article-content.md h6 {
  color: var(--ink); line-height: 1.5; margin: 28px 0 12px; font-weight: 700;
}
.article-content.md h1 { font-family: var(--serif); font-size: 23px; }
.article-content.md h2 {
  font-family: var(--serif); font-size: 20px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.article-content.md h3 { font-size: 17.5px; }
.article-content.md h4, .article-content.md h5, .article-content.md h6 { font-size: 15.5px; }
.article-content.md a { color: var(--primary); }
.article-content.md a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-content.md strong { font-weight: 700; color: var(--ink); }
.article-content.md ul, .article-content.md ol { margin: 14px 0; padding-left: 26px; }
.article-content.md ul { list-style: disc; }
.article-content.md ol { list-style: decimal; }
.article-content.md li { font-size: 15px; line-height: 1.9; color: #27272a; margin: 6px 0; }
.article-content.md li::marker { color: var(--primary); }
.article-content.md blockquote {
  margin: 18px 0; padding: 12px 20px;
  border-left: 3px solid var(--primary); background: var(--primary-soft);
  color: var(--ink-2); border-radius: 0 10px 10px 0;
}
.article-content.md blockquote p { margin: 4px 0; font-size: 14.5px; }
.article-content.md code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px; background: #f4f3f1; color: #b3376a;
  padding: 2px 6px; border-radius: 5px;
}
.article-content.md pre {
  margin: 18px 0; padding: 18px 20px; overflow-x: auto;
  background: #16161a; border-radius: 12px; line-height: 1.75;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.article-content.md pre code { background: none; color: #dcd6f7; padding: 0; font-size: 13px; }
.article-content.md table {
  width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 13.5px;
}
.article-content.md th, .article-content.md td {
  border: 1px solid var(--line); padding: 9px 13px; text-align: left;
}
.article-content.md th { background: #f7f6f4; font-weight: 650; }
.article-content.md img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.article-content.md hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* ================= 正文图表（mermaid / SVG） ================= */
/* SVG 以 <img> 内嵌（见 server/markdown.ts）：居中、不撑破正文，宽度由自身尺寸或 viewBox 决定 */
.article-content.md img.svg-embed { display: block; margin: 16px auto; max-width: 100%; height: auto; }
/* mermaid 画出来的图表：居中，宽图横向滚动而不是撑破布局。
   mermaid 已被要求输出自然尺寸（见 public/mermaid.js 的 useMaxWidth），这里放开宽度上限
   按自然尺寸渲染 —— 否则 2900px 的树会被压进正文栏、字号只剩 3px 看不清；手机上仍整幅缩放 */
.article-content.md .mermaid-figure { margin: 18px 0; text-align: center; overflow: auto; }
.article-content.md .mermaid-figure > svg { width: auto; max-width: none; height: auto; }
@media (max-width: 780px) {
  .article-content.md .mermaid-figure > svg { width: 100%; max-width: 100%; }
}
/* 语法有误或脚本不可用：保留源码（pre 沿用代码块样式），上方加一行说明 */
.article-content.md pre.mermaid-error::before {
  content: '图表无法渲染，以下为 mermaid 源码';
  display: block; margin-bottom: 8px;
  color: #ffb86b; font-size: 12px; font-family: var(--sans);
}

/* ================= 访问量统计（侧栏板块 + 数据统计页） ================= */
.visit-stats { padding: 14px 20px 16px; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vs-cell {
  background: #f8f8fd; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 9px 11px;
}
.vs-num { font-size: 19px; font-weight: 800; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.vs-label { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.vs-hot { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 9px; }
.vs-hot-title { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.vs-hot-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; }
.vs-hot-item .vh-no {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 4px; background: #f4f3f1;
  color: var(--ink-3); font-size: 10.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.vs-hot-item .vh-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-hot-item:hover .vh-t { color: var(--primary); }
.vs-hot-item .vh-p { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.vs-more { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--primary); }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 20px;
}
.stat-card .n { font-size: 30px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-card .l { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 760px) { .stat-cards { grid-template-columns: 1fr 1fr; } }

.trend { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 18px 20px 0; }
.trend-col {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
}
.trend-bar {
  width: 100%; max-width: 34px; min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #6366f1, #a5b4fc);
}
.trend-x { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; white-space: nowrap; }
.trend-legend { padding: 0 20px 16px; font-size: 12px; color: var(--ink-3); }

.stat-table { width: 100%; border-collapse: collapse; }
.stat-table th, .stat-table td {
  text-align: left; padding: 10px 20px;
  border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.stat-table th {
  font-size: 11.5px; color: var(--ink-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.stat-table tbody tr:last-child td { border-bottom: 0; }
.stat-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.stat-table td a:hover { color: var(--primary); }
.stat-note { font-size: 12.5px; color: var(--ink-3); padding: 16px 20px 4px; line-height: 1.8; }
