/* ===== 基础与变量 ===== */
:root {
  --bg: #05070f;
  --bg-soft: #0a0e1a;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #9aa4b8;
  --primary: #4f7cff;
  --primary-2: #7b5cff;
  --cyan: #2bd9ff;
  --gradient: linear-gradient(120deg, #4f7cff 0%, #7b5cff 50%, #2bd9ff 100%);
  --radius: 16px;
  --max: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.5);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  position: relative;
  box-shadow: 0 4px 14px rgba(79, 124, 255, 0.5);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #4f7cff 0%, transparent 70%);
  top: -160px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #7b5cff 0%, transparent 70%);
  bottom: -120px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.35);
  font-size: 14px;
  color: #b8c7ff;
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.hero-stat p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  animation: scroll 1.6s ease infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== 区块标题 ===== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.3);
  color: #9db4ff;
  font-size: 13px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ===== 核心能力 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(79, 124, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.icon-ai { background: rgba(79, 124, 255, 0.15); color: #7c9aff; }
.icon-cloud { background: rgba(43, 217, 255, 0.15); color: #2bd9ff; }
.icon-iot { background: rgba(123, 92, 255, 0.15); color: #a78bff; }
.icon-sec { background: rgba(255, 111, 145, 0.15); color: #ff6f91; }
.icon-data { background: rgba(255, 184, 77, 0.15); color: #ffb84d; }
.icon-block { background: rgba(64, 224, 170, 0.15); color: #40e0aa; }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.feature-link:hover {
  color: var(--cyan);
}

/* ===== 产品 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, 0.4);
}

.product-visual {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pv-1 { background: linear-gradient(135deg, #14224d, #0c1230); }
.pv-2 { background: linear-gradient(135deg, #0d2a3a, #0a1428); }
.pv-3 { background: linear-gradient(135deg, #231544, #120b2b); }

.pv-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.8;
}

.pv-1 .pv-glow { background: #4f7cff; }
.pv-2 .pv-glow { background: #2bd9ff; }
.pv-3 .pv-glow { background: #7b5cff; }

.pv-label {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
}

.product-body {
  padding: 24px 26px 28px;
}

.product-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(79, 124, 255, 0.15);
  color: #9db4ff;
}

.tag-blue { background: rgba(43, 217, 255, 0.15); color: #6fe4ff; }
.tag-green { background: rgba(64, 224, 170, 0.15); color: #6ff0c0; }

/* ===== 数据统计 ===== */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(79, 124, 255, 0.1), transparent 70%);
}

.stat-item {
  position: relative;
  z-index: 1;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.stat-item p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 15px;
}

/* ===== 客户评价 ===== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testi-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 92, 255, 0.4);
}

.stars {
  color: #ffb84d;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testi-card p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f7cff, #7b5cff);
}

.avatar-2 { background: linear-gradient(135deg, #2bd9ff, #4f7cff); }
.avatar-3 { background: linear-gradient(135deg, #ff6f91, #ffb84d); }

.testi-user strong {
  display: block;
  font-size: 15px;
}

.testi-user span {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== 新闻 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, 0.4);
}

.news-date {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.news-card h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.news-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.news-more {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.news-card:hover .news-more {
  color: var(--cyan);
}

/* ===== 联系我们 ===== */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.18), transparent 70%);
  top: -150px;
  right: -120px;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-list li span {
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(79, 124, 255, 0.06);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(154, 164, 184, 0.6);
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 64px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 18px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ===== 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .features-grid,
  .products-grid,
  .testi-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .features-grid,
  .products-grid,
  .testi-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
