/* ===== 基础变量 ===== */
:root {
  --color-primary: #7c3aed;
  --color-primary-dark: #5b21b6;
  --color-primary-light: #f3e8ff;
  --color-accent: #f97316;
  --color-accent-light: #fff7ed;
  --color-text: #1e1b2e;
  --color-text-muted: #6b6578;
  --color-bg: #ffffff;
  --color-bg-alt: #faf8ff;
  --color-border: #e8e4f0;
  --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.08);
  --shadow-md: 0 4px 24px rgba(124, 58, 237, 0.14);
  --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.18);
  --radius: 14px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

ul {
  list-style: none;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-full {
  width: 100%;
}

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

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

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

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

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0a2e 0%, #3b0764 40%, #7c3aed 80%, #c2410c 120%);
  z-index: 0;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: #f97316;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: #a855f7;
  bottom: 10%;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: #ec4899;
  top: 40%;
  right: 20%;
  animation: float 6s ease-in-out infinite 2s;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 80px 24px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 60%, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #fcd34d, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-word {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #fcd34d, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

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

/* ===== 通用区块 ===== */
.section {
  padding: 100px 0;
}

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

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-text);
}

.section-sub {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 16px;
}

/* ===== 关于我们 ===== */
.about {
  background: var(--color-bg);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

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

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.highlight-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}

.highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.highlight-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== 核心业务 ===== */
.services {
  background: var(--color-bg-alt);
}

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

.service-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  font-weight: 900;
  color: var(--color-primary-light);
  line-height: 1;
  user-select: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== 解决方案 ===== */
.solutions {
  background: var(--color-bg);
}

.solutions-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.flow-step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  opacity: 0;
  transform: scale(0.95);
}

.flow-step.visible {
  opacity: 1;
  transform: scale(1);
}

.flow-step:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.flow-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.flow-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--color-primary);
  padding-top: 48px;
  flex-shrink: 0;
}

.clients-bar {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  border-radius: var(--radius);
}

.clients-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.clients-tags {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.clients-tags span {
  padding: 8px 24px;
  background: #fff;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--color-bg-alt);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

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

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-tip {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-tip.success {
  color: #059669;
}

.form-tip.error {
  color: #dc2626;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer-copy {
  font-size: 13px;
}

.footer-beian {
  font-size: 13px;
}

.footer-beian a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-beian a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-arrow {
    display: none;
  }

  .solutions-flow {
    gap: 16px;
  }

  .flow-step {
    max-width: none;
    flex: 1 1 calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  .about-body,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    gap: 32px;
  }

  .contact-form {
    padding: 28px 24px;
  }

  .flow-step {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
