/* HostCompareHub — Redesigned Style System */
:root {
  /* Core palette */
  --ink: #0f172a;
  --ink-secondary: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --paper: #ffffff;

  /* Brand colors */
  --brand: #2563eb;
  --brand-light: #3b82f6;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --orange: #f59e0b;
  --orange-soft: #fffbeb;
  --purple: #8b5cf6;
  --purple-soft: #f5f3ff;
  --red: #ef4444;

  /* Layout */
  --max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.15);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Noto Sans TC", "Noto Sans CJK SC", "Noto Sans CJK TC", Roboto, Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
}

/* Reset & Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.15; font-weight: 800; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* Container */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.topbar-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 900; letter-spacing: -.04em;
  white-space: nowrap;
}
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,.28);
  flex-shrink: 0;
}
.brand-mark-hch {
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; width: 48px; height: 40px; padding: 6px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2563eb 0%, #10b981 55%, #f59e0b 100%);
  box-shadow: 0 10px 24px rgba(37,99,235,.3);
  overflow: hidden;
}
.brand-mark-hch::before {
  content: ''; position: absolute; inset: 5px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
}
.brand-mark-hch span {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%;
  color: #fff; font-size: .72rem; font-weight: 950; letter-spacing: -.06em;
}
.brand-mark-hch span:nth-child(2) { color: #eafffb; transform: translateY(-2px); }

/* Navigation */
.nav {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; color: var(--ink-secondary); font-size: .86rem; font-weight: 700;
}
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a::before { content: attr(data-icon); display: none; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); }

/* Search toggle */
.search-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: var(--radius-full);
  background: #fff; color: var(--ink-secondary); cursor: pointer;
  transition: all .2s;
}
.search-toggle:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.search-toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* Language selector */
.language-select {
  appearance: none; -webkit-appearance: none;
  min-height: 38px; padding: 0 32px 0 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-full);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font: inherit; font-size: .84rem; font-weight: 800;
  cursor: pointer; transition: border-color .2s;
}
.language-select:hover, .language-select:focus { border-color: var(--brand); outline: none; }

/* Search panel */
.search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(248,250,252,.98);
  backdrop-filter: blur(12px);
}
.search-panel.is-open { display: block; }
.search-inner { display: flex; gap: 12px; padding: 14px 0; }
.search-inner input {
  width: 100%; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: #fff; color: var(--ink); font: inherit;
  transition: border-color .2s;
}
.search-inner input:focus { border-color: var(--brand); outline: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: #fff; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  border-radius: 2px; background: var(--ink);
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 52px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(37,99,235,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(16,185,129,.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(245,158,11,.05) 0%, transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #fff 60%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 24px auto auto 50%;
  width: 420px; height: 420px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(16,185,129,.08));
  filter: blur(40px); pointer-events: none;
}

/* Hero premium (dark) */
.hero-premium { padding: 0; background: #0b1120; }
.hero-premium .wrap {
  position: relative; max-width: none; min-height: 340px;
  overflow: hidden; padding: 48px max(24px, calc((100vw - var(--max)) / 2)) 40px;
  border-radius: 0;
  background:
    linear-gradient(105deg, rgba(11,17,32,.97) 0%, rgba(30,58,138,.88) 40%, rgba(16,185,129,.65) 72%, rgba(245,158,11,.5) 100%);
  box-shadow: none;
}
.hero-premium .wrap::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(251,191,36,.25), transparent 24%),
    radial-gradient(circle at 55% 90%, rgba(16,185,129,.2), transparent 28%),
    repeating-radial-gradient(ellipse at 82% 65%, rgba(147,197,253,.15) 0 1px, transparent 2px 16px);
  opacity: .92; pointer-events: none;
}
.hero-premium h1 {
  max-width: 420px; color: #fff;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.05; letter-spacing: -.05em;
  text-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.hero-premium h1::after {
  content: ''; display: block; width: 100px; height: 4px;
  margin-top: 14px; border-radius: var(--radius-full);
  background: linear-gradient(90deg, #38bdf8, #22c55e, #f59e0b);
}
.hero-premium > .wrap > div:first-child > p:not(.kicker) {
  max-width: 400px; color: #bae1ff; font-size: .95rem; line-height: 1.55;
}
.hero-premium .kicker { color: #93c5fd; }

/* Hero grid layout */
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 48px; align-items: center; justify-content: center;
}
.hero-grid > div:first-child { max-width: 420px; padding-left: 0; }

/* Kicker */
.kicker {
  margin: 0 0 14px;
  color: var(--brand); font-size: .74rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
}

/* Headings */
h1 { margin: 0; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -.06em; }
h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em; }
h3 { font-size: 1.2rem; line-height: 1.2; }

/* Hero paragraph */
.hero p { max-width: 720px; color: var(--ink-secondary); font-size: 1.12rem; }

/* Hero actions */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Hero highlights */
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-highlights span {
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(34,197,94,.14));
  color: #fff; font-size: .74rem; font-weight: 800;
  backdrop-filter: blur(8px);
}

/* Hero illustration carousel */
.hero-carousel {
  position: relative; z-index: 2; width: 100%; height: auto;
}
.hero-carousel-track {
  position: relative; width: 100%; aspect-ratio: 3 / 1;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 28px 40px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  display: grid; place-items: center;
}
.hero-carousel-slide.is-active {
  opacity: 1;
}
.hero-carousel-slide svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 16px;
}
.hero-carousel-dot {
  width: 8px; height: 8px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.25); border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.hero-carousel-dot.is-active {
  background: rgba(255,255,255,.8); width: 24px; border-radius: var(--radius-full);
}
.hero-carousel-label {
  position: absolute; bottom: 12px; left: 16px; z-index: 3;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(0,0,0,.4); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  backdrop-filter: blur(8px);
}

/* Hero illustration */
.hero-illustration { position: relative; min-height: 200px; display: grid; place-items: center; }
.hero-illustration svg { position: relative; z-index: 2; width: min(400px, 100%); height: auto; filter: drop-shadow(0 28px 40px rgba(0,0,0,.3)); }
.mascot-orbit { display: none; }
.banner-pills { display: none; }

/* Hero review card */
.hero-review-card {
  min-height: 0; padding: 20px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-2xl);
  backdrop-filter: blur(12px);
}
.review-card-top {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px;
}
.review-card-top img, .hero-logo-mark {
  width: 58px; height: 58px; object-fit: contain;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: #fff;
}
.hero-logo-mark {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff; font-size: 1.7rem; font-weight: 950; letter-spacing: -.08em;
  box-shadow: 0 12px 26px rgba(124,58,237,.28);
}
.review-card-top b, .review-card-top span { display: block; }
.review-card-top b { font-size: .88rem; }
.review-card-top span { color: var(--muted); font-size: .8rem; }
.review-card-top strong {
  display: grid; place-items: center;
  width: 46px; height: 40px; border-radius: var(--radius-md);
  background: var(--brand-soft); color: var(--brand); font-size: 1.12rem;
}
.hero-review-card p { max-width: none; margin-bottom: 14px; font-size: .8rem; line-height: 1.55; }

/* Mini bars */
.mini-bars { display: grid; gap: 10px; margin: 14px 0 18px; }
.mini-bars span {
  position: relative; display: block; padding-top: 10px;
  color: var(--ink-secondary); font-size: .76rem; font-weight: 800;
}
.mini-bars span::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: var(--radius-full); background: #e8edf5;
}
.mini-bars b {
  position: absolute; top: 0; left: 0; height: 5px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand), var(--green));
}
.hero-review-card .btn { min-height: 38px; padding: 0 16px; border-radius: var(--radius-md); font-size: .8rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-md);
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: .92rem;
  box-shadow: 0 10px 24px rgba(37,99,235,.2);
  border: none; cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37,99,235,.25); }
.btn.secondary {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover { background: var(--soft); border-color: var(--line); transform: none; box-shadow: var(--shadow-md); }
.hero-premium .btn.secondary {
  background: rgba(255,255,255,.94); color: #0f172a;
  border-color: rgba(255,255,255,.38);
}
.hero-premium .btn.secondary:hover { background: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 540px; color: var(--muted); font-size: .96rem; margin: 0; }

/* ===== CATEGORY GRID ===== */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  position: relative; min-height: 180px; padding: 26px;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card::before {
  content: attr(data-icon);
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e0f2fe, #dcfce7 48%, #fef3c7);
  color: var(--brand); font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(37,99,235,.1);
}
.category-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.3); box-shadow: var(--shadow-xl); }
.category-card:hover::before { background: linear-gradient(135deg, var(--brand), var(--green) 54%, var(--orange)); color: #fff; }
.category-card strong { display: block; margin-bottom: 8px; font-size: 1.1rem; letter-spacing: -.02em; }
.category-card span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.category-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.14), rgba(16,185,129,.06) 60%, transparent 64%);
}

/* ===== LAB SECTION (dark) ===== */
.lab-section { background: #0b1120; color: #fff; }
.lab-section .section-head p, .lab-section p { color: #94a3b8; }
.lab-section .section-head h2 { color: #fff; }
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lab-grid article {
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.14);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.05);
  box-shadow: 0 20px 45px rgba(0,0,0,.2);
  transition: transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.lab-grid article:hover { transform: translateY(-3px); border-color: rgba(226,232,240,.25); }
.lab-grid img { width: 100%; height: 364px; object-fit: cover; background: transparent; flex-shrink: 0; }
.lab-grid h3 { margin: 16px 20px 8px; color: #f1f5f9; }
.lab-grid p { margin: 0 20px 16px; color: #94a3b8; font-size: .92rem; }

/* ===== PROVIDER CARDS ===== */
.providers-section { background: var(--soft); }
.providers { display: grid; gap: 18px; }
.provider-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 220px;
  gap: 20px; align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.provider-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--provider-color, var(--brand));
}
.provider-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

/* Ranking cards */
.ranking-list { gap: 20px; }
.provider-rank-card {
  grid-template-columns: 190px minmax(0, 1fr) 150px 170px;
  align-items: center; padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid #e8edf5;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.provider-rank-card::before { display: none; }
.provider-rank-card:hover { transform: translateY(-2px); border-color: #d1dce8; box-shadow: var(--shadow-lg); }

.provider-award {
  min-height: 170px; display: grid; align-content: center; justify-items: start; gap: 18px; padding: 24px;
}
.award-badge {
  position: absolute; left: -1px; top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 140px; padding: 8px 14px;
  background: linear-gradient(135deg, var(--orange), #f97316);
  color: #fff; font-size: .82rem; font-weight: 900;
  border-radius: 0 0 var(--radius-md) 0;
}
.award-badge b, .rank-pill {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: var(--radius-full);
  background: #fff; color: var(--orange); font-weight: 950;
}
.rank-pill {
  position: absolute; left: 20px; top: 20px;
  background: #f1f5f9; color: #697589;
}

.logo-box {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  background: #fff; color: #fff; font-weight: 950; font-size: .98rem;
  letter-spacing: -.04em;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
.logo-box img { max-width: 80%; max-height: 50px; object-fit: contain; }
.logo-box span { display: none; }
.logo-box.logo-fallback { background: linear-gradient(135deg, var(--provider-color, #1e293b), color-mix(in srgb, var(--provider-color, #2563eb) 55%, #fff)); border: 0; }
.logo-box.logo-fallback span { display: block; color: #fff; font-size: .78rem; line-height: 1; }
.logo-box svg { width: 32px; height: 32px; fill: currentColor; }
.logo-box.brand-text { font-size: .74rem; text-align: center; line-height: 1.05; }
.logo-box.brand-hostinger { --provider-color: #8b5cf6; background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.logo-box.brand-kamatera { --provider-color: #0891b2; background: linear-gradient(135deg, #0891b2, #22d3ee); }
.logo-box.brand-cloudways { --provider-color: #2563eb; background: linear-gradient(135deg, #2563eb, #60a5fa); }
.logo-box.brand-ionos { --provider-color: #1e40af; background: linear-gradient(135deg, #1e40af, #3b82f6); }
.logo-box.brand-bluehost { --provider-color: #2563eb; background: linear-gradient(135deg, #2563eb, #60a5fa); }
.logo-box.brand-siteground { --provider-color: #65a30d; background: linear-gradient(135deg, #65a30d, #a3e635); }
.logo-box.brand-digitalocean { --provider-color: #0069ff; background: linear-gradient(135deg, #0069ff, #75b6ff); }
.logo-box.brand-hetzner { --provider-color: #dc2626; background: linear-gradient(135deg, #dc2626, #f87171); }
.logo-box.brand-vultr { --provider-color: #0069ff; background: linear-gradient(135deg, #0069ff, #69bbff); }
.logo-box.brand-a2 { --provider-color: #16a34a; background: linear-gradient(135deg, #16a34a, #4ade80); }
.logo-box.brand-dreamhost { --provider-color: #1e3a5f; background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
.logo-box.brand-namecheap { --provider-color: #ea580c; background: linear-gradient(135deg, #ea580c, #fb923c); }
.logo-box.brand-godaddy { --provider-color: #0d9488; background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.logo-box.brand-liquidweb { --provider-color: #111827; background: linear-gradient(135deg, #111827, #6b7280); }
.logo-box.brand-kinsta { --provider-color: #6d28d9; background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.logo-box.brand-wpengine { --provider-color: #059669; background: linear-gradient(135deg, #059669, #34d399); }

.badge {
  display: inline-flex; margin-bottom: 8px; padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-soft); color: var(--brand);
  font-size: .74rem; font-weight: 800;
}
.provider-card h3 { margin: 0 0 8px; font-size: 1.38rem; letter-spacing: -.02em; }
.provider-card h3::before { content: attr(data-icon); margin-right: 8px; }
.provider-card p { margin: 0 0 12px; color: var(--muted); }

/* Metrics pills */
.metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.metrics span {
  padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--ink-secondary); font-size: .8rem; font-weight: 700;
}

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.filter-bar button {
  min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-full);
  background: #fff; color: var(--ink); font: inherit; font-weight: 800;
  cursor: pointer; transition: all .2s;
}
.filter-bar button.active, .filter-bar button:hover {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand);
}

/* Provider main area */
.provider-main { padding: 24px 6px 18px; }
.deal-link {
  display: inline-block; margin-bottom: 10px;
  color: var(--brand); font-weight: 800;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s;
}
.deal-link:hover { color: var(--brand-dark); }
.feature-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; color: var(--ink); font-size: .92rem; }
.feature-list li::before { content: '\2713'; margin-right: 10px; color: var(--green); font-weight: 950; }

/* Plan drawer */
.plan-drawer { margin: 12px 0 14px; padding: 14px 16px; border: 1px solid #dde5f0; border-radius: var(--radius-md); background: var(--soft); }
.plan-drawer strong { display: block; margin-bottom: 8px; }
.plan-drawer ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; list-style: disc; }
.show-plans {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0; border: 0; background: transparent;
  color: var(--ink-secondary); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer;
}
.show-plans::after { content: '\2304'; font-size: .9rem; }
.show-plans.is-open::after { content: '\2304'; transform: rotate(180deg); }

/* Provider score */
.provider-score { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: .78rem; text-align: center; }
.provider-score .stars { color: var(--orange); letter-spacing: 1px; font-size: .8rem; }
.provider-score strong {
  display: inline-grid; place-items: center;
  min-width: 56px; min-height: 40px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-dark); font-size: 1.4rem;
}
.provider-score a { color: var(--brand); font-weight: 800; }
.provider-score small { color: var(--muted); }

/* Provider action */
.provider-action { display: grid; justify-items: center; gap: 10px; padding: 24px 22px 24px 0; }
.provider-action .price { font-size: 1.6rem; color: var(--ink); font-weight: 900; letter-spacing: -.03em; }
.provider-action .btn { width: 140px; min-height: 40px; border-radius: var(--radius-full); box-shadow: none; }
.coupon-link { color: var(--muted); font-size: .88rem; font-weight: 800; }
.coupon-link b {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: var(--radius-full); background: var(--green); color: #fff; font-size: .76rem;
}

/* Show more */
.show-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.show-more-providers {
  min-height: 44px; padding: 0 24px;
  border: 1.5px solid var(--line); border-radius: var(--radius-full);
  background: #fff; color: var(--ink); font: inherit; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: all .2s;
}
.show-more-providers:hover { border-color: var(--brand); color: var(--brand); }
.provider-rank-card.is-extra:not(.is-visible) { display: none; }
.provider-card[hidden] { display: none; }

/* ===== COUPONS ===== */
.coupon-section { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.coupon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.coupon-card {
  position: relative; display: flex; justify-content: space-between; gap: 18px; align-items: start;
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #fff; box-shadow: var(--shadow-md);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.coupon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.coupon-card::before {
  content: attr(data-icon);
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: var(--radius-md); background: var(--orange-soft); color: var(--orange); font-size: 1.25rem;
}

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 700px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.rating-table strong { color: var(--brand); }

/* ===== ARTICLE PAGES ===== */
.article-hero { padding: 56px 0 40px; }
.article-hero .wrap { max-width: 860px; }
.article-content { max-width: 820px; }
.article-content h2 { margin-top: 10px; margin-bottom: 16px; font-size: 1.7rem; }
.article-content p { margin: 0 0 18px; color: var(--ink-secondary); font-size: 1.04rem; line-height: 1.8; }
.article-content a { color: var(--brand); font-weight: 700; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }

/* Table of contents */
.toc-card {
  position: sticky; top: 88px;
  display: grid; gap: 10px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-md);
}
.toc-card strong { margin-bottom: 4px; }
.toc-card a { color: var(--brand); font-weight: 700; font-size: .9rem; }

/* Author card */
.author-card {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center;
  margin: 18px 0; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-md);
}
.author-card img { width: 62px; height: 62px; border-radius: var(--radius-full); background: var(--brand-soft); object-fit: cover; }
.author-card strong { display: block; }
.author-card span { display: block; color: var(--brand); font-size: .88rem; font-weight: 700; }
.author-card p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Visual card (SVG banner) */
.visual-card { margin: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.visual-card svg { display: block; width: 100%; height: auto; }

/* Editor note */
.editor-note {
  margin-top: 18px; padding: 18px 20px;
  border: 1px solid #d4e2ff; border-radius: var(--radius-lg);
  background: #f5f8ff; color: var(--ink-secondary);
}

/* ===== REVIEW SNAPSHOT ===== */
.review-snapshot { background: linear-gradient(180deg, #fff, var(--soft)); }
.review-snapshot.purple { background: linear-gradient(180deg, #faf5ff, #f3e8ff); }
.review-snapshot.blue { background: linear-gradient(180deg, #f0f9ff, #e0f2fe); }
.review-snapshot.green { background: linear-gradient(180deg, #f0fdf4, #dcfce7); }
.review-snapshot.orange { background: linear-gradient(180deg, #fffbeb, #fef3c7); }
.snapshot-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: center; }
.snapshot-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.snapshot-brand img { width: 70px; height: 70px; object-fit: contain; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.snapshot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.article-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.snapshot-grid .article-photo-grid { grid-template-columns: 1fr; }
.article-photo-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-md); }
.article-photo-grid img { width: 100%; height: 220px; object-fit: cover; }
.article-photo-grid figcaption { padding: 10px 14px; color: var(--muted); font-size: .84rem; }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pros-cons div { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm); }
.pros-cons h3 { margin: 0 0 14px; }
.pros-cons ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; list-style: disc; color: var(--ink-secondary); }

/* Affiliate CTA */
.affiliate-cta { background: linear-gradient(135deg, #0b1120, #1e3a8a); color: #fff; }
.affiliate-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.affiliate-cta h2 { color: #fff; }
.affiliate-cta p { max-width: 680px; color: #93c5fd; margin: 0 0 14px; }
.affiliate-cta .btn { background: #fff; color: var(--brand-dark); box-shadow: none; }
.affiliate-cta .btn:hover { background: var(--soft); }

/* Score grid */
.score-grid, .insight-grid, .contact-grid { display: grid; gap: 18px; }
.score-grid { grid-template-columns: repeat(5, 1fr); }
.score-grid div, .insight-grid div, .contact-grid div {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
.score-grid b, .insight-grid b, .contact-grid b { display: block; margin-bottom: 6px; }
.score-grid span {
  display: inline-grid; place-items: center;
  min-width: 48px; height: 30px; margin-bottom: 10px;
  border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); font-weight: 900;
}
.score-grid p, .insight-grid p, .contact-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Insight grid */
.insight-grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.insight-grid div { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #fff; box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-img { width: 100%; height: 308px; object-fit: cover; background: transparent; flex-shrink: 0; }
.feature-card h3 { margin: 14px 20px 6px; }
.feature-card p { margin: 0 20px 10px; color: var(--muted); font-size: .9rem; }
.feature-card a { display: block; margin: 0 20px 16px; color: var(--brand); font-weight: 800; font-size: .9rem; }

/* FAQ */
.faq-grid { display: grid; gap: 12px; }
.faq-grid details { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.faq-grid summary { cursor: pointer; font-weight: 800; }
.faq-grid p { margin: 12px 0 0; color: var(--muted); font-size: .94rem; }

/* Method section */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.method-box {
  padding: 28px; border-radius: var(--radius-xl);
  background: #0f172a; color: #fff;
}
.method-box h3 { color: #fff; margin-bottom: 12px; }
.method-box p { color: #94a3b8; margin: 0 0 12px; font-size: .94rem; }

/* Legal content */
.legal-content h2 { margin-top: 28px; }

/* ===== FOOTER ===== */
.footer { padding: 48px 0 32px; background: #0b1120; color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer a { display: block; margin: 9px 0; color: #94a3b8; font-size: .9rem; transition: color .2s; }
.footer a:hover { color: #e2e8f0; }
.footer p { color: #64748b; font-size: .9rem; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(226,232,240,.15); color: #475569; font-size: .84rem; }
.footer-legal p { margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { gap: 60px; }
  .hero-grid { grid-template-columns: minmax(0, 380px) 1fr; }
  .hero-grid > div:first-child { max-width: 380px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-rank-card { grid-template-columns: 160px minmax(0, 1fr) 130px 150px; }
  .score-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar-inner { grid-template-columns: auto auto auto; min-height: 62px; }
  .brand span:last-child { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 62px;
    grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
  }
  .nav.is-open { display: grid; }
  .nav a { display: grid; justify-items: center; gap: 5px; min-height: 60px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); font-size: .7rem; text-align: center; }
  .nav a::before { display: block; font-size: 1.05rem; line-height: 1; }
  .nav .search-toggle { width: 100%; height: 60px; border-radius: var(--radius-md); background: var(--soft); }
  .nav-toggle { display: block; order: 3; }
  .header-actions { margin-left: auto; }
  .language-select { max-width: 88px; padding-left: 10px; }
  .hero-grid, .provider-card, .method, .footer-grid, .article-layout, .snapshot-grid { grid-template-columns: 1fr; }
  .hero-grid > div:first-child, .hero-premium h1, .hero-premium > .wrap > div:first-child > p:not(.kicker) { max-width: none; }
  .hero-grid > div:first-child { padding-left: 0; }
  .toc-card { position: static; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-grid img { height: 280px; }
  .feature-img { height: 240px; }
  .provider-rank-card { grid-template-columns: 140px minmax(0, 1fr) 120px 140px; }
  .provider-award { padding: 20px 14px; }
  .provider-action { padding-right: 14px; }
  .coupon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { gap: 10px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: var(--radius-sm); }
  .brand span:last-child { max-width: 110px; }
  .nav { grid-template-columns: repeat(3, 1fr); left: 10px; right: 10px; padding: 10px; }
  .search-inner { display: grid; }
  .search-inner .btn { width: 100%; }
  .hero { padding: 44px 0 32px; }
  .hero-premium .wrap { padding: 32px 20px; }
  .hero-illustration { min-height: 170px; }
  .hero-illustration svg { width: min(310px, 100%); }
  h1 { font-size: clamp(1.9rem, 11vw, 2.8rem); letter-spacing: -.05em; }
  h2 { font-size: clamp(1.45rem, 7.5vw, 2rem); }
  .hero p { font-size: 1rem; }
  .section { padding: 40px 0; }
  .category-grid, .tools-grid, .coupon-grid, .feature-grid, .score-grid, .insight-grid, .lab-grid, .pros-cons, .article-photo-grid { grid-template-columns: 1fr; }
  .lab-grid img { height: 240px; }
  .feature-img { height: 200px; }
  .coupon-card { display: grid; }
  .coupon-card .btn { width: 100%; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .provider-card { padding: 18px; }
  .provider-rank-card { display: grid; padding: 0; grid-template-columns: 1fr; }
  .provider-award { min-height: 110px; padding-top: 54px; }
  .provider-main { padding: 0 18px 18px; }
  .provider-score { justify-items: start; padding: 0 18px 4px; text-align: left; }
  .provider-action { justify-items: stretch; padding: 8px 18px 20px; }
  .provider-action .btn { width: 100%; }
  .feature-list { font-size: .88rem; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-bar button { flex: 0 0 auto; }
  table { min-width: 620px; }
  th, td { padding: 12px; font-size: .88rem; }
  .article-hero { padding: 36px 0 28px; }
  .article-content p { font-size: .98rem; line-height: 1.72; }
  .footer { padding: 36px 0 24px; }
}

/* ===== CHINESE TYPOGRAPHY ===== */
html[lang="zh-CN"] body,
html[lang="zh-TW"] body {
  font-family: "PingFang SC", "PingFang TC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans TC", "Noto Sans CJK SC", "Noto Sans CJK TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-TW"] h1,
html[lang="zh-TW"] h2,
html[lang="zh-TW"] h3 {
  letter-spacing: -.01em;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs { padding: 12px 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .84rem; color: var(--muted); }
.breadcrumb-list li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.breadcrumb-list a { color: var(--brand); font-weight: 700; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list li:last-child { color: var(--ink-secondary); font-weight: 600; }

/* ===== TOOLS GRID ===== */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
  display: block; padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.3); box-shadow: var(--shadow-xl); }
.tool-card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.tool-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
