/* CyberPicks - Cybersecurity Review Website Styles v2 */
/* Theme: primary=#1e40af (deep blue), accent=#f59e0b (amber) */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-darker: #172f6e;
  --primary-light: #dbeafe;
  --primary-lighter: #eff6ff;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --accent-dark: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --bg-darker: #0a0f1d;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #059669;
  --success-light: #ecfdf5;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);
  --max-width: 1140px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.nav-logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
}

.nav-logo::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 7px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E") center/cover no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E") center/cover no-repeat;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, var(--primary-dark) 30%, var(--primary) 60%, #312e81 100%);
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: heroGrid 20s linear infinite;
}

@keyframes heroGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Glow orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,64,175,0.3) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: heroOrb 8s ease-in-out infinite alternate;
}

@keyframes heroOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.1); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.18rem;
  opacity: 0.8;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 0 20px;
}

.hero-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 0.88rem;
  opacity: 0.7;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Decorative line under section header */
.section-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ============================================
   AD CONTAINER
   ============================================ */
.ad-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 28px;
  text-align: center;
}

.ad-container ins {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
#categories {
  padding: 80px 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
  opacity: 0;
  transition: opacity 0.35s;
}

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

.cat-card:hover::before {
  opacity: 1;
}

.cat-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-card:hover .cat-icon {
  transform: scale(1.15);
}

.cat-label {
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  color: var(--text);
  transition: color 0.3s;
}

.cat-card:hover .cat-label {
  color: var(--primary);
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ARTICLE CARDS (Grid Layout)
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 var(--radius) var(--radius);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-card:hover::after {
  transform: scaleX(1);
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 3px 13px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.4;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0 0 18px;
  line-height: 1.55;
  flex: 1;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--text-lighter);
  font-weight: 500;
  margin-top: auto;
}

/* Star icon wrapper for meta */
.article-meta::before {
  content: '';
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ARTICLE LIST (Categorized)
   ============================================ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.article-list-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition);
}

.article-list-section:hover {
  box-shadow: var(--shadow-md);
}

.article-list-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-list-section h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.article-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  gap: 12px;
}

.article-list-item:hover {
  background: var(--bg-alt);
}

.article-list-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
  flex: 1;
}

.article-list-item a:hover {
  color: var(--primary);
}

.article-list-item .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .article-list { grid-template-columns: 1fr; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-darker) 50%, var(--primary-dark) 100%);
  color: #fff;
  padding: 72px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(245,158,11,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59,130,246,0.08) 0%, transparent 50%);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.08rem;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  margin: 0 8px;
  position: relative;
  z-index: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.97rem;
  letter-spacing: -0.2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.88rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-darker);
  color: #cbd5e1;
  padding: 56px 0 28px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.footer-grid a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #64748b;
}

.footer-bottom span:last-child {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 16px 0;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   TYPOGRAPHY (Article Pages)
   ============================================ */
h1 { font-size: 2.2rem; font-weight: 800; color: var(--text); margin-bottom: 16px; line-height: 1.3; letter-spacing: -0.5px; }
h2 { font-size: 1.6rem; font-weight: 700; margin: 40px 0 16px; color: var(--text); }
h3 { font-size: 1.3rem; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
h4 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
p { margin-bottom: 16px; }
ul, ol { margin: 0 0 24px 24px; }
li { margin-bottom: 8px; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }

/* ============================================
   SCORE CARD
   ============================================ */
.score-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.score-header h2 { margin: 0; font-size: 1.5rem; }

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(30,64,175,0.3);
}

/* ============================================
   PROS & CONS
   ============================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

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

.pros {
  background: var(--success-light);
  border: 1px solid #a7f3d0;
}

.cons {
  background: var(--danger-light);
  border: 1px solid #fecaca;
}

.pros h3 { color: var(--success); margin-top: 0; font-size: 1.1rem; }
.cons h3 { color: var(--danger); margin-top: 0; font-size: 1.1rem; }
.pros ul, .cons ul { margin-bottom: 0; }

@media (max-width: 768px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 32px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comp-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
}

.comp-table th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.comp-table th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.comp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.comp-table tr:nth-child(even) td {
  background: var(--bg-alt);
}

.comp-table tr:hover td {
  background: var(--primary-lighter);
}

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

.comp-table tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius);
}

.comp-table tr:last-child td:last-child {
  border-radius: 0 0 var(--radius) 0;
}

/* ============================================
   CALLOUT BOX
   ============================================ */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
}

.callout p { margin: 0; }
.callout strong { color: var(--accent-dark); }

/* ============================================
   CTA BOX (in-article)
   ============================================ */
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 44px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 48px 0 32px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  top: -60px;
  right: -60px;
}

.cta-box h2 { color: #fff; margin-top: 0; position: relative; z-index: 1; }
.cta-box p { opacity: 0.9; position: relative; z-index: 1; margin-bottom: 20px; }
.cta-box .btn { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .cta-box { padding: 32px 24px; }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--bg-alt), var(--primary-lighter));
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 { margin-bottom: 8px; color: var(--primary); }
.page-header p { color: var(--text-light); font-size: 1.08rem; }

/* ============================================
   ARTICLE CONTENT
   ============================================ */
article {
  max-width: 780px;
  margin: 0 auto;
}

article h2 {
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

article img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ============================================
   CHECKLIST
   ============================================ */
.checklist {
  counter-reset: checklist;
  list-style: none;
  margin-left: 0;
}

.checklist li {
  counter-increment: checklist;
  padding: 18px 18px 18px 60px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  position: relative;
  transition: all 0.2s;
}

.checklist li:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.checklist li::before {
  content: counter(checklist);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============================================
   STEP LIST
   ============================================ */
.step-list {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
}

.step-list li {
  counter-increment: step;
  padding: 24px 24px 24px 72px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  position: relative;
  transition: all 0.25s;
}

.step-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.step-list li::before {
  content: "Step " counter(step);
  position: absolute;
  left: 20px;
  top: 24px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-list li h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step-list li p:last-child { margin-bottom: 0; }

/* ============================================
   GUIDE META
   ============================================ */
.guide-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ============================================
   PRICE BADGE
   ============================================ */
.price-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============================================
   RATING
   ============================================ */
.rating {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 3px;
}

/* ============================================
   TAG
   ============================================ */
.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}

.toc h3 { margin-top: 0; font-size: 1.1rem; }
.toc ol { margin-bottom: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 620px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.93rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.12);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   LEGAL CONTENT
   ============================================ */
.legal-content h2 { font-size: 1.4rem; margin-top: 36px; }
.legal-content h3 { font-size: 1.15rem; }
.legal-content ul, .legal-content ol { margin-bottom: 20px; }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children animation for grids */
.stagger > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.stagger.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.stagger.visible > *:nth-child(9) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.stagger.visible > *:nth-child(10) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 28px; }
  .hero-stat-num { font-size: 1.8rem; }

  .nav-links { gap: 2px; }
  .nav-links a { font-size: 0.8rem; padding: 6px 10px; }

  .section-header h2 { font-size: 1.6rem; }

  h1 { font-size: 1.7rem; }
  article { padding: 0 16px; }

  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { gap: 20px; flex-direction: column; }

  .cta-section { padding: 48px 20px; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section .btn { display: block; margin: 8px 0; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* E-E-A-T: author box + FAQ */
.author-box{display:flex;gap:1rem;align-items:flex-start;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:1.25rem 1.5rem;margin:2rem 0;}
.author-avatar{flex-shrink:0;width:52px;height:52px;border-radius:50%;background:var(--primary, #1e40af);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.05rem;letter-spacing:.02em;}
.author-info{min-width:0;}
.author-name{font-weight:700;font-size:1rem;color:#111827;}
.author-role{font-size:.82rem;color:#6b7280;margin:.1rem 0 .4rem;}
.author-bio{margin:0;font-size:.9rem;line-height:1.6;color:#374151;}
.faq-section{margin:1.5rem 0 2rem;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;}
.faq-item{border-bottom:1px solid #e5e7eb;}
.faq-item:last-child{border-bottom:none;}
.faq-item summary{cursor:pointer;padding:.95rem 1.25rem;font-weight:600;font-size:.95rem;color:#111827;list-style:none;position:relative;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+";position:absolute;right:1.25rem;color:var(--primary, #1e40af);font-weight:700;}
.faq-item[open] summary::after{content:"-";}
.faq-item p{margin:0;padding:0 1.25rem 1rem;font-size:.92rem;line-height:1.65;color:#374151;}
@media (max-width:560px){.author-box{flex-direction:column;gap:.6rem;}}


/* ===== D2 v2 视觉补救：文章主视觉 + 文中第二图 (2026-09-12) ===== */
.article-hero{margin:1.75rem 0 2rem;}
.article-hero img{display:block;width:100%;height:auto;border-radius:12px;
  box-shadow:0 12px 32px -18px rgba(15,23,42,.45);}
.article-hero figcaption{margin-top:.6rem;font-size:.85rem;line-height:1.5;
  color:#6b7280;text-align:center;}
.inline-figure{margin:2rem 0;}
.inline-figure img{display:block;width:100%;height:auto;border-radius:12px;
  box-shadow:0 12px 32px -18px rgba(15,23,42,.35);}
.inline-figure figcaption{margin-top:.6rem;font-size:.85rem;line-height:1.5;
  color:#6b7280;text-align:center;}
@media(max-width:640px){
  .article-hero{margin:1.25rem 0 1.5rem;}
  .inline-figure{margin:1.5rem 0;}
}

  /* ===== D2 v2 首页视觉 (2026-09-12) ===== */
  .hero-visual{max-width:900px;margin:32px auto 0;}
  .hero-visual img{display:block;width:100%;height:auto;border-radius:16px;
    box-shadow:0 26px 60px -30px rgba(15,23,42,.55);}
  .card-thumb{margin:-6px -6px 14px;border-radius:10px;overflow:hidden;
    border:1px solid var(--border,rgba(0,0,0,.08));background:var(--surface-alt,#f9fafb);}
  .card-thumb img{display:block;width:100%;height:118px;object-fit:cover;}
  @media(max-width:640px){.hero-visual{margin:20px auto 0;}
    .card-thumb img{height:96px;}}

/* P0-7: <picture> 包裹后不参与布局，img 渲染行为保持不变 */
picture{display:contents}

/* ===== 补齐缺失类定义（2026-09-17）=====
   .editor-take = D4 硬指标「Editor's Take 立场段」，84 页在用但此前无定义
   .meta        = 文章元信息行（日期/作者/阅读时长），84 页在用
   .author-hero = 作者页顶部区块，4 页在用
   设计语言沿用现有 CSS 变量，与 .callout 保持一致（callout 用 accent 橙，editor-take 用 primary 蓝） */

.editor-take {
  background: var(--primary-lighter);
  border-left: 4px solid var(--primary);
  padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.editor-take strong { color: var(--primary-dark); }
.editor-take p:last-child { margin-bottom: 0; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-lighter);
  font-weight: 500;
  margin: 12px 0 20px;
}

.author-hero {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  text-align: center;
}

@media (max-width: 640px) {
  .editor-take { padding: 16px 18px; margin: 20px 0; }
  .author-hero { padding: 24px 18px; }
}

/* ===== 补齐历史模板遗留的未定义类（2026-09-17）=====
   不同批次生成的页面用了不同模板，遗留以下类。语义已通过 HTML 上下文确认，
   样式沿用现有 CSS 变量，视觉与全站统一。 */

/* 简化版页脚（20 页） */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-lighter);
  padding: 28px 20px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}
.site-footer a { color: var(--text-lighter); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }

/* 评分卡组件（16 页） */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
}
.score-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin: 8px 0 2px;
  line-height: 1.4;
}
.score-tagline {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* 表格胜出标记（8 页） */
.winner { color: var(--success); font-weight: 700; }

/* 双栏对比卡 + VS 分隔（7 页） */
.dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  margin: 0 auto;
  flex-shrink: 0;
}

/* 来源区块（10 页） */
.sources {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.75;
}
.sources a { color: var(--primary); }

/* 简化模板（5 页）：navbar / content / footer-content */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.logo span { color: var(--text); }
.back-link {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
}
.back-link:hover { color: var(--primary); }
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px;
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .dual { grid-template-columns: 1fr; gap: 12px; }
  .vs-divider { width: 40px; height: 40px; }
  .content { padding: 24px 16px; }
}


/* ===== 通用组件补齐（2026-09-17）===== */
.footer-inner {
  max-width: var(--max, var(--max-width, 1080px));
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: left;
}
.footer-brand { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.footer-col h4, .footer-team h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ts, #6b7280);
  margin-bottom: 10px;
}
.footer-col ul, .footer-team ul { list-style: none; padding: 0; margin: 0; }
.footer-col li, .footer-team li { margin-bottom: 6px; }
.footer-col a, .footer-team a { color: var(--ts, #6b7280); text-decoration: none; font-size: .85rem; }
.footer-col a:hover, .footer-team a:hover { color: var(--primary, var(--color, #4f46e5)); }
.footer-bottom {
  max-width: var(--max, var(--max-width, 1080px));
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: .8rem;
  color: var(--ts, #6b7280);
}

.cta, .cta-button {
  display: inline-block;
  background: var(--primary, var(--color, #4f46e5));
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.cta:hover, .cta-button:hover { filter: brightness(.92); }

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .author-hero { flex-direction: column; }
  .author-articles { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
}


/* ===== 逐类补齐（2026-09-17 round2）===== */
.table-note {
  font-size: .82rem;
  color: var(--ts, #6b7280);
  margin-top: -8px;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.tool-link {
  color: var(--primary, var(--color, #4f46e5));
  font-weight: 600;
  text-decoration: none;
}
.tool-link:hover { text-decoration: underline; }

.back {
  font-size: .85rem;
  color: var(--ts, #6b7280);
  text-decoration: none;
}
.back:hover { color: var(--primary, var(--color, #4f46e5)); }

.related {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
}
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 8px; }
.related a { color: var(--primary, var(--color, #4f46e5)); text-decoration: none; font-size: .92rem; }
.related a:hover { text-decoration: underline; }

/* ---- related / internal links ---- */
.related-guides{margin:3rem 0 1.5rem;padding:1.5rem;background:#f8fafc;
  border:1px solid #e2e8f0;border-radius:12px}
.related-guides h2{font-size:1.05rem;margin:0 0 .35rem}
.related-guides h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;
  color:#64748b;margin:1.25rem 0 .6rem}
.related-guides ul{list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.6rem}
.related-guides li{margin:0}
.related-guides a{display:block;padding:.6rem .75rem;background:#fff;
  border:1px solid #e2e8f0;border-radius:8px;text-decoration:none;color:#1e293b;
  font-size:.92rem;line-height:1.45;transition:border-color .15s,color .15s}
.related-guides a:hover{border-color:#6366f1;color:#4338ca}
.related-guides .rel-meta{display:block;font-size:.78rem;color:#64748b;margin-top:.2rem}
@media(max-width:640px){.related-guides{padding:1rem}
  .related-guides ul{grid-template-columns:1fr}}

.related-guides .related-all{margin:.9rem 0 0;font-size:.9rem}
.related-guides .related-all a{color:#4338ca;text-decoration:none;border:0;
  background:none;padding:0;display:inline}
.related-guides .related-all a:hover{text-decoration:underline}

/* homepage hero visual (was missing — image had no centering/width constraint) */
.hero-visual { max-width: 900px; margin: 42px auto 0; }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 26px 60px -30px rgba(15,23,42,.55); }

/* Editor's Take 立场段（E-E-A-T 信号，2026-09-22 追加） */
.editors-take{margin:28px 0;padding:18px 22px;border-left:4px solid #d97706;
background:#fffbeb;border-radius:6px}
.editors-take h2{margin:0 0 8px;font-size:1.15rem;color:#92400e}
.editors-take p{margin:0;color:#3f3f46;line-height:1.7}

/* 价格时效性说明（2026-09-27）—— 全站价格均为厂商公布价，会变动 */
.price-note {
  margin: 1rem 0 1.25rem;
  padding: .7rem .95rem;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  font-size: .9rem;
  line-height: 1.55;
  color: #475569;
}
.price-note strong { color: #334155; }
