:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-bar: #eef2f7;

  --text: #1a2733;
  --muted: #6b7a90;
  --cite: #7c8ba0;

  --link: #1a0dab;
  --link-visited: #609;
  --link-hover: #155ec0;
  --accent: #0f6dc4;
  --green: #0d7a3e;
  --star: #f5a623;

  --gradient: linear-gradient(135deg, #475569 0%, #334155 55%, #1e293b 100%);

  --border: #e6edf5;
  --border-2: #d8e2ee;
  --border-3: #c3d0e0;

  --radius: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(27, 46, 75, .06), 0 1px 3px rgba(27, 46, 75, .08);
  --shadow: 0 4px 14px rgba(27, 46, 75, .08);
  --shadow-lg: 0 12px 32px rgba(27, 46, 75, .14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --main-w: 652px;
  --side-w: 372px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; color: var(--text); }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.is-hidden { display: none; }

.serp-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--main-w)) var(--side-w);
  gap: 24px;
  justify-content: center;
  align-items: start;
  padding: 24px 0 60px;
}
.serp-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1108px;
  margin: 0 auto;
  padding: 24px 0 60px;
}

.serp-grid > div:first-child,
.serp-wide > div {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.hdr-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 64px;
}

.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f6dc4, #2bb8c4 55%, #7f5ff0);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.logo-text { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.logo-sub { font-size: 11px; color: var(--cite); margin-left: 2px; }

.sbform { flex: 1 1 auto; min-width: 0; max-width: 560px; }
.sb-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  height: 44px;
  padding: 0 6px 0 18px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.suggest-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}
.suggest-box.is-open { display: block; }
.suggest-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-item:hover { background: rgba(15, 109, 196, .08); }
.sb-box:hover { border-color: var(--border-3); }
.sb-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 109, 196, .14); }
.sb-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.sb-box input::placeholder { color: #98a6b8; }
.sb-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 18px;
  color: #6b7a90;
  border-radius: 50%;
  transition: background .16s ease, color .16s ease;
}
.sb-icon:hover { background: var(--bg-bar); color: var(--text); }
.sb-clear { display: none; }
.sb-clear.is-shown { display: grid; }
.sb-submit {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-size: 19px;
}
.sb-submit:hover { background: var(--bg-bar); }

.hdr-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.hdr-link { padding: 7px 11px; font-size: 13.5px; color: var(--text); border-radius: var(--radius-sm); }
.hdr-link:hover { background: var(--bg-bar); text-decoration: none; }
.hdr-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 17px;
}

.menu { position: relative; }
.menu-pop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.menu.is-open .menu-pop { display: block; }
.menu-pop a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.menu-pop a:hover { background: var(--bg-bar); text-decoration: none; }
.menu-pop .ico { font-size: 17px; color: #6b7a90; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 14px;
  color: #5a6a7e;
  white-space: nowrap;
  border-radius: 8px;
  transition: background .16s ease, color .16s ease;
}
.tab .ico { font-size: 16px; }
.tab:hover { color: var(--text); background: var(--bg-bar); text-decoration: none; }
.tab.is-active { color: var(--accent); font-weight: 600; background: var(--bg-soft); }

.res-count { font-size: 13px; color: var(--cite); margin-bottom: 18px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 8px;
  margin: 28px 0 14px;
  border-bottom: 1px solid var(--border);
}
.section-label .ico { font-size: 17px; color: #6b7a90; }
.section-label:first-child { margin-top: 0; }

.page-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 16px; line-height: 1.3; }

.res {
  padding: 16px 14px 22px;
  margin: 0 -14px;
  border-radius: var(--radius-sm);
  transition: background .18s ease;
}
.res:hover { background: var(--bg-soft); }
.res + .res { border-top: 1px solid var(--border); }
.b_tpcn { display: block; }

.res-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.fav {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.fav-1 { background: #5b7fbd; }
.fav-2 { background: #7a9a54; }
.fav-3 { background: #b07a4a; }
.fav-4 { background: #7a6ea8; }
.fav-5 { background: #4d8f93; }
.fav-6 { background: #a06161; }

.res-site { font-size: 13.5px; color: var(--text); flex: none; }
.res-path { font-size: 12.5px; color: var(--cite); min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.res-title { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.res-title a { color: var(--link); }
.res-title a:visited { color: var(--link-visited); }

.res-cap { font-size: 14px; color: var(--muted); line-height: 1.58; }
.res-cap strong { color: var(--text); font-weight: 600; }

.res-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--cite); }
.res-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.res-meta .ico { font-size: 14px; }

.res-acts { display: flex; gap: 6px; margin-top: 8px; }
.res-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-size: 12.5px;
  color: var(--cite);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.res-act:hover { background: var(--surface); color: var(--text); border-color: var(--border-2); text-decoration: none; }
.res-act .ico { font-size: 14px; }

.res-cat {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  padding: 3px 9px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--bg-bar);
  color: var(--muted);
  border: 1px solid var(--border-2);
  font-weight: 500;
}
.res-cat.cat-website  { background: #f3f0e8; color: #8a6d3b; border-color: #e6dcc4; }
.res-cat.cat-baike    { background: #eef3fb; color: #3b6db5; border-color: #d4e0f3; }
.res-cat.cat-tools    { background: #eaf4ee; color: #3c7a52; border-color: #cfe7d8; }
.res-cat.cat-download { background: #fbeef0; color: #b5566a; border-color: #f3d4da; }

.res-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 12px; padding-left: 2px; }
.res-sub li a { font-size: 14px; }
.res-sub li span { display: block; font-size: 12.5px; color: var(--cite); }

.img-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.img-strip a { display: block; }
.img-ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease;
}
.img-strip a:hover .img-ph { box-shadow: var(--shadow); }
.img-strip span { display: block; margin-top: 5px; font-size: 12px; color: var(--cite); }

.vid-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }

.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.rel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.rel-item .ico { font-size: 16px; color: #8b98ab; }
.rel-item:hover {
  background: var(--surface);
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.col-side {
  position: sticky;
  top: 76px;
  align-self: start;
}

.card {
  padding: 18px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card-title { font-size: 17px; margin-bottom: 3px; }
.card-sub { font-size: 13px; color: var(--cite); margin-bottom: 12px; }
.card-text { font-size: 13.5px; color: var(--muted); }

.kv { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.kv-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.kv-key { color: var(--cite); }
.kv-val { color: var(--text); }

.side-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.side-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px 5px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background .16s ease, border-color .16s ease;
}
.side-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--link);
  opacity: .45;
  transition: opacity .16s ease;
}
.side-item:hover {
  background: var(--bg-bar);
  border-color: var(--border-2);
  text-decoration: none;
}
.side-item:hover::before { opacity: 1; }
.side-item > span { display: block; min-width: 0; }
.side-item-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.side-item-meta { display: none; }
.tip-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.tip-list li { font-size: 13px; color: var(--muted); line-height: 1.45; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--border);
}
.pager a, .pager span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  font-size: 14px;
  color: var(--link);
  border-radius: var(--radius-sm);
  transition: background .16s ease, box-shadow .16s ease;
}
.pager a:hover { background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; }
.pager .is-current {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.pager .pager-next { display: inline-flex; align-items: center; gap: 6px; }
.pager .is-disabled { color: var(--muted); cursor: default; background: transparent; box-shadow: none; }
.pager .is-gap { color: var(--muted); cursor: default; background: transparent; box-shadow: none; min-width: 18px; }
.pager .pager-next .ico { font-size: 15px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  color: #5a6a7e;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.chip:hover { border-color: var(--border-3); color: var(--text); box-shadow: var(--shadow); text-decoration: none; }
.chip.is-active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.chip .ico { font-size: 15px; }

.img-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.img-card { display: block; }
.img-card .img-ph { aspect-ratio: auto; height: 190px; }
.img-card:hover .img-ph { border-color: var(--border-2); box-shadow: var(--shadow); }
.img-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.img-info-title { font-size: 12.5px; color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-info-size { font-size: 12px; color: var(--cite); flex: none; }

.img-card .img-ph.h-a { height: 232px; }
.img-card .img-ph.h-b { height: 176px; }
.img-card .img-ph.h-c { height: 204px; }

.ph-1 { background: linear-gradient(135deg, #dbe4ef, #c3d0e0); }
.ph-2 { background: linear-gradient(135deg, #e3e8ef, #ccd5e0); }
.ph-3 { background: linear-gradient(135deg, #d9e3ec, #bfcddc); }
.ph-4 { background: linear-gradient(135deg, #e6e9f0, #cdd4e2); }
.ph-5 { background: linear-gradient(135deg, #dee6f0, #c6d2e2); }
.ph-6 { background: linear-gradient(135deg, #dde2eb, #c4cdda); }

.vid-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 14px;
  margin: 0 -14px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
  transition: background .18s ease;
}
.vid-item:hover { background: var(--bg-soft); }
.vid-thumb { position: relative; }
.vid-thumb .img-ph { aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm); }
.vid-dur {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 7px;
  font-size: 12px;
  color: #fff;
  background: rgba(15, 23, 42, .82);
  border-radius: var(--radius-sm);
}
.vid-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  font-size: 38px;
}
.vid-title { font-size: 17px; margin-bottom: 5px; }
.vid-title a { color: var(--link); }
.vid-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12.5px; color: var(--cite); }
.vid-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.vid-meta .ico { font-size: 14px; }
.vid-desc { font-size: 13.5px; color: var(--muted); margin-top: 7px; }

.paper { padding: 18px 0; border-bottom: 1px solid var(--border); }
.paper:first-child { padding-top: 0; }
.paper-title { font-size: 18px; margin-bottom: 5px; }
.paper-title a { color: var(--link); }
.paper-authors { font-size: 13.5px; color: var(--green); margin-bottom: 3px; }
.paper-venue { font-size: 13px; color: var(--cite); margin-bottom: 6px; }
.paper-abs { font-size: 13.5px; color: var(--muted); }
.paper-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 9px; font-size: 12.5px; }
.paper-foot > span { display: inline-flex; align-items: center; gap: 5px; color: var(--cite); }
.paper-foot .ico { font-size: 14px; }
.cite-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--muted);
}
.cite-box .ico { font-size: 15px; color: #6b7a90; }

.detail { margin-top: 18px; }
.detail-bar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.detail-h1 { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 10px; line-height: 1.32; }
.detail-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--cite); }
.detail-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.detail-url { color: var(--link); word-break: break-all; }
.detail-url:hover { text-decoration: underline; }
.detail-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 2px 0 0;
}
.detail-body .res {
  margin: 0;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.detail-body .res:hover { background: var(--bg-soft); }
.detail-body .res + .res { border-top: 0; }
.detail-body .res-title { display: none; }

.detail-download .dl-box {
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.dl-box-head {
  font-size: 13px; font-weight: 700; color: var(--cite);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px;
}
.dl-empty { color: var(--muted); font-size: 14px; }
.dl-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
}
.dl-meta-item { background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.dl-meta-item:last-child { grid-column: span 3; }
.dl-meta-k { font-size: 12.5px; color: var(--muted); }
.dl-meta-v { font-size: 15px; color: var(--text); font-weight: 600; word-break: break-all; }

.dl-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dl-platform {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
}
.dl-platform-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dl-platform-name { font-size: 15px; font-weight: 700; color: var(--text); }
.dl-platform-nature {
  font-size: 11.5px; color: var(--link); background: #eaf2ff;
  border: 1px solid #d4e2fb; padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.dl-platform-remark { font-size: 12px; color: var(--muted); }
.dl-platform-urls { display: flex; flex-direction: column; gap: 8px; }
.dl-dl-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 9px 16px; border-radius: 8px;
  background: var(--link); color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none; box-shadow: 0 2px 8px rgba(20,108,220,.22);
  max-width: 100%;
}
.dl-dl-btn:hover { background: var(--link-hover, #155ec0); text-decoration: none; color: #fff; }
.dl-dl-btn .ico { font-size: 16px; flex: none; }
.dl-dl-url { font-size: 11.5px; font-weight: 400; opacity: .85; word-break: break-all; }
@media (max-width: 620px) {
  .dl-platforms { grid-template-columns: 1fr; }
}

/* ===== 下载页产品介绍 ===== */
.dl-box + .detail-content {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.8;
}
.dl-box + .detail-content p { margin: 0; }

/* ===== 下载页注意事项提示 ===== */
.dl-notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: #fef9ec;
  border: 1px solid #f0e0c0;
  border-left: 3px solid #ca8a04;
  border-radius: 8px;
  font-size: 13.5px;
  color: #8a6d3b;
  line-height: 1.7;
}

/* ===== 侧栏热门搜索标签 ===== */
.hot-tags {
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.hot-tags-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cite);
  margin-bottom: 10px;
}
.hot-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hot-tags-list a {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.hot-tags-list a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.detail-tools .tl-box {
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.tl-box-head {
  font-size: 13px; font-weight: 700; color: var(--cite);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px;
}
.tl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tl-open-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  background: var(--link); color: #fff; font-size: 16px; font-weight: 700;
  text-decoration: none; box-shadow: 0 3px 10px rgba(20,108,220,.25);
}
.tl-open-btn:hover { background: var(--link-hover, #155ec0); text-decoration: none; color: #fff; }
.tl-open-btn .ico { font-size: 18px; flex: none; }
.tl-open-url { font-size: 12px; font-weight: 400; opacity: .85; word-break: break-all; }
.tl-snap-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none;
}
.tl-snap-btn:hover { border-color: var(--link); text-decoration: none; }
.tl-empty { color: var(--muted); font-size: 14px; }

@media (min-width: 980px) {
  .tool-side { position: sticky; top: 72px; }
}
.tool-side .card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
}
.tool-side .section-label {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border-bottom: 1px solid var(--border-2);
}
.tool-side .section-label::before {
  content: "";
  display: inline-block;
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--link);
  flex: none;
}
.tool-side .side-list { padding: 14px 16px; gap: 8px; }
.tool-side .tip-list { padding: 14px 16px 16px; gap: 10px; }
.tool-side .tip-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.65;
}
.tool-side .tip-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--link);
  opacity: .8;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.place-list { display: flex; flex-direction: column; }
.place {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
  transition: background .18s ease;
}
.place:hover { background: var(--bg-soft); }
.place:first-child { padding-top: 0; }
.place .img-ph { aspect-ratio: 1 / 1; }
.place-name { font-size: 16px; margin-bottom: 3px; }
.place-name a { color: var(--link); }
.place-rate { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--cite); }
.place-stars { display: inline-flex; gap: 2px; font-size: 14px; color: var(--star); }
.place-stars .ico { fill: currentColor; }
.place-meta { font-size: 13px; color: var(--cite); margin-top: 5px; }
.place-meta > span { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.place-meta .ico { font-size: 14px; }

.map-canvas {
  position: relative;
  height: 520px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background:
    repeating-linear-gradient(0deg, #e4ebf3 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, #e4ebf3 0 1px, transparent 1px 42px),
    #eef3f8;
  overflow: hidden;
}
.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  background: var(--gradient);
  color: #fff;
  font-size: 17px;
  box-shadow: var(--shadow);
}
.pin .ico { transform: rotate(45deg); }
.pin-1 { left: 22%; top: 26%; }
.pin-2 { left: 48%; top: 44%; }
.pin-3 { left: 66%; top: 22%; }
.pin-4 { left: 36%; top: 66%; }
.pin-5 { left: 74%; top: 60%; }
.map-tools {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 17px;
  color: #3d4c60;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.map-tools button:hover { background: var(--bg-bar); }
.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: #55647a;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.foot {
  margin-top: 20px;
  padding: 16px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--cite);
}
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--cite); }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  color: #fff;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, box-shadow .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: var(--shadow-lg); }

.copilot {
  margin-bottom: 26px;
  padding: 0 0 14px;
  background: var(--surface);
  border: 1px solid #b6d3f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.copilot-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #eaf3fd 0%, #f2f7fe 100%);
  border-bottom: 1px solid #d9e8fb;
}
.copilot-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f6dc4, #2bb8c4 55%, #7f5ff0);
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.copilot-brand { font-size: 14px; font-weight: 600; }
.copilot-badge {
  padding: 2px 9px;
  font-size: 11.5px;
  color: #0b549b;
  background: #dcebfb;
  border-radius: 10px;
}
.copilot-note { margin-left: auto; font-size: 12px; color: var(--cite); }

.copilot-body { padding: 0 20px; font-size: 14.5px; color: var(--text); line-height: 1.66; }
.copilot-body code {
  padding: 1px 5px;
  font-family: ui-monospace, Consolas, Menlo, monospace;
  font-size: 13px;
  background: #eaf3fd;
  border: 1px solid #cfe0f7;
  border-radius: 4px;
}
.copilot-body p { margin-bottom: .7em; }
.copilot-body ul { margin: 0 0 6px; }
.copilot-body li { position: relative; padding-left: 18px; margin-bottom: 5px; }
.copilot-body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.copilot-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 12px 20px 0;
  padding-top: 12px;
  border-top: 1px solid #d9e8fb;
}
.copilot-src { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.copilot-src-num {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dcebfb;
  color: #0b549b;
  font-size: 11px;
  font-weight: 700;
}

.muted { color: var(--muted); font-size: 14px; }
.muted b { color: var(--text); font-weight: 600; }
.search-meta { padding: 14px 0 6px; }
.empty { padding: 44px 0; text-align: center; }
.empty h1, .empty h2 { font-size: 19px; margin: 0 0 8px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.search-results { display: flex; flex-direction: column; }
.res-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.res-item:last-child { border-bottom: 0; }
.search-results mark {
  background: #fff3a3;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}
.res-fold { margin: 0; }
.res-fold > summary {
  list-style: none;
  cursor: pointer;
  display: block;
  color: var(--text);
  line-height: 1.65;
}
.res-fold > summary::-webkit-details-marker { display: none; }
.res-fold-toggle { color: var(--link); font-size: 13px; margin-left: 4px; }
.res-fold[open] .res-fold-toggle { display: none; }

.search-ads { margin: 14px 0 4px; }
.ad-tag { display: inline-block; font-size: 12px; color: var(--cite); margin-bottom: 8px; letter-spacing: .04em; }
.search-ads .ad-block { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.search-ads .ad-block:last-child { margin-bottom: 0; }

.copilot-ask { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 20px 0; }
.copilot-ask a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 13px;
  color: #0b549b;
  background: var(--surface);
  border: 1px solid #b8d4f5;
  border-radius: 18px;
  transition: box-shadow .16s ease, transform .16s ease;
}
.copilot-ask a:hover { background: var(--surface); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.copilot-ask .ico { font-size: 15px; }

.copilot-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 12px 20px 0; }
.copilot-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 12.5px;
  color: #5a6a7e;
  border-radius: var(--radius-sm);
  transition: background .16s ease, color .16s ease;
}
.copilot-act:hover { background: #eaf3fd; color: var(--text); text-decoration: none; }
.copilot-act .ico { font-size: 15px; }
.copilot-act-sep { width: 1px; height: 16px; background: #cfe0f7; margin: 0 4px; }

.ads { margin-bottom: 24px; }
.ads-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--cite);
}
.ads-label b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #6b7a90; }
.ads-label .ico { font-size: 14px; }

.b_ad { padding: 15px 0 17px; border-bottom: 1px solid var(--border); }
.b_ad:last-child { border-bottom: 0; padding-bottom: 4px; }
.b_adTop { padding-top: 4px; }

.ad-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.ad-badge {
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #5f6b7d;
  background: var(--bg-bar);
  border: 1px solid var(--border-2);
  border-radius: 3px;
}
.ad-site { font-size: 13.5px; color: var(--text); }
.ad-url { font-size: 12.5px; color: var(--green); }
.ad-title { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.ad-title a { color: var(--link); }
.ad-desc { font-size: 14px; color: var(--muted); line-height: 1.58; }
.ad-sitelinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; }
.ad-sitelinks a { font-size: 13.5px; }

.ads-product { margin: 28px 0 24px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.product-card {
  display: block;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.product-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.product-card .img-ph { aspect-ratio: 1 / 1; box-shadow: none; }
.product-name { font-size: 13px; color: var(--text); margin-top: 9px; }
.product-price { font-size: 15px; font-weight: 700; color: #c5221f; margin-top: 3px; }
.product-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; color: var(--cite); }
.product-meta .ico { font-size: 13px; }

.ads-side { border-color: var(--border-2); }
.ads-side .img-ph { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.ads-side-title { font-size: 15.5px; margin-bottom: 4px; }
.ads-side-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .16s ease, transform .16s ease;
}
.ad-cta:hover { color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.ad-cta .ico { font-size: 15px; }

@media (max-width: 1060px) {
  .serp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .col-side { position: static; }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .map-canvas { height: 380px; }
  .img-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hdr-inner { flex-wrap: wrap; min-height: auto; padding: 10px 0; gap: 12px; }
  .hdr-inner > * { min-width: 0; }
  .logo { order: 1; }
  .hdr-actions { order: 2; margin-left: auto; }
  .hdr-link { display: none; }
  .nav-main { gap: 4px; }
  .vid-item { grid-template-columns: minmax(0, 1fr); }
  .vid-thumb { max-width: 320px; }
  .img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-sub { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .logo-sub { display: none; }
  .serp-grid, .serp-wide { padding: 16px 0 40px; }
  .serp-grid > div:first-child,
  .serp-wide > div { padding: 16px 14px; }
  .img-grid { grid-template-columns: minmax(0, 1fr); }
  .img-card .img-ph { height: 200px; }
  .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .vid-strip { grid-template-columns: minmax(0, 1fr); }
  .img-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .kv-row { grid-template-columns: 80px minmax(0, 1fr); }
  .place { grid-template-columns: minmax(0, 1fr); }
  .place .img-ph { width: 100%; max-width: 120px; }
  .copilot-head, .copilot-body, .copilot-sources, .copilot-ask, .copilot-acts { padding-left: 14px; padding-right: 14px; margin-left: 0; margin-right: 0; }
}

/* ===== 71 站点扩展：分类标签颜色 ===== */
.res-cat.cat-airport  { background: #fdf1f3; color: #b5435b; border-color: #f3d4da; }
.res-cat.cat-tutorial { background: #eef3fb; color: #3b6db5; border-color: #d4e0f3; }
.res-cat.cat-guide    { background: #f3f0e8; color: #8a6d3b; border-color: #e6dcc4; }
.res-cat.cat-news     { background: #eaf4ee; color: #3c7a52; border-color: #cfe7d8; }
.res-cat.cat-review   { background: #fef7e8; color: #b5781a; border-color: #f0e0c0; }

/* ===== 机场档位标签 ===== */
.tier-badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; margin-right: 6px; }
.tier-t1 { background: #e11d48; }
.tier-t2 { background: #ea580c; }
.tier-t3 { background: #ca8a04; }
.tier-t4 { background: #16a34a; }
.tier-t5 { background: #0284c7; }
.tier-t6 { background: #57534e; }

/* ===== 详情页正文 ===== */
.detail-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.detail-content h2 { font-size: 20px; margin: 22px 0 10px; }
.detail-content h3 { font-size: 17px; margin: 18px 0 8px; }
.detail-content p { margin: 0 0 12px; }
.detail-content ul, .detail-content ol { margin: 0 0 12px 20px; list-style: disc; }
.detail-content strong { font-weight: 600; }
.detail-content blockquote { margin: 12px 0; padding: 10px 16px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; color: var(--muted); }

/* ===== 机场详情信息行 ===== */
.airport-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 12px 0; padding: 12px 16px; background: var(--bg-soft); border-radius: 8px; }
.airport-meta .meta-item { font-size: 14px; }
.airport-meta .meta-item strong { color: var(--text); }

/* ===== 推广位预留 ===== */
.ad-block { padding: 16px; background: var(--bg-soft); border: 1px dashed var(--border-2); border-radius: var(--radius); text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* ===== 详情页表格 ===== */
.detail-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 18px;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.detail-content thead th {
  background: var(--bg-bar);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border-2);
  white-space: nowrap;
}
.detail-content tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.detail-content tbody tr:last-child td { border-bottom: 0; }
.detail-content tbody tr:nth-child(even) { background: var(--bg-soft); }
.detail-content tbody tr:hover { background: #eef5fc; }
.detail-content tbody td:first-child { font-weight: 600; }
.detail-content td strong, .detail-content th strong { font-weight: 600; }
.detail-content table a { color: var(--accent); }
@media (max-width: 620px) {
  .detail-content table { font-size: 13px; }
  .detail-content thead th, .detail-content tbody td { padding: 8px 10px; }
}

/* ===== 机场详情 CTA 区：访问官网 + 优惠码 ===== */
.detail .res-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  margin: 6px 4px 8px 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.detail .res-act:hover {
  background: var(--link-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.detail .res-act + .res-act {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.detail .res-act + .res-act:hover {
  background: var(--bg-soft);
  color: var(--link-hover);
  transform: none;
}
.detail p.res-cap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 10px 14px;
  background: #fef9ec;
  border: 1px dashed #e7cf8f;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}
.detail p.res-cap strong {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #b5781a;
  letter-spacing: .5px;
}

/* ===== 文末声明块（关于本文 / 评测说明） ===== */
.eeat-box {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.eeat-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.eeat-box p { margin: 0 0 6px; }
.eeat-box p:last-child { margin-bottom: 0; }
.eeat-box a { color: var(--accent); }
.eeat-box a:hover { text-decoration: underline; }

/* ===== 机场测速数据卡片 ===== */
.metric-table {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.metric-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cite);
  margin-bottom: 10px;
}
.metric-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.metric-table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--cite);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-2);
}
.metric-table td {
  padding: 10px 12px;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ===== 文章内链交互 ===== */
.detail-content a[href^="/"] {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 109, 196, .3);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.detail-content a[href^="/"]:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
  background: rgba(15, 109, 196, .07);
  text-decoration: none;
}
.detail-content a[href^="http"]:hover { text-decoration: underline; }

/* ===== 相关阅读 ===== */
.related {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.related-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cite);
  margin-bottom: 10px;
}
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related li {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-2);
}
.related li:last-child { border-bottom: 0; padding-bottom: 0; }
.related li:first-child { padding-top: 0; }
.related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  transition: color .16s ease;
}
.related a::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .45;
}
.related a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

/* ===== 上下篇导航 ===== */
.post-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.post-nav a {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.post-nav a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.post-nav span {
  display: block;
  font-size: 12px;
  color: var(--cite);
  margin-bottom: 4px;
}
.post-nav .post-next { text-align: right; }
.post-empty { flex: 1; min-width: 0; }

/* ===== 面包屑 ===== */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--cite);
}
.crumbs a { color: var(--cite); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span:last-child { color: var(--muted); }
