/* ============================================================
   VPS 精选 (vps-best.com) — 主样式表 v2.0
   设计参考：阿里云 / 腾讯云 国内云厂商审美
   大面积留白 · 渐变 CTA · 科技感卡片 · 清晰价格层次
   ============================================================ */

/* ---- 设计 Token（CSS 变量） -------------------------------- */
:root {
  /* 主色：蓝色系（借鉴腾讯云深蓝 + 阿里云渐变思路） */
  --color-primary:        #2563EB;
  --color-primary-dark:   #1D4ED8;
  --color-primary-light:  #3B82F6;
  --color-primary-ghost:  rgba(37,99,235,.08);

  /* 强调色：绿色（推荐/成功/优惠） */
  --color-secondary:      #059669;
  --color-secondary-dark: #047857;

  /* 品牌色 */
  --color-bwh:            #E53E3E;   /* 搬瓦工红 */
  --color-bwh-light:      #FFF5F5;
  --color-vultr:          #007BFC;   /* Vultr 蓝 */
  --color-vultr-light:    #EBF5FF;
  --color-do:             #0069FF;   /* DigitalOcean 蓝 */
  --color-do-light:       #EBF3FF;
  --color-cw:             #1A9E5C;   /* Cloudways 绿 */
  --color-cw-light:       #F0FFF6;
  --color-kinsta:         #5B21B6;   /* Kinsta 紫 */
  --color-kinsta-light:   #F5F3FF;

  /* 状态色 */
  --color-warning:        #D97706;
  --color-danger:         #DC2626;

  /* 文字 */
  --color-text:           #1F2937;
  --color-text-muted:     #6B7280;
  --color-text-light:     #9CA3AF;

  /* 背景 */
  --color-bg:             #F5F7FA;   /* 阿里云/腾讯云惯用的浅灰蓝底 */
  --color-bg-card:        #FFFFFF;
  --color-bg-section:     #F8FAFD;   /* 区块交替背景 */

  /* 边框 */
  --color-border:         #E5E7EB;
  --color-border-light:   #F3F4F6;

  /* 特色高亮 */
  --color-featured:       #EFF6FF;
  --color-featured-border:#BFDBFE;

  /* 圆角 */
  --radius:               8px;
  --radius-sm:            4px;
  --radius-lg:            12px;
  --radius-xl:            16px;

  /* 布局 */
  --max-width:            1200px;
  --nav-height:           60px;

  /* 阴影（腾讯云式：层次感强但不夸张） */
  --shadow-sm:            0 1px 4px rgba(0,0,0,.06);
  --shadow-md:            0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:            0 8px 32px rgba(0,0,0,.12);
  --shadow-card:          0 2px 8px rgba(37,99,235,.06), 0 1px 3px rgba(0,0,0,.05);
  --shadow-card-hover:    0 8px 28px rgba(37,99,235,.13), 0 2px 8px rgba(0,0,0,.07);

  /* 动效 */
  --transition:           0.22s cubic-bezier(.4,0,.2,1);

  /* 字体（国内优先） */
  --font-sans:            "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
                          system-ui, -apple-system, sans-serif;
}

/* ---- 重置 & 基础 ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5em; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }

/* ---- 布局容器 --------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.main-content {
  order: 1;
}

.sidebar {
  order: 2;
}

/* ---- Header / 导航 --------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-logo:hover { color: var(--color-primary-dark); text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--color-primary-ghost);
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav a.active {
  font-weight: 600;
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body { padding-top: var(--nav-height); }

/* ---- Hero 区 --------------------------------------------- */
.hero {
  /* 腾讯云式：深蓝渐变背景 + 微妙几何感 */
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(59,130,246,.12) 0%, transparent 70%),
    linear-gradient(160deg, #EBF3FF 0%, #F0F7FF 40%, #F5F7FA 100%);
  padding: 72px 0 68px;
  text-align: center;
  border-bottom: 1px solid #DBEAFE;
  position: relative;
  overflow: hidden;
}

/* 装饰性背景圆点（阿里云风格） */
.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(5,150,105,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .45em;
  letter-spacing: -0.025em;
  position: relative;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.2em;
  position: relative;
}

/* ---- CTA 按钮 -------------------------------------------- */
/* 主按钮：渐变（阿里云/腾讯云风格） */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  background: linear-gradient(135deg, #007BFC 0%, #0052CC 100%);
  color: #fff;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0, 123, 252, 0.3);
  letter-spacing: .01em;
}

.cta-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 252, 0.4);
  color: #fff;
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(0);
  filter: brightness(.96);
}

.cta-button.secondary {
  background: #fff;
  color: #007BFC;
  border: 1.5px solid #007BFC;
  box-shadow: none;
}
.cta-button.secondary:hover {
  background: #EBF5FF;
  color: #0052CC;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cta-button.primary-blue {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 2px 8px rgba(37,99,235,.30);
}
.cta-button.primary-blue:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,.40);
}

/* ---- CTA 区块 -------------------------------------------- */
.cta-box {
  background: linear-gradient(135deg, #1E40AF 0%, var(--color-primary) 50%, #2563EB 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 8px 32px rgba(37,99,235,.20);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2, .cta-box h3 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.88); }

.cta-box .cta-button {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.cta-box .cta-button:hover {
  background: #F0F9FF;
  color: var(--color-primary-dark);
  filter: none;
}

/* cta-box 内 secondary 按钮也用白底，保证深色背景下可读 */
.cta-box .cta-button.secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.cta-box .cta-button.secondary:hover {
  background: #F0F9FF;
  color: var(--color-primary-dark);
}

/* ---- 区块通用 -------------------------------------------- */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: .3em;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2.5em;
  font-size: .95rem;
}

/* ---- 产品卡片 -------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: #BFDBFE;
}

.product-card.featured {
  border: 2px solid var(--color-primary);
  background: var(--color-featured);
  box-shadow: 0 4px 20px rgba(37,99,235,.13);
}

.product-card.featured::before {
  content: "★ 强烈推荐";
  position: absolute;
  top: -1px;
  right: 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  letter-spacing: .04em;
}

.product-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-card .card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.product-card .card-desc {
  color: var(--color-text-muted);
  font-size: .9rem;
  margin: 0;
  flex: 1;
}

.product-card .card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card .card-price span {
  font-size: .875rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-card .card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .875rem;
}

.product-card .card-features li {
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.product-card .card-features li::before {
  content: "✓";
  color: var(--color-secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-card .card-cta {
  margin-top: auto;
  text-align: center;
}

/* ---- 品牌色顶部边框（产品卡片） --------------------------- */
.product-card.brand-bwh     { border-top: 3px solid var(--color-bwh); }
.product-card.brand-vultr   { border-top: 3px solid var(--color-vultr); }
.product-card.brand-do      { border-top: 3px solid var(--color-do); }
.product-card.brand-cw      { border-top: 3px solid var(--color-cw); }
.product-card.brand-kinsta  { border-top: 3px solid var(--color-kinsta); }

/* ---- 标签 ------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.tag-blue   { background: #DBEAFE; color: #1E40AF; }
.tag-green  { background: #D1FAE5; color: #065F46; }
.tag-orange { background: #FEF3C7; color: #92400E; }
.tag-gray   { background: #F3F4F6; color: #374151; }
.tag-red    { background: #FEE2E2; color: #991B1B; }
.tag-purple { background: #EDE9FE; color: #4C1D95; }

/* ---- 价格表 ----------------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 16px 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-table th,
.pricing-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-table th {
  background: var(--color-bg-section);
  font-weight: 600;
  font-size: .8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: var(--color-featured); transition: background .15s; }

.pricing-table td.recommended,
.pricing-table th.recommended {
  background: var(--color-featured);
  color: var(--color-primary);
  font-weight: 600;
}

.pricing-table .highlight-row td {
  background: var(--color-featured);
  font-weight: 600;
}

/* ---- 对比表格 --------------------------------------------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.compare-table thead tr th {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  white-space: nowrap;
  border-bottom: none;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

/* 推荐列高亮 */
.compare-table th.col-highlight,
.compare-table td.col-highlight {
  background: var(--color-featured);
  box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary);
}

.compare-table thead th.col-highlight {
  background: var(--color-primary-dark);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  background: var(--color-bg-section);
  white-space: nowrap;
}

.compare-table thead th:first-child {
  background: var(--color-primary-dark);
  color: #fff;
}

.compare-table tbody tr:nth-child(even) td:not(.col-highlight):not(:first-child) { background: #FAFBFD; }
.compare-table tbody tr:hover td { background: var(--color-featured); transition: background .15s; }
.compare-table .win { color: var(--color-secondary); font-weight: 700; }

/* 表格滚动容器 */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius-lg);
}

.table-wrap > table {
  margin: 0;
}

/* ---- 优缺点 ----------------------------------------------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.pros-cons .pros,
.pros-cons .cons {
  border-radius: var(--radius);
  padding: 20px;
}

.pros-cons .pros {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.pros-cons .cons {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
}

.pros-cons h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .75em;
}

.pros-cons .pros h4 { color: var(--color-secondary); }
.pros-cons .cons h4 { color: var(--color-warning); }

.pros-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .875rem;
}

.pros-cons ul li {
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.pros-cons .pros ul li::before { content: "✓"; color: var(--color-secondary); font-weight: 700; }
.pros-cons .cons ul li::before { content: "✗"; color: var(--color-warning); font-weight: 700; }

/* ---- 步骤教程 --------------------------------------------- */
.step-guide { margin: 24px 0; }

.step-guide .step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-guide .step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(37,99,235,.28);
}

.step-guide .step-content h3 { margin-top: 0; }

/* ---- 步骤截图占位（旧版保留兼容） ------------------------- */
.step-screenshot {
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  margin: 12px 0;
  color: var(--color-text-muted);
  font-size: .85rem;
}

.step-screenshot .ss-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.step-screenshot .ss-caption {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

/* ---- 步骤视觉块（SVG 内联截图）新版 ----------------------- */
.step-visual {
  background: #F8FAFD;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  margin: 12px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 仿浏览器顶部工具栏 */
.step-visual::before {
  content: "● ● ●";
  display: block;
  background: #E5E7EB;
  color: #9CA3AF;
  font-size: .7rem;
  padding: 8px 14px;
  letter-spacing: 3px;
  border-bottom: 1px solid var(--color-border);
}

.step-visual svg,
.step-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.step-visual .sv-caption {
  padding: 10px 16px;
  font-size: .8rem;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border-light);
  background: #fff;
}

/* ---- 评分 ------------------------------------------------- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rating .stars {
  color: #F59E0B;
  letter-spacing: 1px;
}

.rating .score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.rating .total {
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ---- 面包屑 ----------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--color-text-muted);
  padding: 12px 0;
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-text-light); }
.breadcrumb .current { color: var(--color-text); }

/* ---- 目录（TOC） ------------------------------------------ */
.toc {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: .875rem;
}

.toc h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-muted);
  margin-bottom: .75em;
}

.toc ol, .toc ul { padding-left: 1.25em; margin: 0; }
.toc li { padding: 3px 0; }
.toc a { color: var(--color-text-muted); }
.toc a:hover, .toc a.active { color: var(--color-primary); text-decoration: none; }
.toc a.active { font-weight: 600; }

/* ---- 提示框 ----------------------------------------------- */
.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
  border-left: 4px solid;
  font-size: .9rem;
}

.alert.info {
  background: #EFF6FF;
  border-color: var(--color-primary);
  color: #1E40AF;
}

.alert.warning {
  background: #FFF7ED;
  border-color: var(--color-warning);
  color: #92400E;
}

.alert.success {
  background: #F0FDF4;
  border-color: var(--color-secondary);
  color: #065F46;
}

.alert.danger {
  background: #FEF2F2;
  border-color: var(--color-danger);
  color: #991B1B;
}

/* ---- 交叉推荐区 ------------------------------------------- */
.cross-sell {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1px solid var(--color-featured-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 32px 0;
}

.cross-sell h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: .75em;
}

.cross-sell .cross-sell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cross-sell-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.cross-sell-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cross-sell-item strong { font-size: .9rem; }
.cross-sell-item p { font-size: .8rem; color: var(--color-text-muted); margin: 0; }

/* ---- FAQ / details/summary ------------------------------- */
.faq-section { padding: 40px 0; }

.faq-section .section-title {
  text-align: center;
  margin-bottom: 2em;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
  transition: background var(--transition);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary {
  background: var(--color-featured);
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

/* ---- 侧边栏 ----------------------------------------------- */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.sidebar-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-muted);
  margin-bottom: .75em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* ---- 文章卡片 --------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.article-card .card-meta {
  font-size: .8rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card h3 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.45;
}

.article-card p {
  font-size: .875rem;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .read-more {
  font-size: .85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: auto;
}

/* ---- 特点区 ----------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.feature-item .icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.feature-item h3 { font-size: 1rem; margin-bottom: .35em; }
.feature-item p { font-size: .875rem; color: var(--color-text-muted); margin: 0; }

/* ---- 主内容 ----------------------------------------------- */
.main-content {
  min-width: 0;
}

.main-content h2 {
  margin-top: 2em;
  margin-bottom: .6em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--color-border-light);
}

.main-content h3 { margin-top: 1.5em; }

/* 表格外层滚动由 HTML 的 overflow-x:auto div 包裹处理，
   表格自身保持 table 布局，不要用 display:block */
.main-content table {
  width: 100%;
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 52px 0 28px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo {
  color: #fff;
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: .85rem;
  color: #64748B;
  margin: 0;
  line-height: 1.65;
}

.footer-col h4 {
  color: #F1F5F9;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
}

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

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #64748B;
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #CBD5E1; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: #475569;
}

.footer-bottom a { color: #64748B; }
.footer-bottom a:hover { color: #94A3B8; text-decoration: none; }

/* ---- 辅助工具 --------------------------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.badge {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* ---- 快速选择卡片（5列） ---------------------------------- */
.quick-pick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.quick-pick-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.quick-pick-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

/* 品牌色顶部线（快速选择卡） */
.quick-pick-card.brand-bwh    { border-top: 3px solid var(--color-bwh); }
.quick-pick-card.brand-vultr  { border-top: 3px solid var(--color-vultr); }
.quick-pick-card.brand-do     { border-top: 3px solid var(--color-do); }
.quick-pick-card.brand-cw     { border-top: 3px solid var(--color-cw); }
.quick-pick-card.brand-kinsta { border-top: 3px solid var(--color-kinsta); }

.quick-pick-card .qp-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.quick-pick-card .qp-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.quick-pick-card .qp-desc {
  font-size: .8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.quick-pick-card .qp-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 4px;
}

.quick-pick-card .qp-link {
  display: inline-block;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 5px 14px;
  border: 1.5px solid var(--color-primary);
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}

.quick-pick-card .qp-link:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* 使用场景标签（30秒选VPS区域） */
.quick-pick-card .qp-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .03em;
}

/* ---- 推荐排行卡片 ----------------------------------------- */
.rank-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.rank-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.rank-card.rank-featured {
  border: 2px solid var(--color-primary);
  background: linear-gradient(160deg, #F8FBFF 0%, #EEF5FF 100%);
  box-shadow: 0 4px 24px rgba(37,99,235,.14);
}

/* 品牌色左侧竖条（排行卡） */
.rank-card.brand-bwh    { border-left: 4px solid var(--color-bwh); }
.rank-card.brand-vultr  { border-left: 4px solid var(--color-vultr); }
.rank-card.brand-do     { border-left: 4px solid var(--color-do); }
.rank-card.brand-cw     { border-left: 4px solid var(--color-cw); }
.rank-card.brand-kinsta { border-left: 4px solid var(--color-kinsta); }

/* featured 时左侧竖条由 border 覆盖，额外处理 */
.rank-card.rank-featured.brand-bwh { border-left-color: var(--color-bwh); }

.rank-card .rank-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.rank-card .rank-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 0 0 var(--radius) var(--radius);
  color: #fff;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.rank-card .rank-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.rank-card .rank-tagline {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin: 5px 0 0;
}

/* 价格显示：大字 + 单位 */
.rank-card .rank-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid #BFDBFE;
}

.rank-card .rank-price span {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.rank-card .rank-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.rank-card .rank-highlights .rh-item {
  background: linear-gradient(135deg, #F0F9FF 0%, #EFF6FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  font-size: .8rem;
  box-shadow: 0 1px 3px rgba(37,99,235,.08);
}

.rank-card .rank-highlights .rh-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.rank-card .rank-highlights .rh-label {
  display: block;
  font-size: .75rem;
  color: var(--color-text-muted);
}

.rank-card .rank-highlights .rh-item .rh-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.rank-card .rank-highlights .rh-item .rh-label {
  color: var(--color-text-muted);
  display: block;
  margin-top: 2px;
  font-size: .75rem;
}

.rank-card .rank-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: .85rem;
}

.rank-card .rank-features li::before {
  content: "●";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 6px;
  font-size: .6rem;
}

.rank-card .rank-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
}

.rank-card .rank-actions .cta-button {
  min-width: 160px;
  text-align: center;
  color: #fff;
  border: none;
  padding: 11px 28px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.rank-card .rank-actions .cta-button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.rank-card .rank-actions .cta-button:active {
  transform: translateY(0);
  filter: brightness(.96);
}

.rank-card .rank-actions .action-primary-red {
  background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.rank-card .rank-actions .action-primary-red:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.35);
}

.rank-card .rank-actions .action-primary-blue {
  background: linear-gradient(135deg, #007BFC 0%, #0052CC 100%);
  box-shadow: 0 2px 8px rgba(0, 123, 252, 0.3);
}

.rank-card .rank-actions .action-primary-blue:hover {
  background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
  box-shadow: 0 6px 20px rgba(0, 123, 252, 0.4);
}

.rank-card .rank-actions .action-official {
  min-width: 160px;
  background: linear-gradient(135deg, #007BFC 0%, #0052CC 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 123, 252, 0.3);
}

.rank-card .rank-actions .action-official:hover {
  background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 123, 252, 0.4);
}

/* ---- 移动端响应式（768px 断点） ----------------------------- */
@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.45rem; }

  /* 导航 */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 10px 12px;
    font-size: .95rem;
    border-radius: var(--radius-sm);
  }

  /* 布局 */
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .cross-sell .cross-sell-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-grid { grid-template-columns: 1fr; }

  .features-grid,
  .features-grid[style] {
    grid-template-columns: 1fr 1fr !important;
  }

  .quick-pick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .quick-pick-grid .quick-pick-card:last-child {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .rank-card { padding: 20px; }
  .rank-card .rank-highlights { grid-template-columns: 1fr 1fr; }

  .compare-table { font-size: .8rem; }
  .compare-table th, .compare-table td { padding: 8px 10px; }

  .pricing-table { font-size: .85rem; }
  .pricing-table th, .pricing-table td { padding: 8px 10px; }

  .step-guide .step { gap: 12px; }
  .step-guide .step-number { width: 32px; height: 32px; font-size: .875rem; }

  .cta-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .product-card { padding: 18px; }
  .faq-item summary { padding: 14px 16px; font-size: .9rem; }
  .cta-button { padding: 10px 20px; font-size: .92rem; }

  .quick-pick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-card .rank-price { font-size: 1.3rem; }
}

/* ---- 面包屑导航 -------------------------------- */
.breadcrumb {
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 0;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: #2563EB;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.breadcrumb span {
  color: #6B7280;
  margin: 0 4px;
}

.breadcrumb .current {
  color: #374151;
  font-weight: 500;
}
