:root {
  --bg: #0f1020;
  --bg-soft: #171a2e;
  --bg-elev: #1e2138;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eaf6;
  --text-soft: #b6bad3;
  --text-mute: #8a8fa8;
  --primary: #7c5cff;
  --primary-2: #ff5c8a;
  --accent: #35d0ba;
  --grad: linear-gradient(135deg, #7c5cff 0%, #b45cff 45%, #ff5c8a 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255, 92, 138, 0.14));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fb;
    --bg-soft: #ffffff;
    --bg-elev: #ffffff;
    --card: rgba(255, 255, 255, 0.72);
    --card-strong: rgba(255, 255, 255, 0.92);
    --border: rgba(20, 22, 50, 0.08);
    --border-strong: rgba(20, 22, 50, 0.14);
    --text: #1b1d33;
    --text-soft: #4a4e6b;
    --text-mute: #767b96;
    --shadow: 0 18px 50px rgba(40, 44, 90, 0.14);
    --shadow-sm: 0 8px 24px rgba(40, 44, 90, 0.1);
    --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(255, 92, 138, 0.08));
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(255, 92, 138, 0.14), transparent 55%),
    radial-gradient(800px 600px at 100% 100%, rgba(53, 208, 186, 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--primary-2);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 6px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.6);
}

h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5em;
}

strong {
  color: var(--text);
}

blockquote {
  margin: 1em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left-width: 4px;
  color: var(--text-soft);
}

blockquote p {
  margin: 0;
  color: var(--text-soft);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 32, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

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

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header > div > a {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header > div > a:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

header nav {
  flex: 1 1 auto;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--text);
  background: var(--grad-soft);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

main > nav[aria-label="面包屑导航"] {
  margin: 8px 0 20px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-mute);
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-mute);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--primary);
}

section {
  position: relative;
  margin: 0 0 28px;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.8s var(--ease) both;
}

section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

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

section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.15s; }
section:nth-of-type(4) { animation-delay: 0.2s; }
section:nth-of-type(5) { animation-delay: 0.25s; }
section:nth-of-type(6) { animation-delay: 0.3s; }
section:nth-of-type(7) { animation-delay: 0.35s; }
section:nth-of-type(8) { animation-delay: 0.4s; }
section:nth-of-type(9) { animation-delay: 0.45s; }
section:nth-of-type(10) { animation-delay: 0.5s; }
section:nth-of-type(11) { animation-delay: 0.55s; }
section:nth-of-type(12) { animation-delay: 0.6s; }
section:nth-of-type(13) { animation-delay: 0.65s; }

#hero {
  padding: 44px 34px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255, 92, 138, 0.28), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(124, 92, 255, 0.35), transparent 60%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(53, 208, 186, 0.12));
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.18;
  filter: blur(70px);
  pointer-events: none;
}

#hero h1 {
  margin-bottom: 0.5em;
}

#hero p {
  max-width: 74ch;
  font-size: 1.02rem;
}

#hero p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

#hero p:last-child a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
}

#hero p:last-child a:first-child {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.4);
}

#hero p:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(124, 92, 255, 0.45);
  filter: brightness(1.06);
}

#products ul,
#solutions ul,
#cases ul,
#news ul,
#howto ul,
#howto ol,
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 0;
}

#products ul li,
#solutions ul li,
#howto ul li,
#howto ol li,
#contact ul li {
  position: relative;
  padding: 10px 14px 10px 34px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

#products ul li::before,
#solutions ul li::before,
#howto ul li::before,
#contact ul li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.7);
}

#howto ol {
  counter-reset: step;
}

#howto ol li {
  counter-increment: step;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
}

#products ul li:hover,
#solutions ul li:hover,
#howto ul li:hover,
#howto ol li:hover,
#contact ul li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  background: var(--card-strong);
}

#news ul li {
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#news ul li:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#news ul li h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

#news ul li p {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

#news ul li p:first-of-type {
  color: var(--text-mute);
  font-size: 0.82rem;
}

#articles article {
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#articles article:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--card-strong);
  box-shadow: var(--shadow-sm);
}

#articles article h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

#articles article p {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

#articles article p:first-of-type {
  color: var(--text-mute);
  font-size: 0.82rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

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

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

#faq h3 {
  margin-top: 1.4em;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#faq h3:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

#faq h3 + p {
  padding: 0 16px;
  font-size: 0.94rem;
}

#cases blockquote {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#contact ul li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

#sitemap ul li,
#links ul li {
  margin: 0;
}

#sitemap ul a,
#links ul a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}

#sitemap ul a:hover,
#links ul a:hover {
  color: var(--text);
  background: var(--grad-soft);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

#legal h3 {
  margin-top: 1.2em;
}

footer {
  position: relative;
  margin-top: 20px;
  padding: 36px 20px 46px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.08));
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-mute);
}

footer nav ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

footer nav li {
  margin: 0;
}

footer nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

footer nav a:hover {
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  header > div {
    padding: 10px 16px;
    gap: 10px;
  }

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

  header nav a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  main {
    padding: 18px 14px 46px;
  }

  section {
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  #hero {
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  header > div {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav a {
    white-space: nowrap;
  }

  main > nav[aria-label="面包屑导航"] ol {
    font-size: 0.8rem;
  }

  section {
    padding: 20px 16px;
    margin-bottom: 18px;
  }

  #hero {
    padding: 26px 18px;
  }

  #hero p:last-child a {
    padding: 9px 16px;
    font-size: 0.86rem;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #products ul li,
  #solutions ul li,
  #howto ul li,
  #howto ol li,
  #contact ul li {
    padding: 9px 12px 9px 30px;
  }

  #sitemap ul a,
  #links ul a {
    padding: 7px 13px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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