:root {
  --bg: #0f172a;
  --bg-elev: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.72);
  --bg-glass: rgba(30, 41, 59, 0.55);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --text-dim: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --accent-3: #38bdf8;
  --accent-4: #a78bfa;
  --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 38%, #312e81 62%, #0e7490 100%);
  --grad-accent: linear-gradient(135deg, #f59e0b, #f97316);
  --grad-line: linear-gradient(90deg, #f59e0b, #a78bfa, #38bdf8);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
  --shadow-soft: 0 4px 16px rgba(2, 6, 23, 0.3);
  --shadow-glow: 0 12px 40px rgba(245, 158, 11, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  --header-h: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-elev: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --border: rgba(15, 23, 42, 0.1);
    --border-strong: rgba(15, 23, 42, 0.2);
    --text: #0f172a;
    --text-soft: #1e293b;
    --text-dim: #475569;
    --grad-hero: linear-gradient(135deg, #fef3c7 0%, #ede9fe 40%, #e0f2fe 70%, #f8fafc 100%);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 12px 40px rgba(245, 158, 11, 0.16);
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(245, 158, 11, 0.1), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(167, 139, 250, 0.08), transparent 60%);
  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(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

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

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  letter-spacing: -0.02em;
}

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

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

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

h4 {
  font-size: 1.02rem;
  color: var(--accent);
  margin-bottom: 0.4em;
}

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.35em;
}

blockquote {
  margin: 0 0 1em;
  padding: 1em 1.25em;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-style: italic;
}

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

figure {
  margin: 1.5em 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

figcaption {
  padding: 0.75em 1em;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(15, 23, 42, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.25);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  }
}

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

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

header > div > a:hover {
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(245, 158, 11, 0.4));
  transform: translateY(-1px);
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

nav[aria-label="主导航"] a:hover,
nav[aria-label="主导航"] a:focus-visible {
  background: var(--bg-glass);
  color: var(--accent);
  transform: translateY(-2px);
}

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

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

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

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

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

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

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

section {
  margin: 0 0 28px;
  padding: 32px 28px;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

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

section:hover {
  border-color: var(--border-strong);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#hero {
  position: relative;
  overflow: hidden;
  padding: 56px 32px;
  background: var(--grad-hero);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), var(--shadow-glow);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 65%);
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 65%);
  pointer-events: none;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

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

#hero h1 {
  background: linear-gradient(120deg, var(--text) 20%, var(--accent) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(2, 6, 23, 0.25));
}

#hero p {
  max-width: 78ch;
  font-size: 1.02rem;
}

#hero figure {
  margin-top: 28px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#brand h3,
#products > h3,
#solutions > h3,
#cases > h3,
#news > h3,
#knowledge > h3 {
  margin-top: 1.4em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

#products h4 {
  display: inline-block;
  margin-top: 1.2em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products h4:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}

#products h4 + p {
  margin-top: 0.5em;
}

#cases blockquote {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

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

#news h3 {
  margin-top: 1.4em;
  color: var(--text);
}

#news h3 + p {
  font-size: 0.92rem;
}

#articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

#articles article {
  position: relative;
  padding: 24px 22px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

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

#articles article:hover::before {
  transform: scaleX(1);
}

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

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

#articles article > p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.7em;
  letter-spacing: 0.02em;
}

#articles article > p:nth-of-type(2) {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin-bottom: 1em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  color: #1a1205;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 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 {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.42);
  color: #1a1205;
}

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

#faq h3 {
  margin-top: 1.5em;
  padding: 14px 18px;
  font-size: 1.02rem;
  color: var(--text);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
  cursor: default;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

#faq h3:hover {
  color: var(--accent);
}

#faq h3 + p {
  margin: -1em 0 0;
  padding: 16px 18px;
  background: rgba(30, 41, 59, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.94rem;
}

@media (prefers-color-scheme: light) {
  #faq h3 + p {
    background: rgba(241, 245, 249, 0.6);
  }
}

#howto h3 {
  margin-top: 1.5em;
  color: var(--accent);
}

#howto h4 {
  margin-top: 1.3em;
  padding: 8px 0 8px 40px;
  position: relative;
  color: var(--text);
  border-bottom: 1px dashed var(--border-strong);
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

#howto h4::after {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1a1205;
}

#contact h3 {
  margin-top: 1.4em;
  color: var(--accent);
}

#contact p {
  padding: 18px 20px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 2;
  font-size: 0.94rem;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  text-align: center;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2);
}

#legal h2 {
  margin-top: 1.6em;
  font-size: 1.25rem;
}

#legal h2:first-child {
  margin-top: 0;
}

#meta-info p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 2;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px dashed var(--border-strong);
}

footer {
  margin-top: 20px;
  padding: 36px 20px;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--border);
  text-align: center;
}

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

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

footer nav ul {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  list-style: none;
  padding: 0;
}

footer nav li {
  margin: 0;
}

footer nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

footer nav a:hover {
  color: var(--accent);
  background: var(--bg-glass);
}

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

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.12);
  }
}

@media (min-width: 720px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 40px 40px;
  }

  #hero {
    padding: 72px 56px;
  }
}

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

  nav[aria-label="主导航"] {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  nav[aria-label="主导航"] a {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 6px 10px;
  }
}

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

  main {
    padding: 0 12px 40px;
  }

  section {
    padding: 24px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
  }

  #hero {
    padding: 36px 20px;
  }

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

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

  #articles article a {
    width: 100%;
    justify-content: center;
  }

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

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

  footer {
    padding: 28px 14px;
  }

  footer nav ul {
    gap: 4px;
  }

  footer nav a {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

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

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

@media (max-width: 380px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

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

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

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