:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --gradient-start: #6366f1;
  --gradient-mid: #8b5cf6;
  --gradient-end: #ec4899;
  --border: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(148, 163, 184, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 32px var(--accent-glow);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.2);
  }
}

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

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

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

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 400px at 20% 10%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(236, 72, 153, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -1%) scale(1.02); }
  66% { transform: translate(-1%, 2%) scale(0.98); }
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  list-style: none;
}

header {
  position: relative;
  z-index: 10;
  padding: 80px 24px 60px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, rgba(236, 72, 153, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbPulse 8s ease-in-out infinite;
}

header::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbPulse 10s ease-in-out infinite reverse;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

header > p {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto 32px;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

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

nav[aria-label="主导航"] {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
}

nav[aria-label="主导航"] ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

nav[aria-label="主导航"] ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

section {
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(32px);
  animation: sectionReveal 0.7s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.15s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.25s; }
section:nth-child(5) { animation-delay: 0.3s; }
section:nth-child(6) { animation-delay: 0.35s; }
section:nth-child(7) { animation-delay: 0.4s; }
section:nth-child(8) { animation-delay: 0.45s; }
section:nth-child(9) { animation-delay: 0.5s; }
section:nth-child(10) { animation-delay: 0.55s; }
section:nth-child(11) { animation-delay: 0.6s; }
section:nth-child(12) { animation-delay: 0.65s; }
section:nth-child(13) { animation-delay: 0.7s; }
section:nth-child(14) { animation-delay: 0.75s; }
section:nth-child(15) { animation-delay: 0.8s; }
section:nth-child(16) { animation-delay: 0.85s; }
section:nth-child(17) { animation-delay: 0.9s; }
section:nth-child(18) { animation-delay: 0.95s; }

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

section h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
  color: var(--text-primary);
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 10px;
  padding-left: 14px;
  position: relative;
}

section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-mid));
}

section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.85;
}

section > p:first-of-type {
  font-size: 1.02rem;
}

section ul {
  padding-left: 0;
}

section ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.8;
}

section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  opacity: 0.7;
}

section ol {
  padding-left: 0;
  counter-reset: step-counter;
}

section ol li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  counter-increment: step-counter;
}

section ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--accent-glow);
}

#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#author {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
}

#about:hover,
#history:hover,
#culture:hover,
#products:hover,
#advantages:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#reviews:hover,
#news:hover,
#articles:hover,
#knowledge:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover,
#author:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

#reviews blockquote {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 24px 24px 56px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-smooth);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
}

#reviews blockquote:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateX(4px);
}

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

#news article,
#articles article {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-smooth);
  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(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#news article:hover,
#articles article:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  font-size: 1.05rem;
  padding-left: 0;
}

#news article h3::before,
#articles article h3::before {
  display: none;
}

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

#news article p:last-of-type,
#articles article p:last-of-type {
  margin-bottom: 0;
}

#faq h3 {
  cursor: default;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 12px 0 0;
  transition: all var(--transition-fast);
}

#faq h3::before {
  display: none;
}

#faq h3:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
}

#faq p {
  padding: 12px 20px 16px;
  margin: 0;
  border-left: 2px solid var(--border);
  margin-left: 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

#contact p {
  margin-bottom: 8px;
}

#contact p:has(+ p) {
  padding: 4px 0;
}

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

#sitemap ul li,
#links ul li {
  padding-left: 0;
  margin-bottom: 0;
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-2px);
}

#legal h2 {
  font-size: 1.2rem;
  margin-top: 28px;
}

#legal h2:first-child {
  margin-top: 0;
}

#author p {
  margin-bottom: 6px;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  transition: background-color var(--transition-smooth);
}

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

footer p:last-child {
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 900px) {
  header {
    padding: 60px 20px 40px;
  }

  main {
    padding: 32px 16px 60px;
  }

  #about,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #author {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  section {
    margin-bottom: 40px;
  }

  section h2 {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }

  section h3 {
    font-size: 1rem;
    margin: 22px 0 8px;
  }

  #reviews blockquote {
    padding: 20px 18px 20px 48px;
  }

  #reviews blockquote::before {
    left: 14px;
    font-size: 2.4rem;
  }

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

  #faq h3 {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  #faq p {
    padding: 10px 16px 14px;
    margin-left: 16px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 48px 16px 32px;
  }

  header h1 {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  header > p {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }

  nav[aria-label="主导航"] ul {
    gap: 6px;
  }

  nav[aria-label="主导航"] ul li a {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  main {
    padding: 24px 12px 48px;
  }

  #about,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #author {
    padding: 22px 16px;
    border-radius: var(--radius-sm);
  }

  section {
    margin-bottom: 32px;
  }

  section h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  section h2::after {
    width: 36px;
    height: 2px;
  }

  section h3 {
    font-size: 0.95rem;
    padding-left: 12px;
  }

  section h3::before {
    width: 3px;
    height: 14px;
  }

  section p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  section ul li {
    font-size: 0.9rem;
    padding-left: 18px;
  }

  section ol li {
    padding-left: 34px;
    font-size: 0.9rem;
  }

  section ol li::before {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  #reviews blockquote {
    padding: 16px 14px 16px 42px;
  }

  #reviews blockquote::before {
    left: 12px;
    top: 6px;
    font-size: 2rem;
  }

  #news article,
  #articles article {
    padding: 16px;
    border-radius: var(--radius-sm);
  }

  #news article h3,
  #articles article h3 {
    font-size: 0.95rem;
  }

  #faq h3 {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  #faq p {
    padding: 8px 14px 12px;
    margin-left: 12px;
    font-size: 0.88rem;
  }

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

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

  footer {
    padding: 28px 16px;
  }

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

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

@media print {
  body::before,
  header::before,
  header::after {
    display: none;
  }

  header {
    background: none;
    border-bottom: 2px solid #000;
  }

  header h1 {
    -webkit-text-fill-color: #000;
    color: #000;
  }

  section {
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}