/* ============================================
   云梦智能 - Linear-inspired Dark Enterprise Site
   ============================================ */

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

:root {
  --bg-primary: #08090a;
  --bg-secondary: #0e0f11;
  --bg-surface: #131417;
  --bg-elevated: #1a1b1f;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f0f0f3;
  --text-secondary: #8a8f98;
  --text-tertiary: #5a5f68;
  --accent-primary: #6366f1;
  --accent-secondary: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --gradient-text: linear-gradient(135deg, #c7d2fe 0%, #6366f1 40%, #8b5cf6 70%, #22d3ee 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Source Code Pro", monospace;
  --max-width: 1200px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent-secondary);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Dot Grid Background --- */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* --- Glow Orbs --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.4;
}

.glow-orb--purple {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  opacity: 0.08;
}

.glow-orb--cyan {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  opacity: 0.06;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(8, 9, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.header__logo img {
  height: 28px;
  width: auto;
}

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

.header__nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

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

.header__nav-link--active {
  color: var(--text-primary);
}

.header__nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-primary);
}

.header__cta {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header__cta:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.header__menu-toggle svg {
  width: 24px;
  height: 24px;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero__desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn--primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn--secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.btn--large {
  padding: 14px 28px;
  font-size: 16px;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 80px;
}

.stat-item {
  background: var(--bg-secondary);
  padding: 32px 24px;
  text-align: center;
}

.stat-item__value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- About Section --- */
.about {
  background: var(--bg-secondary);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.about-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
}

.about-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.about-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- AI Features --- */
.ai-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.ai-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
}

.ai-feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.ai-feature-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: inline-block;
  padding: 4px 8px;
  background: rgba(34, 211, 238, 0.08);
  border-radius: 4px;
}

.ai-feature-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.ai-feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Standardization --- */
.standard {
  background: var(--bg-secondary);
}

.standard__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.standard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.standard-card__number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 16px;
  right: 24px;
}

.standard-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.standard-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Partners --- */
.partners__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  max-height: 48px;
  width: auto;
}

.partner-logo:hover {
  opacity: 1;
}

.partners__desc {
  text-align: center;
  max-width: 700px;
  margin: 32px auto 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Products --- */
.products {
  background: var(--bg-secondary);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.product-card__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent-secondary);
  margin-bottom: 20px;
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-glow);
  border-radius: 4px;
}

.product-card__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.product-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-card__features {
  list-style: none;
  margin-bottom: 28px;
}

.product-card__features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card__features li:last-child {
  border-bottom: none;
}

.product-card__features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.product-card__actions {
  display: flex;
  gap: 12px;
}

/* --- Team --- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--border-subtle);
}

.team-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.team-card__bio {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- CTA --- */
.cta {
  background: var(--bg-secondary);
  text-align: center;
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer__brand img {
  height: 24px;
  width: auto;
}

.footer__brand-name {
  font-size: 14px;
  font-weight: 500;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-primary);
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 0;
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav__link {
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.mobile-nav__link:hover {
  color: var(--text-primary);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

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

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

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

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

  .ai-features__grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .partners__logos {
    gap: 32px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

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

  .cta__actions {
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
  }
}
