:root {
  --bg: #0b0d17;
  --bg-soft: #12142a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef0ff;
  --text-soft: #b4b8d4;
  --text-muted: #8a8fb3;
  --brand: #7c5cff;
  --brand-2: #ff5c9d;
  --brand-3: #2ee6c8;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #ff5c9d 55%, #ffb15c 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(255, 92, 157, 0.2));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --blur: saturate(160%) blur(18px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5fb;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --border: rgba(20, 22, 50, 0.08);
    --text: #171a2e;
    --text-soft: #3d4260;
    --text-muted: #6a6f8f;
    --shadow: 0 18px 50px rgba(40, 44, 90, 0.14);
    --shadow-sm: 0 8px 24px rgba(40, 44, 90, 0.1);
  }
}

*,
*::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.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 12% -8%, rgba(124, 92, 255, 0.28), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(255, 92, 157, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(46, 230, 200, 0.12), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.08em;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--gradient);
}

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

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

strong {
  color: var(--text);
  font-weight: 700;
}

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

li {
  margin: 0.4em 0;
}

li::marker {
  color: var(--brand-3);
}

blockquote {
  margin: 1.2em 0;
  padding: 1.1em 1.3em;
  border-left: 4px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: var(--radius-sm);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
}

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

time {
  font-size: 0.82em;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 23, 0.62);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

header > div {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

header > div > a:hover {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 6px 18px rgba(124, 92, 255, 0.5));
}

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

header nav li {
  margin: 0;
}

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

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

/* ============ Layout ============ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 22px 70px;
}

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

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

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

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

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

section {
  margin: 0 0 30px;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
}

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

section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 92, 255, 0.35);
}

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

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: 52px 34px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(255, 92, 157, 0.18) 55%, rgba(46, 230, 200, 0.16)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

#hero::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 92, 157, 0.6), transparent 70%);
  animation: float 12s ease-in-out infinite;
}

#hero::after {
  width: 280px;
  height: 280px;
  bottom: -130px;
  left: -70px;
  background: radial-gradient(circle, rgba(46, 230, 200, 0.5), transparent 70%);
  animation: float 16s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.12);
  }
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero p {
  max-width: 78ch;
  color: var(--text-soft);
}

#hero p:last-child {
  margin-bottom: 0;
}

/* ============ Lists in sections ============ */
#products ul,
#solutions ul,
#news ul,
#howto ul,
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#products ul li,
#solutions ul li,
#howto ul li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

#products ul li::before,
#solutions ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#products ul li:hover,
#solutions ul li:hover,
#howto ul li:hover {
  transform: translateX(4px);
  background: rgba(124, 92, 255, 0.14);
  border-color: rgba(124, 92, 255, 0.4);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 56px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.45);
}

#howto ol li:hover {
  transform: translateX(4px);
  background: rgba(255, 92, 157, 0.12);
  border-color: rgba(255, 92, 157, 0.4);
}

/* ============ Cases ============ */
#cases h3 {
  margin-top: 1.4em;
}

#cases blockquote {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 14px;
  font-size: 3rem;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.7;
}

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

/* ============ News ============ */
#news ul li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

#news ul li time {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fff;
  background: var(--gradient);
  letter-spacing: 0.03em;
}

#news ul li:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 230, 200, 0.45);
  background: rgba(46, 230, 200, 0.1);
}

/* ============ Articles ============ */
#articles {
  display: block;
}

#articles > p {
  margin-bottom: 1.6em;
}

#articles article {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 92, 255, 0.4);
}

#articles article:hover::after {
  opacity: 1;
}

#articles article h3 {
  margin-bottom: 0.35em;
}

#articles article h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--brand-2), var(--brand-2));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s ease, color 0.3s ease;
}

#articles article h3 a:hover {
  color: var(--brand-2);
  background-size: 100% 2px;
}

#articles article p {
  margin-bottom: 0.6em;
}

#articles article p:last-child {
  margin-bottom: 0;
}

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.12);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#articles article p:last-child a::after {
  content: "→";
  transition: transform 0.3s ease;
}

#articles article p:last-child a:hover {
  background: rgba(255, 92, 157, 0.18);
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.3);
}

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

/* ============ FAQ ============ */
#faq h3 {
  margin-top: 1.5em;
  padding: 14px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-bottom: none;
  position: relative;
  transition: background 0.3s ease;
}

#faq h3::before {
  content: "Q";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fff;
  background: var(--gradient);
  vertical-align: 2px;
}

#faq h3 + p {
  margin: 0 0 0.4em;
  padding: 16px 18px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-top: none;
  transition: background 0.3s ease;
}

#faq h3:hover {
  background: rgba(255, 92, 157, 0.16);
}

#faq h3:hover + p {
  background: rgba(255, 92, 157, 0.08);
}

/* ============ Contact ============ */
#contact ul li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#contact ul li:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 230, 200, 0.45);
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--text);
  transform: translateY(-2px);
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.45);
}

/* ============ Legal ============ */
#legal h3 {
  margin-top: 1.3em;
}

#legal h3:first-of-type {
  margin-top: 0.8em;
}

/* ============ Footer ============ */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 22px 46px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  margin: 0.35em 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ============ Responsive ============ */
@media (max-width: 900px) {
  header > div {
    padding: 12px 16px;
  }

  header nav ul {
    gap: 2px;
  }

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

  main {
    padding: 20px 16px 56px;
  }

  section {
    padding: 26px 20px;
    border-radius: 16px;
  }

  #hero {
    padding: 36px 22px;
  }
}

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

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

  header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    width: max-content;
  }

  header nav a {
    white-space: nowrap;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  section {
    padding: 22px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
  }

  #hero {
    padding: 30px 18px;
  }

  #hero::before,
  #hero::after {
    filter: blur(46px);
    opacity: 0.4;
  }

  #products ul li,
  #solutions ul li,
  #howto ul li {
    padding: 11px 14px 11px 34px;
  }

  #products ul li::before,
  #solutions ul li::before,
  #howto ul li::before {
    left: 14px;
  }

  #howto ol li {
    padding: 12px 14px 12px 50px;
  }

  #articles article {
    padding: 18px 16px;
  }

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

  #faq h3 + p {
    padding: 14px 14px 16px;
  }

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

  footer {
    padding: 24px 16px 40px;
  }
}

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

  section {
    padding: 18px 13px;
  }
}

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  section {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

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

  section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    color: #000;
    -webkit-text-fill-color: #000;
    background: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}