/* ==========================================================================
   AI 工具导航 — 前台样式
   视觉规范对齐 navtool.cn（WordPress onenav 主题）：
   主色 #f1404b / 背景 #f2f4f7 / 白卡片 12px 圆角 / 柔和阴影 / 圆形图标
   ========================================================================== */

:root {
  --theme-color: #f1404b;
  --theme-color-rgb: 241, 64, 75;
  --hover-color: #d12768;
  --main-color: #484b4f;
  --main-bg-color: #fff;
  --main-radius: 12px;
  --main-shadow: rgba(0, 0, 0, .1);
  --muted-color: #93959a;
  --muted-color2: #66686b;
  --muted-bg-color: #e6e8ea;
  --muted-bg-color-l: #f1f2f4;
  --body-bg-color: #f2f4f7;
  --main-nav-height: 76px;
  --main-max-width: 1260px;

  --radius-sm: calc(var(--main-radius) - 4px);
  --radius-xs: calc(var(--main-radius) - 6px);
  --radius-lg: calc(var(--main-radius) + 4px);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-hover: 0 8px 24px -6px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .05);

  --font-body: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-num: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--main-nav-height);
  background: var(--body-bg-color);
  color: var(--main-color);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--theme-color); }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--main-max-width); margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--main-nav-height);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--theme-color), #ff6b73);
  color: #fff; border-radius: 12px;
  font-weight: 800; font-size: 17px; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), .32);
}
.brand-text b { display: block; font-size: 17px; font-weight: 700; color: #2b2d31; line-height: 1.25; }
.brand-text span { display: block; font-size: 12px; color: var(--muted-color); }

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 7px 13px; font-size: 14px; color: var(--muted-color2);
  border-radius: var(--radius-sm); transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--muted-bg-color-l); color: var(--theme-color); }
.site-nav a.on { background: rgba(var(--theme-color-rgb), .08); color: var(--theme-color); font-weight: 600; }

.head-search { margin-left: auto; flex: 0 1 300px; }
.head-search form {
  display: flex; align-items: center; height: 40px;
  background: var(--muted-bg-color-l); border-radius: 10px;
  padding: 0 4px 0 14px; transition: box-shadow .2s, background-color .2s;
}
.head-search form:focus-within { background: #fff; box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb), .18); }
.head-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: 14px; color: var(--main-color);
}
.head-search input::placeholder { color: #b3b6ba; }
.head-search button {
  border: 0; background: var(--theme-color); color: #fff; height: 32px; padding: 0 16px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  transition: background-color .2s;
}
.head-search button:hover { background: var(--hover-color); }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 8px; }
.hero-inner {
  background: var(--main-bg-color); border-radius: var(--radius-lg);
  padding: 44px 40px 40px; box-shadow: var(--shadow-card); text-align: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--theme-color);
  background: rgba(var(--theme-color-rgb), .08);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--theme-color); display: inline-block; }
.hero h1 {
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.28; margin: 0 0 14px;
  font-weight: 800; color: #2b2d31; letter-spacing: -.01em;
}
.hero h1 mark { background: none; color: var(--theme-color); padding: 0; }
.hero p.lead { font-size: 15px; color: var(--muted-color); max-width: 640px; margin: 0 auto 28px; }

.hero-search {
  display: flex; align-items: center; max-width: 620px; margin: 0 auto;
  height: 54px; background: var(--muted-bg-color-l); border-radius: 14px;
  padding: 0 6px 0 20px; transition: box-shadow .2s, background-color .2s;
}
.hero-search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), .16); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15px; font-family: var(--font-body); color: var(--main-color);
}
.hero-search input::placeholder { color: #b3b6ba; }
.hero-search button {
  border: 0; background: var(--theme-color); color: #fff; height: 42px; padding: 0 26px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color .2s;
}
.hero-search button:hover { background: var(--hover-color); }

.hero-hints { margin-top: 16px; font-size: 13px; color: var(--muted-color); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.hero-hints a {
  background: var(--muted-bg-color-l); padding: 4px 12px; border-radius: 20px;
  color: var(--muted-color2); transition: .2s;
}
.hero-hints a:hover { background: rgba(var(--theme-color-rgb), .1); color: var(--theme-color); }

/* ---------- 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 6px; }
.stat {
  background: var(--main-bg-color); border-radius: var(--main-radius);
  padding: 20px 22px; box-shadow: var(--shadow-card); transition: box-shadow .25s;
}
.stat:hover { box-shadow: var(--shadow-hover); }
.stat b { display: block; font-family: var(--font-num); font-size: 28px; font-weight: 800; color: #2b2d31; line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--muted-color); }
.stat.is-accent { background: linear-gradient(135deg, var(--theme-color), #ff6b73); }
.stat.is-accent b, .stat.is-accent span { color: #fff; }
.stat.is-ink b { color: var(--theme-color); }

/* ---------- 区块 ---------- */
.section { padding: 22px 0; scroll-margin-top: calc(var(--main-nav-height) + 12px); }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0 2px; }
.section-head h2 { font-size: 20px; margin: 0; font-weight: 700; color: #2b2d31; display: flex; align-items: center; gap: 8px; }
.section-head .idx { color: var(--theme-color); font-size: 17px; }
.section-head .more { margin-left: auto; font-size: 13px; color: var(--muted-color); }
.section-head .more:hover { color: var(--theme-color); }

/* ---------- 分类筛选 ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-filter a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--main-bg-color); color: var(--muted-color2);
  padding: 7px 15px; border-radius: 20px; font-size: 13.5px;
  box-shadow: var(--shadow-card); transition: .22s;
}
.cat-filter a:hover { color: var(--theme-color); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.cat-filter a.on { background: var(--theme-color); color: #fff; box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), .3); }

/* ---------- 工具卡片 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }

.tool-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--main-bg-color); border-radius: var(--main-radius);
  padding: 14px 16px; box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tool-card:hover .tc-name { color: var(--theme-color); }

.avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; color: #fff; font-weight: 700; font-size: 16px;
  overflow: hidden; object-fit: cover; background: var(--muted-bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.tool-card .tc-body { min-width: 0; flex: 1; }
.tool-card .tc-top { display: flex; align-items: center; gap: 6px; }
.tool-card .tc-name {
  font-weight: 600; font-size: 14.5px; color: #2b2d31;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s;
}
.tool-card .tc-desc {
  font-size: 12.5px; color: var(--muted-color); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tool-card .tc-host { margin-top: 7px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #b3b6ba; }
.tool-card .tc-host span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 标签 / 圆点 ---------- */
.badge {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px;
  background: var(--muted-bg-color-l); color: var(--muted-color); white-space: nowrap; font-weight: 500;
}
.badge.hot { background: rgba(var(--theme-color-rgb), .1); color: var(--theme-color); }
.badge.ok { background: #e8f7ef; color: #12a05c; }
.badge.down { background: #fdeceb; color: #e5443c; }
.badge.idle { background: var(--muted-bg-color-l); color: var(--muted-color); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: #c9ccd0; }
.dot.ok { background: #12a05c; }
.dot.down { background: #e5443c; }
.dot.idle { background: #c9ccd0; }

/* ---------- 分类区块（卡片） ---------- */
.cat-block {
  background: var(--main-bg-color); border-radius: var(--radius-lg);
  padding: 20px 20px 8px; margin-bottom: 18px; box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--main-nav-height) + 12px);
}
.cat-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cat-block-head .ci {
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 19px;
  background: var(--muted-bg-color-l); border-radius: 10px;
}
.cat-block-head h3 { font-size: 17px; margin: 0; font-weight: 700; color: #2b2d31; }
.cat-block-head .cnt { font-size: 12px; color: var(--muted-color); }
.cat-block-head .more { margin-left: auto; font-size: 13px; color: var(--muted-color); }
.cat-block-head .cd { flex: 1 1 100%; margin: -6px 0 0; font-size: 12.5px; color: var(--muted-color); }
.cat-block .tool-grid { gap: 12px; }
.cat-block .tool-card { background: var(--body-bg-color); box-shadow: none; padding: 12px 14px; }
.cat-block .tool-card:hover { background: #fff; box-shadow: var(--shadow-card); }

/* ---------- 搜索提示 / 空状态 ---------- */
.search-note {
  background: var(--main-bg-color); border-radius: var(--main-radius);
  padding: 16px 20px; margin-bottom: 18px; font-size: 14px; box-shadow: var(--shadow-card);
}
.search-note b { color: var(--theme-color); }
.empty {
  background: var(--main-bg-color); border-radius: var(--radius-lg);
  padding: 56px 20px; text-align: center; color: var(--muted-color); box-shadow: var(--shadow-card);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted-color); padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--theme-color); }
.breadcrumb span { margin: 0 7px; color: #c9ccd0; }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 18px; padding: 18px 0 40px; align-items: start; }
.detail-main { background: var(--main-bg-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.detail-hero { display: flex; gap: 18px; padding: 26px; border-bottom: 1px solid var(--muted-bg-color-l); align-items: flex-start; }
.detail-hero h1 { font-size: 26px; margin: 0 0 6px; font-weight: 800; color: #2b2d31; line-height: 1.3; }
.detail-hero .dhost { font-size: 12.5px; color: var(--muted-color); word-break: break-all; }
.detail-hero .dtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-body { padding: 26px; }
.detail-body h4 { font-size: 13px; color: var(--muted-color); font-weight: 600; margin: 0 0 10px; letter-spacing: .04em; }
.detail-body p { margin: 0 0 24px; font-size: 14.5px; line-height: 1.85; }

.detail-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--main-bg-color); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card); }
.side-card h4 { font-size: 13px; color: var(--muted-color); font-weight: 600; margin: 0 0 14px; letter-spacing: .04em; }
.side-card dl { margin: 0; font-size: 13.5px; }
.side-card dt { color: var(--muted-color); font-size: 12.5px; margin-top: 12px; }
.side-card dt:first-child { margin-top: 0; }
.side-card dd { margin: 3px 0 0; word-break: break-all; color: var(--main-color); }
.side-card .foot-list li a { color: var(--muted-color2); }
.side-card .foot-list li a:hover { color: var(--theme-color); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--theme-color); color: #fff; border: 0; cursor: pointer;
  padding: 13px 20px; border-radius: var(--main-radius); font-size: 15px; font-weight: 600;
  font-family: var(--font-body); width: 100%; transition: background-color .2s, box-shadow .2s;
  box-shadow: 0 6px 16px -6px rgba(var(--theme-color-rgb), .6);
}
.btn:hover { background: var(--hover-color); color: #fff; }
.btn.ghost { background: var(--muted-bg-color-l); color: var(--main-color); box-shadow: none; }
.btn.ghost:hover { background: var(--muted-bg-color); color: var(--main-color); }

/* ---------- 跳转提示页 ---------- */
.page-go { padding-top: 0; }
.go-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.go-card {
  width: 100%; max-width: 480px; background: var(--main-bg-color);
  border-radius: var(--radius-lg); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .25); overflow: hidden;
}
.go-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  background: var(--muted-bg-color-l); font-size: 12.5px; color: var(--muted-color);
}
.go-body { padding: 30px 28px 26px; text-align: center; }
.go-body h1 { font-size: 21px; margin: 0 0 8px; font-weight: 800; color: #2b2d31; }
.go-body .gourl {
  font-size: 12.5px; color: var(--muted-color2); word-break: break-all;
  background: var(--body-bg-color); border-radius: 10px; padding: 11px 14px; margin: 18px 0;
}
.go-count { font-size: 13px; color: var(--muted-color); margin-bottom: 20px; }
.go-count b { color: var(--theme-color); font-size: 17px; }
.go-actions { display: flex; gap: 10px; }
.go-note { margin-top: 22px; font-size: 12.5px; color: var(--muted-color); border-top: 1px solid var(--muted-bg-color-l); padding-top: 16px; }

/* ---------- 页脚 ---------- */
.site-foot { background: var(--main-bg-color); margin-top: 24px; border-top: 1px solid rgba(0, 0, 0, .05); }
.site-foot .wrap { padding: 40px 16px 24px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 28px; }
.foot-grid h5 { font-size: 13px; color: #2b2d31; font-weight: 700; margin: 0 0 14px; }
.foot-brand b { font-size: 16px; display: block; margin-bottom: 10px; color: #2b2d31; }
.foot-brand p { font-size: 13px; color: var(--muted-color); margin: 0; max-width: 340px; line-height: 1.8; }
.foot-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.foot-list li { margin-bottom: 9px; }
.foot-list a { color: var(--muted-color2); }
.foot-list a:hover { color: var(--theme-color); }
.foot-bottom {
  border-top: 1px solid var(--muted-bg-color-l); margin-top: 28px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-color);
}

/* ---------- Flash / 分页 ---------- */
.flash { background: var(--main-bg-color); border-radius: var(--main-radius); padding: 14px 18px; margin: 18px 0; font-size: 14px; box-shadow: var(--shadow-card); }
.flash.ok { background: #e8f7ef; color: #12a05c; }
.flash.err { background: #fdeceb; color: #e5443c; }
.flash.warn { background: #fff7e6; color: #b7791f; }

.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.pager a, .pager span {
  background: var(--main-bg-color); border-radius: 10px; padding: 7px 14px;
  font-size: 13.5px; box-shadow: var(--shadow-card); transition: .2s;
}
.pager a:hover { color: var(--theme-color); transform: translateY(-1px); }
.pager span.on { background: var(--theme-color); color: #fff; box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), .3); }

/* ==========================================================================
   两栏布局 + 左侧导航栏
   ========================================================================== */

.layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 18px; align-items: start; }
.layout-main { min-width: 0; }
.site-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--main-nav-height) + 18px); }
.section[id], .cat-block[id] { scroll-margin-top: calc(var(--main-nav-height) + 16px); }

.cat-nav { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - var(--main-nav-height) - 130px); overflow-y: auto; }
.cat-nav li + li { margin-top: 2px; }
.cat-nav a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--muted-color2); transition: background-color .18s, color .18s;
}
.cat-nav a:hover { background: var(--muted-bg-color-l); color: var(--theme-color); }
.cat-nav .cn-icon { flex: 0 0 20px; text-align: center; font-size: 15px; }
.cat-nav .cn-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-nav em { font-style: normal; font-size: 11.5px; color: var(--muted-color); }
.cat-nav li.on a { background: rgba(var(--theme-color-rgb), .1); color: var(--theme-color); font-weight: 600; }
.cat-nav li.on em { color: var(--theme-color); }

/* ==========================================================================
   资讯模块
   ========================================================================== */

.page-head { padding: 18px 0 6px; }
.page-head h1 { font-size: 26px; margin: 0 0 8px; font-weight: 800; color: #2b2d31; }
.page-head p { margin: 0; color: var(--muted-color); font-size: 13.5px; max-width: 780px; }
.cat-filter em { font-style: normal; font-size: 11.5px; color: var(--muted-color); }

.news-main { min-width: 0; }

/* 文章列表（style-post-min：左图右文） */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item {
  display: flex; gap: 16px; background: var(--main-bg-color);
  border-radius: var(--main-radius); padding: 14px; box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.post-media {
  flex: 0 0 196px; width: 196px; height: 122px; border-radius: 10px;
  overflow: hidden; background: var(--muted-bg-color-l); position: relative; display: block;
}
.post-media img.fill-cover, .ri-media img.fill-cover, .nc-media img.fill-cover,
.post-media .ph-thumb, .ri-media .ph-thumb, .nc-media .ph-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ph-thumb { display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 800; }

.post-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.post-title { margin: 0 0 8px; font-size: 17px; line-height: 1.45; font-weight: 700; color: #2b2d31; }
.post-title a { transition: color .2s; }
.post-item:hover .post-title a { color: var(--theme-color); }
.post-excerpt {
  margin: 0 0 auto; color: var(--muted-color); font-size: 13.5px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted-color); }
.post-tag { color: var(--muted-color); }
.post-tag:hover { color: var(--theme-color); }
.post-time, .post-views { color: #b3b6ba; }
.post-time::before, .post-views::before { content: '·'; margin-right: 6px; }
.badge.cat { background: rgba(var(--theme-color-rgb), .1); color: var(--theme-color); }
.badge.cat:hover { background: rgba(var(--theme-color-rgb), .18); }

/* 侧边栏 */
.aside-card { background: var(--main-bg-color); border-radius: var(--main-radius); padding: 18px; box-shadow: var(--shadow-card); }
.aside-title { font-size: 15px; margin: 0 0 14px; font-weight: 700; color: #2b2d31; padding-left: 10px; position: relative; }
.aside-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--theme-color); }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.rank-list a { font-size: 13.5px; line-height: 1.55; color: var(--muted-color2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-list a:hover { color: var(--theme-color); }
.rank-no {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--muted-bg-color-l); color: var(--muted-color); margin-top: 2px;
}
.rank-no.top { background: var(--theme-color); color: #fff; }
.rank-empty { color: var(--muted-color); font-size: 13px; }

.aside-cats { list-style: none; margin: 0; padding: 0; }
.aside-cats li + li { margin-top: 2px; }
.aside-cats a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted-color2); transition: .2s; }
.aside-cats a:hover { background: var(--muted-bg-color-l); color: var(--theme-color); }
.aside-cats em { font-style: normal; font-size: 12px; color: var(--muted-color); }

.aside-tools { list-style: none; margin: 0; padding: 0; }
.aside-tools li + li { margin-top: 4px; }
.aside-tools a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; transition: .2s; }
.aside-tools a:hover { background: var(--muted-bg-color-l); }
.aside-tools b { display: block; font-size: 13.5px; font-weight: 600; color: #2b2d31; }
.aside-tools i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted-color); }
.aside-tools a:hover b { color: var(--theme-color); }

/* 文章详情 */
.article-main { background: var(--main-bg-color); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-card); }
.article-title { font-size: 28px; line-height: 1.4; margin: 0 0 14px; font-weight: 800; color: #2b2d31; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted-color); padding-bottom: 18px; border-bottom: 1px solid var(--muted-bg-color-l); }
.article-cover { margin: 22px 0 0; border-radius: var(--main-radius); overflow: hidden; }
.article-cover img { width: 100%; display: block; }
.article-content { font-size: 15.5px; line-height: 1.95; color: #3c4046; padding-top: 22px; }
.article-content p { margin: 0 0 20px; }
.article-content h2 { font-size: 19px; margin: 32px 0 14px; font-weight: 700; color: #2b2d31; padding-left: 12px; border-left: 4px solid var(--theme-color); }
.article-content h3 { font-size: 16.5px; margin: 26px 0 12px; font-weight: 700; color: #2b2d31; }
.article-content ul, .article-content ol { margin: 0 0 20px; padding-left: 22px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  margin: 0 0 20px; padding: 14px 18px; background: rgba(var(--theme-color-rgb), .06);
  border-left: 4px solid var(--theme-color); border-radius: 0 10px 10px 0; color: var(--muted-color2); font-size: 14.5px;
}
.article-content figure { margin: 0 0 22px; }
.article-content figure img { width: 100%; display: block; border-radius: var(--main-radius); }
.article-content figcaption { font-size: 12.5px; color: var(--muted-color); text-align: center; margin-top: 8px; }

.article-origin {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding: 16px 18px; border-radius: var(--main-radius);
  background: var(--body-bg-color); font-size: 13px; color: var(--muted-color);
}
.article-origin b { color: var(--main-color); }
.article-origin .btn { width: auto; padding: 10px 18px; font-size: 14px; }

.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--muted-bg-color-l); font-size: 13px; }
.article-tags .tags-label { color: var(--muted-color); }
.article-tags a { background: var(--muted-bg-color-l); padding: 3px 11px; border-radius: 20px; color: var(--muted-color2); }
.article-tags a:hover { background: rgba(var(--theme-color-rgb), .1); color: var(--theme-color); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.an-item { background: var(--body-bg-color); border-radius: var(--main-radius); padding: 14px 16px; display: block; transition: .2s; }
.an-item em { display: block; font-style: normal; font-size: 12px; color: var(--muted-color); margin-bottom: 5px; }
.an-item span { font-size: 14px; color: #2b2d31; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-item:hover { background: rgba(var(--theme-color-rgb), .06); }
.an-item:hover span { color: var(--theme-color); }
.an-item.next { text-align: right; }
.an-item.disabled { opacity: .55; }
.an-item.disabled:hover { background: var(--body-bg-color); }

.related-block { margin-top: 18px; }
.block-title { font-size: 17px; margin: 0 0 14px; font-weight: 700; color: #2b2d31; padding-left: 10px; position: relative; }
.block-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--theme-color); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.related-item { background: var(--main-bg-color); border-radius: var(--main-radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .22s, box-shadow .22s; }
.related-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ri-media { height: 108px; background: var(--muted-bg-color-l); }
.related-item b { display: block; padding: 12px 14px 4px; font-size: 14px; line-height: 1.5; font-weight: 600; color: #2b2d31; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item:hover b { color: var(--theme-color); }
.related-item span { display: block; padding: 0 14px 14px; font-size: 11.5px; color: var(--muted-color); }

/* 首页资讯卡片 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.news-card { background: var(--main-bg-color); border-radius: var(--main-radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .22s, box-shadow .22s; display: block; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-card .nc-media { height: 132px; background: var(--muted-bg-color-l); }
.news-card .nc-body { padding: 14px 16px 16px; }
.news-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; font-weight: 700; color: #2b2d31; }
.news-card:hover b { color: var(--theme-color); }
.news-card p { margin: 8px 0 10px; font-size: 12.5px; color: var(--muted-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .nc-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #b3b6ba; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .detail { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .site-aside { position: static; }
  .cat-nav { display: flex; flex-wrap: wrap; gap: 8px; max-height: none; overflow: visible; }
  .cat-nav li + li { margin-top: 0; }
  .cat-nav a { background: var(--muted-bg-color-l); padding: 6px 13px; border-radius: 20px; }
  .cat-nav .cn-icon { flex: 0 0 auto; }
  .cat-nav em { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --main-nav-height: 64px; }
  .site-head .wrap { flex-wrap: wrap; gap: 10px; }
  .brand-text span { display: none; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; border-radius: 10px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
  .head-search { flex: 1 1 100%; margin-left: 0; order: 4; }
  .hero-inner { padding: 30px 20px 26px; }
  .hero-search { height: 48px; padding-left: 16px; }
  .hero-search button { height: 38px; padding: 0 18px; }
  .tool-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 16px; }
  .monitor-panel { padding: 22px 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .go-actions { flex-direction: column; }
  .post-item { flex-direction: column; gap: 12px; }
  .post-media { flex: none; width: 100%; height: 178px; }
  .post-title { font-size: 16px; }
  .article-main { padding: 22px 18px; }
  .article-title { font-size: 21px; }
  .article-content { font-size: 15px; }
  .article-nav { grid-template-columns: 1fr; }
  .an-item.next { text-align: left; }
  .related-grid { grid-template-columns: 1fr; }
}
