/* ===================================================
   邑泊科技官网 - 科技风主题样式
   Tech Dark Theme with Cyan Accents
   =================================================== */

:root {
  --bg-dark: #060b18;
  --bg-card: #0d1528;
  --bg-elevated: #111e3a;
  --border: rgba(14, 165, 233, 0.2);
  --border-hover: rgba(14, 165, 233, 0.5);
  --cyan: #0ea5e9;
  --cyan-dark: #0284c7;
  --cyan-light: #7dd3fc;
  --purple: #8b5cf6;
  --green: #10b981;
  --amber: #f59e0b;
  --pink: #ec4899;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-hero: linear-gradient(135deg, #060b18 0%, #0c1931 50%, #0a1628 100%);
  --gradient-cyan: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  --gradient-card: linear-gradient(145deg, #0d1528, #111e3a);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan-light); }
img { max-width: 100%; height: auto; }

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }

/* ── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.text-gradient {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-secondary) !important; }

/* ── Layout ────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Navbar ────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 11, 24, 0.97);
  box-shadow: var(--shadow-glow);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  white-space: nowrap;
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
}
.navbar-brand span.brand-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links li a {
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav-links li a:hover, .nav-links li a.active {
  color: var(--cyan);
  background: rgba(14, 165, 233, 0.08);
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.nav-dropdown-menu a:hover { background: rgba(14, 165, 233, 0.08); color: var(--cyan); }
.nav-cta { margin-left: 1rem; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: var(--transition); }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-cyan);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
  color: white;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--cyan);
}
.btn-outline:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 0.5rem 1rem; }
.btn-ghost:hover { color: var(--cyan); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ── Cards ─────────────────────────────────────── */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.card-body { padding: 1.5rem; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-category {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cyan); margin-bottom: 0.5rem;
}
.card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ── Hero Section ──────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  padding-top: 70px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  bottom: -50px; left: 10%;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite reverse;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem; color: var(--cyan);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 600px; margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin-top: 4rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat-item .num {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-item .label { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Section Title ─────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--cyan);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── Product Card ──────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.product-icon {
  width: 52px; height: 52px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--cyan);
  margin-bottom: 1.25rem;
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.product-card .subtitle { font-size: 0.85rem; color: var(--cyan); margin-bottom: 0.75rem; }
.product-card p { font-size: 0.875rem; color: var(--text-secondary); flex: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* ── Article Card ──────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.article-card-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #0d1528, #111e3a);
  position: relative; overflow: hidden;
}
.article-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: 0.3;
}
.article-card-body { padding: 1.5rem; }
.article-card-cat {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.article-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  margin-bottom: 0.6rem; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-title:hover { color: var(--cyan); }
.article-card-summary {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 1rem;
}
.article-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem; margin-top: 0.5rem;
}

/* ── Tags ───────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--cyan);
  transition: var(--transition);
}
.tag:hover { background: rgba(14, 165, 233, 0.2); color: var(--cyan); }

/* ── Category Tab ──────────────────────────────── */
.category-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.category-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.875rem; font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.category-tab:hover, .category-tab.active {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--border-hover);
  color: var(--cyan);
}

/* ── Feature List ──────────────────────────────── */
.feature-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; list-style: none; margin: 0; padding: 0;
}
.feature-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.feature-item-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--cyan);
}
.feature-item-text { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Timeline / Steps ──────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem; counter-reset: step;
}
.step-item { position: relative; padding: 1.5rem; }
.step-num {
  counter-increment: step;
  font-size: 3rem; font-weight: 900; line-height: 1;
  background: var(--gradient-cyan);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}
.step-item h4 { margin-bottom: 0.5rem; }
.step-item p { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Solutions Banner ──────────────────────────── */
.solutions-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.solution-item {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: var(--transition);
}
.solution-item:hover {
  border-color: var(--border-hover);
  background: rgba(14, 165, 233, 0.04);
}
.solution-icon {
  font-size: 1.75rem; color: var(--cyan);
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-sm);
}
.solution-info h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.solution-info p { font-size: 0.8rem; color: var(--text-secondary); }

/* ── CTA Band ───────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(139,92,246,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-band p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ── Breadcrumb ────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.825rem; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }

/* ── Article Detail ────────────────────────────── */
.article-content {
  font-size: 1rem; line-height: 1.9; color: var(--text-secondary);
  max-width: 800px;
}
.article-content h1, .article-content h2, .article-content h3,
.article-content h4 { color: var(--text-primary); margin: 2rem 0 1rem; }
.article-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.article-content h3 { font-size: 1.2rem; color: var(--cyan); }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  border-left: 3px solid var(--cyan);
  padding: 0.75rem 1.25rem;
  background: rgba(14, 165, 233, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-primary);
  font-style: italic;
}
.article-content code {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.875em;
  color: var(--cyan-light);
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}
.article-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.article-content pre code { background: none; border: none; padding: 0; }
.article-content a { color: var(--cyan); border-bottom: 1px solid rgba(14,165,233,0.3); }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.article-content th { background: var(--bg-elevated); color: var(--text-primary); font-weight: 700; }
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 1rem; font-size: 0.9rem;
}
.article-content tr:nth-child(even) td { background: rgba(14,165,233,0.03); }
.article-content img { border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid var(--border); }

/* ── Sidebar ────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-widget-title {
  font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cyan); margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Pagination ─────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem; margin-top: 3rem;
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem; cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: white;
}

/* ── Forms ─────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* ── Footer ────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); margin: 1rem 0; max-width: 280px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 1rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem;
}
.footer-social a:hover { background: rgba(14,165,233,0.1); border-color: var(--cyan); color: var(--cyan); }

/* ── Animations ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.fade-in-up { animation: fadeInUp 0.5s ease both; }

/* ── Particle Canvas ──────────────────────────── */
#particles-canvas {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}

/* ── Floating Back-to-top ──────────────────────── */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--gradient-cyan);
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(14,165,233,0.35);
  transition: var(--transition);
}
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(14,165,233,0.5); }

/* ── Progress Bar ──────────────────────────────── */
#reading-progress {
  position: fixed; top: 70px; left: 0; right: 0;
  height: 3px; background: var(--border); z-index: 999;
}
#reading-progress-bar {
  height: 100%; width: 0%;
  background: var(--gradient-cyan);
  transition: width 0.1s linear;
}

/* ── Stat Counter ──────────────────────────────── */
.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-cyan);
}
.stat-number {
  font-size: 2.5rem; font-weight: 900;
  background: var(--gradient-cyan);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Page Hero ─────────────────────────────────── */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(6,11,24,0.97); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: rgba(14,165,233,0.04); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .product-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ── Utility ────────────────────────────────────── */
.d-grid { display: grid; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Image placeholders ===== */
.product-cover-wrap, .article-cover-wrap {
    width: 100%; border-radius: var(--radius); overflow: hidden;
    margin-bottom: 2.5rem; background: var(--bg-card);
    border: 1px solid var(--border);
}
.product-cover-img, .article-cover-img {
    width: 100%; max-height: 420px; object-fit: cover; display: block;
}
.img-placeholder {
    width: 100%; min-height: 260px; display: flex;
    align-items: center; justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(14,165,233,.04) 0px, rgba(14,165,233,.04) 10px,
        transparent 10px, transparent 20px
    );
    border: 2px dashed rgba(14,165,233,.25); color: var(--text-secondary);
    border-radius: var(--radius); cursor: default;
}
