:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4c1d95 100%);
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.2);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0b1120;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.78);
    --bg-glass-border: rgba(148, 163, 184, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --gradient-hero: linear-gradient(135deg, #020617 0%, #0f172a 40%, #1e1b4b 70%, #312e81 100%);
  }
}

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

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

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

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

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

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

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

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

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

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-1);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

blockquote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}

header {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  overflow: hidden;
  isolation: isolate;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  animation: headerGlow 12s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes headerGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, -3%) rotate(3deg); }
}

header h1 {
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto 1rem;
  animation: fadeInUp 0.8s ease-out both;
}

header > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.05rem;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

header nav ul li a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

header nav ul li a:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.5);
  border-color: rgba(129, 140, 248, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

main section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out both;
}

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

#banner {
  background: var(--gradient-1);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBubble 8s ease-in-out infinite;
  z-index: -1;
}

#banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBubble 10s ease-in-out infinite reverse;
  z-index: -1;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.08); }
}

#banner h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 0.75rem;
}

#banner h2::after {
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
}

#banner > p {
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

#banner > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

#banner article {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition-smooth);
  cursor: default;
}

#banner article:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
}

#banner article h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

#banner article p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.925rem;
  margin-bottom: 0;
}

#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#author {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: box-shadow 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);
}

#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#cases h3,
#knowledge h3 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary);
}

#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 {
  margin-top: 0.5rem;
}

#products h3 + p,
#advantages h3 + p,
#solutions h3 + p,
#applications h3 + p,
#cases h3 + p,
#knowledge h3 + p {
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

#reviews {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#reviews h2 {
  margin-bottom: 0.5rem;
}

#news article,
#articles article,
#faq article {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

#news article:hover,
#articles article:hover,
#faq article:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

#news article:last-child,
#articles article:last-child,
#faq article:last-child {
  margin-bottom: 0;
}

#news article h3,
#articles article h3,
#faq article h3 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

#news article p,
#articles article p,
#faq article p {
  margin-bottom: 0.35rem;
  font-size: 0.925rem;
}

#news article p:first-of-type {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

#articles article a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

#articles article a:hover {
  border-bottom-color: var(--primary);
  color: var(--primary-light);
}

#faq article h3 {
  color: var(--primary);
  position: relative;
  padding-left: 1.5rem;
}

#faq article h3::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
}

#howto ol {
  counter-reset: howto-counter;
  padding-left: 0;
  margin: 1rem 0;
}

#howto ol li {
  counter-increment: howto-counter;
  position: relative;
  padding: 0.75rem 1rem 0.75rem 3rem;
  margin-bottom: 0.6rem;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

#howto ol li:hover {
  border-color: var(--primary-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  background: var(--gradient-1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

#howto h3 {
  color: var(--primary);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

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

#contact p {
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  transition: background var(--transition-fast);
}

#contact p:hover {
  background: rgba(99, 102, 241, 0.06);
}

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

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-body);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(4px);
}

#legal h2 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

#legal h2::after {
  width: 36px;
  height: 3px;
}

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

#legal p {
  font-size: 0.925rem;
  margin-bottom: 0.75rem;
}

#author p {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#author p:last-child {
  margin-right: 0;
}

footer {
  background: var(--gradient-hero);
  color: rgba(226, 232, 240, 0.85);
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

footer p {
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer p:first-child {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.6);
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

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

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

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

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

  header {
    padding: 2.5rem 1rem 2rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  header > p {
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
  }

  header nav ul {
    gap: 0.35rem;
  }

  header nav ul li a {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  main section {
    margin-bottom: 2rem;
  }

  #banner {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  #banner > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #banner article {
    padding: 1.25rem 1rem;
  }

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

  h2 {
    font-size: 1.25rem;
  }

  h2::after {
    width: 40px;
    height: 3px;
  }

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

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  #howto ol li {
    padding: 0.6rem 0.75rem 0.6rem 2.6rem;
    font-size: 0.9rem;
  }

  #howto ol li::before {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.75rem;
    left: 0.6rem;
  }

  #author p {
    display: block;
    margin-right: 0;
  }

  footer {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }

  header nav ul li a {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  #banner {
    padding: 1.5rem 1rem;
  }

  #banner h2 {
    font-size: 1.15rem;
  }

  #banner article h3 {
    font-size: 1rem;
  }

  #banner article p {
    font-size: 0.85rem;
  }

  #about,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #author {
    padding: 1.25rem 1rem 1.5rem;
  }

  blockquote {
    padding: 1rem 1.1rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
  }
}

@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 {
    background: #fff;
    color: #000;
  }

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

  header nav,
  footer::before {
    display: none;
  }

  main section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

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