:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #4A3FC4;
  --accent: #00CEC9;
  --accent-pink: #FD79A8;
  --accent-yellow: #FDCB6E;
  --bg: #F8F7FF;
  --bg-alt: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #2D2B4E;
  --text-muted: #6B6889;
  --text-light: #9B98B8;
  --border: rgba(108, 92, 231, 0.14);
  --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
  --shadow-md: 0 8px 24px rgba(108, 92, 231, 0.12);
  --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --blur: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --max-w: 1180px;
}

[data-theme="dark"] {
  --bg: #12101F;
  --bg-alt: #1A1730;
  --bg-card: rgba(30, 27, 54, 0.78);
  --bg-glass: rgba(30, 27, 54, 0.6);
  --text: #EDEBFF;
  --text-muted: #A5A1C4;
  --text-light: #7A7699;
  --border: rgba(162, 155, 254, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12101F;
    --bg-alt: #1A1730;
    --bg-card: rgba(30, 27, 54, 0.78);
    --bg-glass: rgba(30, 27, 54, 0.6);
    --text: #EDEBFF;
    --text-muted: #A5A1C4;
    --text-light: #7A7699;
    --border: rgba(162, 155, 254, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }

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

::selection {
  background: var(--primary);
  color: #fff;
}

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

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.brand svg {
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand a:hover svg {
  transform: rotate(-12deg) scale(1.08);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.brand-name {
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#site-header nav {
  flex: 1;
  min-width: 0;
}

#site-header nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

#site-header nav ul::-webkit-scrollbar {
  display: none;
}

#site-header nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
}

#site-header nav a:hover,
#site-header nav a:focus-visible {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

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

.header-tools form {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-tools form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.header-tools input[type="search"] {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text);
  width: 180px;
  font-family: inherit;
}

.header-tools input[type="search"]::placeholder {
  color: var(--text-light);
}

.header-tools input[type="search"]:focus {
  outline: none;
}

.header-tools form button {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 8px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: filter var(--transition);
}

.header-tools form button:hover {
  filter: brightness(1.1);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all var(--transition);
}

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

#menu-toggle {
  display: none;
}

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

body > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

body > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-light);
}

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

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

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

main > section {
  margin-top: 56px;
  animation: fadeUp 0.7s ease both;
}

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
}

main > section h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

main > section h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

main > section p {
  color: var(--text-muted);
}

main > section strong {
  color: var(--text);
  font-weight: 600;
}

/* ============ HERO ============ */
#hero {
  position: relative;
  margin-top: 28px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #6C5CE7 0%, #8B7CF0 35%, #00CEC9 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite, fadeUp 0.7s ease both;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(253, 121, 168, 0.35), transparent 45%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

#hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#hero > p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.85;
}

#hero figure {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

#hero figure svg {
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  background: rgba(0, 0, 0, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.hero-stats > div {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}

.hero-stats > div:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stats span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

/* ============ ANCHOR NAV ============ */
main > nav[aria-label="页内锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="页内锚点导航"] a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

main > nav[aria-label="页内锚点导航"] a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ CARDS (generic section styling) ============ */
#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#team,
#sitemap,
#links {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

/* ============ HISTORY TIMELINE ============ */
#history ol {
  position: relative;
  padding-left: 28px;
}

#history ol::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent), var(--accent-pink));
}

#history li {
  position: relative;
  padding: 10px 0 10px 4px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

#history li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
  transition: all var(--transition);
}

#history li:hover {
  transform: translateX(6px);
  color: var(--text);
}

#history li:hover::before {
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(108, 92, 231, 0.22);
}

#history li strong {
  color: var(--primary);
  margin-right: 6px;
}

/* ============ PRODUCTS / FEATURE LISTS ============ */
#advantages ul,
#applications ul,
#howto ul {
  display: grid;
  gap: 12px;
}

#advantages li,
#applications li,
#howto ul li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition);
}

#advantages li::before,
#applications li::before,
#howto ul li::before {
  content: "✦";
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--primary);
  font-size: 1rem;
  transition: transform var(--transition);
}

#advantages li:hover,
#applications li:hover,
#howto ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

#advantages li:hover::before,
#applications li:hover::before,
#howto ul li:hover::before {
  transform: scale(1.3) rotate(90deg);
}

#advantages li strong,
#applications li strong {
  color: var(--text);
}

/* ============ SOLUTIONS (h3 blocks) ============ */
#solutions h3 {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(0, 206, 201, 0.08));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--transition);
}

#solutions h3:hover {
  border-left-color: var(--accent-pink);
  transform: translateX(4px);
}

/* ============ REVIEWS ============ */
#reviews {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#reviews blockquote {
  position: relative;
  padding: 24px 28px 24px 60px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 4px;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--primary-light);
  font-family: Georgia, serif;
  opacity: 0.6;
}

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

#reviews blockquote:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow-md);
}

/* ============ NEWS & ARTICLES ============ */
#news article,
#articles article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

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

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.3);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
  padding: 2px 10px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 999px;
}

#news article p,
#articles article p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

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

#news article a,
#articles article a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition);
}

#news article a:hover,
#articles article a:hover {
  color: var(--accent-pink);
  transform: translateX(4px);
}

/* ============ FAQ DETAILS ============ */
#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

#faq details:last-child {
  margin-bottom: 0;
}

#faq details[open] {
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow-md);
}

#faq summary {
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color var(--transition), background var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#faq summary:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.05);
}

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

/* ============ HOWTO ORDERED LIST ============ */
#howto ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

/* ============ CONTACT ============ */
#contact address {
  font-style: normal;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

#contact address p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0;
  transition: all var(--transition);
}

#contact address p:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateX(4px);
}

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

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ FOOTER ============ */
footer {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  padding: 56px 20px 32px;
  margin-top: 40px;
}

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

footer h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent-pink));
}

footer h3 {
  font-size: 0.92rem;
  margin: 14px 0 6px;
  color: var(--text-muted);
}

footer p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 6px;
  line-height: 1.7;
}

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

footer a:hover {
  color: var(--primary);
}

footer > section:last-of-type {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

footer > section:last-of-type p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  color: #fff;
  font-size: 0;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all var(--transition);
}

#back-to-top::before {
  content: "↑";
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.45);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

/* Scroll reveal via IntersectionObserver class */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .header-tools input[type="search"] {
    width: 140px;
  }
}

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

  #site-header nav {
    display: none;
  }

  #site-header nav.open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.25s ease both;
  }

  #site-header nav.open ul {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
  }

  #site-header nav.open a {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

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

  .header-tools form {
    display: none;
  }

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

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

  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

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

  .brand svg {
    width: 34px;
    height: 34px;
  }

  #theme-toggle,
  #menu-toggle {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  main {
    padding: 0 14px 40px;
  }

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

  #hero {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stats > div {
    padding: 14px 8px;
  }

  main > nav[aria-label="页内锚点导航"] ul {
    padding: 14px;
    gap: 8px;
  }

  main > nav[aria-label="页内锚点导航"] a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  #reviews blockquote {
    padding: 20px 18px 20px 48px;
  }

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

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

  #back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  footer {
    padding: 40px 14px 24px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</tool_call>