:root {
  --bg: #f5f7fa;
  --bg-soft: #eef1f6;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(31, 41, 55, 0.1);
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --accent: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 41, 55, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 41, 55, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 64px;
  --container: 1160px;
  --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", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #101a2e;
    --surface: rgba(23, 33, 52, 0.66);
    --surface-solid: #16203a;
    --border: rgba(148, 163, 184, 0.18);
    --text: #e8edf7;
    --text-soft: #c3cddd;
    --text-muted: #94a3b8;
    --brand: #60a5fa;
    --brand-2: #a78bfa;
    --brand-3: #22d3ee;
    --accent: #fbbf24;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 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 85% -10%, rgba(124, 58, 237, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(6, 182, 212, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--brand), var(--brand-2), var(--brand-3));
}

h3 {
  font-size: clamp(1.05rem, 2.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: 0.35em 0;
}

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

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-style: italic;
}

address {
  font-style: normal;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: var(--header-h);
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--surface);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand svg {
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.2);
}

.brand span {
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#site-header nav {
  flex: 1 1 auto;
}

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

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

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

#site-header nav a:hover {
  color: var(--brand);
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

main {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 32px) 48px;
}

main > section {
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--surface);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: rise 0.7s var(--ease) both;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}

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

#banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(125deg, #1e3a8a 0%, #2563eb 32%, #7c3aed 66%, #06b6d4 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
  animation: rise 0.7s var(--ease) both, bannerShift 16s ease-in-out infinite;
}

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

#banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.12), transparent 38%);
  pointer-events: none;
}

#banner h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  margin-bottom: 0.5em;
}

#banner p {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
}

main > nav[aria-label="面包屑"] {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="面包屑"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

main > nav[aria-label="面包屑"] li:last-child {
  color: var(--text);
  font-weight: 600;
}

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

#products ul li {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 46px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transition: transform 0.35s var(--ease);
}

#products ul li:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow-md);
}

#products ul li:hover::before {
  transform: scale(1.25);
}

#scenes h3,
#cases h3,
#howto h3,
#intro h3 {
  margin-top: 1.4em;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed var(--border);
}

#scenes h3:first-of-type,
#cases h3:first-of-type,
#howto h3:first-of-type,
#intro h3:first-of-type {
  margin-top: 0.4em;
}

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

#articles > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0.2em;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-md);
}

#articles article h3 {
  margin-bottom: 0.5em;
  font-size: 1.05rem;
  transition: color 0.3s var(--ease);
}

#articles article:hover h3 {
  color: var(--brand);
}

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 0.6em;
}

#articles article p:first-of-type {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.8em;
  padding: 2px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-pill);
}

#articles article a {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  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;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.36);
}

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

#faq dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 0;
}

#faq dt {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px 6px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

#faq dd {
  grid-column: 1 / -1;
  margin: -14px 0 0;
  padding: 8px 18px 16px;
  color: var(--text-soft);
  font-size: 0.94rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq dt:hover,
#faq dt:hover + dd {
  border-color: rgba(37, 99, 235, 0.3);
}

#faq dt:hover {
  color: var(--brand);
}

#faq dt:hover + dd {
  box-shadow: var(--shadow-md);
}

#howto ol {
  counter-reset: step;
  padding-left: 0;
  list-style: none;
}

#howto ol li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 16px 12px 52px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

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

#contact address {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0 0 1.2em;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: var(--shadow-md);
}

#contact a {
  font-weight: 600;
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-2px);
}

footer {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px) 40px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

@media (max-width: 860px) {
  #site-header {
    justify-content: center;
    padding: 10px 16px;
  }

  #site-header nav {
    flex: 1 1 100%;
  }

  #site-header nav ul {
    justify-content: center;
    gap: 2px;
  }

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

@media (max-width: 600px) {
  body {
    font-size: 15px;
    background-attachment: scroll;
  }

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

  #banner {
    border-radius: var(--radius-md);
    padding: 24px 18px;
  }

  #banner h1 {
    font-size: 1.45rem;
  }

  h2 {
    padding-left: 13px;
  }

  h2::before {
    width: 4px;
  }

  #articles {
    grid-template-columns: 1fr;
  }

  #faq dl,
  #contact address {
    grid-template-columns: 1fr;
  }

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

  #sitemap a,
  #links a {
    padding: 6px 13px;
    font-size: 0.82rem;
  }
}

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