:root {
  --primary: #5b6cf2;
  --primary-deep: #4338ca;
  --accent: #38bdf8;
  --accent-soft: #a5b4fc;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f1f5f9;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(67, 56, 202, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
}

/* 全局背景纹理 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 108, 242, 0.08), transparent),
    radial-gradient(circle at 100% 80%, rgba(56, 189, 248, 0.06), transparent),
    var(--bg);
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* 顶栏 */
.header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary) 50%, var(--accent));
  box-shadow: 0 6px 16px rgba(67, 56, 202, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.nav a {
  margin-left: 32px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

.nav a:hover {
  color: var(--primary-deep);
}

.nav a:hover::after {
  width: 100%;
}

/* 首屏 */
.hero {
  position: relative;
  padding: 110px 0 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f172a 0%, var(--primary-deep) 35%, #4f46e5 65%, #6366f1 100%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--accent);
  top: -120px;
  right: -100px;
  opacity: 0.45;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #c4b5fd;
  bottom: 60px;
  left: -80px;
  opacity: 0.35;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #818cf8;
  top: 40%;
  left: 50%;
  opacity: 0.25;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
  animation: fadeUp 0.8s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 8px;
}

.hero-stats div {
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-stats span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.hero-wave {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 72px;
  color: var(--bg);
  margin-top: -1px;
}

/* 区块 */
.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.6);
}

.section-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 8px;
  opacity: 0.8;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.reveal {
  animation: fadeUp 0.7s var(--ease) both;
}

/* 关于 */
.about-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 48px 40px 56px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px 0 0 4px;
}

.quote-mark {
  position: absolute;
  top: 12px;
  right: 28px;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.12;
  pointer-events: none;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 2;
  text-align: left;
}

/* 业务卡片 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--card);
  padding: 36px 28px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 108, 242, 0.04), rgba(56, 189, 248, 0.06));
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.card-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.08;
  line-height: 1;
}

.service-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.3);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 联系 */
.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary), var(--accent));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease);
}

.contact-item:hover {
  transform: scale(1.02);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 108, 242, 0.12), rgba(56, 189, 248, 0.15));
  color: var(--primary-deep);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 页脚 */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.45);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.1em;
}

.footer p {
  font-size: 0.78rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-stats {
    gap: 28px;
  }

  .hero-stats strong {
    font-size: 1.25rem;
  }

  .services-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-card {
    padding: 28px 24px 28px 32px;
  }

  .hero-inner {
    padding-bottom: 70px;
  }

  .nav a {
    margin-left: 20px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
