:root {
  --brand: #f5a623;
  --brand-dark: #d98b0f;
  --brand-light: #ffc65c;
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1f6;
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #f5a623 0%, #f97316 38%, #ef4444 72%, #b91c1c 100%);
  --grad-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(249, 115, 22, 0.08));
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-elevated: #131c2e;
  --bg-soft: #1a2438;
  --text: #e8edf6;
  --text-soft: #b9c3d4;
  --text-muted: #8b97ab;
  --border: #24304a;
  --border-strong: #33415c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(19, 28, 46, 0.72);
  --glass-border: rgba(120, 140, 175, 0.24);
  --grad-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.18), rgba(239, 68, 68, 0.08));
  --grad-card: linear-gradient(160deg, rgba(26, 36, 56, 0.92), rgba(19, 28, 46, 0.66));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-elevated: #131c2e;
    --bg-soft: #1a2438;
    --text: #e8edf6;
    --text-soft: #b9c3d4;
    --text-muted: #8b97ab;
    --border: #24304a;
    --border-strong: #33415c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(19, 28, 46, 0.72);
    --glass-border: rgba(120, 140, 175, 0.24);
    --grad-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.18), rgba(239, 68, 68, 0.08));
    --grad-card: linear-gradient(160deg, rgba(26, 36, 56, 0.92), rgba(19, 28, 46, 0.66));
  }
}

*,
*::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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(245, 166, 35, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(239, 68, 68, 0.08), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(245, 166, 35, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

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

h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); }
h4 { font-size: 1.08rem; }

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

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

li {
  margin-bottom: 0.45em;
}

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

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

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.25em;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--grad-soft);
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2em 0;
}

/* 跳转链接 */
body > a[href="#main-content"] {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 999;
  padding: 10px 22px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.3s var(--ease);
}

body > a[href="#main-content"]:focus {
  top: 0;
  color: #fff;
}

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

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

header > div > a[href="/"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

header > div > a[href="/"] svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header > div > a[href="/"]:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.55);
}

header > div > a[href="/"]:hover {
  color: var(--brand-dark);
}

header nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
}

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

header nav[aria-label="主导航"] li {
  margin: 0;
}

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

header nav[aria-label="主导航"] a:hover,
header nav[aria-label="主导航"] a:focus-visible {
  background: var(--grad-soft);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 320px;
  min-width: 220px;
}

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

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

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

header form[role="search"] input[type="search"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
  outline: none;
}

header form[role="search"] button[type="submit"] {
  flex-shrink: 0;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

header form[role="search"] button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.5);
  filter: brightness(1.05);
}

header form[role="search"] button[type="submit"]:active {
  transform: translateY(0);
}

header button[data-theme-toggle],
header button[data-menu-toggle] {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-soft);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

header button[data-theme-toggle]:hover,
header button[data-menu-toggle]:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--grad-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

header button[data-menu-toggle] {
  display: none;
}

/* ============ 面包屑 ============ */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px 0;
}

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

body > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

body > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--border-strong);
}

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

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

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

/* ============ 主内容 ============ */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section {
  margin: 56px 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.1em;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand), var(--brand-dark));
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.5);
}

main > section > h3 {
  margin-top: 1.6em;
  color: var(--text);
}

/* 通用卡片化 */
main > section:not(#hero) > article,
main > section:not(#hero) > details,
main > section:not(#hero) > blockquote,
main > section:not(#hero) > ul,
main > section:not(#hero) > ol {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 28px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    var(--grad-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 12% 88%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(360px 240px at 78% 20%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 65%);
  animation: floatOrb 12s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 24px, 0) scale(1.08); }
}

#hero > div:first-child {
  max-width: 760px;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  margin-bottom: 0.5em;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
}

#hero > div:first-child > p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.6em;
}

#hero > div:first-child > p:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 0.94rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

#hero > div:first-child > p:last-child a:first-child {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

#hero > div:first-child > p:last-child a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

#hero > div:first-child > p:last-child a:first-child:hover {
  background: #fff;
  color: var(--brand-dark);
}

#hero > div[aria-label="Banner轮播"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

#hero figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.3);
}

#hero figure svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#hero figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
}

#hero > ul[aria-label="平台核心数据"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

#hero > ul[aria-label="平台核心数据"] li {
  margin: 0;
  padding: 18px 14px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

#hero > ul[aria-label="平台核心数据"] li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

#hero > ul[aria-label="平台核心数据"] strong {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

#hero > ul[aria-label="平台核心数据"] span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

/* ============ 品牌 ============ */
#brand {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#brand h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#brand h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ============ 产品 ============ */
#product > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 20px;
  list-style: none;
}

#product > ul li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 46px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#product > ul li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(245, 166, 35, 0.4);
}

#product > ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#product h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  margin-top: 1.4em;
  font-size: 0.95rem;
  color: var(--brand-dark);
  background: var(--grad-soft);
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

[data-theme="dark"] #product h4 {
  color: var(--brand-light);
}

#product h4 + p {
  margin-top: 0.7em;
}

/* ============ 解决方案 ============ */
#solutions {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(245, 166, 35, 0.12), transparent 65%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

#solutions h3 {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

/* ============ 案例 ============ */
#cases > h3 {
  padding: 18px 20px 0;
}

#cases > h3 + p {
  padding: 0 20px 18px;
  margin: 0;
}

#cases > h3 + p:last-of-type {
  padding-bottom: 20px;
}

#cases > h3 {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  margin-top: 18px;
}

#cases > h3 + p {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#cases > h2 + p {
  margin-bottom: 1.2em;
}

#cases > blockquote {
  margin: 14px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases > blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#cases > blockquote p {
  font-style: italic;
  color: var(--text-soft);
}

/* ============ 新闻 ============ */
#news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

#news > h2 {
  grid-column: 1 / -1;
}

#news > article {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news > article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 166, 35, 0.5);
}

#news > article h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

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

/* ============ 技术文章 ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

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

#articles > article {
  position: relative;
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  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);
}

#articles > article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#articles > article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 166, 35, 0.45);
}

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

#articles > article h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45em;
}

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

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

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

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

[data-theme="dark"] #articles > article p:last-child a {
  color: var(--brand-light);
}

/* ============ FAQ ============ */
#faq {
  display: grid;
  gap: 12px;
}

#faq > h2 {
  margin-bottom: 0.6em;
}

#faq > details {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq > details:hover {
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: var(--shadow-md);
}

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

#faq > details summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#faq > details summary::-webkit-details-marker {
  display: none;
}

#faq > details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--grad-soft);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq > details summary:hover {
  background: var(--grad-soft);
  color: var(--brand-dark);
}

#faq > details > p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-soft);
  font-size: 0.94rem;
  animation: fadeSlide 0.35s var(--ease);
}

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

/* ============ 教程 ============ */
#howto {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(245, 166, 35, 0.12), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

#howto > ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1em 0 1.4em;
}

#howto > ol li {
  counter-increment: step;
  position: relative;
  margin: 0 0 12px;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto > ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

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

#howto > ul {
  padding: 16px 20px 16px 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

#howto > ul li {
  color: var(--text-soft);
}

#howto > h3 {
  margin-top: 1.6em;
}

/* ============ 知识 ============ */
#knowledge {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#knowledge p {
  font-size: 0.98rem;
  line-height: 1.85;
}

#knowledge p:first-of-type::first-letter {
  float: left;
  font-size: 2.6em;
  line-height: 1;
  padding: 4px 10px 0 0;
  font-weight: 800;
  color: var(--brand-dark);
}

/* ============ 联系 ============ */
#contact {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(245, 166, 35, 0.14), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

#contact > ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact > ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 166, 35, 0.5);
}

#contact h3 {
  margin-top: 1.4em;
  font-size: 1rem;
  color: var(--brand-dark);
}

[data-theme="dark"] #contact h3 {
  color: var(--brand-light);
}

/* ============ 页脚 ============ */
footer {
  margin-top: 60px;
  padding: clamp(32px, 4vw, 56px) 20px 28px;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(245, 166, 35, 0.1), transparent 65%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

footer > nav,
footer > section {
  max-width: var(--container);
  margin: 0 auto 32px;
}

footer h2 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.9em;
}

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

footer nav li {
  margin: 0;
}

footer nav a {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-soft);
  padding-bottom: 2px;
}

footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

footer nav a:hover::after {
  transform: scaleX(1);
}

footer > section p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.7em;
}

footer > p {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}

footer > p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

footer > p a:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--grad-soft);
  transform: translateY(-2px);
}

/* ============ 滚动动画 ============ */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

main > section {
  animation: revealUp 0.7s var(--ease) both;
}

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.08s; }
main > section:nth-of-type(4) { animation-delay: 0.11s; }
main > section:nth-of-type(5) { animation-delay: 0.14s; }
main > section:nth-of-type(6) { animation-delay: 0.17s; }
main > section:nth-of-type(7) { animation-delay: 0.2s; }
main > section:nth-of-type(8) { animation-delay: 0.23s; }
main > section:nth-of-type(9) { animation-delay: 0.26s; }
main > section:nth-of-type(10) { animation-delay: 0.29s; }
main > section:nth-of-type(11) { animation-delay: 0.32s; }

@supports (animation-timeline: view()) {
  main > section {
    animation: revealUp 0.7s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  header > div {
    gap: 12px;
  }

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

  header form[role="search"] {
    flex: 1 1 240px;
  }

  #hero > ul[aria-label="平台核心数据"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  header > div {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  header > div > a[href="/"] {
    order: 1;
  }

  header button[data-theme-toggle] {
    order: 2;
    margin-left: auto;
  }

  header button[data-menu-toggle] {
    display: inline-block;
    order: 3;
  }

  header nav[aria-label="主导航"] {
    order: 5;
    flex: 1 1 100%;
    display: none;
  }

  header nav[aria-label="主导航"].is-open {
    display: block;
    animation: fadeSlide 0.3s var(--ease);
  }

  header nav[aria-label="主导航"] ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--border);
  }

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

  header form[role="search"] {
    order: 6;
    flex: 1 1 100%;
    min-width: 0;
    padding-bottom: 10px;
  }

  main {
    padding: 0 16px 32px;
  }

  body > nav[aria-label="面包屑导航"] {
    padding: 14px 16px 0;
  }

  main > section {
    margin: 40px 0;
  }

  #hero {
    margin-top: 20px;
    border-radius: var(--radius-lg);
  }

  #hero > div[aria-label="Banner轮播"] {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #hero > div:first-child > p:last-child {
    gap: 10px;
  }

  #hero > div:first-child > p:last-child a {
    flex: 1 1 auto;
    padding: 10px 18px;
  }

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

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

  footer nav ul {
    gap: 6px 16px;
  }
}

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

  #hero {
    padding: 24px 18px;
  }

  #hero > ul[aria-label="平台核心数据"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #hero > ul[aria-label="平台核心数据"] li {
    padding: 14px 10px;
  }

  #hero > div:first-child > p:last-child a {
    flex: 1 1 100%;
    text-align: center;
  }

  #brand,
  #solutions,
  #howto,
  #knowledge,
  #contact {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  #product > ul {
    padding: 14px;
    grid-template-columns: 1fr;
  }

  #howto > ol li {
    padding: 12px 14px 12px 52px;
  }

  #faq > details summary {
    padding: 14px 48px 14px 16px;
    font-size: 0.94rem;
  }

  #faq > details > p {
    padding: 0 16px 16px;
  }

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

  footer nav ul {
    flex-direction: column;
    gap: 4px;
  }
}

/* ============ 无障碍与偏好 ============ */
@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 {
  header,
  footer,
  body > a[href="#main-content"],
  body > nav[aria-label="面包屑导航"] {
    display: none !important;
  }

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

  main > section {
    margin: 20px 0;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
}