:root {
  --brand: #1a5cff;
  --brand-dark: #0f3fd6;
  --brand-light: #4d7dff;
  --accent: #ff5c8a;
  --accent-2: #7c4dff;
  --gradient-hero: linear-gradient(135deg, #1a5cff 0%, #7c4dff 55%, #ff5c8a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(26, 92, 255, 0.12), rgba(255, 92, 138, 0.12));
  --bg: #f6f8ff;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(26, 92, 255, 0.14);
  --text: #1b2138;
  --text-soft: #4a5470;
  --text-muted: #7b849e;
  --shadow-sm: 0 2px 10px rgba(26, 60, 140, 0.07);
  --shadow-md: 0 10px 30px rgba(26, 60, 140, 0.12);
  --shadow-lg: 0 20px 55px rgba(26, 60, 140, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

[data-theme="dark"] {
  --brand: #5c8bff;
  --brand-dark: #3d6fff;
  --brand-light: #8aabff;
  --accent: #ff7ba3;
  --accent-2: #9d7bff;
  --gradient-hero: linear-gradient(135deg, #16307f 0%, #3d2a8a 55%, #7a2a4d 100%);
  --gradient-soft: linear-gradient(135deg, rgba(92, 139, 255, 0.16), rgba(255, 123, 163, 0.14));
  --bg: #0d1020;
  --bg-alt: #141830;
  --surface: rgba(24, 29, 54, 0.66);
  --surface-solid: #181d36;
  --border: rgba(120, 150, 255, 0.18);
  --text: #eef1ff;
  --text-soft: #b9c1de;
  --text-muted: #8890b0;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 55px 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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      circle at 12% 0%,
      rgba(26, 92, 255, 0.1),
      transparent 42%
    ),
    radial-gradient(circle at 88% 6%, rgba(255, 92, 138, 0.1), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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 {
  color: var(--accent);
}

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
}

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

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

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin-top: 1.6em;
}

h4 {
  font-size: 1.05rem;
  color: var(--brand);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border-left: 4px solid var(--brand);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

dl {
  margin: 0 0 1.5em;
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

dt {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text);
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
}

dd {
  margin: 0;
  padding: 14px 18px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

dl > dt:last-of-type,
dl > dd:last-of-type {
  border-bottom: none;
}

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--gradient-soft);
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 0.8em;
  font-variant-numeric: tabular-nums;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar span:first-child {
  color: var(--brand);
  font-weight: 700;
}

nav[aria-label="主导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
  color: var(--text);
}

.logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(26, 92, 255, 0.35);
  transition: box-shadow 0.3s var(--ease), transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg);
  box-shadow: 0 10px 26px rgba(26, 92, 255, 0.5);
}

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

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

nav[aria-label="主导航"] ul a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  z-index: -1;
}

nav[aria-label="主导航"] ul a:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

nav[aria-label="主导航"] ul a:hover::before {
  opacity: 1;
}

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 300px;
  margin-left: auto;
}

form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

form[role="search"] input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 16px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

form[role="search"] input::placeholder {
  color: var(--text-muted);
}

form[role="search"] input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.15);
}

form[role="search"] button,
#theme-toggle,
#menu-toggle {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-hero);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(26, 92, 255, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

form[role="search"] button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26, 92, 255, 0.45);
  filter: brightness(1.06);
}

form[role="search"] button:active,
#theme-toggle:active,
#menu-toggle:active {
  transform: translateY(0) scale(0.97);
}

#theme-toggle {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#theme-toggle:hover {
  color: var(--brand);
  box-shadow: var(--shadow-md);
}

#menu-toggle {
  display: none;
}

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

section {
  margin: 0 0 34px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-soft);
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
}

section:hover {
  box-shadow: var(--shadow-md);
}

section > h2:first-child {
  margin-top: 0;
}

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

/* ============ HERO ============ */
#home {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#home::before {
  display: none;
}

#home:hover {
  box-shadow: none;
}

.hero {
  position: relative;
  padding: clamp(30px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 82% 18%,
      rgba(255, 255, 255, 0.28),
      transparent 34%
    ),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.16), transparent 30%);
  pointer-events: none;
}

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

.hero h1 {
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 24px rgba(10, 20, 60, 0.35);
  max-width: 22ch;
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
  max-width: 72ch;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  color: var(--brand-dark);
}

.btn-primary:hover::after {
  left: 140%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

/* ============ CAROUSEL ============ */
.banner-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-light) transparent;
  margin-bottom: 8px;
}

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

.banner-carousel::-webkit-scrollbar-thumb {
  background: var(--brand-light);
  border-radius: 999px;
}

.banner-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.slide {
  scroll-snap-align: start;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.slide:hover::before {
  transform: scaleX(1);
}

.slide h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  padding-bottom: 0;
}

.slide h2::after {
  display: none;
}

.slide p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat:hover::after {
  transform: scaleX(1);
}

.stat span {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

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

/* ============ BREADCRUMB ============ */
nav[aria-label="面包屑导航"] {
  margin: 0 0 22px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  max-width: 100%;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

nav[aria-label="面包屑导航"] li {
  margin: 0;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--brand-light);
  font-weight: 700;
}

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

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

/* ============ ABOUT ============ */
#about h3 {
  padding-left: 16px;
  border-left: 4px solid var(--brand);
  border-radius: 2px;
}

/* ============ PRODUCTS ============ */
#products h4 {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  margin: 1.4em 0 0.6em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products h4:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

/* ============ SOLUTIONS ============ */
#solutions ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

#solutions ul li {
  margin: 0;
  padding: 14px 18px 14px 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  position: relative;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#solutions ul li::before {
  content: "✦";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1rem;
}

#solutions ul li:hover {
  transform: translateY(-4px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

/* ============ CASES ============ */
#cases blockquote {
  position: relative;
  padding-left: 56px;
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.35;
  font-family: Georgia, serif;
}

/* ============ NEWS & ARTICLES ============ */
#news article,
#articles article {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-hero);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

#articles article > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#articles article > a:hover {
  background: var(--gradient-hero);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 92, 255, 0.35);
}

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

#articles article > div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  animation: fadeUp 0.5s var(--ease) both;
}

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

#faq details[open] {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

#faq details:hover {
  border-color: var(--brand-light);
}

#faq summary {
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
  position: relative;
  list-style: none;
  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;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease);
}

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

#faq summary:hover {
  background: var(--gradient-soft);
  color: var(--brand);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

#howto ol li {
  counter-increment: step;
  margin: 0;
  padding: 14px 18px 14px 58px;
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  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: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(26, 92, 255, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

#howto > ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

#howto > ul li {
  margin: 0;
  padding: 12px 16px 12px 40px;
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

#howto > ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--brand);
  font-weight: 800;
}

/* ============ CONTACT ============ */
#contact dl {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

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

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

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

#sitemap ul a,
#links ul a {
  display: block;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap ul a::before,
#links ul a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}

#sitemap ul a:hover,
#links ul a:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(26, 92, 255, 0.35);
}

#sitemap ul a:hover::before,
#links ul a:hover::before {
  opacity: 1;
}

/* ============ FOOTER ============ */
footer {
  margin-top: 20px;
  padding: 40px 20px 30px;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 16s ease infinite;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 15% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 40%
  );
  pointer-events: none;
}

footer p {
  position: relative;
  z-index: 1;
  margin: 0 auto 10px;
  max-width: 900px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
}

footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

footer a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

#back-to-top {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

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

/* ============ SCROLL ANIMATIONS ============ */
@supports (animation-timeline: view()) {
  section {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  form[role="search"] {
    flex-basis: 240px;
  }

  nav[aria-label="主导航"] ul a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

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

  .topbar {
    justify-content: center;
    text-align: center;
    font-size: 0.74rem;
    padding: 6px 14px;
  }

  nav[aria-label="主导航"] {
    gap: 10px;
    padding: 10px 14px;
    position: relative;
  }

  #menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  nav[aria-label="主导航"] ul {
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease),
      padding 0.35s var(--ease);
    padding: 0;
  }

  nav[aria-label="主导航"] ul.is-open {
    max-height: 720px;
    opacity: 1;
    padding: 8px 0 4px;
  }

  nav[aria-label="主导航"] ul a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }

  form[role="search"] {
    order: 6;
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 4px;
  }

  main {
    padding: 0 14px 30px;
  }

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

  .hero {
    padding: 28px 22px;
    border-radius: var(--radius-lg);
  }

  .hero h1 {
    max-width: none;
  }

  .banner-carousel {
    grid-auto-columns: minmax(230px, 82%);
  }

  dl {
    grid-template-columns: 1fr;
  }

  dt {
    padding-bottom: 4px;
    border-bottom: none;
    background: transparent;
    color: var(--brand);
    font-size: 0.82rem;
  }

  dd {
    padding-top: 4px;
    padding-bottom: 14px;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 13px 20px;
  }

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

  .stat {
    padding: 18px 10px;
  }

  #solutions ul,
  #howto > ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #howto ol li {
    padding-left: 50px;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.9rem;
  }

  footer {
    padding: 30px 16px 24px;
  }
}

/* ============ THEME TRANSITION ============ */
body,
header,
section,
.slide,
.stat,
#news article,
#articles article,
#faq details,
#howto ol li,
#sitemap ul a,
#links ul a,
form[role="search"] input {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-dark), var(--accent));
}

/* ============ SELECTION ============ */
::selection {
  background: var(--brand);
  color: #fff;
}
</final>
</final>