/* 艾耐特智能 AINET - 官网样式 */
:root {
  --color-bg: #0a0b0e;
  --color-surface: #12141a;
  --color-card: #16181f;
  --color-border: #2a2d36;
  --color-text: #e8eaed;
  --color-text-muted: #9ca3af;
  --color-accent: #6366f1;
  --color-accent-soft: rgba(99, 102, 241, 0.15);
  --color-hero-glow: rgba(99, 102, 241, 0.25);
  --font-sans: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-zh: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.logo-en {
  font-size: 1.35rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.logo-zh {
  font-family: var(--font-zh);
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-text);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.lang-divider {
  color: var(--color-border);
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--color-hero-glow), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-title-en {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-title-zh {
  display: block;
  font-family: var(--font-zh);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 8px;
}

.hero-desc {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

/* Section common */
.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.section-desc {
  margin: 0 0 48px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Products */
.products {
  padding: 80px 0 100px;
}

.products-row-title {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  font-weight: 500;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-cards--three {
  grid-template-columns: repeat(3, 1fr);
}

.product-cards--six {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.product-card-image {
  aspect-ratio: 1;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img--full {
  object-fit: contain;
  padding: 12px;
}

.product-card-content {
  padding: 20px;
}

.product-card-content h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.product-card-content h4 .product-en {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.product-scene {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.products-showcase {
  margin-bottom: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.products-showcase:last-of-type {
  margin-bottom: 0;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* About */
.about {
  padding: 80px 0;
  background: var(--color-surface);
}

.about-text {
  margin: 0;
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Footer */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .logo-en {
  font-size: 1.1rem;
}

.footer-brand .logo-zh {
  font-size: 0.95rem;
}

.footer-icp {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.footer-icp a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--color-accent);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-cards--three {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .product-cards--six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-cards,
  .product-cards--six {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }
}
