:root {
  --bg: #0b1622;
  --bg-soft: #0f2236;
  --bg-card: rgba(20, 40, 62, 0.55);
  --bg-card-solid: #122a42;
  --border: rgba(120, 180, 230, 0.18);
  --text: #e8f1fa;
  --text-soft: #a9c0d6;
  --text-mute: #7c93a9;
  --primary: #2f9bff;
  --primary-2: #7b5cff;
  --accent: #ff7a45;
  --accent-2: #ffc247;
  --grad-hero: linear-gradient(135deg, #0f2c4c 0%, #1b3f6b 40%, #3a2a6b 75%, #5a2f6e 100%);
  --grad-btn: linear-gradient(135deg, #2f9bff 0%, #7b5cff 100%);
  --grad-line: linear-gradient(90deg, #2f9bff, #7b5cff, #ff7a45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --blur: saturate(160%) blur(14px);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f6fb;
    --bg-soft: #e8eff8;
    --bg-card: rgba(255, 255, 255, 0.62);
    --bg-card-solid: #ffffff;
    --border: rgba(30, 80, 130, 0.14);
    --text: #12263a;
    --text-soft: #3d5670;
    --text-mute: #64798e;
    --shadow-sm: 0 4px 14px rgba(30, 70, 120, 0.08);
    --shadow-md: 0 10px 30px rgba(30, 70, 120, 0.12);
    --shadow-lg: 0 20px 50px rgba(30, 70, 120, 0.16);
    --grad-hero: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 40%, #ede9fe 75%, #fce7f3 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -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, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 155, 255, 0.16), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(123, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(255, 122, 69, 0.1), transparent 60%);
  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(--accent);
}

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  background: linear-gradient(120deg, #ffffff 0%, #bcd9ff 45%, #d9c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: light) {
  h1 {
    background: linear-gradient(120deg, #0f2c4c 0%, #2f6fb8 50%, #6b4fd8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-line);
}

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

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

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

li {
  margin-bottom: 0.4em;
}

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

blockquote {
  margin: 0 0 1em;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

address {
  font-style: normal;
}

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

@media (prefers-color-scheme: light) {
  header {
    background: rgba(242, 246, 251, 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.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 4px 2px;
  flex-shrink: 0;
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

header > div > a:hover {
  filter: brightness(1.2);
  transform: scale(1.03);
}

header nav {
  flex: 1;
  min-width: 0;
}

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

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 6px 11px;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-radius: 999px;
  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: #fff;
  background: var(--grad-btn);
  transform: translateY(-1px);
}

/* ============ Layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

section {
  margin: 0 0 44px;
  padding: 28px clamp(18px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(120, 180, 230, 0.32);
}

@supports not (animation-timeline: view()) {
  section {
    animation: fadeUp 0.7s var(--ease) both;
  }
}

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

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

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 18px;
  font-size: 0.86rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

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

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

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

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  border: 1px solid rgba(140, 190, 255, 0.22);
  box-shadow: var(--shadow-lg);
  padding: clamp(30px, 5vw, 56px) clamp(20px, 4vw, 48px);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.45), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: floaty 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -15%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: floaty 15s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-26px, 22px, 0) scale(1.08); }
}

#hero h1,
#hero p {
  position: relative;
  z-index: 1;
}

#hero p {
  max-width: 78ch;
  color: rgba(232, 241, 250, 0.86);
}

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

/* ============ Cards within sections ============ */
#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#cases h3,
#knowledge h3,
#culture h3,
#howto h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.4em;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

#products h3:first-of-type,
#advantages h3:first-of-type,
#solutions h3:first-of-type,
#applications h3:first-of-type,
#cases h3:first-of-type,
#knowledge h3:first-of-type,
#culture h3:first-of-type,
#howto h3:first-of-type {
  margin-top: 0.4em;
}

#products h3::before,
#advantages h3::before,
#solutions h3::before,
#applications h3::before,
#cases h3::before,
#knowledge h3::before,
#culture h3::before,
#howto h3::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 4px rgba(47, 155, 255, 0.16);
}

/* ============ News / Articles ============ */
#news article,
#articles article {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

#news article h3,
#articles article h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

#news article h3::before,
#articles article h3::before {
  display: none;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 155, 255, 0.3);
  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 {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(123, 92, 255, 0.4);
}

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

/* ============ FAQ (details) ============ */
#faq details {
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(47, 155, 255, 0.38);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 15px 52px 15px 20px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-btn);
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  background: rgba(47, 155, 255, 0.08);
}

#faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ HowTo ordered list ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 54px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 4px 12px rgba(47, 155, 255, 0.35);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(47, 155, 255, 0.4);
}

/* ============ Contact ============ */
#contact address {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.94rem;
}

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

#contact address a {
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}

/* ============ Sitemap / Links grids ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: 999px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-btn);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 155, 255, 0.32);
}

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

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

#meta-info p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-mute);
}

#meta-info p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
  font-weight: 600;
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 20px;
  padding: 32px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(47, 155, 255, 0.07));
}

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

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

footer a {
  display: inline-block;
  padding: 8px 22px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 6px 18px rgba(47, 155, 255, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

footer a:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(123, 92, 255, 0.42);
}

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

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

  header nav ul::-webkit-scrollbar {
    height: 4px;
  }

  header nav ul::-webkit-scrollbar-thumb {
    background: rgba(120, 180, 230, 0.35);
    border-radius: 4px;
  }

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

  main {
    padding: 0 14px 44px;
  }

  section {
    padding: 22px 16px;
    border-radius: var(--radius);
    margin-bottom: 30px;
  }

  #hero {
    padding: 28px 18px;
  }
}

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

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

  #sitemap a,
  #links a {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  blockquote {
    padding: 14px 16px;
  }

  #faq summary {
    padding: 13px 46px 13px 16px;
    font-size: 0.95rem;
  }

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

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

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

/* ============ Print ============ */
@media print {
  header,
  footer,
  #hero::before,
  #hero::after {
    display: none;
  }

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

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