:root {
  --primary: #00f5ff;
  --secondary: #ff00e6;
  --accent: #00ff9d;
  --dark: #0a0a1f;
  --darker: #050510;
  --text: #e6e6ff;
  --muted: #9aa0c0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Exo 2', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 导航 ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 31, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.6rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------------- 英雄区 ---------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 245, 255, 0.12), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 230, 0.12), transparent 50%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.hero .container { position: relative; }
.hero h1 {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}
.hero p.lead { font-size: 1.25rem; color: #d0d4ff; margin-top: 1rem; }
.btn-neon {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 30px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 700;
  background: rgba(0, 245, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  transition: all 0.3s ease;
}
.btn-neon:hover { color: #fff; background: rgba(0, 245, 255, 0.22); box-shadow: 0 0 32px rgba(0, 245, 255, 0.55); transform: translateY(-2px); }

/* ---------------- 通用区块 ---------------- */
section.block { padding: 4.5rem 0; }
.section-title {
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 2.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- 卡片 ---------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s;
}
.glass-card:hover::before { left: 100%; }
.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.18);
}
.feature-icon { font-size: 2.6rem; margin-bottom: 0.8rem; filter: drop-shadow(0 0 10px currentColor); }
.glass-card h4 { color: var(--primary); margin: 0 0 0.6rem; }
.product-card img { width: 100%; border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1rem; }
.product-card .cat { font-size: 0.8rem; color: var(--accent); letter-spacing: 1px; }
.product-card h4 { color: #fff; margin: 0.3rem 0; }
.product-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------------- 轮播 ---------------- */
.carousel-wrap { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 0 40px rgba(0,245,255,0.15); }
.carousel-track { display: flex; transition: transform 0.6s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; display: block; aspect-ratio: 16/6; object-fit: cover; }
.carousel-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8%;
  background: linear-gradient(90deg, rgba(5,5,16,0.75), transparent);
}
.carousel-caption h2 { font-size: clamp(1.4rem, 3vw, 2.4rem); margin: 0; text-shadow: 0 0 20px rgba(0,245,255,0.5); }
.carousel-caption p { font-size: 1.1rem; color: #d0d4ff; margin: 0.5rem 0 0; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.carousel-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.carousel-dots span.active { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(10,10,31,0.6); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.6rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* ---------------- 关于/里程碑 ---------------- */
.about-text p { color: var(--muted); line-height: 1.9; }
.value-item { text-align: center; }
.value-item .vi-icon { font-size: 2.2rem; }
.timeline { border-left: 2px solid rgba(0,245,255,0.4); margin-left: 10px; padding-left: 24px; }
.timeline-item { position: relative; margin-bottom: 1.6rem; }
.timeline-item::before { content: ''; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.timeline-item .year { color: var(--accent); font-weight: 700; }

/* ---------------- 新闻 ---------------- */
.news-card img { width: 100%; border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1rem; }
.news-card .cat { font-size: 0.78rem; color: var(--secondary); }
.news-card h4 { color: #fff; margin: 0.3rem 0; }
.news-card p { color: var(--muted); font-size: 0.92rem; }
.news-meta { color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; }
.news-detail-content { color: var(--text); line-height: 1.9; }
.news-detail-content img { max-width: 100%; border-radius: 12px; }

/* ---------------- 表单 ---------------- */
.form-control, .form-select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.form-control:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,245,255,0.15); }
label { display: block; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.contact-info li { list-style: none; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.contact-info { padding: 0; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: linear-gradient(135deg, var(--darker), var(--dark));
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-col h5 { color: var(--primary); margin-bottom: 1rem; }
.footer-col a, .footer-col p { color: var(--muted); display: block; margin: 0.3rem 0; }
.icp-link {
  display: inline-block; margin-top: 1rem;
  color: #fff; font-weight: 600; padding: 8px 18px;
  border: 2px solid var(--primary); border-radius: 8px;
  background: rgba(0,245,255,0.1); box-shadow: 0 0 18px rgba(0,245,255,0.3);
  transition: all 0.3s ease;
}
.icp-link:hover { color: var(--primary); background: rgba(0,245,255,0.2); }
.footer-bottom { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

.alert-msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 1rem; display: none; }
.alert-msg.show { display: block; }
.alert-ok { background: rgba(0,255,157,0.12); border: 1px solid var(--accent); color: var(--accent); }
.alert-err { background: rgba(255,0,230,0.12); border: 1px solid var(--secondary); color: #ff8fe6; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,31,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { width: 100%; border-radius: 0; padding: 14px 20px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
