/*
Theme Name: Open Digital Power Supply
Theme URI: https://github.com/voltforge/voltforge-wp-theme
Author: Open Digital Power Supply Team
Author URI: https://voltforge.org
Description: Open Digital Power Supply - 开源 DIY 数控可调电源项目 WordPress 主题。包含主页、下载、商城（WooCommerce）和论坛（wpForo）四大模块。专为电子爱好者、工科大学生和从业者设计。
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voltforge
Tags: dark, technology, e-commerce, forum, open-source, electronics, diy
*/

/* === 主题样式由前端 CSS 接管，此文件仅用于 WordPress 主题识别 === */

/* ============================================
   Open Digital Power Supply - Open Source DIY CNC Power Supply
   Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors - Dark Tech Theme */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1420;
  --bg-surface: #131825;
  --bg-surface-hover: #1a2030;
  --bg-elevated: #1e2433;
  --border-color: #2a3142;
  --border-light: #1f2636;

  /* Accent Colors */
  --accent-cyan: #00d4ff;
  --accent-cyan-dim: rgba(0, 212, 255, 0.15);
  --accent-green: #00ff88;
  --accent-green-dim: rgba(0, 255, 136, 0.15);
  --accent-orange: #ff8c42;
  --accent-red: #ff4757;
  --accent-purple: #a855f7;
  --accent-yellow: #fbbf24;

  /* Text Colors */
  --text-primary: #e8edf5;
  --text-secondary: #a0aec0;
  --text-muted: #6b7689;
  --text-link: var(--accent-cyan);

  /* Typography */
  --font-heading: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-glow-green: 0 0 20px rgba(0, 255, 136, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --nav-height: 64px;
  --max-width: 1200px;
  --max-width-wide: 1400px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Circuit board background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-green);
}

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

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-orange { color: var(--accent-orange); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.mono { font-family: var(--font-mono); }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: var(--radius-full);
}

.section-title p {
  color: var(--text-secondary);
  margin-top: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ---------- Navigation Bar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-content {
  max-width: var(--max-width-wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  border-radius: var(--radius-md);
  font-size: 1.2rem;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-logo .logo-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.nav-menu a.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
  color: #0a0e1a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #0a0e1a;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #00cc6a);
  color: #0a0e1a;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
  color: #0a0e1a;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

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

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

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

/* ---------- Badges & Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-cyan { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.badge-green { background: var(--accent-green-dim); color: var(--accent-green); }
.badge-orange { background: rgba(255, 140, 66, 0.15); color: var(--accent-orange); }
.badge-red { background: rgba(255, 71, 87, 0.15); color: var(--accent-red); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.badge-gray { background: var(--bg-elevated); color: var(--text-muted); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin: 2px;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, var(--accent-cyan-dim), transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb a {
  color: var(--text-secondary);
}

.page-header .breadcrumb a:hover {
  color: var(--accent-cyan);
}

.page-header p {
  color: var(--text-secondary);
  max-width: 700px;
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: var(--space-2xl);
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-lg {
  max-width: 600px;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal h2 {
  margin-bottom: var(--space-sm);
}

.modal p.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ---------- Auth Form ---------- */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.auth-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-md));
  right: var(--space-xl);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-cyan); }

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px var(--accent-cyan-dim); }
  50% { box-shadow: 0 0 20px var(--accent-cyan-dim), 0 0 40px var(--accent-cyan-dim); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-up {
  animation: slideUp 0.5s ease;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .container, .container-wide {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-cyan-dim), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-green-dim), transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-green-dim);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  justify-content: center;
  flex-wrap: wrap;
}

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

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: var(--space-2xl);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan-dim);
  border-radius: var(--radius-lg);
  font-size: 1.8rem;
  color: var(--accent-cyan);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Video Section */
.video-section {
  background: var(--bg-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.video-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.video-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 212, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--bg-primary);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.video-main:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent-cyan);
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(10, 14, 26, 0.95));
}

.video-info h3 {
  color: #fff;
  margin-bottom: 4px;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.video-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.video-item {
  display: flex;
  gap: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-item:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

.video-thumb {
  width: 120px;
  height: 68px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.video-item-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.video-item-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Documentation Section */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.doc-card {
  display: flex;
  flex-direction: column;
}

.doc-card .doc-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.doc-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.doc-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.doc-card .doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.doc-link {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tech Specs Section */
.specs-section {
  background: var(--bg-secondary);
}

.specs-table {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:hover {
  background: var(--bg-surface-hover);
}

.spec-label {
  font-weight: 600;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.spec-value {
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-cyan-dim), transparent 70%);
  border-radius: 50%;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-green-dim), transparent 70%);
  border-radius: 50%;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   DOWNLOADS PAGE STYLES
   ============================================ */

.version-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.version-badge {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 700;
}

.version-badge .ver-num {
  font-size: 1.4rem;
  line-height: 1;
}

.version-badge .ver-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  margin-top: 2px;
}

.version-badge.stable {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.version-badge.beta {
  background: rgba(255, 140, 66, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 140, 66, 0.3);
}

.version-badge.legacy {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.version-info h3 {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.version-info .version-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.version-info .version-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.version-changelog {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.download-locked {
  text-align: center;
  padding: var(--space-3xl);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.download-locked .lock-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.package-contents {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.package-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.package-item:last-child {
  border-bottom: none;
}

.package-item .file-icon {
  color: var(--accent-cyan);
  width: 20px;
  text-align: center;
}

.package-item .file-size {
  margin-left: auto;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ============================================
   SHOP PAGE STYLES
   ============================================ */

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.sidebar-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
}

.category-list li {
  margin-bottom: 4px;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.category-list a:hover,
.category-list a.active {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.category-list .count {
  margin-left: auto;
  background: var(--bg-elevated);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.shop-toolbar .result-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.shop-toolbar select {
  padding: 8px 32px 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.product-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.product-card:hover .product-image {
  filter: brightness(1.1);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.product-body {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-green);
}

.product-price .old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 4px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   FORUM PAGE STYLES
   ============================================ */

.forum-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
  align-items: start;
}

.forum-category {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.forum-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.forum-category-header .cat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
}

.forum-category-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.forum-category-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.forum-topic {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.forum-topic:last-child {
  border-bottom: none;
}

.forum-topic:hover {
  background: var(--bg-surface-hover);
}

.topic-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.topic-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.topic-title:hover {
  color: var(--accent-cyan);
}

.topic-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topic-stats {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 60px;
}

.topic-stats .stat-num {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.topic-last-reply {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 120px;
}

.topic-last-reply .reply-user {
  color: var(--accent-cyan);
}

.forum-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.forum-sidebar-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
}

.online-users {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.online-user {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--bg-surface);
  position: relative;
}

.online-user::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

/* New topic button */
.new-topic-btn {
  margin-bottom: var(--space-lg);
}

/* Topic tags */
.topic-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
  margin-right: 4px;
  font-weight: 600;
}

.tag-hot { background: rgba(255, 71, 87, 0.15); color: var(--accent-red); }
.tag-pinned { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.tag-solved { background: var(--accent-green-dim); color: var(--accent-green); }

/* User menu dropdown */
.nav-user-menu {
  position: relative;
}

.user-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  z-index: 100;
}

.user-dropdown.show {
  display: block;
  animation: slideUp 0.2s ease;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.user-dropdown a:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-cyan);
}

/* Cart badge */
.cart-icon-wrapper {
  position: relative;
}

#cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--accent-red);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Responsive for shop and forum */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: static;
  }
  .forum-layout {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .version-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .version-badge {
    margin: 0 auto;
  }
  .forum-topic {
    grid-template-columns: auto 1fr;
  }
  .topic-stats, .topic-last-reply {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-stat .stat-number {
    font-size: 1.8rem;
  }
}

/* ============================================
   BOM Cost Section
   ============================================ */
.bom-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.bom-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 71, 87, 0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.bom-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.bom-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 71, 87, 0.12);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.25);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bom-title-area h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.bom-price {
  color: #ff4757;
  font-size: 1.2em;
  position: relative;
  display: inline-block;
  animation: bomPulse 2s ease-in-out infinite;
}

@keyframes bomPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.bom-title-area p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.bom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.bom-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bom-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.bom-item.bom-free {
  background: rgba(0, 255, 136, 0.04);
  border-color: rgba(0, 255, 136, 0.15);
}

.bom-item.bom-free:hover {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-glow-green);
}

.bom-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.bom-item-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

.bom-item-price {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.bom-free-tag {
  display: inline-block;
  background: var(--accent-green-dim);
  color: var(--accent-green);
  font-size: 0.7rem;
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  vertical-align: middle;
  margin-left: var(--space-xs);
}

.bom-item.bom-total {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
  border-color: rgba(255, 71, 87, 0.3);
  box-shadow: 0 0 30px rgba(255, 71, 87, 0.1);
}

.bom-item.bom-total:hover {
  border-color: #ff4757;
  box-shadow: 0 0 40px rgba(255, 71, 87, 0.2);
}

.bom-item.bom-total .bom-item-name {
  color: var(--text-primary);
  font-weight: 600;
}

.bom-item.bom-total .total-price {
  color: #ff4757;
  font-size: 2rem;
  animation: bomPulse 2s ease-in-out infinite;
}

.bom-note {
  text-align: center;
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 71, 87, 0.06);
  border: 1px dashed rgba(255, 71, 87, 0.2);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.bom-note i {
  color: var(--accent-yellow);
  margin-right: var(--space-xs);
}

/* Hero price highlight */
.price-highlight {
  font-size: 1.8em !important;
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 50%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
  from { filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.4)); }
  to { filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.8)); }
}

.price-em {
  color: #ff4757 !important;
}

/* Responsive BOM */
@media (max-width: 768px) {
  .bom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .bom-item {
    padding: var(--space-md);
  }
  .bom-item-price {
    font-size: 1.2rem;
  }
  .bom-item.bom-total .total-price {
    font-size: 1.5rem;
  }
  .bom-title-area h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .bom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }
  .bom-item {
    padding: var(--space-sm);
  }
  .bom-item-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .bom-item-name {
    font-size: 0.75rem;
  }
  .bom-item-price {
    font-size: 1.1rem;
  }
}

/* =============================================
   微信扫码浮窗
   ============================================= */
.wechat-qr-float {
  position: fixed;
  right: 24px;
  bottom: 120px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.wechat-qr-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #07c160, #06ae56);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(7, 193, 96, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  outline: none;
}

.wechat-qr-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(7, 193, 96, 0.6);
}

.wechat-qr-toggle:active {
  transform: scale(0.95);
}

/* 脉冲动画 */
.wechat-qr-toggle .pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(7, 193, 96, 0.45);
  animation: wechat-qr-pulse 2.2s ease-out infinite;
}

.wechat-qr-toggle .pulse-ring:nth-child(2) {
  animation-delay: 0.75s;
}

@keyframes wechat-qr-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* 弹出卡片 */
.wechat-qr-popup {
  position: absolute;
  right: 0;
  bottom: 72px;
  background: #131825;
  border: 1px solid #2a3142;
  border-radius: 14px;
  padding: 22px 20px 16px;
  width: 230px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.wechat-qr-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 小三角箭头 */
.wechat-qr-popup::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #131825;
}

.wechat-qr-popup h4 {
  color: #e8edf5;
  font-size: 0.92rem;
  margin: 0 0 4px;
  font-weight: 600;
}

.wechat-qr-popup h4 .fa-weixin {
  color: #07c160;
  margin-right: 5px;
}

.wechat-qr-popup .qr-subtitle {
  color: #a0aec0;
  font-size: 0.75rem;
  margin-bottom: 14px;
}

.wechat-qr-popup .qr-code-wrap {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wechat-qr-popup .qr-code-wrap canvas,
.wechat-qr-popup .qr-code-wrap img {
  display: block;
}

.wechat-qr-popup .qr-tip {
  color: #a0aec0;
  font-size: 0.7rem;
  margin-top: 10px;
  opacity: 0.65;
}

/* 移动端适配：手机端缩小尺寸，毕竟用户已经在手机上了 */
@media (max-width: 768px) {
  .wechat-qr-float {
    right: 12px;
    bottom: 90px;
  }

  .wechat-qr-toggle {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .wechat-qr-popup {
    width: 200px;
    padding: 16px 14px 12px;
    right: -6px;
    bottom: 60px;
  }

  .wechat-qr-popup .qr-code-wrap {
    padding: 8px;
  }
}
