:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #a8a8c0;
  --text-muted: #6b6b85;
  --accent-primary: #e94560;
  --accent-secondary: #ff6b8a;
  --accent-tertiary: #7b2ff7;
  --accent-gradient: linear-gradient(135deg, #e94560 0%, #7b2ff7 50%, #00d2ff 100%);
  --accent-gradient-2: linear-gradient(135deg, #ff6b8a 0%, #e94560 40%, #7b2ff7 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(233, 69, 96, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.25);
  --radius-sm: 8px;
  --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.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(233, 69, 96, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.15);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(123, 47, 247, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(233, 69, 96, 0.35);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary));
  border-radius: 4px;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(245, 245, 250, 0.78);
  }
}

header:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

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

nav > a:first-child:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: transform var(--transition-smooth);
}

nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  transform: translateY(-1px);
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

section {
  margin-bottom: 64px;
  animation: fadeInUp 0.7s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: fadeInUp 0.7s ease-out both;
  }
}

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

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

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#hero {
  margin-top: 96px;
  margin-bottom: 72px;
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.18) 0%, rgba(123, 47, 247, 0.14) 40%, rgba(0, 210, 255, 0.1) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: fadeInUp 0.9s ease-out both;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(233, 69, 96, 0.08), transparent, rgba(123, 47, 247, 0.06), transparent);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

#hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff 0%, #ffb8c6 30%, #c4a5ff 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@media (prefers-color-scheme: light) {
  #hero h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #e94560 30%, #7b2ff7 60%, #1a1a2e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

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

#hero p:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 24px;
}

#hero strong {
  color: var(--accent-secondary);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  position: relative;
  padding-left: 20px;
  color: var(--text-primary);
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: var(--accent-gradient);
  border-radius: 3px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--accent-secondary);
}

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

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

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

ul {
  list-style: none;
}

section > p,
section > h3 + p,
section > h4 + p {
  max-width: 900px;
}

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
}

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

#products h4 {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(123, 47, 247, 0.12));
  border-radius: 20px;
  border: 1px solid rgba(233, 69, 96, 0.2);
  margin-top: 24px;
  font-size: 0.95rem;
}

#cases p:not(:first-of-type) {
  padding: 14px 20px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-primary);
  margin-bottom: 10px;
  font-style: italic;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

#cases p:not(:first-of-type):hover {
  background: var(--bg-glass-hover);
  transform: translateX(6px);
  border-left-color: var(--accent-secondary);
}

#news h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#news h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseGlow 2s ease-in-out infinite;
}

#news p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#news a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 0;
  position: relative;
}

#news a::after {
  content: ' →';
  transition: transform var(--transition-fast);
  display: inline-block;
}

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

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

#articles:hover {
  box-shadow: none;
  border-color: transparent;
  transform: none;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

#articles article:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-hover);
}

#articles article:hover::before {
  transform: scaleX(1);
}

#articles article h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  line-height: 1.45;
}

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

#articles article p:nth-of-type(2) {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

#articles article a {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(123, 47, 247, 0.12));
  border-radius: 20px;
  border: 1px solid rgba(233, 69, 96, 0.2);
  transition: all var(--transition-fast);
}

#articles article a:hover {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.3), rgba(123, 47, 247, 0.25));
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.25);
}

#faq h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.05rem;
  padding: 16px 20px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: default;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  margin-bottom: 4px;
}

#faq h3:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

#faq h3 + p {
  padding: 0 20px 16px 44px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

#howto h3 {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(123, 47, 247, 0.1));
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  font-size: 0.95rem;
  margin-top: 24px;
}

#howto p {
  padding-left: 8px;
}

#contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

#contact p:hover {
  background: var(--bg-glass-hover);
  transform: translateX(4px);
  border-color: var(--border-hover);
}

#contact p:first-child {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(123, 47, 247, 0.1));
  border-color: rgba(233, 69, 96, 0.2);
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
  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(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.15);
}

#legal h2 {
  margin-top: 32px;
  font-size: 1.15rem;
}

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

#legal p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

footer p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  nav {
    padding: 0 16px;
    height: auto;
    min-height: 64px;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav ul {
    justify-content: center;
    gap: 2px;
  }

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

  main {
    padding: 0 16px 40px;
  }

  #hero {
    margin-top: 100px;
    padding: 48px 24px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: 1.6rem;
  }

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

  section {
    margin-bottom: 40px;
  }

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

  h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 1.05rem;
  }

  #articles {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  nav > a:first-child {
    font-size: 1.1rem;
  }

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

  #hero {
    padding: 36px 18px;
    margin-top: 110px;
  }

  #hero h1 {
    font-size: 1.35rem;
  }

  #hero p {
    font-size: 0.88rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 22px 16px;
  }

  h2 {
    font-size: 1.15rem;
    padding-left: 16px;
  }

  h2::before {
    width: 4px;
  }

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

  #faq h3 {
    font-size: 0.92rem;
    padding: 12px 14px;
  }

  #faq h3 + p {
    padding: 0 14px 12px 36px;
    font-size: 0.85rem;
  }

  footer {
    padding: 30px 16px 50px;
  }
}

@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 {
    position: static;
    background: none;
    backdrop-filter: none;
    border-bottom: 1px solid #ccc;
  }

  #hero {
    background: none;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  section {
    break-inside: avoid;
    box-shadow: none;
  }
}