:root {
  --bg: #0b1220;
  --bg-soft: #101a2e;
  --card: rgba(27, 42, 69, 0.68);
  --card-solid: #1b2a45;
  --text: #e8f1ff;
  --text-muted: #a9bcd8;
  --text-dim: #7f93b3;
  --primary: #3ea6ff;
  --primary-strong: #1e8fff;
  --accent: #ffd166;
  --accent-2: #7ee787;
  --border: rgba(110, 160, 230, 0.18);
  --border-strong: rgba(110, 160, 230, 0.32);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 18px 46px rgba(0, 0, 0, 0.5);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gradient-brand: linear-gradient(135deg, #0b1220 0%, #123 45%, #1b2a45 100%);
  --gradient-hero: linear-gradient(120deg, #0b1220 0%, #10233f 35%, #1b3a63 70%, #0e1b30 100%);
  --gradient-primary: linear-gradient(135deg, #3ea6ff 0%, #7ee787 100%);
  --gradient-accent: linear-gradient(135deg, #ffd166 0%, #ff9f43 100%);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fc;
    --bg-soft: #eaf1fb;
    --card: rgba(255, 255, 255, 0.72);
    --card-solid: #ffffff;
    --text: #0e1b30;
    --text-muted: #3a4d6b;
    --text-dim: #5d7194;
    --primary: #1e7fe0;
    --primary-strong: #0f6ad0;
    --accent: #d99a00;
    --accent-2: #2f9e4f;
    --border: rgba(30, 90, 170, 0.14);
    --border-strong: rgba(30, 90, 170, 0.26);
    --shadow: 0 10px 30px rgba(20, 50, 100, 0.12);
    --shadow-hover: 0 18px 46px rgba(20, 50, 100, 0.2);
    --gradient-brand: linear-gradient(135deg, #eaf1fb 0%, #dbe8fa 45%, #cfe0f7 100%);
    --gradient-hero: linear-gradient(120deg, #e6effb 0%, #d5e6fb 35%, #c2dbf7 70%, #e8f1fd 100%);
  }
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(62, 166, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(126, 231, 135, 0.12), transparent 55%),
    radial-gradient(800px 600px at 50% 100%, rgba(255, 209, 102, 0.08), transparent 60%);
  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(--primary);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

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

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

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

h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  padding-bottom: 0.5em;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-primary);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text);
}

h4 {
  font-size: 1.05rem;
  color: var(--primary);
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
  word-break: break-word;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.4em;
}

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

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11, 18, 32, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: light) {
  #site-header {
    background: rgba(244, 247, 252, 0.78);
    box-shadow: 0 6px 24px rgba(20, 50, 100, 0.1);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px rgba(62, 166, 255, 0.28);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#site-header nav li {
  margin: 0;
}

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

#site-header nav a:hover,
#site-header nav a:focus-visible {
  color: var(--text);
  background: rgba(62, 166, 255, 0.14);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ============ Main layout ============ */
main {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) clamp(14px, 4vw, 40px) 64px;
}

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

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 16px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
}

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

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

main > nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ============ Sections ============ */
main > section {
  position: relative;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 3.5vw, 40px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(62, 166, 255, 0.4), transparent 40%, rgba(126, 231, 135, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

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

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

@supports (animation-timeline: view()) {
  main > section {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

/* ============ Hero ============ */
#hero {
  background: var(--gradient-hero);
  border: 1px solid var(--border-strong);
  padding: clamp(24px, 4vw, 56px);
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(62, 166, 255, 0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 209, 102, 0.22), transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  animation: aurora 14s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(-30px, 20px, 0) scale(1.12);
    opacity: 1;
  }
}

#hero h1 {
  max-width: 22ch;
  background: linear-gradient(120deg, var(--text) 30%, var(--primary) 70%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

#hero p {
  max-width: 78ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
}

#hero figure {
  margin: 28px 0 0;
  padding: 14px;
  background: rgba(11, 18, 32, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

@media (prefers-color-scheme: light) {
  #hero figure {
    background: rgba(255, 255, 255, 0.5);
  }
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

#hero figure svg {
  border-radius: var(--radius-sm);
}

#hero figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ============ Cards / articles ============ */
#articles {
  display: grid;
  gap: 0;
}

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

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  opacity: 0.85;
  transition: width 0.35s ease;
}

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

#articles article:hover::before {
  width: 7px;
}

#articles article h3 {
  margin-bottom: 0.35em;
  font-size: 1.15rem;
}

#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.6em;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 4px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

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

#articles article a:hover {
  color: #04101f;
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(62, 166, 255, 0.35);
}

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

@media (min-width: 900px) {
  #articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  #articles h2 {
    grid-column: 1 / -1;
  }
  #articles article {
    margin-bottom: 0;
  }
}

/* ============ FAQ ============ */
#faq h3 {
  position: relative;
  margin-top: 1.4em;
  padding: 14px 18px 14px 46px;
  font-size: 1.02rem;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: default;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #04101f;
  background: var(--gradient-primary);
  border-radius: 8px;
}

#faq h3:hover {
  border-color: var(--border-strong);
  background: rgba(62, 166, 255, 0.1);
  transform: translateX(3px);
}

#faq h3 + p {
  margin: -4px 0 0;
  padding: 12px 18px 16px 46px;
  font-size: 0.94rem;
  border-left: 2px dashed var(--border-strong);
  margin-left: 26px;
}

/* ============ HowTo ============ */
#howto h4 {
  display: inline-block;
  margin: 1.2em 0 0.4em;
  padding: 4px 14px;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(62, 166, 255, 0.14);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

#howto h3 {
  margin-top: 1.4em;
}

/* ============ News ============ */
#news h3 {
  margin-top: 1.3em;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  font-size: 1.12rem;
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}

#news h3:hover {
  border-color: var(--accent);
  padding-left: 22px;
}

#news h3 + p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ============ Cases / Solutions ============ */
#cases h3,
#solutions h3,
#products h4 {
  margin-top: 1.3em;
}

#products h4 {
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(62, 166, 255, 0.16), transparent);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

#products h4:hover {
  background: linear-gradient(90deg, rgba(62, 166, 255, 0.28), transparent);
  transform: translateX(4px);
}

/* ============ Contact ============ */
#contact p {
  font-size: 0.96rem;
}

#contact h3 {
  margin-top: 1.3em;
  display: flex;
  align-items: center;
  gap: 10px;
}

#contact h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.8);
  flex: none;
}

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

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

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

#sitemap a,
#links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#sitemap a::before,
#links a::before {
  content: "▸";
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

#sitemap a:hover,
#links a:hover {
  color: var(--text);
  background: rgba(62, 166, 255, 0.14);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#sitemap a:hover::before,
#links a:hover::before {
  transform: translateX(3px);
}

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

#legal p {
  font-size: 0.93rem;
}

#meta-info {
  background: linear-gradient(135deg, rgba(27, 42, 69, 0.55), rgba(16, 26, 46, 0.55));
  text-align: center;
}

@media (prefers-color-scheme: light) {
  #meta-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(230, 239, 251, 0.6));
  }
}

#meta-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ============ Footer ============ */
footer {
  position: relative;
  padding: 28px clamp(16px, 4vw, 48px) 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: rgba(11, 18, 32, 0.6);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (prefers-color-scheme: light) {
  footer {
    background: rgba(244, 247, 252, 0.7);
  }
}

footer p {
  margin: 0;
  color: var(--text-dim);
}

footer a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0 2px;
}

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

/* ============ Responsive ============ */
@media (max-width: 880px) {
  #site-header {
    padding: 12px 16px;
  }

  #site-header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  #site-header nav ul {
    flex-wrap: nowrap;
    width: max-content;
    padding-bottom: 4px;
  }

  #site-header nav a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 6px 11px;
  }
}

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

  main {
    padding: 14px 12px 48px;
  }

  main > section {
    padding: 18px 16px;
    border-radius: var(--radius);
  }

  #hero {
    padding: 22px 16px;
  }

  #hero h1 {
    max-width: none;
  }

  h2::after {
    width: 48px;
    height: 3px;
  }

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

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

  #faq h3 + p {
    padding: 10px 14px 14px 20px;
    margin-left: 12px;
  }

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

  main > nav[aria-label="面包屑导航"] ol {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.05rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }
}

/* ============ 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;
    scroll-behavior: auto !important;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  footer,
  #hero figure {
    display: none;
  }

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

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