:root {
  --bg: #0b1020;
  --bg-soft: #111830;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --text-soft: #b7c0d8;
  --text-dim: #8a94ad;
  --brand: #6c5ce7;
  --brand-2: #00d2ff;
  --accent: #ffb648;
  --accent-2: #ff5e7e;
  --gradient-banner: linear-gradient(135deg, #1f2a44 0%, #3b2f7a 45%, #0f6f8f 100%);
  --gradient-text: linear-gradient(90deg, #8f7bff 0%, #42d7ff 100%);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(108, 92, 231, 0.35), 0 18px 50px rgba(66, 215, 255, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7ff;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --border: rgba(31, 42, 68, 0.12);
    --text: #1a2138;
    --text-soft: #3d4766;
    --text-dim: #6b7694;
    --gradient-banner: linear-gradient(135deg, #e9edff 0%, #dcd6ff 45%, #c9f0ff 100%);
    --shadow-sm: 0 4px 14px rgba(31, 42, 68, 0.08);
    --shadow-md: 0 14px 40px rgba(31, 42, 68, 0.12);
    --shadow-glow: 0 0 0 1px rgba(108, 92, 231, 0.18), 0 18px 50px rgba(66, 215, 255, 0.16);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(108, 92, 231, 0.28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 210, 255, 0.16), transparent 55%),
    radial-gradient(800px 600px at 50% 110%, rgba(255, 94, 126, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 750;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--gradient-text);
  box-shadow: 0 0 18px rgba(66, 215, 255, 0.55);
}

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

h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-soft);
}

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(--brand-2);
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--brand-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

blockquote footer {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: normal;
}

figure {
  margin: 1.6em 0;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-glow);
}

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

figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-dim);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
  background: rgba(11, 16, 32, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

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

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

header > div > a {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 6px 2px;
}

header > div > a:hover {
  text-decoration: none;
  filter: brightness(1.15);
}

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 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

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

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 40px;
}

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

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

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

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

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

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

section {
  margin: 26px 0;
  padding: clamp(20px, 3.2vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: rise 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), transparent 40%);
  opacity: 0.7;
}

section:hover {
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: var(--shadow-md);
}

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

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

#hero {
  margin-top: 10px;
  padding: clamp(26px, 4.6vw, 56px);
  background: var(--gradient-banner);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 72, 0.35), transparent 65%);
  filter: blur(10px);
  z-index: -1;
  animation: float 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -10%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.3), transparent 65%);
  filter: blur(10px);
  z-index: -1;
  animation: float 11s ease-in-out infinite reverse;
}

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

#hero h1 {
  max-width: 22ch;
  background: linear-gradient(90deg, #ffffff 0%, #ffe6a8 55%, #a9f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: light) {
  #hero h1 {
    background: linear-gradient(90deg, #1f2a44 0%, #4b3ca8 55%, #0a7f9c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

#hero p {
  max-width: 74ch;
  color: var(--text);
  opacity: 0.92;
}

@media (prefers-color-scheme: light) {
  #hero p {
    color: #2b3350;
  }
}

#hero ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

#hero ul li {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 42px;
  font-size: 0.94rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#hero ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b1020;
  background: linear-gradient(135deg, var(--accent), #ffe6a8);
  border-radius: 50%;
}

#hero ul li:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: light) {
  #hero ul li {
    color: #1f2a44;
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(31, 42, 68, 0.12);
  }
}

#products ul,
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

#products ul {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#products ul li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 40px;
  font-size: 0.94rem;
  color: var(--text-soft);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gradient-text);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(66, 215, 255, 0.6);
}

#products ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.45);
  box-shadow: var(--shadow-sm);
}

#articles article,
#news article {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article:hover,
#news article:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: var(--shadow-md);
}

#articles article h3,
#news article h3 {
  margin-bottom: 0.35em;
  padding-right: 8px;
}

#articles article h3::after,
#news article h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: var(--radius-pill);
  background: var(--gradient-text);
  transition: width 0.35s var(--ease);
}

#articles article:hover h3::after,
#news article:hover h3::after {
  width: 88px;
}

#articles article p:nth-of-type(1),
#news article p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.9), rgba(0, 210, 255, 0.85));
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(66, 215, 255, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

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

#articles article a:hover,
#articles article a:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(66, 215, 255, 0.34);
}

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

#faq h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1.4em;
  padding-top: 1.1em;
  border-top: 1px dashed var(--border);
  font-size: 1.02rem;
  color: var(--text);
}

#faq h3:first-of-type {
  border-top: none;
  padding-top: 0;
}

#faq h3::before {
  content: "Q";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0b1020;
  background: linear-gradient(135deg, var(--accent), #ffe6a8);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 182, 72, 0.3);
}

#faq p {
  padding-left: 36px;
  color: var(--text-soft);
}

#howto h3 {
  display: inline-block;
  margin-top: 1.2em;
  padding: 3px 14px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

#howto p {
  margin-top: 0.8em;
}

#contact ul {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-soft);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 210, 255, 0.4);
}

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

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

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

#sitemap ul a:hover,
#links ul a:hover,
#sitemap ul a:focus-visible,
#links ul a:focus-visible {
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(0, 210, 255, 0.18));
  border-color: rgba(108, 92, 231, 0.45);
  transform: translateX(4px);
}

#legal h3,
#knowledge h3,
#author h2 {
  margin-top: 1.2em;
}

#author p {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface-strong);
  border-left: 4px solid var(--brand-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

footer {
  margin-top: 40px;
  padding: 34px 20px 44px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  footer {
    background: linear-gradient(180deg, transparent, rgba(31, 42, 68, 0.05));
  }
}

footer p {
  max-width: 760px;
  margin: 0 auto 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

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

footer nav li {
  margin: 0;
}

footer nav a {
  font-size: 0.86rem;
  color: var(--text-soft);
  padding: 4px 2px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

footer nav a:hover,
footer nav a:focus-visible {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

::selection {
  background: rgba(108, 92, 231, 0.45);
  color: #fff;
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--brand-2));
  background-clip: padding-box;
}

@media (max-width: 900px) {
  header > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

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

  header nav ul {
    flex-wrap: nowrap;
    gap: 2px;
  }

  header nav a {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 6px 10px;
  }

  section {
    border-radius: var(--radius-md);
    margin: 18px 0;
  }

  #hero {
    padding: 24px 20px;
  }

  #hero h1 {
    max-width: none;
  }
}

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

  main {
    padding: 0 14px 30px;
  }

  section {
    padding: 18px 16px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #hero ul {
    grid-template-columns: 1fr;
  }

  #articles article,
  #news article {
    padding: 16px;
  }

  #faq p {
    padding-left: 0;
  }

  #faq h3 {
    gap: 8px;
  }

  #contact ul,
  #products ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  blockquote {
    padding: 0.9em 1em;
  }

  figure {
    padding: 10px;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
  }

  header,
  footer,
  nav {
    display: none;
  }

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

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