:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(20, 20, 45, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c88;
  --accent-1: #7c5cff;
  --accent-2: #ff5c8a;
  --accent-3: #5cc8ff;
  --accent-4: #ffb84d;
  --gradient-hero: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 30%, #6b2fa0 60%, #ff5c8a 100%);
  --gradient-card: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(255, 92, 138, 0.08));
  --gradient-accent: linear-gradient(135deg, #7c5cff, #ff5c8a);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 40px rgba(124, 92, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s 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;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f3ff;
    --bg-secondary: #ede9fe;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(124, 92, 255, 0.12);
    --border-glass-hover: rgba(124, 92, 255, 0.25);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --gradient-hero: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 30%, #c4b5fd 60%, #fbcfe8 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 92, 255, 0.06), rgba(255, 92, 138, 0.04));
    --shadow-card: 0 4px 24px rgba(124, 92, 255, 0.08);
    --shadow-hover: 0 12px 40px rgba(124, 92, 255, 0.15);
  }
}

*,
*::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: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 5%, rgba(124, 92, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(255, 92, 138, 0.08), transparent),
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(92, 200, 255, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: light) {
  body::before {
    background:
      radial-gradient(ellipse 80% 60% at 10% 5%, rgba(124, 92, 255, 0.08), transparent),
      radial-gradient(ellipse 60% 50% at 90% 15%, rgba(255, 92, 138, 0.06), transparent),
      radial-gradient(ellipse 70% 60% at 50% 90%, rgba(92, 200, 255, 0.05), transparent);
  }
}

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

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

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

::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.55);
}

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

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

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

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

ul, ol {
  list-style: none;
}

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

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

header nav > a {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

header nav > a:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

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

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

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

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

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main > h1 {
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.7s ease-out both;
}

main > p {
  margin-bottom: 48px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 860px;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

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

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

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-smooth);
}

section:hover h2::after {
  width: 96px;
}

section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent-3);
}

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

section > p:last-child {
  margin-bottom: 0;
}

#intro,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

#intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-hover);
}

#products h3:first-of-type {
  margin-top: 0;
}

#products h4 {
  color: var(--accent-4);
}

#solutions h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#solutions h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

#cases h3 {
  padding-left: 16px;
  border-left: 3px solid var(--accent-1);
}

#cases p:last-of-type {
  font-style: italic;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 2px solid var(--border-glass);
}

#news p {
  padding: 12px 16px;
  background: var(--gradient-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-3);
  margin-bottom: 12px;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

#news p:hover {
  transform: translateX(6px);
}

#articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#articles h2 {
  margin-bottom: 20px;
}

#articles article {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-glass);
  transition: padding-left var(--transition-smooth), background-color var(--transition-fast);
}

#articles article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#articles article:hover {
  padding-left: 12px;
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.08rem;
  transition: color var(--transition-fast);
}

#articles article:hover h3 {
  color: var(--accent-1);
}

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

#articles article p:nth-of-type(2) {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-1);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  transition: all var(--transition-fast);
}

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

#articles article a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.35);
  transform: translateY(-1px);
}

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

#faq dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#faq dt {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  padding: 18px 0 8px;
  position: relative;
  padding-left: 24px;
  cursor: default;
  transition: color var(--transition-fast);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#faq dt:hover {
  color: var(--accent-1);
}

#faq dd {
  padding: 0 0 18px 24px;
  margin-left: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--border-glass);
  transition: color var(--transition-fast);
}

#faq dd:last-child {
  border-bottom: none;
}

#howto ol {
  counter-reset: howto-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

#howto ol li {
  counter-increment: howto-counter;
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.12);
}

#howto h3 {
  color: var(--accent-3);
  font-size: 1.02rem;
}

#contact p {
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
}

#contact p:first-of-type {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

#contact p:last-of-type {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.3);
}

#links ul li a[rel="nofollow"] {
  opacity: 0.8;
}

#links ul li a[rel="nofollow"]:hover {
  opacity: 1;
}

#legal h2 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

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

#legal h2::after {
  width: 32px;
  height: 2px;
}

#legal p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

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

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

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; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }

@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 (max-width: 900px) {
  header nav {
    padding: 0 16px;
    height: 60px;
  }

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

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

  main {
    padding: 0 16px;
  }

  main > h1 {
    margin-top: 32px;
    margin-bottom: 16px;
  }

  main > p {
    margin-bottom: 36px;
    font-size: 0.98rem;
  }

  section {
    margin-bottom: 40px;
  }

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

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

  footer {
    padding: 28px 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  header nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  header nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
  }

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

  main > h1 {
    font-size: 1.35rem;
    line-height: 1.4;
  }

  main > p {
    font-size: 0.92rem;
    line-height: 1.8;
  }

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

  section h2 {
    font-size: 1.15rem;
  }

  section h3 {
    font-size: 1.02rem;
  }

  #articles article {
    padding: 18px 0;
  }

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

  #faq dt {
    font-size: 0.92rem;
    padding-left: 22px;
  }

  #faq dd {
    font-size: 0.88rem;
    padding-left: 22px;
  }

  #howto ol li {
    padding: 12px 14px 12px 48px;
    font-size: 0.88rem;
  }

  #howto ol li::before {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
    left: 14px;
  }

  #contact p {
    font-size: 0.88rem;
    flex-direction: column;
    gap: 2px;
  }

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

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

@media (max-width: 380px) {
  header nav ul li a {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  main > h1 {
    font-size: 1.2rem;
  }

  section h2 {
    font-size: 1.05rem;
  }
}

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

  body {
    background: #fff;
    color: #000;
  }

  body::before {
    display: none;
  }

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

@media (hover: none) {
  #articles article:hover {
    padding-left: 0;
  }

  #howto ol li:hover {
    transform: none;
  }

  #sitemap ul li a:hover,
  #links ul li a:hover {
    transform: none;
  }
}