/* ================================
   CSS Custom Properties & Themes
   ================================ */
:root {
  --bg-primary: #070c16;
  --bg-secondary: #0d1526;
  --bg-card: #111d35;
  --bg-card-hover: #162240;
  --bg-input: #0d1833;
  --border: #1e2f50;
  --border-light: #2a3d60;
  --text-primary: #e8edf8;
  --text-secondary: #8a95ae;
  --text-light: #c4cce0;
  --accent: #ff6322;
  --accent-dark: #e5521a;
  --accent-light: #ff8f66;
  --accent-bg: rgba(255, 99, 34, 0.10);
  --accent-glow: rgba(255, 99, 34, 0.25);
  --green: #22c55e;
  --blue: #3b82f6;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 30px rgba(255,99,34,0.2);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --nav-height: 64px;
}

[data-theme="light"] {
  --bg-primary: #f5f7fb;
  --bg-secondary: #eaeff8;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4fd;
  --bg-input: #ffffff;
  --border: #d4ddef;
  --border-light: #c0ccdf;
  --text-primary: #0d1526;
  --text-secondary: #5a6882;
  --text-light: #3a4762;
  --accent: #e8521a;
  --accent-dark: #cc4615;
  --accent-light: #ff7040;
  --accent-bg: rgba(232, 82, 26, 0.08);
  --accent-glow: rgba(232, 82, 26, 0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
  --shadow-accent: 0 0 24px rgba(232,82,26,0.15);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, textarea { font-family: var(--font); outline: none; }

/* ================================
   Navigation
   ================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(7, 12, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(245, 247, 251, 0.92);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-accent);
}

.nav-logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-text .highlight { color: var(--accent); }

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

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--accent-bg);
}

.nav-link.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

.nav-cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 2px 12px var(--accent-glow);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile menu toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 16px;
  gap: 4px;
  flex-direction: column;
}

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

.mobile-nav .nav-link {
  padding: 12px 16px;
  font-size: 15px;
  display: block;
}

/* ================================
   Main Layout
   ================================ */
main { min-height: 100vh; padding-top: var(--nav-height); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================
   Hero Section
   ================================ */
.hero {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 20% at 50% -10%, rgba(255,99,34,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,99,34,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,99,34,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-bg);
  border: 1px solid rgba(255,99,34,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: all var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ================================
   Section Styles
   ================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-secondary); }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-bg);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================================
   Highlights (Badges)
   ================================ */
.highlights {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.highlight-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.highlight-badge:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-badge .badge-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.highlight-badge .badge-text strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

.highlight-badge .badge-text span {
  color: var(--text-secondary);
  font-size: 13px;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

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

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

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

.service-card.featured {
  border-color: rgba(255,99,34,0.4);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,99,34,0.04) 100%);
}

.service-card.featured::before { opacity: 1; }

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  border: 1px solid rgba(255,99,34,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.service-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}

.price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.price-unit {
  font-size: 13px;
  color: var(--text-secondary);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.feature-item::before {
  font-family: "Font Awesome 6 Free";
  content: "\f058";
  font-weight: 900;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
}

.service-cta {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: transparent;
  width: 100%;
}

.service-cta:hover, .service-card.featured .service-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ================================
   Contact Section
   ================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-info { }

.contact-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.contact-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-detail strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail span {
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-detail .phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-top: 2px;
}

.contact-qr {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code svg { width: 100%; height: 100%; }

.qr-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.qr-title {
  font-size: 18px;
  font-weight: 700;
}

/* ================================
   Reviews Section
   ================================ */
.reviews-track-wrap {
  overflow: hidden;
  position: relative;
}

.reviews-track-wrap::before,
.reviews-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.reviews-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.reviews-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.section-alt .reviews-track-wrap::before {
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}
.section-alt .reviews-track-wrap::after {
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollTrack 40s linear infinite;
}

.reviews-track:hover { animation-play-state: paused; }

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.review-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.review-meta span {
  font-size: 12px;
  color: var(--text-secondary);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars i { color: #fbbf24; font-size: 14px; }

.review-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.review-service {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

/* ================================
   Articles - Docs & Tips
   ================================ */
.articles-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition);
}

.search-box input::placeholder { color: var(--text-secondary); }

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  gap: 6px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover { color: var(--text-primary); border-color: var(--border-light); }

.filter-tab.active {
  background: var(--accent-bg);
  border-color: rgba(255,99,34,0.4);
  color: var(--accent);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

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

.article-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-cover-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-badge-wrap {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 6px;
}

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ff6322, #ff3d00);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(255,99,34,0.5);
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.article-body {
  padding: 20px;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.views-count { color: var(--accent); font-weight: 600; }

/* ================================
   Article Modal
   ================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  margin: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.download-modal {
  max-width: 520px;
}

.download-modal-title {
  font-size: 1.25rem;
  margin: 0;
}

.download-modal-content {
  padding-top: 8px;
}

.download-panel {
  margin: 0;
}

.download-windows-msg,
.download-other-msg,
.download-mac-hint {
  margin: 0 0 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-size: 15px;
}

.download-windows-msg {
  color: var(--text-primary);
  font-weight: 600;
}

.download-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .download-choice-grid {
    grid-template-columns: 1fr;
  }
}

.download-choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.download-choice-card i {
  font-size: 28px;
  color: var(--accent);
}

.download-choice-title {
  font-size: 15px;
}

.download-choice-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.download-choice-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.modal-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  z-index: 1;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.modal-cover {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

.modal-content {
  padding: 32px;
}

.modal-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

.modal-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.modal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.modal-body p { margin-bottom: 16px; }

.modal-body ul, .modal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.modal-body li { margin-bottom: 8px; list-style: disc; }
.modal-body ol li { list-style: decimal; }

.modal-body code {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--accent-light);
}

.modal-body pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.modal-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-light);
}

.modal-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: var(--accent-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

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

/* ================================
   Footer
   ================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.footer-brand-info {
  flex: 1;
  min-width: 240px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.footer-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 400px;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
  max-width: min(100%, 560px);
}

.footer-legal a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.footer-social-qr {
  gap: 16px;
  align-items: flex-start;
}

.footer-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 132px;
}

.footer-qr-img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
}

.footer-qr-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.footer-qr-platform {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-qr-account {
  font-size: 11px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* ================================
   Utility
   ================================ */
.hidden { display: none !important; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.tag-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow);
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 100;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover { transform: translateY(-2px); }

/* Page transition */
.page-enter {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
  .contact-grid { gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 58px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 28px; }

  .section { padding: 52px 0; }

  .highlights { gap: 10px; }
  .highlight-badge { padding: 12px 16px; }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .social-links {
    justify-content: flex-start;
  }

  .modal { border-radius: var(--radius-lg); }
  .modal-content { padding: 24px; }
  .modal-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .filter-tabs { display: none; }
  .articles-controls { flex-direction: column; }
  .search-box { min-width: unset; }
  .modal-overlay { padding: 12px; }
}

/* ================================
   Article Card as Link
   ================================ */
a.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.page-btn:hover:not(:disabled) {
  background: var(--accent-bg);
  border-color: rgba(255, 99, 34, 0.4);
  color: var(--accent);
}

.page-btn.page-num.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ================================
   Article Detail Page
   ================================ */
.article-detail-hero {
  padding: 10px 0 40px;
  position: relative;
}

.article-detail-cover {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.article-detail-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-detail-summary {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-detail-body {
  line-height: 1.9;
  font-size: 15px;
}

.article-detail-body h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  color: var(--text-primary);
}

.article-detail-body hr {
  border: 0.5px solid var(--border);
  margin: 24px 0;
}

.article-detail-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.article-detail-body p { margin-bottom: 16px; }

.article-detail-body ul,
.article-detail-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-detail-body li { margin-bottom: 8px; list-style: disc; }
.article-detail-body ol li { list-style: decimal; }

.article-detail-body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.article-detail-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.article-detail-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 13px;
}

.article-detail-body blockquote {
  border-left: 4px solid var(--accent-light);
  padding: 16px 20px;
  line-height: 1.2;
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-detail-body blockquote p {
  margin-bottom: 0;
}

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

.article-detail-body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.article-detail-body thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-secondary) 92%, var(--accent) 8%) 0%,
    var(--bg-secondary) 100%
  );
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.article-detail-body thead th:not(:last-child) {
  border-right: 1px solid var(--border);
}

.article-detail-body tbody td {
  padding: 12px 18px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: break-word;
}

.article-detail-body tbody td:not(:last-child) {
  border-right: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}

.article-detail-body tbody tr:last-child td {
  border-bottom: none;
}

.article-detail-body tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-secondary) 45%, transparent);
}

.article-detail-body tbody tr:hover {
  background: color-mix(in srgb, var(--accent-bg) 85%, transparent);
}

.article-detail-body caption {
  caption-side: bottom;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}

.article-detail-body tbody th {
  padding: 12px 18px;
  font-weight: 700;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.article-detail-body a {
  color: var(--accent);
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 10px;
}

.article-back-btn:hover {
  background: var(--accent-bg);
  border-color: rgba(255, 99, 34, 0.4);
  color: var(--accent);
}

/* ================================
   Product landing (OpenClaw 智能运维助手)
   ================================ */
.product-hero {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 64px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.product-hero-copy .hero-title {
  text-align: left;
}

.product-hero-copy {
  text-align: left;
}

.product-hero-sub {
  max-width: 34rem;
  margin-left: 0;
  margin-right: 0;
}

.product-hero-grid .hero-actions {
  justify-content: flex-start;
}

.product-hero-badge span:first-child {
  color: var(--accent);
}

.product-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.product-hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-hero-tags i {
  color: var(--green);
  font-size: 12px;
}

.product-hero-visual {
  position: relative;
}

.product-hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 14px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.product-hero-deco {
  position: absolute;
  inset: -20% -8% auto auto;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.product-hero-frame .product-shot {
  position: relative;
  z-index: 1;
}

.product-shot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-input);
  min-height: 180px;
}

.product-shot--hero {
  min-height: 0;
}

.product-shot--hero img {
  width: 100%;
  height: auto;
}

.product-shot-ph {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.product-shot-ph i {
  font-size: 28px;
  opacity: 0.45;
}

.product-shot-ph small {
  font-size: 11px;
  font-weight: 500;
  max-width: 220px;
  line-height: 1.45;
  opacity: 0.85;
}

.product-cap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-cap-card {
  padding: 22px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}

.product-cap-card:hover {
  border-color: rgba(255, 99, 34, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

[data-theme="light"] .product-cap-card:hover {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(232, 82, 26, 0.08);
}

.product-cap-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--accent-bg);
  color: var(--accent);
}

.product-cap-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-cap-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.product-shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-shot-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.product-shot-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-align: left;
}

.product-shot-caption::before {
  content: "";
  width: 3px;
  height: 1.05em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(255, 99, 34, 0.55) 100%);
  flex-shrink: 0;
}

.product-shot-block .product-shot {
  aspect-ratio: 16 / 11;
  min-height: 200px;
}

.product-cta-band {
  padding-top: 56px;
  padding-bottom: 56px;
}

.product-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.product-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 992px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-hero-copy {
    text-align: center;
  }

  .product-hero-copy .hero-title {
    text-align: center;
  }

  .product-hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .product-hero-copy .hero-actions {
    justify-content: center;
  }

  .product-hero-tags {
    justify-content: center;
  }

  .product-cap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .product-cap-card {
    padding: 22px 18px;
  }

  .product-cap-desc {
    font-size: 14px;
  }

  .product-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .product-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .product-cap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-shots-grid {
    grid-template-columns: 1fr;
  }

  .product-shot--hero {
    min-height: 220px;
  }
}
