:root {
  --bg: #0b0e1a;
  --bg-soft: #12172b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --glass: rgba(20, 26, 48, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #e8ecf8;
  --text-soft: #aab3cc;
  --text-mute: #7c87a3;
  --primary: #6c5ce7;
  --primary-2: #00d2ff;
  --accent: #e94560;
  --accent-2: #ff7e5f;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 65%, #533483 100%);
  --grad-btn: linear-gradient(135deg, #e94560 0%, #ff7e5f 55%, #ffb56b 100%);
  --grad-line: linear-gradient(90deg, #6c5ce7, #00d2ff, #e94560);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --shadow-hover: 0 26px 60px -18px rgba(108, 92, 231, 0.55);
  --ring: 0 0 0 3px rgba(0, 210, 255, 0.35);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fc;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-2: rgba(255, 255, 255, 0.9);
    --glass: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(15, 52, 96, 0.12);
    --text: #141a2e;
    --text-soft: #3d4763;
    --text-mute: #6b7591;
    --grad-hero: linear-gradient(135deg, #e9edff 0%, #dfe8ff 35%, #e6f4ff 65%, #f3e8ff 100%);
    --shadow: 0 18px 45px -20px rgba(30, 45, 90, 0.35);
    --shadow-hover: 0 26px 55px -18px rgba(108, 92, 231, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -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.85;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(108, 92, 231, 0.22), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(0, 210, 255, 0.16), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(233, 69, 96, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  background: linear-gradient(120deg, var(--text) 0%, var(--primary-2) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 6px;
  border-radius: 99px;
  background: var(--grad-line);
  background-size: 200% 100%;
  animation: slideLine 6s linear infinite;
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  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.45em;
}

li::marker {
  color: var(--primary-2);
}

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-soft);
  font-style: normal;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

figure {
  margin: 1.6em 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-mute);
  text-align: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px clamp(14px, 4vw, 40px);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.6);
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

header nav > a {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.28), rgba(0, 210, 255, 0.22));
  border: 1px solid var(--glass-border);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header nav > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(0, 210, 255, 0.6);
  color: var(--text);
}

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

header nav li {
  margin: 0;
}

header nav li a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav li a:hover {
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-2px);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px) clamp(14px, 4vw, 32px) 40px;
}

section {
  margin-bottom: clamp(26px, 4vw, 46px);
  padding: clamp(20px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
  animation: rise 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
  }
}

#hero {
  position: relative;
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: gradientShift 16s ease infinite, rise 0.8s var(--ease) both;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.32), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite;
}

#hero p {
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
}

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

nav[aria-label="页面锚点导航"] {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  margin-bottom: clamp(26px, 4vw, 46px);
}

nav[aria-label="页面锚点导航"] h2 {
  margin-bottom: 0.8em;
}

nav[aria-label="页面锚点导航"] ol {
  list-style: none;
  counter-reset: navcount;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

nav[aria-label="页面锚点导航"] li {
  counter-increment: navcount;
  margin: 0;
}

nav[aria-label="页面锚点导航"] li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease), background 0.28s var(--ease);
}

nav[aria-label="页面锚点导航"] li a::before {
  content: counter(navcount, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-2);
  opacity: 0.85;
}

nav[aria-label="页面锚点导航"] li a:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border);
  color: var(--text);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(0, 210, 255, 0.16));
}

#products ul,
#solutions ul,
#contact ul,
#howto ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

#products ul li,
#solutions ul li,
#contact ul li,
#howto ul li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 40px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li::before,
#solutions ul li::before,
#contact ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.35em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.16);
}

#products ul li:hover,
#solutions ul li:hover,
#contact ul li:hover,
#howto ul li:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: var(--shadow-hover);
}

#cases article,
#news article,
#articles article,
#faq article {
  position: relative;
  padding: clamp(16px, 2.4vw, 24px);
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#cases article:hover,
#news article:hover,
#articles article:hover,
#faq article:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 92, 231, 0.45);
  box-shadow: var(--shadow-hover);
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(0, 210, 255, 0.16));
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

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

#news article a:hover,
#articles article a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(0, 210, 255, 0.7);
  background: var(--grad-btn);
  color: #fff;
}

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

#articles {
  counter-reset: artcount;
}

#articles > article {
  padding-left: clamp(16px, 2.4vw, 24px);
}

#articles > article h3::before {
  counter-increment: artcount;
  content: counter(artcount, decimal-leading-zero) " ";
  color: var(--primary-2);
  font-weight: 800;
  opacity: 0.8;
}

#faq article h3 {
  position: relative;
  padding-left: 30px;
}

#faq article h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 7px;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 6px 16px -6px rgba(233, 69, 96, 0.8);
}

#howto ol {
  counter-reset: stepcount;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: stepcount;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 58px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(stepcount);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px -10px rgba(0, 210, 255, 0.9);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

#howto > h3:last-of-type,
#howto > p:last-of-type {
  margin-top: 1.4em;
}

#contact {
  background:
    linear-gradient(135deg, rgba(108, 92, 231, 0.16), rgba(0, 210, 255, 0.1) 55%, rgba(233, 69, 96, 0.14)),
    var(--surface);
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap li a,
#links li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  transition: transform 0.26s var(--ease), color 0.26s var(--ease), background 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

#sitemap li a:hover,
#links li a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px -14px rgba(0, 210, 255, 0.8);
}

#legal h3 {
  font-size: 1rem;
  color: var(--primary-2);
}

footer {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-mute);
}

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

footer p:first-child {
  color: var(--text-soft);
  font-weight: 700;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes slideLine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(-40px, 30px, 0) scale(1.12); opacity: 1; }
}

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

@media (max-width: 900px) {
  html {
    scroll-padding-top: 130px;
  }

  header nav {
    gap: 10px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav li a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }
}

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

  html {
    scroll-padding-top: 150px;
  }

  header {
    padding: 8px 12px;
  }

  header nav {
    justify-content: center;
  }

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

  header nav ul {
    justify-content: center;
  }

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

  main {
    padding: 16px 12px 28px;
  }

  section {
    border-radius: var(--radius);
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  nav[aria-label="页面锚点导航"] ol {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  nav[aria-label="页面锚点导航"] li a {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  #products ul,
  #solutions ul,
  #contact ul,
  #howto ul {
    grid-template-columns: 1fr;
  }

  #howto ol li {
    padding: 14px 14px 14px 52px;
  }

  blockquote {
    padding: 14px 16px;
  }

  figure {
    padding: 12px;
    border-radius: var(--radius);
  }

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

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