/* ===== 全局 ===== */

:root {
  --bg-primary: #f8fafc;
  --bg-white: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-blue: #3b82f6;
  --gradient-primary: linear-gradient(135deg, #7c3aed, #db2777);
  --gradient-blue: linear-gradient(135deg, #0f172a, #3b82f6);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-card: 0 10px 30px -5px rgba(100, 116, 139, 0.1), 0 5px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 20px 50px -10px rgba(100, 116, 139, 0.2), 0 10px 20px -6px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ===== 导航栏 ===== */
.navbar {
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: -0.5px;
}

.navbar-brand .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.navbar-brand .brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 8px;
  padding: 8px 12px !important;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple) !important;
  background: rgba(124, 58, 237, 0.06);
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(148 163 184 / 0.2)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
  pointer-events: none;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--accent-purple);
}

.hero-glow-2 {
  bottom: -200px;
  left: -100px;
  background: var(--accent-pink);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-button);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
  color: #fff;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.04);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Hero 装饰图 ===== */
.hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 通用板块标题 ===== */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-purple);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title h2 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-text-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-purple);
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.about-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.about-card-item:last-child {
  border-bottom: none;
}

.about-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-card-item h6 {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.about-card-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== 核心产品 ===== */
.product {
  background: var(--bg-primary);
}

.product-tagline {
  text-align: center;
  margin-bottom: 50px;
}

.product-tagline .tagline-box {
  display: inline-block;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 40px;
  box-shadow: var(--shadow-card);
}

.product-tagline .tagline-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-tagline .tagline-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

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

.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(124, 58, 237, 0.2);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.product-card h4 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== 特色优势 ===== */
.features {
  background: var(--bg-white);
}

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

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  text-align: center;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

.feature-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== 合作伙伴 ===== */
.partners {
  background: var(--bg-primary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.partner-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

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

.partner-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.partner-card h5 {
  font-weight: 700;
  margin-bottom: 4px;
}

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

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

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info h4 {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.contact-form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-form .form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-form .form-control {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: #fff;
}

.contact-form .form-control::placeholder {
  color: var(--text-light);
}

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

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 30px 0;
}

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

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== 响应式 ===== */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .product-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat h3 {
    font-size: 1.4rem;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }

  .product-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 50px 0;
  }

  .product-tagline .tagline-box {
    padding: 16px 20px;
  }

  .product-tagline .tagline-box h4 {
    font-size: 1rem;
  }

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