/* 基础色彩与排版 */
:root {
  --bg: #0b1220;
  --bg-soft: #111a2c;
  --card: #131f33;
  --primary: #4f8bff;
  --primary-strong: #2d6bff;
  --muted: #cbd5e1;
  --text: #e2e8f0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(79, 139, 255, 0.1), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(107, 70, 193, 0.12), transparent 30%),
    linear-gradient(180deg, #0b1220 0%, #0b1220 60%, #0b1220 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#particlesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

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

main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 20px 0 80px;
  flex: 1;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航 */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.links a {
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.links a:hover,
.links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 10px 30px rgba(79, 139, 255, 0.28);
}

.btn.ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

/* 轮播 */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 0;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0d1525;
  box-shadow: var(--shadow);
  height: 760px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 22, 0.85) 15%, rgba(7, 11, 22, 0.35) 70%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  max-width: 520px;
}

.slide-overlay h2 {
  margin: 0;
  font-size: 28px;
}

.slide-overlay p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #dbeafe;
  background: rgba(79, 139, 255, 0.14);
  border: 1px solid rgba(79, 139, 255, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.7);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(79, 139, 255, 0.85);
  border-color: rgba(79, 139, 255, 0.6);
}

.carousel-btn.prev {
  left: 30px;
}

.carousel-btn.next {
  right: 30px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 0;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border 0.2s ease;
}

.carousel-dots .dot.active {
  background: var(--primary);
  border-color: rgba(79, 139, 255, 0.5);
  transform: scale(1.1);
}

/* Hero 区域 */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero h1 {
  margin: 10px 0;
  font-size: clamp(30px, 5vw, 42px);
}

.hero p {
  margin: 6px 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.metric {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  min-width: 140px;
}

.metric strong {
  display: block;
  margin-bottom: 4px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card .tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(79, 139, 255, 0.14);
  color: #dbeafe;
  font-size: 13px;
}

.card img {
  width: 100%;
  margin-top: 10px;
}

.card h3 {
  margin: 12px 0 6px;
}

.muted {
  color: var(--muted);
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.img-rect {
  height: 150px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 6px;
}

.img-rect.img-cover {
  object-fit: cover;
  width: 100%;
}

.img-wide {
  width: 100%;
  object-fit: cover;
}

.cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.cta form {
  display: grid;
  gap: 12px;
}

.cta input,
.cta textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.cta input:focus,
.cta textarea:focus {
  border-color: rgba(79, 139, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(79, 139, 255, 0.14);
}

.cta textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 18px;
  font-size: 14px;
  color: var(--muted);
}

.form-status.success {
  color: #a3e635;
}

.form-status.error {
  color: #fca5a5;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.dot-sm {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 8px;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 32px;
  background: rgba(11, 18, 32, 0.8);
}

.fgrid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  color: var(--muted);
}

footer a {
  color: var(--text);
}


/* 响应式 */
@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .links {
    width: 100%;
    justify-content: flex-start;
  }

  .carousel-btn.prev {
    left: 12px;
  }

  .carousel-btn.next {
    right: 12px;
  }

  .slide-overlay {
    padding: 20px;
    max-width: none;
  }

  .carousel-track {
    height: 760px;
  }
}
