:root {
  --brand: #6C5CE7;
  --brand-2: #A29BFE;
  --brand-3: #00CEC9;
  --accent: #FDCB6E;
  --accent-2: #FF7675;
  --bg: #F7F6FD;
  --bg-soft: #FFFFFF;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #1F1B3A;
  --text-soft: #4A4568;
  --text-mute: #7A7595;
  --line: rgba(108, 92, 231, 0.16);
  --line-strong: rgba(108, 92, 231, 0.32);
  --shadow-sm: 0 4px 14px rgba(48, 36, 110, 0.08);
  --shadow-md: 0 12px 34px rgba(48, 36, 110, 0.12);
  --shadow-lg: 0 24px 60px rgba(48, 36, 110, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --glass-blur: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8B7CF6;
    --brand-2: #A29BFE;
    --brand-3: #2BE3DE;
    --accent: #FFD166;
    --accent-2: #FF8A8A;
    --bg: #0F0D1C;
    --bg-soft: #17142A;
    --bg-elev: rgba(28, 24, 50, 0.68);
    --text: #F2F0FF;
    --text-soft: #C9C4E6;
    --text-mute: #948FB5;
    --line: rgba(162, 155, 254, 0.18);
    --line-strong: rgba(162, 155, 254, 0.36);
    --shadow-sm: 0 4px 14px 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);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 8% -8%, rgba(108, 92, 231, 0.18), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(0, 206, 201, 0.14), transparent 55%),
    radial-gradient(800px 600px at 50% 100%, rgba(253, 203, 110, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  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(--brand), var(--brand-3));
  box-shadow: 0 0 18px rgba(108, 92, 231, 0.5);
}

h3 {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: var(--text);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

strong {
  color: var(--text);
}

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--brand-2);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
}

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

blockquote p:last-child {
  margin-bottom: 0;
}

code, kbd, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ============ Header ============ */

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px clamp(16px, 4vw, 40px) 12px;
  background: var(--bg-elev);
  -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  backdrop-filter: saturate(180%) blur(var(--glass-blur));
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.6s var(--ease) both;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.brand-bar a {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-3) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  padding-right: 6px;
  white-space: nowrap;
}

.brand-bar a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.brand-bar a:hover::after {
  transform: scaleX(1);
}

.brand-bar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

nav[aria-label="主导航"] {
  max-width: var(--maxw);
  margin: 10px auto 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  min-width: max-content;
}

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

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.28s var(--ease);
}

nav[aria-label="主导航"] a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(108, 92, 231, 0.35);
}

/* ============ Main layout ============ */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 60px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 52px);
}

main > section {
  position: relative;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 110px;
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.85s var(--ease) forwards;
}

main > section:nth-of-type(1) { animation-delay: 0.05s; }
main > section:nth-of-type(2) { animation-delay: 0.1s; }
main > section:nth-of-type(3) { animation-delay: 0.15s; }
main > section:nth-of-type(4) { animation-delay: 0.2s; }
main > section:nth-of-type(5) { animation-delay: 0.25s; }
main > section:nth-of-type(6) { animation-delay: 0.3s; }
main > section:nth-of-type(7) { animation-delay: 0.35s; }
main > section:nth-of-type(8) { animation-delay: 0.4s; }
main > section:nth-of-type(9) { animation-delay: 0.45s; }
main > section:nth-of-type(10) { animation-delay: 0.5s; }
main > section:nth-of-type(n+11) { animation-delay: 0.55s; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.5), transparent 40%, rgba(0, 206, 201, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.4s var(--ease);
}

/* ============ Hero ============ */

#hero {
  background:
    linear-gradient(135deg, rgba(108, 92, 231, 0.92), rgba(0, 206, 201, 0.78) 55%, rgba(253, 203, 110, 0.85)),
    var(--bg-soft);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 65%);
  filter: blur(10px);
  z-index: -1;
  animation: floatOrb 9s ease-in-out infinite;
}

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

#hero h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(30, 20, 80, 0.35);
  max-width: 22ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(30, 20, 80, 0.28);
  max-width: 68ch;
}

#hero figure {
  margin: 1.6em 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(20, 12, 60, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 64px rgba(20, 12, 60, 0.45);
}

#hero figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

#hero figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  background: rgba(20, 12, 60, 0.22);
  letter-spacing: 0.04em;
}

/* ============ Breadcrumb ============ */

nav[aria-label="面包屑导航"] {
  padding: 0 4px;
  opacity: 0;
  animation: riseIn 0.7s var(--ease) 0.2s forwards;
}

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

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

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

nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}

nav[aria-label="面包屑导航"] a:hover {
  color: var(--brand);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

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

/* ============ Lists & cards inside sections ============ */

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  transition: all 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.32);
}

/* ============ Articles ============ */

#articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#articles article {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

#articles article h3 {
  margin-bottom: 0.35em;
  transition: color 0.25s var(--ease);
}

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

#articles article p {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}

#articles article p:first-of-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(108, 92, 231, 0.1);
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.8em;
  letter-spacing: 0.03em;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.28);
  transition: all 0.3s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(108, 92, 231, 0.4);
}

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

/* ============ HowTo ordered list ============ */

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

/* ============ FAQ (details) ============ */

#faq details {
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

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

#faq details:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--brand-2);
  box-shadow: 0 14px 36px rgba(108, 92, 231, 0.18);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(108, 92, 231, 0.12);
  transition: all 0.35s var(--ease);
}

#faq details[open] summary {
  color: var(--brand);
  background: rgba(108, 92, 231, 0.06);
}

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

#faq details p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.95rem;
  color: var(--text-soft);
  animation: fadeIn 0.4s var(--ease);
}

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

/* ============ Contact & links ============ */

#contact p {
  padding: 10px 16px;
  margin: 0 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}

#contact h3 {
  margin-top: 1.4em;
}

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

/* ============ Footer ============ */

footer[role="contentinfo"] {
  margin-top: 40px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 32px;
  background:
    linear-gradient(160deg, rgba(108, 92, 231, 0.14), rgba(0, 206, 201, 0.08)),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--accent), var(--accent-2), var(--brand));
  background-size: 300% 100%;
  animation: gradientShift 8s linear infinite;
}

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

footer[role="contentinfo"] section {
  max-width: var(--maxw);
  margin: 0 auto 24px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line);
  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.1rem;
  margin-bottom: 0.5em;
  padding-left: 14px;
}

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

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

footer[role="contentinfo"] > p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-mute);
  border-top: 1px dashed var(--line-strong);
}

/* ============ Responsive ============ */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 120px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  header[role="banner"] {
    padding: 12px 16px 10px;
  }

  .brand-bar {
    gap: 4px 12px;
  }

  .brand-bar p {
    font-size: 0.78rem;
  }

  nav[aria-label="主导航"] {
    margin-top: 8px;
    margin-left: -4px;
    margin-right: -4px;
    padding: 2px 4px 6px;
  }

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

  main {
    padding: 20px 14px 40px;
    gap: 22px;
  }

  main > section {
    padding: 20px 16px;
    border-radius: var(--radius);
    scroll-margin-top: 130px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #hero figure {
    margin-top: 1.2em;
  }

  #hero figcaption {
    font-size: 0.78rem;
    padding: 10px 12px;
  }

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

  #sitemap a,
  #links a {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  #articles article {
    padding: 16px 16px;
  }

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

  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

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

  #faq summary::after {
    right: 14px;
    width: 24px;
    height: 24px;
  }

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

  #contact p {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  footer[role="contentinfo"] {
    padding: 26px 14px 24px;
  }

  footer[role="contentinfo"] section {
    padding: 16px 16px;
  }
}

@media (max-width: 420px) {
  .brand-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  nav[aria-label="主导航"] a {
    padding: 5px 11px;
    font-size: 0.8rem;
  }

  blockquote {
    padding: 0.9em 1em;
  }

  #articles article a {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* ============ Motion & accessibility ============ */

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

  main > section {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(108, 92, 231, 0.5);
    --line-strong: rgba(108, 92, 231, 0.8);
    --text-soft: #2A2545;
  }
}

@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root {
    --text-soft: #E8E4FF;
    --line: rgba(162, 155, 254, 0.5);
    --line-strong: rgba(162, 155, 254, 0.8);
  }
}

::selection {
  background: rgba(108, 92, 231, 0.32);
  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-2));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

@media print {
  header[role="banner"],
  nav[aria-label="主导航"],
  nav[aria-label="面包屑导航"],
  footer[role="contentinfo"]::before {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    opacity: 1;
    transform: none;
    animation: none;
  }

  #faq details {
    break-inside: avoid;
  }

  #faq details:not([open]) p {
    display: block;
  }
}