/* ========================================
   映舞星云 (Yingwu Studio) - 品牌官网样式
   深色主题 · 紫金色系
   ======================================== */

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

:root {
  /* 紫色系 */
  --purple-900: #1a0e2e;
  --purple-800: #2d1b4e;
  --purple-700: #4c1d95;
  --purple-600: #6d28d9;
  --purple-500: #7C3AED;
  --purple-400: #8b5cf6;
  --purple-300: #a78bfa;
  --purple-200: #c4b5fd;
  --purple-100: #ddd6fe;

  /* 金色系 */
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #F59E0B;
  --gold-300: #fbbf24;
  --gold-200: #fcd34d;
  --gold-100: #fde68a;

  /* 中性色 */
  --neutral-50:  #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  /* 语义 */
  --bg-primary: #0a0718;
  --bg-secondary: #110b24;
  --bg-card: #1a0e2e;
  --bg-card-hover: #221440;
  --text-primary: #f0ecf9;
  --text-secondary: #c4b5fd;
  --text-muted: #7c6a9a;
  --border-subtle: rgba(124, 58, 237, 0.15);
  --glow-purple: rgba(124, 58, 237, 0.25);
  --glow-gold: rgba(245, 158, 11, 0.15);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple-600);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--purple-500);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 7, 24, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name-cn {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 2px;
}

.logo-name-en {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ---------- Main ---------- */
main {
  flex: 1;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 13px;
  color: var(--purple-300);
  letter-spacing: 2px;
  margin-bottom: 24px;
  background: rgba(124, 58, 237, 0.08);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .highlight-purple {
  background: linear-gradient(135deg, var(--purple-400), var(--purple-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.hero-subtitle-extra {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Divider ---------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  margin-bottom: 40px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-500), transparent);
}

.section-divider-icon {
  color: var(--purple-400);
  font-size: 20px;
  opacity: 0.7;
}

/* ---------- Products Section ---------- */
.products {
  padding: 20px 24px 100px;
}

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

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-desc {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 48px 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card--cs::before {
  background: linear-gradient(90deg, var(--purple-500), var(--purple-400));
}

.product-card--zm::before {
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300));
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

.product-card:hover::before {
  opacity: 1;
}

/* Card glow effects */
.product-card--cs::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.product-card--zm::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  flex-shrink: 0;
  position: relative;
}

.product-card--cs .card-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(139, 92, 246, 0.1));
  color: var(--purple-400);
}

.product-card--zm .card-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
  color: var(--gold-400);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  width: fit-content;
}

.product-card--cs .card-tag {
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple-300);
}

.product-card--zm .card-tag {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-300);
}

.card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card--cs .card-name {
  color: var(--purple-200);
}

.product-card--zm .card-name {
  color: var(--gold-100);
}

.card-name-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.product-card--cs .card-link {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
}

.product-card--cs .card-link:hover {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-400));
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
}

.product-card--zm .card-link {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #1a0e2e;
}

.product-card--zm .card-link:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.card-link-arrow {
  transition: transform 0.3s ease;
}

.card-link:hover .card-link-arrow {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  text-align: center;
}

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

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-email {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--purple-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: var(--purple-300);
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1023px) {
  .hero {
    padding: 80px 20px 60px;
  }

  .products-grid {
    gap: 24px;
  }

  .product-card {
    padding: 36px 28px;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 767px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .logo-name-cn {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .logo-name-en {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero {
    padding: 60px 16px 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 12px;
    padding: 4px 14px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 32px 24px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin-bottom: 18px;
  }

  .card-name {
    font-size: 1.25rem;
  }

  .site-footer {
    padding: 32px 16px;
  }

  .section-divider::before,
  .section-divider::after {
    width: 40px;
  }
}

/* ---------- Responsive: Small Mobile ---------- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .product-card {
    padding: 24px 18px;
  }
}

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

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
  }
}
