:root {
  --brand: #e63946;
  --brand-dark: #c1272d;
  --brand-light: #ff6b76;
  --accent: #ffd166;
  --accent-2: #06d6a0;
  --bg: #f7f8fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --text-soft: #4a4d55;
  --text-mute: #7a7f8a;
  --border: rgba(29, 29, 31, 0.08);
  --shadow-sm: 0 2px 8px rgba(29, 29, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(29, 29, 31, 0.1);
  --shadow-lg: 0 20px 50px rgba(29, 29, 31, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --grad-banner: linear-gradient(135deg, #e63946 0%, #ff6b76 45%, #ffb347 100%);
  --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(255, 209, 102, 0.14));
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.28));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1180px;
  --header-h: 68px;
}

html[data-theme="dark"],
html.dark {
  --bg: #0e1014;
  --bg-alt: #15181e;
  --surface: rgba(30, 34, 42, 0.66);
  --surface-solid: #1a1e25;
  --text: #eef1f6;
  --text-soft: #c3c9d4;
  --text-mute: #8b93a1;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(255, 209, 102, 0.12));
  --grad-glass: linear-gradient(135deg, rgba(60, 66, 78, 0.55), rgba(30, 34, 42, 0.3));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0e1014;
    --bg-alt: #15181e;
    --surface: rgba(30, 34, 42, 0.66);
    --surface-solid: #1a1e25;
    --text: #eef1f6;
    --text-soft: #c3c9d4;
    --text-mute: #8b93a1;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(255, 209, 102, 0.12));
    --grad-glass: linear-gradient(135deg, rgba(60, 66, 78, 0.55), rgba(30, 34, 42, 0.3));
  }
}

*,
*::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(900px 500px at 100% -10%, rgba(230, 57, 70, 0.14), transparent 60%),
    radial-gradient(800px 480px at -10% 10%, rgba(255, 209, 102, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(6, 214, 160, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  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,
a:focus-visible {
  color: var(--brand-dark);
}

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  background: var(--grad-banner);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-banner);
  box-shadow: 0 0 14px rgba(230, 57, 70, 0.5);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--grad-soft);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(29, 29, 31, 0.06);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

header[role="banner"] nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

header[role="banner"] nav > a[href="#top"] {
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--grad-banner);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    filter 0.3s var(--ease);
}

header[role="banner"] nav > a[href="#top"]:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(230, 57, 70, 0.5);
  filter: brightness(1.06);
  color: #fff;
}

header[role="banner"] nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

header[role="banner"] nav > ul li {
  margin: 0;
}

header[role="banner"] nav > 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);
}

header[role="banner"] nav > ul a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-banner);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

header[role="banner"] nav > ul a:hover {
  color: var(--brand);
  background: var(--grad-soft);
  transform: translateY(-1px);
}

header[role="banner"] nav > ul a:hover::after {
  width: 60%;
}

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

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

header[role="banner"] form[role="search"] input[type="search"] {
  width: 190px;
  padding: 9px 16px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: width 0.35s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

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

header[role="banner"] form[role="search"] input[type="search"]:focus {
  width: 240px;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.16);
  outline: none;
}

header[role="banner"] form[role="search"] button[type="submit"],
header[role="banner"] #theme-toggle {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-banner);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

header[role="banner"] #theme-toggle {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] form[role="search"] button[type="submit"]:hover,
header[role="banner"] #theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.4);
  filter: brightness(1.05);
}

header[role="banner"] #theme-toggle:hover {
  color: var(--brand);
  box-shadow: var(--shadow-md);
}

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

main > section {
  margin-bottom: 34px;
  padding: 30px clamp(18px, 3vw, 38px);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.7s var(--ease) both;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-glass);
  opacity: 0.35;
  pointer-events: none;
}

main > section > * {
  position: relative;
  z-index: 1;
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.22);
}

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }
main > section:nth-of-type(13) { animation-delay: 0.5s; }

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

#hero {
  background: var(--grad-banner);
  border: none;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(230, 57, 70, 0.35);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 88% 8%, rgba(29, 29, 31, 0.35), transparent 70%),
    radial-gradient(360px 240px at 6% 96%, rgba(255, 209, 102, 0.45), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08));
  opacity: 1;
  z-index: 0;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: floatOrb 9s ease-in-out infinite;
  z-index: 0;
}

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

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 4px 24px rgba(29, 29, 31, 0.28);
}

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

#hero figure {
  margin: 26px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(29, 29, 31, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.006);
  box-shadow: 0 30px 70px rgba(29, 29, 31, 0.45);
}

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

#hero figcaption {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
  background: rgba(29, 29, 31, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#hero [aria-label="平台数据统计"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

#hero [aria-label="平台数据统计"] p {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

#hero [aria-label="平台数据统计"] p:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.24);
}

#hero [aria-label="平台数据统计"] strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#hero [aria-label="平台数据统计"] span {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

#hero > p:last-of-type a {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-dark);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(29, 29, 31, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

#hero > p:last-of-type a:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #1d1d1f;
  box-shadow: 0 14px 30px rgba(29, 29, 31, 0.3);
}

nav[aria-label="面包屑导航"] {
  margin: 0 0 26px;
  padding: 12px 20px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

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

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

nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-mute);
  opacity: 0.7;
}

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

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

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

main article {
  padding: 20px 22px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

main article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-banner);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

main article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.25);
}

main article:hover::after {
  transform: scaleY(1);
}

main article h3 {
  margin-bottom: 0.35em;
  transition: color 0.3s var(--ease);
}

main article:hover h3 {
  color: var(--brand);
}

main article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(230, 57, 70, 0.22);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    color 0.3s var(--ease);
}

main article p:last-child a:hover {
  background: var(--grad-banner);
  color: #fff;
  transform: translateX(3px);
}

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

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

#faq h3 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  padding: 12px 16px;
  font-size: 1.02rem;
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq h3:first-of-type {
  margin-top: 0.6em;
}

#faq h3:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(255, 209, 102, 0.2));
}

#faq p {
  padding: 0 4px 0 18px;
  border-left: 1px dashed var(--border);
  margin-left: 4px;
}

#howto ol,
#howto ul {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px 18px 42px;
  box-shadow: var(--shadow-sm);
}

#howto ol li,
#howto ul li {
  padding-left: 4px;
}

#howto ol li::marker {
  font-weight: 800;
  color: var(--brand);
}

#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

#contact ul li {
  padding: 12px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateX(4px);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: var(--shadow-sm);
}

#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

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

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

#sitemap ul a:hover,
#links ul a:hover {
  color: #fff;
  background: var(--grad-banner);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.32);
}

#notice {
  border-left: 5px solid var(--accent);
}

footer[role="contentinfo"] {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 20px 30px;
  margin-top: 20px;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-banner);
}

footer[role="contentinfo"] > section {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  padding: 20px 24px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

footer[role="contentinfo"] > section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

footer[role="contentinfo"] h2 {
  font-size: 1.02rem;
  padding-left: 14px;
  margin-bottom: 0.5em;
}

footer[role="contentinfo"] h2::before {
  width: 4px;
}

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

footer[role="contentinfo"] > p {
  max-width: var(--maxw);
  margin: 26px auto 0;
  text-align: center;
}

footer[role="contentinfo"] > p a {
  display: inline-block;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad-banner);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

footer[role="contentinfo"] > p a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(230, 57, 70, 0.45);
  color: #fff;
}

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

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

@media (max-width: 1024px) {
  header[role="banner"] nav > ul a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }
  header[role="banner"] form[role="search"] input[type="search"] {
    width: 150px;
  }
  header[role="banner"] form[role="search"] input[type="search"]:focus {
    width: 190px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: auto;
  }
  header[role="banner"] nav {
    gap: 10px;
  }
  header[role="banner"] nav > ul {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  header[role="banner"] nav > ul::-webkit-scrollbar {
    height: 4px;
  }
  header[role="banner"] nav > ul::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.4);
    border-radius: 4px;
  }
  header[role="banner"] nav > ul a {
    white-space: nowrap;
  }
  header[role="banner"] form[role="search"] {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  header[role="banner"] form[role="search"] input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  header[role="banner"] form[role="search"] input[type="search"]:focus {
    width: auto;
  }
  main {
    padding: 24px 14px 48px;
  }
  main > section {
    padding: 24px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
  }
  #hero {
    padding: 26px 20px;
  }
  nav[aria-label="面包屑导航"] {
    border-radius: var(--radius);
    padding: 10px 16px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }
  header[role="banner"] nav {
    padding: 10px 14px;
  }
  header[role="banner"] nav > a[href="#top"] {
    font-size: 1.02rem;
    padding: 7px 14px;
  }
  header[role="banner"] form[role="search"] button[type="submit"] {
    padding: 9px 13px;
    font-size: 0.82rem;
  }
  header[role="banner"] #theme-toggle {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
  main {
    padding: 18px 10px 40px;
  }
  main > section {
    padding: 20px 15px;
    border-radius: 16px;
  }
  h2 {
    padding-left: 14px;
  }
  h2::before {
    width: 4px;
  }
  #hero [aria-label="平台数据统计"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  #hero [aria-label="平台数据统计"] p {
    padding: 12px 14px;
  }
  #hero > p:last-of-type a {
    display: block;
    text-align: center;
    margin: 8px 0;
  }
  main article {
    padding: 16px 16px;
  }
  #howto ol,
  #howto ul {
    padding: 14px 16px 14px 34px;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  #sitemap ul a,
  #links ul a {
    padding: 9px 12px;
    font-size: 0.84rem;
  }
  footer[role="contentinfo"] {
    padding: 32px 12px 24px;
  }
  footer[role="contentinfo"] > section {
    padding: 16px 16px;
  }
}

@media (hover: none) {
  main > section:hover,
  main article:hover,
  blockquote:hover,
  #hero figure:hover,
  footer[role="contentinfo"] > section:hover {
    transform: none;
  }
}

::selection {
  background: rgba(230, 57, 70, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
  background-clip: padding-box;
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero figure,
  nav[aria-label="面包屑导航"] {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}