:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #4834d4;
  --accent: #fd79a8;
  --accent-light: #fab1a0;
  --bg: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 52, 0.7);
  --bg-glass: rgba(30, 30, 52, 0.55);
  --text: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c88;
  --border: rgba(108, 92, 231, 0.18);
  --border-light: rgba(108, 92, 231, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --text: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a8;
    --border: rgba(108, 92, 231, 0.15);
    --border-light: rgba(108, 92, 231, 0.08);
    --shadow: 0 8px 32px rgba(108, 92, 231, 0.1);
    --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.15);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(108, 92, 231, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(253, 121, 168, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(72, 52, 212, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: light) {
  body::before {
    background:
      radial-gradient(ellipse 80% 60% at 10% 0%, rgba(108, 92, 231, 0.08), transparent),
      radial-gradient(ellipse 60% 50% at 90% 100%, rgba(253, 121, 168, 0.05), transparent),
      radial-gradient(ellipse 50% 40% at 50% 50%, rgba(72, 52, 212, 0.04), transparent);
  }
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

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

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

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-bottom: 0.75rem;
  color: var(--primary-light);
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

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

strong {
  color: var(--text);
  font-weight: 600;
}

small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

time {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-block;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@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(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.2); }
  50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.4); }
}

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

header:hover {
  box-shadow: var(--shadow);
}

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

nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: transform var(--transition), filter var(--transition);
}

nav > a:first-child:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

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

nav ul li {
  flex-shrink: 0;
}

nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: transform var(--transition);
}

nav ul li a:hover {
  color: var(--text);
  background: rgba(108, 92, 231, 0.12);
}

nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 40px) 24px 60px;
}

section {
  margin-bottom: 64px;
  animation: fadeInUp 0.7s ease both;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }

#home {
  position: relative;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(253, 121, 168, 0.1), rgba(72, 52, 212, 0.15));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite, fadeInUp 0.7s ease both;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 64px;
}

#home::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#home::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

#home h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
}

#home p {
  position: relative;
  z-index: 1;
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.85;
}

#home p:last-child {
  margin-bottom: 0;
}

#about,
#products,
#advantages,
#solutions,
#applications,
#cases,
#testimonials,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

#about:hover,
#products:hover,
#advantages:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#testimonials:hover,
#news:hover,
#articles:hover,
#knowledge:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border);
  transform: translateY(-2px);
}

#about h3,
#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#cases h3,
#knowledge h3,
#howto h3 {
  margin-top: 1.75rem;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
  transition: border-color var(--transition), padding-left var(--transition);
}

#about h3:first-of-type,
#products h3:first-of-type,
#advantages h3:first-of-type,
#solutions h3:first-of-type,
#applications h3:first-of-type,
#cases h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type {
  margin-top: 0.5rem;
}

#about h3:hover,
#products h3:hover,
#advantages h3:hover,
#solutions h3:hover,
#applications h3:hover,
#cases h3:hover,
#knowledge h3:hover,
#howto h3:hover {
  border-left-color: var(--accent);
  padding-left: 20px;
}

#products {
  background: linear-gradient(135deg, var(--bg-card), rgba(108, 92, 231, 0.08));
}

#advantages {
  background: linear-gradient(135deg, var(--bg-card), rgba(253, 121, 168, 0.06));
}

#cases {
  background: linear-gradient(135deg, var(--bg-card), rgba(72, 52, 212, 0.08));
}

#testimonials blockquote {
  position: relative;
  padding: 24px 28px 24px 56px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.5;
  font-family: Georgia, serif;
}

#testimonials blockquote:hover {
  background: rgba(108, 92, 231, 0.14);
  border-color: var(--border);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

#testimonials blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-secondary);
}

#news article,
#articles article {
  padding: 24px 28px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article:hover,
#articles article:hover {
  background: rgba(108, 92, 231, 0.12);
  border-color: var(--border);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

#news article h3,
#articles article h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  border-left: none;
  padding-left: 0;
}

#news article h3:hover,
#articles article h3:hover {
  border-left: none;
  padding-left: 0;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  margin-top: 8px;
}

#articles article a::after {
  content: "\2192";
  transition: transform var(--transition);
}

#articles article a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

#articles article a:hover::after {
  transform: translateX(4px);
}

#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
}

#faq details:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

#faq details[open] {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

#faq summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary-light);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.12);
}

#faq details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  color: var(--accent);
  background: rgba(253, 121, 168, 0.15);
}

#faq summary:hover {
  color: var(--primary-light);
}

#faq details p {
  padding: 0 24px 20px;
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

#howto h4 {
  color: var(--accent-light);
  margin-top: 1.25rem;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

#contact p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

#contact h3 {
  margin-top: 1.75rem;
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.06));
  border-top: 1px solid var(--border-light);
}

footer section {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  animation: none;
}

footer section:hover {
  box-shadow: none;
  border-color: transparent;
  transform: none;
}

footer h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

footer h2::after {
  width: 32px;
  height: 2px;
}

footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 900px;
}

footer > p:last-child {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

noscript p {
  padding: 16px 24px;
  background: rgba(253, 121, 168, 0.15);
  border: 1px solid rgba(253, 121, 168, 0.3);
  border-radius: var(--radius);
  color: var(--accent-light);
  text-align: center;
  margin: 16px auto;
  max-width: var(--max-width);
}

@media (max-width: 1024px) {
  :root {
    --header-height: 60px;
  }

  nav {
    padding: 0 16px;
  }

  nav ul li a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  main {
    padding: calc(var(--header-height) + 28px) 16px 48px;
  }

  #home {
    padding: 36px 28px;
  }

  #about,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 28px 24px;
  }

  section {
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --radius: 14px;
    --radius-lg: 20px;
  }

  body {
    font-size: 15px;
  }

  nav {
    padding: 0 12px;
  }

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

  nav ul {
    gap: 2px;
  }

  nav ul li a {
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  main {
    padding: calc(var(--header-height) + 20px) 12px 36px;
  }

  #home {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  #home h1 {
    font-size: 1.5rem;
  }

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

  #about,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  section {
    margin-bottom: 36px;
  }

  #testimonials blockquote {
    padding: 18px 20px 18px 44px;
  }

  #testimonials blockquote::before {
    font-size: 2.2rem;
    top: 8px;
    left: 12px;
  }

  #news article,
  #articles article {
    padding: 18px 20px;
  }

  #faq summary {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  #faq details p {
    padding: 0 16px 16px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  footer {
    padding: 32px 12px 24px;
  }

  footer h2 {
    font-size: 1rem;
  }

  footer p {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 52px;
  }

  nav > a:first-child {
    font-size: 1rem;
  }

  nav ul li a {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  #home {
    padding: 22px 16px;
  }

  #home h1 {
    font-size: 1.3rem;
  }

  #about,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 18px 14px;
  }

  #testimonials blockquote {
    padding: 14px 16px 14px 38px;
  }

  #testimonials blockquote::before {
    font-size: 1.8rem;
    top: 6px;
    left: 10px;
  }

  #news article,
  #articles article {
    padding: 14px 16px;
  }

  #faq summary {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  #faq summary::after {
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
  }

  #faq details p {
    padding: 0 14px 14px;
    font-size: 0.88rem;
  }

  #sitemap ul,
  #links ul {
    gap: 6px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  footer {
    padding: 24px 12px 20px;
  }
}

@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;
  }
}

@media print {
  header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main {
    padding: 0;
    max-width: 100%;
  }

  section {
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 24pt;
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}