/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --primary: #0ea5e9;
  --primary-dim: #0284c7;
  --accent: #6366f1;
  --accent-soft: #818cf8;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(14, 165, 233, 0.18);
  --glow: rgba(14, 165, 233, 0.2);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition);
}

.nav a:not(.nav-cta):hover {
  color: var(--text);
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(14, 165, 233, 0.08);
  color: var(--primary-dim) !important;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: rgba(14, 165, 233, 0.18);
  animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -40px;
  left: -100px;
  background: rgba(99, 102, 241, 0.14);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-chips li {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dim);
  letter-spacing: 0.04em;
}

.hero-title {
  margin-bottom: 22px;
}

.hero-line {
  display: block;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-line-accent {
  margin-top: 6px;
  background: linear-gradient(120deg, var(--primary-dim), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 520px;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition), gap var(--transition);
}

.hero-text-link::after {
  content: "→";
  color: var(--primary);
  transition: transform var(--transition);
}

.hero-text-link:hover {
  color: var(--primary-dim);
}

.hero-text-link:hover::after {
  transform: translateX(4px);
}

.hero-stage {
  position: relative;
}

.hero-board {
  padding: 28px 26px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 55%);
  box-shadow: var(--shadow-hover);
}

.hero-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.hero-board-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dim);
}

.hero-board-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.hero-flow::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent-soft));
  opacity: 0.35;
}

.hero-flow-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 16px 0;
}

.hero-flow-item:not(:last-child) {
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
}

.hero-flow-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-dim);
  position: relative;
  z-index: 1;
}

.hero-flow-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.hero-flow-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-float-note {
  position: absolute;
  right: -8px;
  bottom: -18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.28);
  animation: float 6s ease-in-out infinite;
}

.hero-float-note span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.88;
  margin-bottom: 2px;
}

.hero-float-note strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-soft);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }

/* ===== Sections ===== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--text);
}

.about-visual {
  display: flex;
  justify-content: center;
}

.orbit-ring {
  position: relative;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
}

.orbit-core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow), 0 0 48px var(--glow);
  animation: core-pulse 4s ease-in-out infinite;
}

.orbit-core img {
  width: 56px;
  height: 56px;
}

.orbit-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: var(--shadow), 0 0 32px var(--glow); }
  50% { box-shadow: var(--shadow-hover), 0 0 64px rgba(14, 165, 233, 0.28), 0 0 80px rgba(99, 102, 241, 0.12); }
}

.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--glow);
}

.orbit-dot-1 {
  animation: orbit 8s linear infinite;
}

.orbit-dot-2 {
  animation: orbit 12s linear infinite reverse;
  background: var(--accent-soft);
}

.orbit-dot-3 {
  animation: orbit 16s linear infinite;
  width: 8px;
  height: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

/* ===== Services ===== */
.services {
  background: linear-gradient(180deg, transparent, var(--bg-soft), transparent);
}

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

.service-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-subtitle {
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags li {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.advantage-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.12);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.advantage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

.contact-content p {
  color: var(--text-muted);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.contact-item a {
  color: var(--text);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-icp a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-icp a:hover {
  color: var(--primary);
}

.footer-links {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .services-grid,
  .advantages-grid,
  .contact-box,
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-float-note {
    position: static;
    margin-top: 16px;
    display: inline-block;
  }

  .about-grid {
    gap: 40px;
  }

  .contact-box {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .menu-toggle {
    display: flex;
    z-index: 101;
  }

  .site-header.open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .site-header.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.1rem;
  }

  .hero-cta-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text-link {
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

  .orbit-ring {
    width: 220px;
    height: 220px;
  }

  @keyframes orbit {
    from { transform: rotate(0deg) translateX(110px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .hero-chips {
    gap: 8px;
  }

  .hero-chips li {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}
