:root {
  --primary: #5b3df5;
  --primary-light: #8f7bff;
  --primary-dark: #3f28c9;
  --accent: #ffd23f;
  --accent-soft: #ffe9a8;
  --bg: #f7f5ff;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1c1633;
  --text-soft: #4a4363;
  --text-muted: #6f6885;
  --border: rgba(91, 61, 245, 0.14);
  --border-strong: rgba(91, 61, 245, 0.28);
  --shadow-sm: 0 2px 8px rgba(41, 24, 110, 0.06);
  --shadow: 0 10px 30px rgba(41, 24, 110, 0.1);
  --shadow-lg: 0 20px 50px rgba(41, 24, 110, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --gradient-hero: linear-gradient(135deg, #5b3df5 0%, #8f7bff 45%, #ffd23f 130%);
  --gradient-soft: linear-gradient(135deg, rgba(91, 61, 245, 0.08), rgba(255, 210, 63, 0.1));
  --header-h: 72px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0a1a;
    --bg-alt: #15112b;
    --surface: rgba(28, 22, 51, 0.66);
    --surface-solid: #1a1533;
    --text: #efeaff;
    --text-soft: #c9c1e6;
    --text-muted: #9d94bd;
    --border: rgba(143, 123, 255, 0.18);
    --border-strong: rgba(143, 123, 255, 0.34);
    --accent-soft: rgba(255, 210, 63, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
    --gradient-hero: linear-gradient(135deg, #3f28c9 0%, #5b3df5 50%, #8f7bff 130%);
    --gradient-soft: linear-gradient(135deg, rgba(143, 123, 255, 0.12), rgba(255, 210, 63, 0.08));
  }
}

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

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

body {
  margin: 0;
  font-family: -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-color: var(--bg);
  background-image: radial-gradient(
      circle at 12% 0%,
      rgba(91, 61, 245, 0.1),
      transparent 42%
    ),
    radial-gradient(circle at 88% 8%, rgba(255, 210, 63, 0.12), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

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

@media (prefers-color-scheme: dark) {
  a:hover,
  a:focus-visible {
    color: var(--primary-light);
  }
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 1rem;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 0 0 0.75rem;
}

h4 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text-soft);
}

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

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

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

li {
  margin-bottom: 0.45rem;
}

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

blockquote {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gradient-soft);
  color: var(--text-soft);
}

blockquote footer {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

figure {
  margin: 1.5rem 0;
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

address {
  font-style: normal;
}

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

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

/* ---------- Header ---------- */

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  min-height: var(--header-h);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.brand {
  flex: 0 0 auto;
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
}

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

.brand svg {
  transition: transform 0.4s var(--ease);
  filter: drop-shadow(0 4px 10px rgba(91, 61, 245, 0.35));
}

.brand a:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

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

header nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

header nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  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(--gradient-soft);
  color: var(--primary);
  transform: translateY(-1px);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 300px;
  position: relative;
}

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

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

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

header form[role="search"] input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.18);
}

header form[role="search"] button {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

header form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(91, 61, 245, 0.35);
  filter: brightness(1.05);
}

header > button[type="button"] {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

header > button[type="button"]:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* ---------- Main layout ---------- */

main {
  display: block;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 3rem;
}

main > section,
main > aside {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

main section > section {
  margin-bottom: 1.75rem;
}

/* ---------- Hero ---------- */

#hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  animation: fadeUp 0.8s var(--ease) both;
}

#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

#hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: rgba(255, 210, 63, 0.65);
  animation: float 12s ease-in-out infinite;
}

#hero::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -100px;
  background: rgba(255, 255, 255, 0.35);
  animation: float 15s ease-in-out infinite reverse;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(30, 15, 80, 0.3);
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 78ch;
}

#hero strong {
  color: #fff;
  background: linear-gradient(180deg, transparent 62%, rgba(255, 210, 63, 0.55) 62%);
  padding: 0 2px;
}

#hero figure {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(20, 8, 60, 0.35);
}

#hero figure svg {
  border-radius: var(--radius-sm);
}

#hero figcaption {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Anchor nav ---------- */

main > nav[aria-label="页面锚点导航"] {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="页面锚点导航"] h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

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

main > nav[aria-label="页面锚点导航"] a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

/* ---------- Generic sections ---------- */

main > section:not(#hero):not(#legal) {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:nth-of-type(2n) {
  animation-delay: 0.06s;
}

main > section:nth-of-type(3n) {
  animation-delay: 0.12s;
}

main > section section {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  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);
}

main > section section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

/* ---------- Products ---------- */

#products section {
  background: var(--gradient-soft);
}

#products h4 {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
}

/* ---------- Solutions ---------- */

#solutions section {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--primary), var(--accent)) 1;
}

#solutions section h3 {
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  #solutions section h3 {
    color: var(--primary-light);
  }
}

/* ---------- Applications ---------- */

#applications h3 {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.75rem;
  font-size: 1rem;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}

/* ---------- Cases ---------- */

#cases blockquote {
  background: var(--bg-alt);
  border-left-color: var(--accent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

/* ---------- News / Articles ---------- */

#news article,
#articles article {
  padding: 1.15rem 1.35rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  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,
#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

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

#news article h3,
#articles article h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

#articles article a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  transform: translateY(-1px);
}

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

/* ---------- FAQ ---------- */

#faq details {
  margin-bottom: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--gradient-soft);
}

#faq summary {
  position: relative;
  padding-right: 1.75rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

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

#faq summary:hover {
  color: var(--primary);
}

#faq details p {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.95rem;
}

/* ---------- HowTo ---------- */

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

#howto ol li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.6rem;
  margin-bottom: 0.5rem;
  counter-increment: step;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(91, 61, 245, 0.3);
}

#howto section {
  background: var(--bg-alt);
}

#howto section:last-child {
  background: var(--gradient-soft);
}

/* ---------- Notes ---------- */

#notes h3 {
  margin-top: 1rem;
}

#notes h3:first-of-type {
  margin-top: 0;
}

/* ---------- Contact ---------- */

#contact address {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
}

#contact address p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

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

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

/* ---------- Sitemap / Friends ---------- */

#sitemap ul,
#friends ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

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

#sitemap a,
#friends a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

/* ---------- Legal ---------- */

#legal {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#legal h3 {
  font-size: 1.05rem;
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  #legal h3 {
    color: var(--primary-light);
  }
}

/* ---------- Aside author ---------- */

main > aside {
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

main > aside h2 {
  font-size: 1.2rem;
}

main > aside p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

main > aside p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

footer[role="contentinfo"] {
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, transparent, rgba(91, 61, 245, 0.08));
  border-top: 1px solid var(--border);
  text-align: center;
}

footer[role="contentinfo"] > p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer[role="contentinfo"] > p:first-child {
  font-weight: 600;
  color: var(--text-soft);
}

footer[role="contentinfo"] nav {
  margin-top: 1rem;
}

footer[role="contentinfo"] ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer[role="contentinfo"] li {
  margin: 0;
}

footer[role="contentinfo"] a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}

footer[role="contentinfo"] a:hover {
  color: var(--primary);
}

/* ---------- Back to top ---------- */

body > button[aria-label="返回顶部"] {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(91, 61, 245, 0.4);
  opacity: 0.92;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

body > button[aria-label="返回顶部"]:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 32px rgba(91, 61, 245, 0.55);
  opacity: 1;
}

body > button[aria-label="返回顶部"]:active {
  transform: translateY(-1px) scale(0.98);
}

/* ---------- Animations ---------- */

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

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, 20px) scale(1.08);
  }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  header[role="banner"] {
    gap: 0.75rem;
  }

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

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

  header[role="banner"] {
    padding: 0.6rem 1rem;
  }

  header nav[aria-label="主导航"] {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    gap: 0.15rem;
    padding-bottom: 0.15rem;
  }

  header nav[aria-label="主导航"] a {
    white-space: nowrap;
    font-size: 0.86rem;
  }

  header form[role="search"] {
    flex: 1 1 100%;
    order: 4;
  }

  header > button[type="button"] {
    order: 2;
    margin-left: auto;
  }

  #hero {
    border-radius: var(--radius);
  }

  main > section:not(#hero):not(#legal),
  #legal {
    border-radius: var(--radius);
  }
}

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

  main {
    padding: 1rem 0.85rem 2rem;
  }

  #hero {
    padding: 1.75rem 1.15rem;
  }

  #hero figure {
    padding: 0.5rem;
  }

  main > section:not(#hero):not(#legal),
  #legal,
  main > aside {
    padding: 1.1rem 1rem;
  }

  main > section section {
    padding: 1rem;
  }

  main > nav[aria-label="页面锚点导航"] {
    padding: 1rem;
  }

  #sitemap ul,
  #friends ul {
    grid-template-columns: 1fr;
  }

  #news article,
  #articles article {
    padding: 1rem;
  }

  #faq details {
    padding: 0.8rem 1rem;
  }

  body > button[aria-label="返回顶部"] {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 0.64rem;
  }

  footer[role="contentinfo"] ul {
    gap: 0.4rem 1rem;
  }
}

@media (min-width: 1280px) {
  #hero {
    padding: 4rem 3.5rem;
  }
}
</｜｜DSML｜｜ parameter>
</response>