/* ============================================================
   土豆批发网 · Premium Design System
   品质：玻璃态 · 磁吸微交互 · 主动主题切换 · 入场动画
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Colors */
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-lighter: #74c69d;
  --primary-glow: rgba(45, 106, 79, 0.15);
  --accent: #d4a373;
  --accent-light: #e8c49a;
  --accent-dark: #bc8a5f;
  --accent-glow: rgba(212, 163, 115, 0.2);

  /* Text */
  --text: #1a1d21;
  --text-light: #495057;
  --text-muted: #868e96;
  --text-inverse: #f8f9fa;

  /* Surfaces */
  --bg: #f9f7f2;
  --bg-white: #ffffff;
  --bg-light: #f1f8f4;
  --bg-card: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);

  /* Borders & Shadows */
  --border: #e9ecef;
  --border-light: rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);

  /* Layout */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --header-height: 68px;

  /* Typography */
  --font-display: 2.8rem;
  --font-h1: 2rem;
  --font-h2: 1.6rem;
  --font-h3: 1.2rem;
  --font-body: 1rem;
  --font-sm: 0.875rem;
  --font-xs: 0.8rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration: 300ms;
  --duration-slow: 500ms;
}

/* ---- Dark Mode (active class) ---- */
html.dark,
[data-theme="dark"] {
  --text: #e9ecef;
  --text-light: #adb5bd;
  --text-muted: #868e96;
  --text-inverse: #1a1d21;
  --bg: #14171a;
  --bg-white: #1a1d21;
  --bg-light: #212529;
  --bg-card: rgba(26, 29, 33, 0.85);
  --glass-bg: rgba(26, 29, 33, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --border: #2d333b;
  --border-light: rgba(255, 255, 255, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
  --primary-glow: rgba(64, 145, 108, 0.2);
  --accent-glow: rgba(212, 163, 115, 0.15);
}

/* Also honor system preference when no manual toggle */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --text: #e9ecef;
    --text-light: #adb5bd;
    --text-muted: #868e96;
    --text-inverse: #1a1d21;
    --bg: #14171a;
    --bg-white: #1a1d21;
    --bg-light: #212529;
    --bg-card: rgba(26, 29, 33, 0.85);
    --glass-bg: rgba(26, 29, 33, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --border: #2d333b;
    --border-light: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
    --primary-glow: rgba(64, 145, 108, 0.2);
    --accent-glow: rgba(212, 163, 115, 0.15);
  }
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--primary-light); }

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

::selection {
  background: var(--primary-lighter);
  color: white;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

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

/* ---- Reading Progress Bar ---- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 1001;
  transition: width 100ms linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow);
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.back-to-top:hover svg { color: white; }
.back-to-top svg {
  width: 20px; height: 20px;
  color: var(--text);
  transition: color var(--duration-fast);
}

/* ============================================================
   Theme Toggle
   ============================================================ */
.theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
  margin-left: 16px;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  transition: transform var(--duration) var(--ease-spring);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle:active svg {
  transform: rotate(180deg) scale(0.85);
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--duration) var(--ease-out);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

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

.header-left {
  display: flex;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: transform var(--duration-fast) var(--ease-out);
}
.logo:hover {
  transform: scale(1.03);
  color: var(--primary);
}

.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all var(--duration) var(--ease-out);
}
.logo:hover .logo-icon {
  border-radius: 12px;
  transform: rotate(-5deg) scale(1.05);
}

/* Nav */
.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-menu li { position: relative; }

.nav-menu a {
  color: var(--text-light);
  font-weight: 500;
  font-size: var(--font-sm);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--primary);
  background: var(--primary-glow);
}
.nav-menu a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-glow);
}

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.2rem; cursor: pointer;
  color: var(--text);
  align-items: center; justify-content: center;
  transition: all var(--duration-fast);
}
.mobile-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   Button System
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--font-body);
  transition: all var(--duration) var(--ease-out);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: white;
}

.btn-primary-green {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary-green:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--font-sm);
  border-radius: var(--radius-sm);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1b4332 0%, var(--primary) 30%, var(--primary-light) 70%, #2d6a4f 100%);
  color: white;
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative elements */
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 20s ease-in-out infinite;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 25s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}
.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; width: 8px; height: 8px; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1.5s; width: 4px; height: 4px; }
.hero-particle:nth-child(3) { left: 45%; top: 30%; animation-delay: 3s; width: 6px; height: 6px; }
.hero-particle:nth-child(4) { left: 65%; top: 70%; animation-delay: 4.5s; width: 5px; height: 5px; }
.hero-particle:nth-child(5) { left: 80%; top: 25%; animation-delay: 6s; width: 7px; height: 7px; }
.hero-particle:nth-child(6) { left: 90%; top: 55%; animation-delay: 2s; width: 4px; height: 4px; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-60px) translateX(20px) scale(2); opacity: 0.8; }
}

/* Hero content */
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: var(--font-xs);
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--font-xs);
  opacity: 0.7;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Section System
   ============================================================ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   Service Cards (Premium Glass)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: all var(--duration) var(--ease-out);
  border: 1px solid var(--glass-border);
}
.service-card:hover .service-icon {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.service-card:hover .service-icon svg {
  color: white;
}

.service-icon svg {
  width: 28px; height: 28px;
  transition: all var(--duration) var(--ease-out);
}

.service-card h3 {
  font-size: var(--font-h3);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.7;
}

/* ============================================================
   Article List (Premium)
   ============================================================ */
.article-list {
  display: grid;
  gap: 14px;
}

.article-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid var(--glass-border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.article-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow);
}

.article-item::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform var(--duration) var(--ease-spring);
}
.article-item:hover::after { transform: scaleY(1); }

.article-item .score-badge {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--glass-border);
}

.article-item .score-badge.high {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.article-content-wrapper { flex: 1; min-width: 0; }

.article-meta {
  display: flex;
  gap: 10px;
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta .cat-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.article-meta .score-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-glow);
  color: var(--accent-dark);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.article-item h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}
.article-item h3 a {
  color: var(--text);
  transition: color var(--duration-fast);
}
.article-item h3 a:hover { color: var(--primary); }

.article-excerpt {
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Article Page (Premium Reading)
   ============================================================ */
.article-page {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--glass-border);
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
}

.article-header .category-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 100px;
  font-size: var(--font-xs);
  font-weight: 600;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.article-info {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: var(--font-sm);
  flex-wrap: wrap;
}

.article-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text);
}

.article-body p { margin-bottom: 1.3em; }

.article-body h2, .article-body h3, .article-body h4 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.article-body h2 { font-size: 1.5rem; border-left: 4px solid var(--primary); padding-left: 14px; }
.article-body h3 { font-size: 1.2rem; }

.article-body strong { color: var(--primary); font-weight: 700; }

.article-body ul, .article-body ol {
  margin-bottom: 1.3em;
  padding-left: 1.8em;
}
.article-body li { margin-bottom: 0.5em; }

.article-body img {
  border-radius: var(--radius);
  margin: 1.8em auto;
  box-shadow: var(--shadow);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-body th, .article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--bg-light);
  font-weight: 700;
}
.article-body tr:last-child td { border-bottom: none; }

/* Related Articles */
.related-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}
.related-section h3 {
  font-size: var(--font-h3);
  font-weight: 700;
  margin-bottom: 20px;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ============================================================
   Contact Bar
   ============================================================ */
.contact-bar {
  background: linear-gradient(135deg, var(--primary), #1b4332);
  color: white;
  padding: 56px 48px;
  text-align: center;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-bar::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.contact-bar > * { position: relative; z-index: 1; }

.contact-bar h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-bar p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.05rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--duration) var(--ease-out);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.contact-phone:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
  color: white;
}

/* ============================================================
   Footer (Premium)
   ============================================================ */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 28px;
  margin-top: 80px;
}

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

.footer-brand p {
  font-size: var(--font-sm);
  line-height: 1.8;
  margin-top: 12px;
}

.footer-col h4 {
  color: white;
  font-size: var(--font-sm);
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-sm);
  transition: all var(--duration-fast);
}
.footer-col a:hover { color: white; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: var(--font-xs);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: white; }

/* ============================================================
   Utility Pages
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}
.empty-state h2 {
  font-size: var(--font-h1);
  color: var(--primary);
  margin-bottom: 12px;
}
.empty-state p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
}

/* 404 */
.notfound-page {
  text-align: center;
  padding: 100px 24px;
}
.notfound-code {
  font-size: 7rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.notfound-page p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================================
   Reveal Animations (Intersection Observer driven)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.95); }

/* Stagger delays */
.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; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  font-weight: 500;
  font-size: var(--font-sm);
  transition: all var(--duration-fast) var(--ease-out);
}
.page-link:hover {
  background: var(--primary-glow);
  border-color: var(--primary-lighter);
  color: var(--primary);
}
.page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ============================================================
   Search (decorative)
   ============================================================ */
.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
}
.search-box input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: var(--font-body);
  outline: none;
  transition: all var(--duration-fast);
  background: var(--bg-card);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px; height: 18px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container { padding: 0 18px; }

  .hero {
    padding: 64px 0 80px;
  }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 28px; margin-top: 40px; }
  .hero-stat-value { font-size: 1.4rem; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }

  .service-card { padding: 28px 20px; }

  .article-page { padding: 28px 20px; }
  .article-header h1 { font-size: 1.5rem; }

  .contact-bar { padding: 40px 24px; border-radius: var(--radius-lg); }
  .contact-bar h2 { font-size: 1.4rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-col ul { align-items: center; }

  /* Mobile Nav */
  .mobile-toggle { display: flex; }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 12px 18px 20px;
    gap: 2px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 12px 14px;
    display: block;
    border-radius: var(--radius-sm);
  }

  .article-item {
    flex-direction: column;
    padding: 16px;
  }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .header-inner { gap: 10px; }
  .logo { font-size: 1rem; }
  .logo-icon { width: 32px; height: 32px; font-size: 0.9rem; }
}
