:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: rgba(30, 30, 50, 0.75);
  --bg-card-hover: rgba(40, 40, 65, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f5;
  --text-secondary: #b8b8cc;
  --text-muted: #7a7a95;
  --accent: #e94560;
  --accent-hover: #ff5a75;
  --accent-secondary: #533483;
  --accent-tertiary: #0f3460;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #533483 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px 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: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f6;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --gradient-hero: linear-gradient(135deg, #e8eaf6 0%, #e0e7ff 50%, #dce4f5 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px 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;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-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;
  transition: background-color var(--transition-base), color var(--transition-base);
  -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 at 20% 0%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(83, 52, 131, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

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

header nav > a:first-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

header nav > a:first-child::before {
  content: "▶";
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

header nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

header nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

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

/* ========== BREADCRUMB ========== */
main > nav[aria-label="面包屑"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

main > nav[aria-label="面包屑"] ol li {
  display: flex;
  align-items: center;
  gap: 6px;
}

main > nav[aria-label="面包屑"] ol li:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}

main > nav[aria-label="面包屑"] ol li a {
  color: var(--text-secondary);
}

main > nav[aria-label="面包屑"] ol li a:hover {
  color: var(--accent);
}

/* ========== SECTIONS ========== */
section {
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}

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

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

section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  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: var(--gradient-accent);
}

section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

section ul {
  padding-left: 0;
}

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

section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

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

section ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  counter-increment: item;
}

section ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ========== HERO ========== */
#hero {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

#hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

#hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* ========== CARDS (products, solutions, cases) ========== */
#products,
#solutions,
#cases {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

#products:hover,
#solutions:hover,
#cases:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.2);
}

#products h3,
#solutions h3,
#cases h3 {
  padding: 16px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-top: 20px;
  margin-bottom: 8px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

#products h3:hover,
#solutions h3:hover,
#cases h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(233, 69, 96, 0.3);
}

#products h3 + p,
#solutions h3 + p,
#cases h3 + p {
  padding: 0 20px;
}

/* ========== BLOCKQUOTE ========== */
blockquote {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 12px 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

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

/* ========== NEWS & ARTICLES ========== */
#news article,
#articles article {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.25);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

#news article p,
#articles article p {
  font-size: 0.9rem;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

#articles article a:hover {
  gap: 8px;
  color: var(--accent-hover);
}

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

/* ========== FAQ (details) ========== */
#faq details {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

#faq details:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(233, 69, 96, 0.2);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.3);
}

#faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-glass);
  transition: transform var(--transition-base), background var(--transition-base);
}

#faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--gradient-accent);
  color: #fff;
}

#faq summary:hover {
  background: var(--bg-glass);
}

#faq details[open] summary {
  border-bottom: 1px solid var(--bg-glass-border);
}

#faq details p {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HOWTO ========== */
#howto {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

#howto h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-top: 20px;
  margin-bottom: 12px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#howto h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#howto h3::before {
  content: "◆";
  font-size: 0.6rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
#contact {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

#contact ul li strong {
  color: var(--text-primary);
}

/* ========== SITEMAP & LINKS ========== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bg-glass-border);
  border-radius: 100px;
  transition: all var(--transition-base);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ========== PRIVACY / TERMS / COPYRIGHT / AUTHOR ========== */
#privacy,
#terms,
#copyright,
#author {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

#privacy p,
#terms p,
#copyright p,
#author p {
  font-size: 0.9rem;
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--bg-glass-border);
  padding: 32px 24px;
  text-align: center;
}

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

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* ========== SELECTION ========== */
::selection {
  background: rgba(233, 69, 96, 0.3);
  color: var(--text-primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #hero h1 {
    font-size: 1.7rem;
  }
}

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

  header nav {
    padding: 0 16px;
  }

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

  header nav ul {
    gap: 2px;
  }

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

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

  section {
    margin-bottom: 40px;
  }

  section h2 {
    font-size: 1.3rem;
  }

  section h3 {
    font-size: 1.05rem;
  }

  #hero {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

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

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

  #products,
  #solutions,
  #cases,
  #howto,
  #contact,
  #privacy,
  #terms,
  #copyright,
  #author {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  #news article,
  #articles article {
    padding: 18px 20px;
    border-radius: var(--radius-md);
  }

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

  #faq details p {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  blockquote {
    padding: 14px 16px;
  }

  footer {
    padding: 24px 16px;
  }
}

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

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

  #hero {
    padding: 24px 16px;
  }

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

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

  section h2 {
    font-size: 1.15rem;
  }

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

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

/* ========== REDUCED MOTION ========== */
@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;
  }
}

/* ========== PRINT ========== */
@media print {
  header,
  footer,
  #hero img {
    display: none;
  }

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

  main {
    padding-top: 0;
  }

  section {
    opacity: 1;
    transform: none;
    break-inside: avoid;
  }
}