/* ======================== 基础重置与变量 ======================== */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0A0A0A;
  --bg-surface: #111111;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1A1;
  --accent-orange: #FF3D00;
  --accent-cyan: #00E5FF;
  --border-color: #333333;
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ======================== 导航栏 ======================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  border-bottom-color: var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  border: 1px solid var(--border-color);
  padding: 2px 6px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-orange);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btn {
  padding: 8px 20px;
  border: 1px solid var(--text-primary);
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.3s;
}

.nav-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ======================== 首屏英雄区 ======================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s 0.3s forwards;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8), 0 0 80px rgba(255, 61, 0, 0.15);
  opacity: 0;
  animation: fadeInUp 1s 0.5s forwards;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1s 0.7s forwards;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInUp 1s 0.9s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 61, 0, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s 1.1s forwards;
}

.stat-item span:first-child {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-item span:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-cyan);
}

.stat-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-orange), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0; height: 20px; }
  50% { opacity: 1; height: 40px; }
}

/* ======================== 通用区块标题 ======================== */
.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

.line {
  width: 48px;
  height: 2px;
  background: var(--accent-orange);
  margin-top: 16px;
}

.line.center {
  margin: 16px auto 0;
}

/* ======================== 关于我们 ======================== */
.about {
  padding: 120px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text .highlight {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.about-features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feat-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feat-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(255, 61, 0, 0.15);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
}

.feat-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feat-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 0;
  filter: brightness(0.8);
}

.about-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
}

.about-float span {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-orange);
  display: block;
}

.about-float p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ======================== 产品中心 ======================== */
.products {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.reverse {
  direction: rtl;
}

.product-card.reverse > * {
  direction: ltr;
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  z-index: 5;
}

.product-badge.hot { background: var(--accent-orange); color: #fff; }
.product-badge.new { background: var(--accent-cyan); color: var(--bg-primary); }
.product-badge.rec { background: #FFB800; color: var(--bg-primary); }
.product-badge.sale { background: #7B61FF; color: #fff; }

.product-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.product-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-specs {
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

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

.spec-row span:first-child {
  color: var(--text-secondary);
}

.spec-row span:last-child {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.product-price {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

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

.price-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-orange);
}

.price-original {
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: line-through;
}

/* ======================== 更多产品系列 ======================== */
.product-series {
  padding: 120px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.series-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.series-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 61, 0, 0.1);
}

.series-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.series-body {
  padding: 20px;
}

.series-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.series-body p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.series-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-orange);
}

/* ======================== 品牌合作 ======================== */
.brands {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.brand-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.brand-item:hover {
  border-color: var(--accent-orange);
}

.brand-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 14px;
  border-radius: 50%;
}

.brand-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.brand-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ======================== 性能评测 ======================== */
.specs {
  padding: 120px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.specs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.specs-image img {
  width: 100%;
  filter: brightness(0.7);
}

.specs-table-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.specs-table th,
.specs-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.specs-table th {
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
}

.specs-table .score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.specs-highlight {
  display: flex;
  gap: 32px;
}

.specs-highlight div span {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-orange);
}

.specs-highlight div p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ======================== 核心卖点 ======================== */
.features {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 36px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--border-color);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 61, 0, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======================== 售后服务 ======================== */
.service {
  padding: 120px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 36px;
  text-align: center;
  transition: all 0.3s;
}

.service-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======================== 联系我们 ======================== */
.contact {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.contact-value {
  font-size: 14px;
  font-weight: 500;
}

.contact-value a {
  color: var(--accent-cyan);
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--accent-orange);
}

.contact-map {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.contact-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95), transparent);
}

.contact-overlay h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-overlay p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ======================== 页脚 ======================== */
.footer {
  padding: 80px 0 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

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

.footer-brand h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ======================== 回到顶部 ======================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

/* ======================== 动画 ======================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================== 响应式 ======================== */
@media (max-width: 1024px) {
  .about-grid,
  .specs-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .product-card.reverse > * {
    direction: ltr;
  }

  .series-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-grid,
  .features-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

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

  .nav-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-item span:first-child {
    font-size: 28px;
  }

  .series-grid,
  .brands-grid,
  .features-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .specs-highlight {
    gap: 16px;
  }

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

  .about-float {
    left: 10px;
    bottom: -10px;
    padding: 10px 16px;
  }

  .about-float span {
    font-size: 18px;
  }
}

/* ======================== 滚动显示动画 ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== 粒子画布兜底 ======================== */
#particleCanvas {
  display: block;
}

@supports not (backdrop-filter: blur(12px)) {
  #navbar {
    background: rgba(5, 5, 5, 0.95);
  }
}
