/* ===== World Best VPS Design System v1 ===== */
/* 专业科技蓝色系，高端综合VPS评测站 */
/* 基线标准：world-vps.com (2026-03-16) */

:root {
  /* === 品牌蓝色系 === */
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8faff;
  --bg-header: #0f172a;
  --bg-header-light: #1e293b;
  --bg-footer: #1e293b;
  --bg-copyright: #0f172a;
  --bg-banner: #0f172a;
  --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);

  /* === 强调色 === */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-dark: #1e40af;
  --accent-light: rgba(37,99,235,.08);
  --accent-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
  --accent-green: #16a34a;
  --accent-green-hover: #15803d;
  --accent-orange: #ea580c;
  --accent-red: #dc2626;
  --accent-yellow: #eab308;
  --accent-cyan: #0891b2;

  /* === 文字色 === */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --text-price: #16a34a;
  --text-link: #2563eb;

  /* === 边框与阴影 === */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.08), 0 8px 32px rgba(0,0,0,.04);
  --shadow-card: 0 2px 8px rgba(0,0,0,.06);

  /* === 布局 === */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --nav-height: 64px;
  --max-width: 1100px;
  --transition: .2s ease;

  /* === 字体 === */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;

  /* === Spacing === */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-section: 64px;
  --line-height-body: 1.75;
  --line-height-tight: 1.4;

  /* === 表格 === */
  --bg-table-head: #1e293b;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-base);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-lg); }

/* ===== Header / Nav ===== */
.header { background: var(--bg-header); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-lg); }
.nav-logo { color: var(--text-white); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.nav-logo .logo-icon { font-size: 1.4rem; }
.nav-logo .logo-globe { flex-shrink: 0; }
.nav-links { display: flex; gap: var(--spacing-lg); align-items: center; }
.nav-links a { color: #cbd5e1; font-size: .9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text-white); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-white); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero { background: var(--bg-hero); color: var(--text-white); padding: 80px 0 72px; text-align: center; }
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; line-height: var(--line-height-tight); }
.hero .subtitle { font-size: 1.15rem; color: #94a3b8; max-width: 700px; margin: 0 auto 32px; line-height: 1.7; }
.hero-sm { background: var(--bg-hero); color: var(--text-white); padding: 48px 0 40px; text-align: center; }
.hero-sm h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.hero-sm .subtitle { font-size: 1rem; color: #94a3b8; }
.hero-badges { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.hero-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 6px 16px; border-radius: 20px; font-size: .85rem; color: #cbd5e1; }

/* ===== Section ===== */
.section { padding: var(--spacing-section) 0; }
.section:nth-child(even) { background: var(--bg-secondary); }
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; text-align: center; }
.section-desc { color: var(--text-muted); text-align: center; max-width: 650px; margin: 0 auto var(--spacing-xl); font-size: .95rem; }

/* ===== Cards ===== */
.card-grid { display: grid; gap: var(--spacing-lg); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(5, 1fr); }
.card-grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-featured { border-color: var(--accent); border-width: 2px; position: relative; }
.card-featured::before {
  content: "推荐";
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: var(--text-white);
  padding: 2px 14px; border-radius: 12px;
  font-size: .8rem; font-weight: 600;
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.card-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; line-height: 1.65; }
.card-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.card-tag { font-size: .8rem; color: var(--accent); background: var(--accent-light); padding: 3px 10px; border-radius: 4px; font-weight: 500; }
.card-price { font-size: 1.3rem; font-weight: 800; color: var(--text-price); }
.card-price-period { font-size: .8rem; color: var(--text-muted); font-weight: 400; }

/* ===== Plans / Provider Cards ===== */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-lg) var(--spacing-xl);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.plan-card .plan-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.plan-card .plan-price { font-size: 1.5rem; font-weight: 800; color: var(--text-price); margin-bottom: 4px; }
.plan-card .plan-period { font-size: .8rem; color: var(--text-muted); margin-bottom: 16px; }
.plan-card .plan-features { text-align: left; margin-bottom: 20px; }
.plan-card .plan-features li { padding: 4px 0; font-size: .88rem; color: var(--text-secondary); }
.plan-card .plan-features li::before { content: "✓ "; color: var(--accent-green); font-weight: 700; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--text-white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--text-white); transform: translateY(-1px); }
.btn-green { background: var(--accent-green); color: var(--text-white); }
.btn-green:hover { background: var(--accent-green-hover); color: var(--text-white); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-sm { padding: 6px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin: var(--spacing-lg) 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--bg-table-head); color: var(--text-white); }
th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: .85rem; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
tbody tr:hover { background: var(--accent-light); }
.table-highlight { background: rgba(37,99,235,.04); font-weight: 600; }

/* ===== Content ===== */
.content { padding: var(--spacing-section) 0; }
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: var(--spacing-xl); }
.content-main { min-width: 0; }
.content-main h2 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-light); }
.content-main h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 28px 0 12px; }
.content-main p { margin-bottom: 16px; }
.content-main ul, .content-main ol { margin: 12px 0 16px 20px; }
.content-main li { margin-bottom: 6px; list-style: disc; }
.content-main ol li { list-style: decimal; }
.content-main blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 16px 20px; margin: 16px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}
.content-main code {
  background: #f1f5f9; padding: 2px 6px;
  border-radius: 3px; font-family: var(--font-mono);
  font-size: .85em; color: var(--accent-dark);
}
.content-main pre {
  background: var(--bg-header); color: #e2e8f0;
  padding: 20px; border-radius: var(--radius);
  overflow-x: auto; margin: 16px 0;
  font-family: var(--font-mono); font-size: .85rem;
  line-height: 1.6;
}

/* ===== Sidebar ===== */
.sidebar {}
.sidebar-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.sidebar-box h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.sidebar-box ul li { padding: 6px 0; }
.sidebar-box ul li a { color: var(--text-secondary); font-size: .9rem; }
.sidebar-box ul li a:hover { color: var(--accent); }

/* ===== TOC ===== */
.toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--spacing-lg); margin-bottom: var(--spacing-xl); }
.toc h3 { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.toc ul { margin-left: 0; }
.toc li { list-style: none; padding: 4px 0; }
.toc a { color: var(--text-muted); font-size: .88rem; }
.toc a:hover { color: var(--accent); }

/* ===== FAQ ===== */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--text-muted); transition: transform var(--transition); }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 16px; color: var(--text-secondary); font-size: .92rem; display: none; }
.faq-a.open { display: block; }

/* ===== Highlights / Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-lg); }
.feature-item { text-align: center; padding: var(--spacing-lg); }
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-title { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.feature-desc { font-size: .85rem; color: var(--text-muted); }

/* ===== Pros & Cons ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); margin: var(--spacing-lg) 0; }
.pros, .cons { background: var(--bg-card); border-radius: var(--radius); padding: var(--spacing-lg); }
.pros { border-left: 4px solid var(--accent-green); }
.cons { border-left: 4px solid var(--accent-red); }
.pros h4, .cons h4 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.pros h4 { color: var(--accent-green); }
.cons h4 { color: var(--accent-red); }
.pros li::before { content: "✓ "; color: var(--accent-green); font-weight: 700; }
.cons li::before { content: "✗ "; color: var(--accent-red); font-weight: 700; }
.pros li, .cons li { list-style: none; padding: 4px 0; font-size: .9rem; }

/* ===== Rating ===== */
.rating { display: inline-flex; gap: 2px; }
.rating-star { color: var(--accent-yellow); font-size: 1rem; }
.rating-star.empty { color: #e2e8f0; }
.rating-score { font-weight: 700; color: var(--text-primary); margin-left: 8px; font-size: .9rem; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 12px 0; font-size: .82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--accent-gradient); color: var(--text-white);
  padding: 40px; border-radius: var(--radius-lg);
  text-align: center; margin: var(--spacing-xl) 0;
}
.cta-banner h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { margin-bottom: 20px; font-size: .95rem; opacity: .9; }
.cta-banner .btn { background: var(--text-white); color: var(--accent); font-weight: 700; }
.cta-banner .btn:hover { background: #f0f2f5; }

/* ===== Compare Badge ===== */
.vs-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-header); color: var(--text-white); padding: 6px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.vs-badge .vs { color: var(--accent-yellow); font-weight: 800; }

/* ===== Footer ===== */
.footer { background: var(--bg-footer); color: #94a3b8; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--spacing-xl); padding-bottom: 40px; }
.footer h4 { color: var(--text-white); font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.footer p { font-size: .85rem; line-height: 1.65; }
.footer ul li { padding: 4px 0; }
.footer ul li a { color: #94a3b8; font-size: .85rem; }
.footer ul li a:hover { color: var(--text-white); }
.footer-bottom { background: var(--bg-copyright); text-align: center; padding: 16px 0; font-size: .8rem; color: #64748b; margin-top: 0; }

/* ===== Back to Top ===== */
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--accent); color: var(--text-white);
  width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; z-index: 99;
  box-shadow: var(--shadow); transition: all var(--transition);
  border: none;
}
.back-top:hover { background: var(--accent-hover); transform: translateY(-2px); }
.back-top.show { display: flex; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg-header); padding: var(--spacing-lg); gap: var(--spacing-md); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-sm h1 { font-size: 1.4rem; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .card-grid-3, .card-grid-4, .card-grid-5, .card-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
  .pros-cons { grid-template-columns: 1fr; }
  .table-wrap { font-size: .82rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--spacing-md); }
  .hero h1 { font-size: 1.4rem; }
  .card-grid-2, .card-grid-3, .card-grid-4, .card-grid-5, .card-grid-6 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: column; align-items: center; }
}
