:root {
  --brand: #0b57d0;
  --brand-deep: #08427f;
  --brand-soft: #eaf1fc;
  --accent: #5b21b6;
  --bg: #eef2f8;
  --ink: #1c2430;
  --muted: #5f6b7a;
  --line: #dfe6ef;
  --ok: #15803d;
  --ok-bg: #e8f5ec;
  --warn: #b45309;
  --warn-bg: #fdf3e3;
  --risk: #b42318;
  --risk-bg: #fdecea;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(11, 87, 208, .35);
  outline-offset: 1px;
}

.text-muted { color: var(--muted) !important; }
.text-secondary { color: var(--muted) !important; }
.bg-primary { background-color: var(--brand) !important; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-deep); --bs-btn-hover-border-color: var(--brand-deep); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }

.compare-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ffc107;
  color: #1c2430;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: 2px;
}

/* ===== hero：缩短、深蓝、任务导向 ===== */
.hero {
  background: linear-gradient(135deg, #0b57d0 0%, #0a4a9e 55%, #15488f 100%);
  color: #fff;
  padding: 2.25rem 0 2rem;
}
.hero h1 { font-weight: 800; letter-spacing: -.01em; }
.hero p { opacity: .9; }
.hero .form-label { color: #dfe8f5; }

/* ===== 卡片 ===== */
.card { border: 0; box-shadow: 0 1px 4px rgba(12, 41, 77, .05); border-radius: .75rem; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(12, 41, 77, .10); }

.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title h2 { font-size: 1.3rem; font-weight: 700; margin: 0; }

.vendor-logo { width: 56px; height: 56px; object-fit: contain; border-radius: .5rem; background: #fff; border: 1px solid var(--line); padding: 6px; }

.price-text { color: var(--brand); font-weight: 700; }
.price-symbol { font-size: .85rem; }
.price-period { font-size: .8rem; color: var(--muted); font-weight: 400; }

.rating-stars { color: #f5b301; }
.rating-value { font-weight: 700; }

.spec-list { font-size: .9rem; }
.spec-list div { display: flex; justify-content: space-between; padding: .45rem .75rem; border-bottom: 1px dashed var(--line); }
.spec-list div:last-child { border-bottom: 0; }
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 600; color: var(--ink); text-align: right; }

.coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--brand-soft);
  border: 1px dashed #9db8f5;
  color: var(--brand);
  border-radius: .375rem;
  padding: .25rem .5rem;
  font-size: .9rem;
  font-weight: 600;
}

.badge-featured { position: absolute; top: 10px; right: 10px; }

/* ===== 数据状态徽章系统：绿=已核验 橙=待更新 红=失效/风险 ===== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-status.is-verified { color: var(--ok); background: var(--ok-bg); }
.badge-status.is-pending  { color: var(--warn); background: var(--warn-bg); }
.badge-status.is-risk     { color: var(--risk); background: var(--risk-bg); }
.badge-status.is-neutral  { color: var(--muted); background: #eef1f6; }

/* ===== 产品卡决策层级 ===== */
.server-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.server-meta .sep { opacity: .5; }
.server-spec-line { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.server-spec-chip {
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 5px 8px;
  font-size: .8rem;
}
.server-spec-chip .k { display: block; color: var(--muted); font-size: .72rem; }
.server-spec-chip .v { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* ===== 测评正文：更像报告 ===== */
.ws-content { line-height: 1.75; font-size: 1rem; color: #2b3038; }
.ws-content h1, .ws-content h2, .ws-content h3 { margin: 1.3em 0 .6em; font-weight: 700; }
.ws-content h2 { font-size: 1.35rem; border-bottom: 2px solid var(--brand-soft); padding-bottom: .3em; }
.ws-content p { margin: .85em 0; }
.ws-content img { max-width: 100%; border-radius: .5rem; border: 1px solid var(--line); }
.ws-content ul, .ws-content ol { padding-left: 1.5em; }
.ws-content blockquote { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: .6em 1em; margin: 1em 0; border-radius: .25rem; }
.ws-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.ws-content table td, .ws-content table th { border: 1px solid var(--line); padding: .45em .6em; }
.ws-content table th { background: #f3f6fb; }

/* ===== 对比页 ===== */
.compare-table th, .compare-table td { min-width: 180px; white-space: normal; }
.compare-swipe { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 2; box-shadow: 1px 0 0 var(--line); }
.compare-table thead th { vertical-align: top; background: #fff; }
.compare-cell.is-best { background: #eefaf1 !important; }
.compare-cell.is-worst { color: var(--muted); }

/* avatar */
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }

/* footer */
footer { background: #182130 !important; }
footer a:hover { color: #fff !important; }

/* flash */
.alert { border: 0; border-radius: .5rem; }

/* 卡片内部防溢出 */
.ws-break { overflow-wrap: anywhere; word-break: break-word; }
.min-w-0 { min-width: 0; }

/* fixed compare bar */
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050; background: rgba(18, 26, 38, .97); box-shadow: 0 -2px 12px rgba(0, 0, 0, .18); }

/* ad slots（低干扰 + 明显“赞助”标识） */
.ad-slot { margin: 0 auto; position: relative; }
.ad-label {
  display: inline-block;
  font-size: .65rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f1f4;
  color: #6a7480;
  margin-bottom: 4px;
}
.ad-slot .ad-banner-img { border-radius: .5rem; }
.ad-text { border: 1px dashed var(--line); border-radius: .5rem; padding: .75rem 1rem; background: #fff; }
.ad-text a { display: block; text-decoration: none; }
.ad-text-title { display: block; color: var(--brand); }
.ad-text-desc { display: block; margin-top: 2px; }
.ad-code { max-width: 100%; overflow: hidden; }

/* review card cover */
.review-cover { height: 168px; object-fit: cover; border-radius: .75rem .75rem 0 0; }
.review-cover-lg { max-height: 420px; object-fit: cover; }
.review-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }

/* server card mini spec */
.spec-mini td { border: 0; }
.spec-mini td:first-child { color: var(--muted); width: 38%; }

/* 商家卡信息行 */
.vendor-card-sub { font-size: .8rem; color: var(--muted); }

@media (max-width: 575.98px) {
  .hero { padding: 1.6rem 0; }
  .ws-content { font-size: .95rem; }
}
