/* 云猫 yunmao.cloud · 阅读型站点样式。系统字体栈，浅色/深色随系统，正文行宽约 680px。 */

:root {
  --bg: #fbfaf7;
  --bg-raised: #ffffff;
  --text: #1c1a16;
  --text-muted: #5c574c;
  --text-faint: #8a8477;
  --border: #e6e1d6;
  --accent: #b5541f;
  --accent-soft: #f3e6da;
  --link: #8a4416;
  --code-bg: #f1ede3;
  --ad-bg: #fbeee0;
  --ad-text: #8a5a1c;
  --shadow: 0 1px 2px rgba(28, 26, 22, 0.06);
  --max-width: 680px;
  --ok: #2c7a4b;
  --ok-bg: #e3f1e7;
  --warn-bg: #fcf0c8;
  --warn-text: #7a5600;
  --warn-border: #e5cd7d;
  --track: #e6e1d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161512;
    --bg-raised: #1e1c18;
    --text: #eae6dc;
    --text-muted: #b3ad9e;
    --text-faint: #837c6d;
    --border: #34302a;
    --accent: #e08a4f;
    --accent-soft: #3a2a1c;
    --link: #eba268;
    --code-bg: #262319;
    --ad-bg: #332616;
    --ad-text: #e0a860;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --ok: #7fcf9c;
    --ok-bg: #1f3326;
    --warn-bg: #3a2f10;
    --warn-text: #f0cf75;
    --warn-border: #6a5518;
    --track: #34302a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* 顶部导航 */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

/* 页面容器 */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.wide {
  max-width: 760px;
}

/* 首页 */
.hero {
  padding: 8px 0 28px;
}

.hero h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.hero p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

@media (max-width: 480px) {
  .scene-grid {
    grid-template-columns: 1fr;
  }
}

.scene-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-raised);
  transition: border-color 0.15s ease;
}

.scene-card:hover {
  border-color: var(--accent);
}

.scene-card .scene-num {
  color: var(--text-faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.scene-card h3 {
  margin: 4px 0 6px;
  font-size: 16px;
  line-height: 1.5;
}

.scene-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ad-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 文章页 */
.article-meta {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0 0 4px;
}

.article-ad-banner {
  display: inline-block;
  margin: 4px 0 22px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ad-bg);
  color: var(--ad-text);
  font-size: 13px;
}

article h1 {
  font-size: 25px;
  line-height: 1.45;
  margin: 0 0 18px;
}

article h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  padding-top: 4px;
}

article h3 {
  font-size: 17px;
  margin: 26px 0 10px;
}

article p {
  margin: 0 0 16px;
}

article ul,
article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

article li {
  margin-bottom: 6px;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}

article th,
article td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

article th {
  background: var(--code-bg);
  font-weight: 600;
}

article code {
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* 长代码块和长英文标识符（如 ICP_NUMBER_MISSING）不许撑出手机屏幕 */
article pre {
  background: var(--code-bg);
  padding: 12px 14px;
  border-radius: 6px;
  margin: 0 0 20px;
  max-width: 100%;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}

article pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}

article p,
article li {
  overflow-wrap: break-word;
}

article td {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  article table {
    display: block;
    overflow-x: auto;
  }
}

article blockquote {
  margin: 0 0 16px;
  padding: 4px 16px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.toc {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 28px;
  background: var(--bg-raised);
  font-size: 14.5px;
}

.toc-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 4px;
}

/* 「怎么买」区块 */
.buy-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 22px 0 30px;
  background: var(--bg-raised);
}

.buy-box h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.buy-box .buy-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.buy-row:last-child {
  margin-bottom: 0;
}

.buy-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.buy-btn:hover {
  opacity: 0.9;
}

.ad-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--ad-bg);
  color: var(--ad-text);
  font-size: 12px;
  font-weight: 600;
}

.buy-program {
  color: var(--text-faint);
  font-size: 12.5px;
}

/* 相关阅读 */
.related {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 17px;
  margin: 0 0 12px;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  margin-bottom: 8px;
}

/* about / 首页文字块 */
.prose h2 {
  font-size: 19px;
  margin: 32px 0 12px;
}

.prose p {
  margin: 0 0 14px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13.5px;
}

.site-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  line-height: 1.8;
}

.site-footer a {
  color: var(--text-muted);
}

/* 404 */
.not-found {
  text-align: center;
  padding: 80px 16px;
}

.not-found h1 {
  font-size: 22px;
}

.not-found-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.not-found-links a {
  font-size: 15px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb .crumb-sep {
  color: var(--text-faint);
  padding: 0 2px;
}

/* 先说结论 */
.tldr-box {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 24px;
}

.tldr-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.tldr-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}

.tldr-body a {
  color: var(--link);
}

/* 常见问题 */
.faq-block {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.faq-block h2 {
  font-size: 19px;
  margin: 0 0 16px;
}

.faq-item {
  margin-bottom: 18px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
}

.faq-a {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-a code {
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* 参考 */
.sources-block {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.sources-block h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.sources-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
}

.sources-block li {
  margin-bottom: 6px;
}

/* 专题导航 */
.cluster-nav {
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
}

.cluster-nav-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cluster-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cluster-nav a {
  font-size: 14.5px;
  text-decoration: none;
  color: var(--link);
}

.cluster-nav li.current a {
  color: var(--text);
  font-weight: 600;
}

/* 上一篇 / 下一篇 */
.prev-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
}

.prev-next a {
  display: inline-block;
  max-width: 48%;
  text-decoration: none;
  color: var(--link);
}

.prev-next .prev {
  text-align: left;
}

.prev-next .next {
  text-align: right;
  margin-left: auto;
}

/* 首页情境入口 */
.start-here {
  margin: 8px 0 32px;
}

.start-here h2 {
  font-size: 17px;
  margin: 0 0 12px;
}

.start-here-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.start-here-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-raised);
  font-size: 14.5px;
}

.start-here-list a:hover {
  border-color: var(--accent);
}

.start-here-list a::after {
  content: "›";
  float: right;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  margin-left: 12px;
}

/* 首页专题区块 */
.home-cluster {
  margin: 0 0 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.home-cluster h2 {
  font-size: 19px;
  margin: 0 0 8px;
}

.home-cluster h2 a {
  color: var(--text);
  text-decoration: none;
}

.home-cluster h2 a:hover {
  color: var(--accent);
}

.cluster-intro {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 14px;
}

.home-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-article-list li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
}

.home-article-list a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.home-article-list a:hover {
  color: var(--accent);
}

.home-article-list p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* VPS 选购站（vps.yunmao.cloud） */
.vg-wide {
  max-width: 1100px;
}

.vg-note,
.vg-basis {
  color: var(--text-faint);
  font-size: 13.5px;
  line-height: 1.7;
}

.vg-group-intro {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: -6px 0 12px;
}

.vg-scenes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

@media (max-width: 600px) {
  .vg-scenes {
    grid-template-columns: 1fr;
  }
}

.vg-scene {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--text);
  text-decoration: none;
  line-height: 1.55;
}

.vg-scene:hover {
  border-color: var(--accent);
}

.vg-scene strong {
  font-size: 15.5px;
}

.vg-who {
  color: var(--text-muted);
  font-size: 13.5px;
}

.vg-first-line {
  color: var(--accent);
  font-size: 13.5px;
  margin-top: 2px;
}

/* ---- 挑选器（V2）：面板 / 控件 / 结果卡 / 因子条 / 对比篮 ---- */
.vg-app {
  display: none;
}

.js .vg-app {
  display: block;
}

.js .vg-app[hidden] {
  display: none;
}

.js .vg-app:empty {
  min-height: 150px;
  margin: 0 0 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
}

.vg-app.vg-home {
  display: grid;
  gap: 20px;
  margin: 8px 0 36px;
}

@media (min-width: 920px) {
  .vg-app.vg-home {
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
    align-items: start;
  }

  .vg-home .vg-panel {
    position: sticky;
    top: 16px;
  }
}

.vg-wide .article-body > p,
.vg-wide .article-body > ul {
  max-width: 720px;
}

.vg-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.vg-panel-scene {
  margin: 0 0 8px;
}

.vg-search {
  position: relative;
}

.vg-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--text-faint);
  pointer-events: none;
}

.vg-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.vg-search input:focus-visible,
.vg-fsel select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.vg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.vg-chips.col {
  max-height: 96px;
  overflow: hidden;
}

.vg-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
}

.vg-chip:hover {
  border-color: var(--accent);
}

.vg-chip.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.vg-none {
  color: var(--text-muted);
  font-size: 14px;
}

.vg-more {
  margin: 6px 0 0;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.vg-more[hidden] {
  display: none;
}

.vg-sel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.vg-panel-scene .vg-sel-head {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.vg-sel-head strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.vg-sel-head span {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.vg-sel-head a {
  flex-shrink: 0;
  font-size: 13.5px;
}

.vg-notice {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--warn-text);
  border-radius: 0 8px 8px 0;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 13.5px;
  line-height: 1.65;
}

.vg-ctrl {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .vg-panel-scene .vg-ctrl {
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
  }

  .vg-panel-scene .vg-check,
  .vg-panel-scene .vg-ctrl-act {
    grid-column: 1 / -1;
  }
}

.vg-q {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.vg-q legend,
.vg-q-row label {
  padding: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.vg-q legend {
  margin-bottom: 6px;
}

.vg-q-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.vg-q-row output {
  color: var(--text-muted);
  font-size: 14px;
}

.vg-q-row output b {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.vg-q-row output small {
  margin-left: 6px;
  color: var(--text-faint);
  font-size: 12px;
}

.vg-q-ends {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12px;
}

.vg-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.vg-seg label {
  position: relative;
  display: block;
}

.vg-seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.vg-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
}

.vg-seg input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.vg-seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vg-q input[type="range"] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}

.vg-q input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--pct, 50%), var(--track) var(--pct, 50%));
}

.vg-q input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-raised);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  -webkit-appearance: none;
}

.vg-q input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: var(--track);
}

.vg-q input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
}

.vg-q input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-raised);
}

.vg-q input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.vg-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 32px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  cursor: pointer;
}

.vg-check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.vg-ctrl-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vg-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.vg-btn:hover {
  border-color: var(--accent);
}

.vg-btn.pri {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.vg-live-w {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.vg-live-t {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.vg-live-t small {
  margin-left: 8px;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 400;
}

.vg-live {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vg-live li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--bg-raised);
  font-size: 14px;
  cursor: pointer;
}

.vg-live li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--code-bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.vg-live li:first-child span {
  background: var(--accent);
  color: #fff;
}

.vg-live li b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vg-live li em {
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

body.has-cmp {
  padding-bottom: 72px;
}

.vg-restore {
  margin: 6px 0 0;
  color: var(--text-faint);
  font-size: 12.5px;
}

.vg-res {
  min-width: 0;
}

.vg-res-head {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.vg-res-head b {
  color: var(--text);
}

.vg-idle,
.vg-empty {
  padding: 28px 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 14.5px;
}

.vg-idle strong,
.vg-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
}

.vg-idle p,
.vg-empty p {
  margin: 4px 0 0;
}

.vg-empty .vg-btn {
  margin-left: 8px;
}

.vg-list {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
}

.vg-extra {
  display: grid;
  gap: 8px 28px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .vg-extra {
    grid-template-columns: 1fr 1fr;
  }
}

.vg-extra h3 {
  margin: 12px 0 4px;
  font-size: 15px;
}

.vg-extra ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 结果卡（挑选器、场景页、全表共用） */
.vg-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.vg-card.vg-first {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-raised) 70%);
  padding: 16px 15px;
}

@media (min-width: 640px) {
  .vg-card {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding: 18px 20px;
  }

  .vg-card.vg-first {
    padding: 18px 19px;
  }

  .vg-why,
  .vg-detail {
    grid-column: 1 / -1;
  }

  .vg-card-side {
    text-align: right;
  }

  .vg-card-side .vg-price {
    justify-content: flex-end;
  }

  .vg-card-side .vg-actions {
    justify-content: flex-end;
  }
}

.vg-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.vg-card h3 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.4;
}

.vg-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--code-bg);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.vg-first .vg-rank {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  line-height: 32px;
}

.vg-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}

.vg-move {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
  animation: vgfade 2.8s ease-out forwards;
}

.vg-move.up {
  background: var(--ok-bg);
  color: var(--ok);
}

.vg-move.dn {
  background: var(--code-bg);
  color: var(--text-muted);
}

@keyframes vgfade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

.vg-country {
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 400;
  vertical-align: 2px;
  white-space: nowrap;
}

.vg-card .vg-spec {
  margin: 8px 0 6px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.vg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.vg-tag {
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.vg-tag-opt {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.vg-tag-ip {
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
}

.vg-warn {
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-weight: 600;
}

.vg-first .vg-tag:not(.vg-tag-opt):not(.vg-tag-ip):not(.vg-warn) {
  background: var(--bg-raised);
}

.vg-card .vg-points,
.vg-card .vg-caution {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.vg-card .vg-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.vg-card .vg-month {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
}

.vg-month strong {
  margin: 0 2px;
  color: var(--text);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.vg-month em {
  font-size: 12px;
  font-style: normal;
  color: var(--text-faint);
}

.vg-card-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.vg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vg-actions .buy-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 16px;
  line-height: 44px;
  text-align: center;
}

.vg-cmp {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.vg-cmp:hover {
  border-color: var(--accent);
}

.vg-cmp.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.vg-cmp-s {
  min-height: 30px;
  margin-top: 6px;
  padding: 0 10px;
  font-size: 12.5px;
}

.vg-detail,
.vg-why {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.vg-detail summary,
.vg-why summary {
  cursor: pointer;
  min-height: 28px;
}

.vg-why summary {
  color: var(--link);
  font-weight: 600;
}

.vg-detail ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.vg-bars {
  display: grid;
  gap: 8px;
  margin: 10px 0 8px;
}

.vg-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  align-items: baseline;
}

.vg-bar-k {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.vg-bar-t {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.vg-bar-t i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vg-bar-v {
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: right;
}

.vg-why-t {
  margin: 4px 0 2px;
  color: var(--text);
  font-size: 13.5px;
}

.vg-why-n {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .vg-bar-t i { transition: none; }
  .vg-move { display: none; }
  .vg-toast { transition: none; }
}

/* 全表：筛选条 + 表格 / 卡片两种形态 */
.vg-fbar {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
}

@media (min-width: 760px) {
  .vg-fbar {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .vg-fbar .vg-search,
  .vg-fbar .vg-fcount,
  .vg-fbar .vg-fchecks {
    grid-column: 1 / -1;
  }
}

.vg-frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 760px) {
  .vg-fbar {
    grid-template-columns: 1fr;
  }
}

.vg-fsel {
  display: grid;
  gap: 4px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.vg-fsel select {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}

.vg-fchecks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.vg-fcount {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.vg-sortbar {
  display: none;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.vg-sortbar button,
.vg-dyn th button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.vg-sortbar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
}

.vg-dyn th button {
  padding: 0;
  white-space: nowrap;
}

.vg-empty-r {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.vg-ops {
  white-space: nowrap;
}

@media (max-width: 759px) {
  .vg-sortbar {
    display: flex;
  }

  .vg-table-wrap.vg-cardmode,
  .vg-table-wrap:has(.vg-dyn) {
    overflow: visible;
    border: 0;
  }

  article .vg-table-wrap table.vg-dyn {
    display: block;
    min-width: 0;
  }

  .vg-dyn thead {
    display: none;
  }

  .vg-dyn tbody,
  .vg-dyn tr,
  .vg-dyn td {
    display: block;
  }

  .vg-dyn tr {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-raised);
  }

  article .vg-dyn td {
    padding: 4px 0;
    border: 0;
  }

  .vg-dyn td[data-l]::before {
    content: attr(data-l);
    display: block;
    color: var(--text-faint);
    font-size: 11.5px;
  }

  .vg-dyn .vg-ops {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 8px;
  }

  .vg-dyn .vg-mini {
    flex: 1;
    min-height: 40px;
    line-height: 30px;
    text-align: center;
  }

  .vg-dyn .vg-cmp-s {
    margin: 0;
    min-height: 40px;
  }
}

/* 对比篮 */
.vg-cmpbar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 16px;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  transform: translateX(-50%);
}

.vg-cmpbar[hidden] {
  display: none;
}

.vg-cmpbar span {
  white-space: nowrap;
}

.vg-cmpbar .vg-btn {
  border-radius: 99px;
  white-space: nowrap;
}

.vg-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.vg-drawer[hidden] {
  display: none;
}

.vg-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  border-radius: 18px 18px 0 0;
  background: var(--bg);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 760px) {
  .vg-drawer {
    align-items: center;
    padding: 24px;
  }

  .vg-sheet {
    max-height: 86vh;
    border-radius: 18px;
  }
}

.vg-sheet-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.vg-sheet-h strong {
  font-size: 16px;
}

.vg-sheet-h span {
  flex: 1;
  color: var(--text-faint);
  font-size: 12.5px;
}

.vg-x {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vg-sheet-b {
  overflow: auto;
  padding: 0 0 16px;
}

.vg-sheet-b table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.vg-sheet-b th,
.vg-sheet-b td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.vg-sheet-b thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  font-size: 14.5px;
}

.vg-sheet-b tbody th {
  position: sticky;
  left: 0;
  width: 84px;
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.vg-sheet-b tr.diff td,
.vg-sheet-b tr.diff th {
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}

.vg-sheet-b tr.diff th {
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (max-width: 639px) {
  .vg-sheet-b table {
    min-width: 0;
    table-layout: fixed;
    font-size: 12.5px;
  }

  .vg-sheet-b th,
  .vg-sheet-b td {
    padding: 8px 6px;
    overflow-wrap: anywhere;
  }

  .vg-sheet-b tbody th {
    width: 58px;
    white-space: normal;
  }

  .vg-sheet-b thead th {
    font-size: 13px;
  }
}

.vg-sheet-b td.best {
  color: var(--accent);
  font-weight: 700;
}

.vg-sheet-b .vg-x {
  float: right;
  min-width: 28px;
  min-height: 28px;
  font-size: 18px;
}

.vg-toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 60;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
}

.vg-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.vg-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

article .vg-table-wrap table {
  display: table;
  min-width: 860px;
  margin: 0;
  font-size: 14px;
}

.vg-table-wrap tr[hidden] {
  display: none;
}

.vg-table-wrap td,
.vg-table-wrap th {
  overflow-wrap: normal;
  vertical-align: top;
}

.vg-plan {
  color: var(--text-faint);
  font-size: 12.5px;
}

.vg-opt {
  color: var(--accent);
}

.vg-table-wrap details {
  color: var(--text-muted);
  font-size: 12.5px;
}

.vg-mini {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
