:root {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1f8;
  --text: #1c2233;
  --text-soft: #4a5468;
  --text-muted: #6b7488;
  --brand: #5b3df5;
  --brand-2: #8b5cf6;
  --brand-3: #22d3ee;
  --accent: #f5c518;
  --accent-2: #e94560;
  --border: #e2e6f0;
  --border-strong: #cdd3e2;
  --shadow-sm: 0 1px 2px rgba(20, 26, 45, 0.06), 0 2px 8px rgba(20, 26, 45, 0.05);
  --shadow-md: 0 6px 24px rgba(20, 26, 45, 0.09);
  --shadow-lg: 0 18px 48px rgba(20, 26, 45, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: 18px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0d1020;
  --bg-elevated: #161b2e;
  --bg-soft: #1b2138;
  --text: #eef1fa;
  --text-soft: #c3c9db;
  --text-muted: #8f97ae;
  --brand: #8b7bff;
  --brand-2: #a78bfa;
  --brand-3: #34d3ee;
  --accent: #f5c518;
  --accent-2: #ff6b81;
  --border: #262d45;
  --border-strong: #343d5c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 54px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(22, 27, 46, 0.6);
  --glass-border: rgba(255, 255, 255, 0.09);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0d1020;
    --bg-elevated: #161b2e;
    --bg-soft: #1b2138;
    --text: #eef1fa;
    --text-soft: #c3c9db;
    --text-muted: #8f97ae;
    --brand: #8b7bff;
    --brand-2: #a78bfa;
    --brand-3: #34d3ee;
    --accent-2: #ff6b81;
    --border: #262d45;
    --border-strong: #343d5c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 54px rgba(0, 0, 0, 0.55);
    --glass-bg: rgba(22, 27, 46, 0.6);
    --glass-border: rgba(255, 255, 255, 0.09);
  }
}

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

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

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 8% -8%, rgba(91, 61, 245, 0.1), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(139, 92, 246, 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(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

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

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.7rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
}

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

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

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--text);
}

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

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
  color: var(--text-soft);
}

strong {
  color: var(--text);
  font-weight: 700;
}

time {
  color: var(--text-muted);
  font-size: 0.86em;
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  backdrop-filter: saturate(180%) blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-sm);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.25), 0 6px 18px rgba(91, 61, 245, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.3s var(--ease);
}

.brand:hover svg {
  transform: rotate(72deg) scale(1.06);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.4), 0 8px 24px rgba(91, 61, 245, 0.5);
}

.brand-name {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  background: linear-gradient(92deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

#main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

#main-nav a:hover {
  background: linear-gradient(135deg, rgba(91, 61, 245, 0.14), rgba(34, 211, 238, 0.14));
  color: var(--brand);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

#site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.16);
}

#search-input {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 12px;
  width: 210px;
  min-width: 0;
  border-radius: var(--radius-pill);
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-input:focus {
  outline: none;
}

#site-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

#site-search button:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

main {
  display: block;
}

#hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 20px clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(91, 61, 245, 0.14), rgba(34, 211, 238, 0.12) 45%, rgba(139, 92, 246, 0.14)),
    radial-gradient(600px 300px at 80% 10%, rgba(245, 197, 24, 0.16), transparent 70%);
  filter: blur(2px);
  opacity: 0.9;
}

.hero-content h1 {
  background: linear-gradient(100deg, var(--text) 20%, var(--brand) 55%, var(--brand-3) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  color: var(--text-soft);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 26px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  background-size: 180% 180%;
  box-shadow: 0 10px 26px rgba(91, 61, 245, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 34px rgba(91, 61, 245, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  color: var(--brand);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--brand-2);
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats li {
  margin: 0;
  padding: 14px 10px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 61, 245, 0.4);
}

.hero-stats .stat-num {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.banner-slide {
  position: relative;
  animation: fadeSlide 0.55s var(--ease) both;
}

.banner-slide[hidden] {
  display: none;
}

.banner-slide svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.banner-caption {
  margin: 0;
  padding: 14px 18px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.04));
  border-top: 1px solid var(--border);
}

.banner-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-controls button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 18, 34, 0.45);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.banner-controls button:hover {
  background: rgba(91, 61, 245, 0.75);
  transform: translateY(-1px);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

#breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

#breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#breadcrumb li + li::before {
  content: "/";
  color: var(--border-strong);
}

#breadcrumb a {
  color: var(--text-muted);
}

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

#toc {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 18px 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#toc h2 {
  font-size: 1rem;
  padding-left: 0;
  margin-bottom: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#toc h2::before {
  display: none;
}

#toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#toc li {
  margin: 0;
}

#toc a {
  display: inline-block;
  padding: 5px 13px;
  font-size: 0.84rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all 0.22s var(--ease);
}

#toc a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91, 61, 245, 0.3);
}

main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px) 20px;
}

main > section + section {
  border-top: 1px solid var(--border);
}

#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#testimonials,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#meta-info {
  animation: riseIn 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

@supports not (animation-timeline: view()) {
  #about,
  #history,
  #culture,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #meta-info {
    animation: none;
  }
}

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

#about p,
#history p,
#culture p,
#products p,
#advantages p,
#solutions p,
#applications p,
#cases p,
#knowledge p,
#howto p,
#contact p,
#legal p {
  max-width: 78ch;
}

#cases article,
#news article,
#articles article,
#testimonials blockquote,
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#cases article:hover,
#news article:hover,
#articles article:hover,
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 61, 245, 0.35);
}

#cases article h3,
#news article h3,
#articles article h3 {
  margin-bottom: 6px;
}

#news article time,
#articles article time {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-size: 0.78rem;
}

#articles article {
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 a {
  color: var(--text);
  background-image: linear-gradient(90deg, var(--brand), var(--brand-3));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease), color 0.2s var(--ease);
}

#articles article h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

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

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

#testimonials blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 22px 24px 18px 56px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 3.2rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#testimonials blockquote p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.98rem;
}

#testimonials blockquote footer {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: normal;
}

.faq-item h3 {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}

#howto ol li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 62px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34, 211, 238, 0.45);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 6px 16px rgba(91, 61, 245, 0.35);
}

#contact address {
  font-style: normal;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 20px;
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin: 0 0 8px;
  color: var(--text-soft);
}

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

#contact address a {
  font-weight: 600;
}

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

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(91, 61, 245, 0.3);
}

#meta-info dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 0;
  padding: 20px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#meta-info dt {
  font-weight: 700;
  color: var(--text);
}

#meta-info dd {
  margin: 0;
  color: var(--text-soft);
}

#site-footer {
  margin-top: 20px;
  background: linear-gradient(180deg, transparent, rgba(91, 61, 245, 0.06));
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px 32px;
  align-items: start;
}

.footer-brand p {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-brand p strong {
  font-size: 1.02rem;
  background: linear-gradient(92deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

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

#site-footer nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

#site-footer nav a:hover {
  color: var(--brand);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  #search-input {
    width: 160px;
  }

  #main-nav a {
    padding: 6px 9px;
    font-size: 0.88rem;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    gap: 12px;
    padding: 10px 16px;
  }

  #menu-toggle {
    display: inline-block;
  }

  #main-nav {
    flex-basis: 100%;
    order: 4;
    display: none;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  #main-nav.is-open {
    display: block;
    animation: fadeSlide 0.3s var(--ease) both;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  #main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
  }

  .header-tools {
    gap: 8px;
  }

  #site-search {
    order: 3;
    flex-basis: 100%;
    margin-top: 4px;
  }

  #search-input {
    width: 100%;
    flex: 1;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  #meta-info dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #meta-info dd {
    margin-bottom: 8px;
  }
}

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

  main > section {
    padding: 24px 16px;
  }

  #hero {
    padding: 24px 16px 16px;
  }

  #toc {
    margin: 16px 16px 0;
    padding: 14px 16px;
  }

  #breadcrumb {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    padding: 12px 18px;
  }

  #cases article,
  #news article,
  #articles article,
  #testimonials blockquote,
  .faq-item {
    padding: 16px 16px;
  }

  #testimonials blockquote {
    padding-left: 44px;
  }

  #howto ol li {
    padding: 14px 14px 14px 56px;
  }

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

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 9px 13px;
  }

  .banner-controls {
    top: 8px;
    right: 8px;
  }

  .banner-caption {
    padding: 11px 14px;
    font-size: 0.86rem;
  }
}

@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 {
  #site-header,
  #toc,
  #back-to-top,
  .banner-controls,
  .header-tools {
    display: none !important;
  }

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

  main > section {
    page-break-inside: avoid;
  }
}