:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --bg-elev: #16213a;
  --card: rgba(30, 41, 59, 0.72);
  --card-solid: #1a2540;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text: #e6edf7;
  --text-soft: #b6c2d6;
  --text-mute: #8a99b3;
  --primary: #38bdf8;
  --primary-2: #818cf8;
  --accent: #f472b6;
  --accent-2: #fb923c;
  --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #0c4a6e 100%);
  --grad-brand: linear-gradient(120deg, #38bdf8 0%, #818cf8 55%, #f472b6 100%);
  --grad-line: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.7), rgba(244, 114, 182, 0));
  --shadow-sm: 0 2px 10px rgba(2, 6, 23, 0.35);
  --shadow-md: 0 12px 32px rgba(2, 6, 23, 0.45);
  --shadow-lg: 0 24px 64px rgba(2, 6, 23, 0.55);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 8px 30px rgba(56, 189, 248, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --space: clamp(16px, 3vw, 32px);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fc;
    --bg-soft: #eef3fb;
    --bg-elev: #ffffff;
    --card: rgba(255, 255, 255, 0.78);
    --card-solid: #ffffff;
    --border: rgba(15, 23, 42, 0.1);
    --border-strong: rgba(15, 23, 42, 0.18);
    --text: #0f172a;
    --text-soft: #334155;
    --text-mute: #64748b;
    --primary: #0284c7;
    --primary-2: #4f46e5;
    --accent: #db2777;
    --accent-2: #ea580c;
    --grad-hero: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 45%, #fce7f3 100%);
    --grad-brand: linear-gradient(120deg, #0284c7 0%, #4f46e5 55%, #db2777 100%);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
    --glow: 0 0 0 1px rgba(2, 132, 199, 0.2), 0 8px 30px rgba(2, 132, 199, 0.1);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(244, 114, 182, 0.1), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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 {
  color: var(--accent);
}

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

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 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: var(--grad-brand);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

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

h4 {
  font-size: 1.05rem;
}

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

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

li {
  margin-bottom: 0.5em;
}

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

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

blockquote {
  margin: 1.2em 0;
  padding: 18px 22px;
  border-left: 4px solid transparent;
  border-image: var(--grad-brand) 1;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

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

time {
  font-size: 0.85rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-mute);
  text-align: center;
}

::selection {
  background: rgba(56, 189, 248, 0.35);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

body > a[href="#main-content"] {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--grad-brand);
  color: #06121f;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: top 0.3s var(--ease);
}

body > a[href="#main-content"]:focus {
  top: 14px;
  color: #06121f;
}

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.25);
}

@media (prefers-color-scheme: light) {
  header[role="banner"] {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  }
}

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

header[role="banner"] > div > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease);
}

header[role="banner"] > div > a:hover {
  transform: translateY(-1px);
  color: var(--text);
}

header[role="banner"] svg {
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
  transition: transform 0.5s var(--ease);
}

header[role="banner"] > div > a:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

header[role="banner"] strong {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.2rem;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

header nav li {
  margin: 0;
}

header nav a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

header nav a:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}

header nav a:hover::after {
  width: 60%;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space) 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 44px);
}

main > section {
  position: relative;
  padding: clamp(22px, 3.2vw, 38px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  animation: rise 0.7s var(--ease) both;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.35), transparent 40%, rgba(244, 114, 182, 0.25));
  -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 {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

main > section > h2 {
  margin-bottom: 1em;
}

main > section > h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-line);
}

#hero {
  margin-top: clamp(20px, 3vw, 36px);
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--grad-hero);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 65%);
  filter: blur(20px);
  z-index: -1;
  animation: float 12s var(--ease) infinite alternate;
}

#hero h1 {
  background: linear-gradient(120deg, var(--text) 20%, var(--primary) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  max-width: 20ch;
}

#hero > p:first-of-type {
  max-width: 72ch;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  color: var(--text-soft);
}

#hero > p:nth-of-type(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

#hero > p:nth-of-type(2) a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #06121f;
  background: var(--grad-brand);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

#hero > p:nth-of-type(2) a:nth-child(2) {
  color: var(--text);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

#hero > p:nth-of-type(2) a:nth-child(3) {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

#hero > p:nth-of-type(2) a:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.36);
}

#hero figure {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

#hero figure svg {
  width: 100%;
  display: block;
}

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

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

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

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--text-mute);
  opacity: 0.6;
}

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

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

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

#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

#news li {
  margin: 0;
  padding: 14px 18px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#news li:hover {
  transform: translateX(6px);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
}

#news time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

#articles {
  display: block;
}

#articles > article {
  position: relative;
  margin: 0 0 18px;
  padding: 20px 22px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: var(--glow);
}

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

#articles > article h3 {
  margin-bottom: 0.4em;
  font-size: 1.08rem;
  transition: color 0.3s var(--ease);
}

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

#articles > article p {
  margin-bottom: 0.6em;
  font-size: 0.94rem;
}

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

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  transition: all 0.3s var(--ease);
}

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

#articles > article a:hover {
  color: #06121f;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.3);
}

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

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

#howto ol li {
  position: relative;
  padding: 14px 18px 14px 58px;
  margin-bottom: 12px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #06121f;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  background: rgba(56, 189, 248, 0.09);
  border-color: rgba(56, 189, 248, 0.3);
}

#faq h3 {
  position: relative;
  margin-top: 1.4em;
  padding: 14px 18px 14px 46px;
  font-size: 1rem;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #06121f;
  background: var(--grad-brand);
  border-radius: 50%;
}

#faq h3:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
}

#faq h3 + p {
  margin: -1px 0 1.2em;
  padding: 14px 18px 16px 46px;
  font-size: 0.94rem;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-soft);
}

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

#contact li {
  margin: 0;
  padding: 14px 18px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#contact li:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.09);
}

#contact a {
  color: var(--primary);
  font-weight: 600;
}

#sitemap ul,
#links ul,
#eeat ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li,
#eeat li {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

#sitemap li:hover,
#links li:hover,
#eeat li:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

#sitemap a,
#links a {
  color: var(--text-soft);
}

#sitemap a:hover,
#links a:hover {
  color: var(--primary);
}

#legal h3 {
  margin-top: 1.2em;
  color: var(--primary);
}

#links li {
  border-radius: var(--radius-sm);
}

main > section[id^="article-"] {
  padding: clamp(22px, 3vw, 34px);
}

main > section[id^="article-"] h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

main > section[id^="article-"] p {
  font-size: 0.96rem;
}

footer[role="contentinfo"] {
  margin-top: clamp(30px, 5vw, 60px);
  padding: clamp(28px, 4vw, 48px) var(--space) 32px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.55)),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: light) {
  footer[role="contentinfo"] {
    background:
      linear-gradient(180deg, rgba(219, 234, 254, 0.4), rgba(238, 243, 251, 0.9)),
      var(--bg-soft);
  }
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90%);
  height: 2px;
  background: var(--grad-line);
}

footer[role="contentinfo"] > div {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

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

footer[role="contentinfo"] p strong {
  font-size: 1.05rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

footer[role="contentinfo"] a {
  color: var(--text-soft);
  border-bottom: 1px dashed transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

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

footer nav li {
  margin: 0;
}

footer nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.88rem;
}

footer nav a:hover {
  transform: translateY(-1px);
}

footer > div > p:last-child {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mute);
}

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

@keyframes float {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-40px, 30px) scale(1.15);
  }
}

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

main > section {
  animation-name: fadeUp;
  animation-duration: 0.7s;
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.04s; }
main > section:nth-of-type(3) { animation-delay: 0.06s; }
main > section:nth-of-type(4) { animation-delay: 0.08s; }
main > section:nth-of-type(5) { animation-delay: 0.1s; }
main > section:nth-of-type(6) { animation-delay: 0.12s; }
main > section:nth-of-type(7) { animation-delay: 0.14s; }
main > section:nth-of-type(8) { animation-delay: 0.16s; }
main > section:nth-of-type(9) { animation-delay: 0.18s; }
main > section:nth-of-type(10) { animation-delay: 0.2s; }

@supports (animation-timeline: view()) {
  main > section {
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
    animation-delay: 0s;
    animation-duration: 1ms;
  }
}

@media (max-width: 960px) {
  header[role="banner"] > div {
    gap: 12px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav a {
    padding: 7px 10px;
    font-size: 0.86rem;
  }
}

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

  body {
    font-size: 15px;
  }

  header[role="banner"] > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px var(--space);
  }

  header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav ul {
    flex-wrap: nowrap;
    width: max-content;
    padding-right: 8px;
  }

  header nav a {
    white-space: nowrap;
  }

  main {
    padding: 0 14px 30px;
    gap: 20px;
  }

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #hero {
    padding: 24px 18px;
  }

  #hero h1 {
    max-width: none;
  }

  #hero > p:nth-of-type(2) {
    gap: 10px;
  }

  #hero > p:nth-of-type(2) a {
    padding: 9px 18px;
    font-size: 0.9rem;
  }

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

  #faq h3 {
    padding-left: 42px;
  }

  #faq h3 + p {
    padding-left: 18px;
  }

  #howto ol li {
    padding-left: 52px;
  }

  blockquote {
    padding: 14px 16px;
  }

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

@media (max-width: 420px) {
  header[role="banner"] strong {
    font-size: 1.05rem;
  }

  #hero > p:nth-of-type(2) a {
    width: 100%;
    justify-content: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  main > section:hover,
  #hero figure:hover,
  #news li:hover,
  #howto ol li:hover,
  #articles > article:hover,
  #contact li:hover {
    transform: none;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero figure,
  body > a[href="#main-content"] {
    display: none !important;
  }

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

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

  a {
    color: #000;
    text-decoration: underline;
  }
}