:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #a8a8c0;
  --text-muted: #6e6e88;
  --accent-1: #7c5cff;
  --accent-2: #ff6bcb;
  --accent-3: #00d4ff;
  --gradient-main: linear-gradient(135deg, #7c5cff 0%, #ff6bcb 50%, #00d4ff 100%);
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 40%, #4a1d6e 70%, #1a1a2e 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 48px rgba(124, 92, 255, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f4f4fb;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.55);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8888a0;
    --shadow-card: 0 8px 32px rgba(124, 92, 255, 0.1);
    --shadow-hover: 0 16px 48px rgba(124, 92, 255, 0.2);
    --gradient-banner: linear-gradient(135deg, #e8e0ff 0%, #ffd6f0 40%, #d6f0ff 70%, #e8e0ff 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(124, 92, 255, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(255, 107, 203, 0.1), transparent),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(0, 212, 255, 0.08), transparent);
  pointer-events: none;
}

a {
  color: var(--accent-3);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--accent-2);
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-main);
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition), box-shadow var(--transition);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header nav > a {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

header nav > a:hover {
  opacity: 0.85;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  align-items: center;
}

header nav ul li a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

header nav ul li a:hover {
  color: var(--text-primary);
  background: rgba(124, 92, 255, 0.15);
  transform: translateY(-2px);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

section:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 92, 255, 0.3);
}

section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.15s; }
section:nth-of-type(4) { animation-delay: 0.2s; }
section:nth-of-type(5) { animation-delay: 0.25s; }
section:nth-of-type(6) { animation-delay: 0.3s; }
section:nth-of-type(7) { animation-delay: 0.35s; }
section:nth-of-type(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section#home {
  background: var(--gradient-banner);
  border: 1px solid rgba(124, 92, 255, 0.35);
  text-align: center;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

section#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 203, 0.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.2), transparent 45%);
  pointer-events: none;
}

section#home h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
}

section#home p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

section#about h3,
section#products h3,
section#solutions h3,
section#cases h3,
section#howto h3 {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border-glass);
}

section#about h3:first-of-type,
section#products h3:first-of-type,
section#solutions h3:first-of-type,
section#cases h3:first-of-type,
section#howto h3:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

section#products h3,
section#solutions h3 {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.5rem;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-3);
  font-size: 0.95rem;
}

section#products h3:first-of-type,
section#solutions h3:first-of-type {
  margin-top: 0.5rem;
}

section#cases p {
  padding: 0.7rem 1rem;
  margin-bottom: 0.7rem;
  background: rgba(0, 212, 255, 0.06);
  border-left: 3px solid var(--accent-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

section#news article,
section#articles article {
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

section#news article:hover,
section#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 203, 0.35);
  background: rgba(124, 92, 255, 0.08);
}

section#news article h3,
section#articles article h3 {
  margin-bottom: 0.4rem;
}

section#news article p:first-of-type,
section#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

section#articles article a {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-3);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

section#articles article a:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  transform: translateX(4px);
}

section#article-1,
section#article-2,
section#article-3,
section#article-4,
section#article-5,
section#article-6,
section#article-7,
section#article-8,
section#article-9,
section#article-10 {
  padding: 1.4rem 1.8rem;
  background: rgba(0, 212, 255, 0.04);
}

section#article-1 h2,
section#article-2 h2,
section#article-3 h2,
section#article-4 h2,
section#article-5 h2,
section#article-6 h2,
section#article-7 h2,
section#article-8 h2,
section#article-9 h2,
section#article-10 h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

section#article-1 h2::before,
section#article-2 h2::before,
section#article-3 h2::before,
section#article-4 h2::before,
section#article-5 h2::before,
section#article-6 h2::before,
section#article-7 h2::before,
section#article-8 h2::before,
section#article-9 h2::before,
section#article-10 h2::before {
  background: var(--accent-3);
}

section#faq h3 {
  margin-top: 1.1rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 107, 203, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-2);
  font-size: 1rem;
  color: var(--accent-2);
}

section#faq h3:first-of-type {
  margin-top: 0.5rem;
}

section#faq p {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

section#howto p {
  padding-left: 0.5rem;
}

section#howto h3 {
  color: var(--accent-1);
}

section#contact p {
  padding: 0.55rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(124, 92, 255, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  transition: background var(--transition), transform var(--transition);
}

section#contact p:hover {
  background: rgba(124, 92, 255, 0.14);
  transform: translateX(4px);
}

section#sitemap ul,
section#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

section#sitemap ul li a,
section#links ul li a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

section#sitemap ul li a:hover,
section#links ul li a:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.35);
}

section#legal h3 {
  margin-top: 1.2rem;
  color: var(--accent-1);
}

section#legal h3:first-of-type {
  margin-top: 0.5rem;
}

section#legal p:last-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-glass);
  text-align: center;
  padding: 1.6rem 1.5rem;
}

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

::selection {
  background: rgba(124, 92, 255, 0.4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}

@media (max-width: 900px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  main {
    padding: 0 1rem 3rem;
  }

  section {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.8rem;
  }

  section#home {
    padding: 2.5rem 1.2rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  header nav > a {
    font-size: 1.15rem;
  }

  header nav ul li a {
    font-size: 0.82rem;
    padding: 0.35rem 0.55rem;
  }

  main {
    padding: 0 0.75rem 2.5rem;
  }

  section {
    padding: 1.2rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.4rem;
  }

  section#home {
    padding: 2rem 1rem;
  }

  section#home p {
    font-size: 0.95rem;
  }

  h2 {
    padding-left: 0.8rem;
  }

  h2::before {
    width: 3px;
  }

  section#news article,
  section#articles article {
    padding: 1rem 1.1rem;
  }

  section#contact p {
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
  }

  section#sitemap ul li a,
  section#links ul li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  section {
    opacity: 1;
    transform: none;
  }
}