:root {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --bg-soft: #eaf1fb;
  --text: #17233b;
  --text-soft: #4a5a75;
  --text-mute: #74839b;
  --brand: #1a5fb4;
  --brand-2: #3584e4;
  --brand-3: #7c3aed;
  --accent: #26a269;
  --accent-2: #f5a623;
  --danger: #d64545;
  --line: rgba(26, 95, 180, 0.14);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 2px 8px rgba(23, 35, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(23, 35, 59, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 95, 180, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0c1220;
  --bg-alt: #121a2c;
  --bg-soft: #17223a;
  --text: #e8eefb;
  --text-soft: #b3c1da;
  --text-mute: #8496b4;
  --brand: #4f8df5;
  --brand-2: #6aa8ff;
  --brand-3: #a78bfa;
  --accent: #3ecf8e;
  --accent-2: #ffc857;
  --line: rgba(122, 168, 255, 0.18);
  --card: rgba(24, 34, 56, 0.66);
  --card-solid: #151f34;
  --glass: rgba(20, 30, 50, 0.55);
  --glass-border: rgba(122, 168, 255, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

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

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(53, 132, 228, 0.18), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(38, 162, 105, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(53, 132, 228, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(53, 132, 228, 0.28);
  color: var(--text);
}

h1,
h2,
h3,
h4 {
  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, 1.2rem + 2.4vw, 2.9rem);
  letter-spacing: -0.02em;
}

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

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
}

h3 {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: var(--brand);
}

html[data-theme="dark"] h3 {
  color: var(--brand-2);
}

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

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

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

li {
  margin-bottom: 0.4em;
}

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 1.2em 1.4em;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

details {
  margin-bottom: 0.85em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(53, 132, 228, 0.35);
}

details[open] {
  border-color: rgba(53, 132, 228, 0.45);
  box-shadow: var(--shadow-md);
}

summary {
  cursor: pointer;
  padding: 1em 3em 1em 1.2em;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: background 0.25s var(--ease);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 1.1em;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--brand);
  background: rgba(53, 132, 228, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: rgba(53, 132, 228, 0.22);
}

summary:hover {
  background: rgba(53, 132, 228, 0.06);
}

details > p {
  padding: 0 1.2em 1.1em;
  margin: 0;
  border-top: 1px dashed var(--line);
  padding-top: 1em;
}

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "topbar topbar"
    "nav search"
    "nav actions";
  gap: 0 1.2rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem) 0.8rem;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 24px rgba(23, 35, 59, 0.08);
  animation: slideDown 0.6s var(--ease) both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  grid-area: topbar;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-mute);
  padding-bottom: 0.5rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.topbar span {
  position: relative;
  padding-left: 0.9em;
}

.topbar span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
}

nav[aria-label="主导航"] {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  align-items: center;
}

nav[aria-label="主导航"] a {
  position: relative;
  padding: 0.45em 0.75em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

nav[aria-label="主导航"] a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18em;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

nav[aria-label="主导航"] a:hover,
nav[aria-label="主导航"] a:focus-visible {
  color: var(--brand);
  background: rgba(53, 132, 228, 0.1);
  transform: translateY(-1px);
}

nav[aria-label="主导航"] a:hover::after {
  width: 60%;
}

.search-box {
  grid-area: search;
  justify-self: end;
}

.search-box form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.3rem 0.28rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.search-box form:focus-within {
  border-color: rgba(53, 132, 228, 0.55);
  box-shadow: 0 0 0 4px rgba(53, 132, 228, 0.14);
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-box input[type="search"] {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  width: 210px;
  padding: 0.35em 0;
  outline: none;
}

.search-box input[type="search"]::placeholder {
  color: var(--text-mute);
}

.search-box button[type="submit"] {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 14px rgba(26, 95, 180, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.search-box button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(26, 95, 180, 0.4);
}

.search-box button[type="submit"]:active {
  transform: translateY(0) scale(0.98);
}

#theme-toggle,
#menu-toggle {
  grid-area: actions;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.5em 1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#theme-toggle {
  margin-right: 0.5rem;
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--brand);
  border-color: rgba(53, 132, 228, 0.45);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#menu-toggle {
  display: none;
}

main[role="main"] {
  display: block;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2rem) 3rem;
}

main > section,
main > nav {
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
  animation: fadeUp 0.7s var(--ease) both;
}

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

main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }

main > section {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm);
  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(53, 132, 228, 0.28);
}

#hero {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#hero:hover {
  box-shadow: none;
  border-color: transparent;
}

.carousel {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-2) transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}

.slide {
  scroll-snap-align: center;
  position: relative;
  min-width: 100%;
  aspect-ratio: 1200 / 400;
  overflow: hidden;
}

.slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}

.slide:hover svg {
  transform: scale(1.04);
  filter: saturate(1.12);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

#hero-title {
  position: relative;
  padding: 0 clamp(0.2rem, 1vw, 0.6rem);
  margin-bottom: 0.5em;
  background: linear-gradient(120deg, var(--brand), var(--brand-3) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] #hero-title {
  background: linear-gradient(120deg, var(--brand-2), var(--brand-3) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  color: var(--text-soft);
  max-width: 68ch;
  padding: 0 clamp(0.2rem, 1vw, 0.6rem);
}

.hero-keywords {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  padding: 0.55em 1.1em;
  border-radius: 999px;
  background: rgba(53, 132, 228, 0.1);
  border: 1px solid rgba(53, 132, 228, 0.22);
  letter-spacing: 0.01em;
  margin: 0.4em clamp(0.2rem, 1vw, 0.6rem) 1.4em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1.1rem);
  padding: 0 clamp(0.2rem, 1vw, 0.6rem);
}

.hero-stats > div {
  position: relative;
  padding: 1.1rem 0.9rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.hero-stats > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--accent));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.hero-stats > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(53, 132, 228, 0.35);
}

.hero-stats > div:hover::before {
  opacity: 1;
}

.hero-stats .num {
  display: block;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-stats p {
  margin: 0.35em 0 0;
  font-size: 0.82rem;
  color: var(--text-mute);
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.7em 1.1em;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
}

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

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

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

nav[aria-label="页面内锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav[aria-label="页面内锚点导航"] li {
  margin: 0;
}

nav[aria-label="页面内锚点导航"] a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.42em 0.95em;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  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),
    box-shadow 0.25s var(--ease);
}

nav[aria-label="页面内锚点导航"] a:hover,
nav[aria-label="页面内锚点导航"] a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 95, 180, 0.32);
}

#products,
#advantages,
#applications,
#cases,
#reviews,
#articles,
#knowledge,
#faq,
#howto {
  display: block;
}

#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#cases h3,
#history h3,
#culture h3,
#howto h3,
#contact h3,
#knowledge h3 {
  margin-top: 1.4em;
  padding-left: 0.75em;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--brand), var(--brand-3)) 1;
  transition: transform 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}

#products h3:hover,
#advantages h3:hover,
#solutions h3:hover,
#applications h3:hover,
#cases h3:hover,
#history h3:hover,
#culture h3:hover,
#howto h3:hover,
#knowledge h3:hover {
  transform: translateX(4px);
  letter-spacing: 0.01em;
}

#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,
#history h3:first-of-type,
#culture h3:first-of-type,
#howto h3:first-of-type,
#knowledge h3:first-of-type {
  margin-top: 0.4em;
}

#solutions > p,
#applications > p,
#products > p,
#advantages > p {
  max-width: 72ch;
}

#cases article,
#news article,
#articles article {
  position: relative;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#cases article:hover,
#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(53, 132, 228, 0.35);
}

#cases article h3,
#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.35em;
  border-left: 0;
  padding-left: 0;
}

#cases article h3:hover,
#news article h3:hover,
#articles article h3:hover {
  transform: none;
  letter-spacing: -0.01em;
}

#news article h3,
#articles article h3 {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
}

#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.35s var(--ease), color 0.25s var(--ease);
}

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

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

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand);
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: rgba(53, 132, 228, 0.1);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    color 0.25s var(--ease);
}

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

#articles article p:last-child a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transform: translateX(2px);
}

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

#reviews blockquote {
  position: relative;
  padding-left: 3.2em;
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.35em;
  top: 0.05em;
  font-size: 3.2rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brand-2);
  opacity: 0.45;
}

#reviews blockquote:hover {
  border-left-color: var(--brand-3);
  transform: translateX(3px);
}

#knowledge h3 {
  color: var(--brand);
}

#faq details {
  background: var(--bg-alt);
}

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

#howto ol li {
  position: relative;
  counter-increment: step;
  padding: 0.75em 0.9em 0.75em 3.2em;
  margin-bottom: 0.6em;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7em;
  height: 1.7em;
  line-height: 1.7em;
  text-align: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.28);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(53, 132, 228, 0.35);
}

#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.6em;
  align-items: baseline;
  padding: 0.55em 0.9em;
  margin-bottom: 0.5em;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#contact p:hover {
  border-color: rgba(53, 132, 228, 0.4);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.42em 1em;
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 95, 180, 0.3);
}

footer[role="contentinfo"] {
  position: relative;
  margin-top: 2rem;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2rem) 2rem;
  background: linear-gradient(
    160deg,
    rgba(26, 95, 180, 0.1),
    rgba(124, 58, 237, 0.08) 55%,
    rgba(38, 162, 105, 0.08)
  );
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

footer[role="contentinfo"] > section {
  max-width: var(--maxw);
  margin: 0 auto 1.6rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

footer[role="contentinfo"] > section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(53, 132, 228, 0.3);
}

footer[role="contentinfo"] h2 {
  font-size: 1rem;
  margin-bottom: 0.7em;
  padding-bottom: 0.5em;
  color: var(--text);
}

footer[role="contentinfo"] h2::after {
  width: 40px;
  height: 3px;
}

footer[role="contentinfo"] p {
  margin: 0 0 0.4em;
  font-size: 0.88rem;
  color: var(--text-soft);
}

footer[role="contentinfo"] > p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-mute);
}

#back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 10px 26px rgba(26, 95, 180, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease), box-shadow 0.35s var(--ease),
    filter 0.35s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(26, 95, 180, 0.5);
}

#back-to-top:active {
  transform: translateY(0) scale(0.97);
}

#back-to-top::before {
  content: "↑";
  position: absolute;
  top: 6px;
  font-size: 1rem;
  line-height: 1;
}

#back-to-top {
  padding-top: 16px;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  header[role="banner"] {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "topbar topbar"
      "nav actions"
      "search search";
    gap: 0.6rem 1rem;
  }

  .search-box {
    justify-self: stretch;
  }

  .search-box form {
    width: 100%;
  }

  .search-box input[type="search"] {
    flex: 1;
    width: auto;
  }

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

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  header[role="banner"] {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "nav actions"
      "search search";
    padding: 0.55rem 1rem 0.7rem;
  }

  .topbar {
    display: none;
  }

  nav[aria-label="主导航"] {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

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

  nav[aria-label="主导航"] a {
    font-size: 0.84rem;
    padding: 0.4em 0.65em;
  }

  #theme-toggle {
    margin-right: 0;
    font-size: 0.78rem;
    padding: 0.45em 0.8em;
  }

  main[role="main"] {
    padding: 1rem 1rem 2.4rem;
  }

  main > section,
  main > nav {
    margin-bottom: 1.6rem;
  }

  main > section {
    padding: 1.2rem 1rem;
    border-radius: var(--radius);
  }

  .carousel {
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
  }

  .slide {
    aspect-ratio: 16 / 9;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .hero-stats > div {
    padding: 0.85rem 0.6rem;
  }

  .hero-keywords {
    font-size: 0.78rem;
    padding: 0.5em 0.9em;
  }

  #reviews blockquote {
    padding-left: 2.6em;
  }

  #reviews blockquote::before {
    font-size: 2.6rem;
  }

  footer[role="contentinfo"] > section {
    padding: 1.1rem 1rem;
  }

  #back-to-top {
    width: 44px;
    height: 44px;
    font-size: 0.56rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats .num {
    font-size: 1.3rem;
  }

  nav[aria-label="页面内锚点导航"] a,
  #sitemap a,
  #links a {
    font-size: 0.78rem;
    padding: 0.38em 0.8em;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --line: rgba(26, 95, 180, 0.4);
    --text-soft: #2c3c58;
  }

  html[data-theme="dark"] {
    --line: rgba(122, 168, 255, 0.45);
    --text-soft: #d5e0f5;
  }
}

@media print {
  header[role="banner"],
  #back-to-top,
  .search-box,
  .carousel {
    display: none !important;
  }

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

  main > section,
  footer[role="contentinfo"] > section {
    box-shadow: none;
    border: 1px solid #ccc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}