/* ================================================
   黑科智能 - 产品详情页共用样式
   Color Palette 与 index.css 完全一致
   ================================================ */

:root {
  --bg-deep: #060a08;
  --bg-dark: #0a0f0d;
  --bg-card: #111916;
  --bg-card-hover: #162019;
  --primary: #1a5c45;
  --primary-light: #24b393;
  --accent: #00ffc8;
  --accent-dim: rgba(0, 255, 200, 0.15);
  --silver: #c0c0c0;
  --silver-dark: #8a9ba8;
  --text-main: #e8eee9;
  --text-muted: #7a8a84;
  --border: rgba(36, 179, 147, 0.2);
  --glow: 0 0 20px rgba(0, 255, 200, 0.3);
  --glow-strong: 0 0 40px rgba(0, 255, 200, 0.5);
  --radius: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'Source Han Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 10, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}
.header-logo svg { width: 32px; height: 32px; }
.header-logo span { color: var(--primary-light); }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-size: 15px;
  color: var(--silver);
  transition: color 0.3s;
}
.header-nav a:hover,
.header-nav a.active { color: var(--accent); }

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: 15px;
  color: var(--silver);
  transition: color 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-toggle:hover { color: var(--accent); }
.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  opacity: 0.6;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--silver);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(36,179,147,0.1);
  color: var(--accent);
}
.nav-dropdown-menu a.active {
  color: var(--accent);
  background: rgba(36,179,147,0.08);
}
.header-cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}
.header-cta:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
  color: #fff !important;
}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ================================================
   PRODUCT HERO
   ================================================ */
.product-hero {
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(36,179,147,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.product-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,200,0.2);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--silver-dark);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-light);
  display: block;
}
.hero-stat .label { font-size: 13px; color: var(--text-muted); }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(36,179,147,0.1);
}
.hero-screenshot {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
}
.hero-screenshot .placeholder-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(36,179,147,0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(36,179,147,0.5);
  transform: translateY(-2px);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(36,179,147,0.08);
}
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 18px 36px; font-size: 18px; border-radius: 16px; }

/* ================================================
   SECTIONS
   ================================================ */
.section { padding: 80px 40px; }
.section-dark { background: var(--bg-dark); }
.section-darker { background: var(--bg-deep); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.container { max-width: 1280px; margin: 0 auto; }

/* ================================================
   FEATURES GRID
   ================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(36,179,147,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}
.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--accent-dim);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent);
}

/* ================================================
   USE CASES
   ================================================ */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.usecase-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.usecase-icon { font-size: 40px; margin-bottom: 14px; }
.usecase-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.usecase-desc { font-size: 13px; color: var(--text-muted); }

/* ================================================
   PRICING
   ================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pricing-card.featured {
  border-color: var(--primary-light);
  background: linear-gradient(180deg, rgba(36,179,147,0.08), var(--bg-card));
}
.pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}
.pricing-card:hover .pricing-btn,
.topup-card:hover .pricing-btn {
  background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 20px rgba(36,179,147,0.35);
  transform: translateY(-2px);
}
.pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { margin-bottom: 20px; }
.pricing-price .amount { font-size: 42px; font-weight: 900; color: var(--primary-light); }
.pricing-price .unit { font-size: 15px; color: var(--text-muted); }
.pricing-credits {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.pricing-credits .bonus {
  font-size: 12px;
  color: #ffc107;
  font-weight: 500;
  background: rgba(255,193,7,0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}
.pricing-features { list-style: none; margin-bottom: 28px; text-align: left; }
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--silver-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pricing-features li::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: 700;
}
.pricing-features li.disabled { color: var(--text-muted); text-decoration: line-through; }
.pricing-features li.disabled::before { content: '✗'; color: var(--text-muted); }
.pricing-btn { width: 100%; margin-top: auto; }
.pricing-note {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pricing-note p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4px;
}
.pricing-note p:last-child { margin-bottom: 0; }
.pricing-note strong { color: var(--silver); }

/* ================================================
   按量包
   ================================================ */
.topup-section {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0;
}
.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.topup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.topup-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}
.topup-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.topup-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: 4px;
}
.topup-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.topup-unit {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.topup-card .pricing-btn {
  margin-top: 4px;
}
.topup-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

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

/* ================================================
   FAQ
   ================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-question:hover { color: var(--primary-light); }
.faq-toggle { transition: transform 0.3s; color: var(--primary-light); font-size: 20px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(36,179,147,0.1) 0%, transparent 70%);
}
.cta-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}
.cta-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  position: relative;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
}
.cta-trust span { display: flex; align-items: center; gap: 6px; }

/* ================================================
   COMPARISON TABLE
   ================================================ */
.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  color: var(--silver-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.comparison-table th:first-child,
.comparison-table td:first-child { text-align: left; }
.comparison-table .highlight-col { color: var(--primary-light); font-weight: 700; }
.comparison-table .yes { color: var(--primary-light); }
.comparison-table .no { color: var(--text-muted); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 48px 40px 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-desc { font-size: 14px; color: var(--text-muted); margin-top: 12px; line-height: 1.7; }
.footer-col-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-main); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary-light); }

/* ================================================
   DEMO SECTION
   ================================================ */
.demo-section { padding: 80px 40px; }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}
.demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 280px;
}
.demo-box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.demo-code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--silver-dark);
  line-height: 1.8;
  white-space: pre-wrap;
}
.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-light);
  align-self: center;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .product-hero { padding: 120px 20px 60px; }
  .section { padding: 60px 20px; }
  .cta-section { padding: 60px 20px; }
  .site-footer { padding: 40px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .cta-title { font-size: 30px; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: block; color: var(--text-main); }
}

/* ================================================
   INLINE SVG ICONS
   ================================================ */
.inline-icon { vertical-align: middle; margin-right: 4px; }
.inline-icon-sm { vertical-align: middle; margin-right: 4px; position: relative; top: -1px; }
.feature-icon svg { display: block; margin: 0 auto; }
.usecase-icon svg { display: block; margin: 0 auto; color: var(--primary-light); }
