:root {
  --brand-primary: #c8501e;
  --brand-primary-dark: #a63d12;
  --brand-secondary: #e88a3c;
  --brand-accent: #7a3b1e;
  --brand-light: #f0b56b;
  --brand-warm: #d96a2c;
  --bg-base: #fdf6ef;
  --bg-elevated: #ffffff;
  --bg-subtle: #faf0e6;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text-primary: #2b1a10;
  --text-secondary: #5c4638;
  --text-muted: #8a7466;
  --text-inverse: #fff8f2;
  --border-soft: rgba(200, 80, 30, 0.14);
  --border-medium: rgba(200, 80, 30, 0.26);
  --shadow-sm: 0 2px 8px rgba(122, 59, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(122, 59, 30, 0.12);
  --shadow-lg: 0 16px 48px rgba(122, 59, 30, 0.16);
  --shadow-glow: 0 8px 32px rgba(200, 80, 30, 0.24);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --gradient-hero: linear-gradient(135deg, #c8501e 0%, #e88a3c 48%, #f0b56b 100%);
  --gradient-brand: linear-gradient(120deg, #c8501e 0%, #d96a2c 100%);
  --gradient-soft: linear-gradient(160deg, #fdf6ef 0%, #faf0e6 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.4) 100%);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-mid: 320ms;
  --dur-slow: 640ms;
  --content-max: 1180px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-primary: #ff7a3d;
    --brand-primary-dark: #e8622a;
    --brand-secondary: #f0a35c;
    --brand-accent: #c98a5e;
    --brand-light: #ffc98f;
    --brand-warm: #ff8f4d;
    --bg-base: #16100c;
    --bg-elevated: #201812;
    --bg-subtle: #1b130e;
    --bg-glass: rgba(36, 26, 20, 0.62);
    --bg-glass-strong: rgba(44, 32, 24, 0.82);
    --text-primary: #f7ece2;
    --text-secondary: #d3bfae;
    --text-muted: #a18a78;
    --text-inverse: #1a120c;
    --border-soft: rgba(255, 122, 61, 0.16);
    --border-medium: rgba(255, 122, 61, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 8px 32px rgba(255, 122, 61, 0.28);
    --gradient-hero: linear-gradient(135deg, #7a2f12 0%, #b34f1e 48%, #d97a34 100%);
    --gradient-brand: linear-gradient(120deg, #ff7a3d 0%, #e8622a 100%);
    --gradient-soft: linear-gradient(160deg, #1b130e 0%, #16100c 100%);
    --gradient-glass: linear-gradient(135deg, rgba(56, 40, 30, 0.7) 0%, rgba(36, 26, 20, 0.45) 100%);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image: radial-gradient(circle at 12% 0%, rgba(232, 138, 60, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(200, 80, 30, 0.1) 0%, transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(240, 181, 107, 0.1) 0%, transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

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

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

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

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

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  transform-origin: left center;
  animation: underlineGrow 0.9s var(--ease-out) both;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--brand-accent);
}

h4 {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-primary);
}

p {
  margin: 0 0 1.1em;
  color: var(--text-secondary);
}

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

li {
  margin-bottom: 0.5em;
}

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

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

blockquote {
  margin: 0 0 1.4em;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-style: normal;
}

blockquote p {
  margin: 0;
  font-size: 0.98rem;
}

blockquote p::before {
  content: "“";
  color: var(--brand-primary);
  font-family: var(--font-serif);
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -0.25em;
  margin-right: 0.1em;
}

figure {
  margin: 1.6em 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

figcaption {
  padding: 0.85em 1.2em;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-subtle);
}

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

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--gradient-brand);
  color: var(--text-inverse);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.45em 1em;
  box-shadow: var(--shadow-sm);
}

.topbar p {
  margin: 0;
  color: inherit;
  opacity: 0.95;
}

nav[role="navigation"] {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.logo {
  flex: 0 0 auto;
}

.logo a {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-primary);
  padding: 0.15em 0;
  transition: transform var(--dur-mid) var(--ease-spring), filter var(--dur-mid) var(--ease-out);
}

.logo a:hover {
  transform: scale(1.05) rotate(-1deg);
  filter: drop-shadow(0 4px 12px rgba(200, 80, 30, 0.35));
}

nav[role="navigation"] > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  justify-content: flex-end;
}

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

nav[role="navigation"] > ul a {
  display: inline-block;
  padding: 0.4em 0.72em;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

nav[role="navigation"] > ul a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  transform: translateX(-50%);
  transition: width var(--dur-mid) var(--ease-out);
}

nav[role="navigation"] > ul a:hover,
nav[role="navigation"] > ul a:focus-visible {
  color: var(--brand-primary);
  background: rgba(200, 80, 30, 0.08);
  transform: translateY(-1px);
}

nav[role="navigation"] > ul a:hover::after,
nav[role="navigation"] > ul a:focus-visible::after {
  width: 60%;
}

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

nav[aria-label="面包屑导航"] {
  padding: 1rem 0 0.4rem;
}

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

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

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

nav[aria-label="面包屑导航"] a {
  color: var(--text-muted);
  padding: 0.15em 0.3em;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}

nav[aria-label="面包屑导航"] a:hover {
  color: var(--brand-primary);
  background: rgba(200, 80, 30, 0.08);
}

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

section {
  margin: 1.6rem 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: fadeUp var(--dur-slow) var(--ease-out) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
  transition: box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 40%, rgba(240, 181, 107, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

#hero {
  margin-top: 0.8rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--gradient-hero);
  border: none;
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 10% 88%, rgba(255, 255, 255, 0.16) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
  filter: blur(8px);
  z-index: -1;
  animation: floatBlob 12s ease-in-out infinite alternate;
  pointer-events: none;
}

#hero h1 {
  color: var(--text-inverse);
  text-shadow: 0 2px 16px rgba(90, 40, 12, 0.28);
  margin-bottom: 0.5em;
}

#hero h1::after {
  display: none;
}

#hero p {
  color: rgba(255, 248, 242, 0.94);
  max-width: 62ch;
  text-shadow: 0 1px 8px rgba(90, 40, 12, 0.18);
}

#hero figure {
  margin-top: 1.6rem;
  box-shadow: 0 20px 60px rgba(60, 24, 8, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateX(1.5deg);
  transition: transform var(--dur-slow) var(--ease-out);
}

#hero figure:hover {
  transform: perspective(1200px) rotateX(0deg) translateY(-4px);
}

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

#hero figcaption {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 248, 242, 0.9);
  border-top-color: rgba(255, 255, 255, 0.2);
}

#brand h3,
#products h3,
#services h3,
#scenarios h3,
#solutions h3,
#cases h3,
#news h3,
#articles h3,
#faq h3,
#howto h3,
#notice h3,
#contact h3,
#sitemap h3,
#links h3 {
  margin-top: 1.5em;
  padding-left: 0.7em;
  position: relative;
}

#brand h3::before,
#products h3::before,
#services h3::before,
#scenarios h3::before,
#solutions h3::before,
#cases h3::before,
#news h3::before,
#articles h3::before,
#faq h3::before,
#howto h3::before,
#notice h3::before,
#contact h3::before,
#sitemap h3::before,
#links h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
}

#products ul,
#services ul,
#howto ul,
#contact ul,
#sitemap ul,
#links ul,
#notice ul {
  list-style: none;
  padding-left: 0;
}

#products ul li,
#services ul li,
#howto ul li,
#contact ul li,
#sitemap ul li,
#links ul li,
#notice ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.55em;
}

#products ul li::before,
#services ul li::before,
#howto ul li::before,
#contact ul li::before,
#sitemap ul li::before,
#links ul li::before,
#notice ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 3px rgba(200, 80, 30, 0.14);
  transition: transform var(--dur-fast) var(--ease-spring);
}

#products ul li:hover::before,
#services ul li:hover::before,
#howto ul li:hover::before,
#contact ul li:hover::before,
#sitemap ul li:hover::before,
#links ul li:hover::before,
#notice ul li:hover::before {
  transform: scale(1.35);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.2rem 1.2rem;
}

#sitemap ul a,
#links ul a {
  display: inline-block;
  padding: 0.35em 0.6em;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}

#sitemap ul a:hover,
#links ul a:hover {
  color: var(--brand-primary);
  background: rgba(200, 80, 30, 0.08);
  transform: translateX(3px);
}

#news article,
#articles article {
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  padding-left: 0;
  font-size: 1.15rem;
  color: var(--text-primary);
}

#news article h3::before,
#articles article h3::before {
  display: none;
}

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

#news article p:last-child a,
#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  background: rgba(200, 80, 30, 0.1);
  transition: background-color var(--dur-fast), color var(--dur-fast), gap var(--dur-fast) var(--ease-out);
}

#news article p:last-child a::after,
#articles article p:last-child a::after {
  content: "→";
  transition: transform var(--dur-fast) var(--ease-out);
}

#news article p:last-child a:hover,
#articles article p:last-child a:hover {
  background: var(--gradient-brand);
  color: var(--text-inverse);
}

#news article p:last-child a:hover::after,
#articles article p:last-child a:hover::after {
  transform: translateX(3px);
}

#faq details {
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

#faq details[open] {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

#faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  transition: color var(--dur-fast), background-color var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-primary);
  transition: transform var(--dur-mid) var(--ease-spring);
}

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

#faq summary:hover {
  color: var(--brand-primary);
  background: rgba(200, 80, 30, 0.05);
}

#faq details p {
  padding: 0 1.2rem 1rem;
  margin: 0;
  animation: fadeIn var(--dur-mid) var(--ease-out) both;
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.4rem;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(200, 80, 30, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.3rem 1.4rem;
}

footer[role="contentinfo"] {
  margin-top: 2rem;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 2rem;
  background: var(--gradient-soft);
  border-top: 1px solid var(--border-soft);
  position: relative;
}

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

footer[role="contentinfo"] > section {
  max-width: var(--content-max);
  margin: 0 auto 1.2rem;
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  animation: none;
}

footer[role="contentinfo"] > section::before {
  display: none;
}

footer[role="contentinfo"] > section:hover {
  box-shadow: none;
}

footer[role="contentinfo"] h2 {
  font-size: 1.05rem;
  color: var(--brand-accent);
  padding-bottom: 0.4em;
  margin-bottom: 0.5em;
}

footer[role="contentinfo"] h2::after {
  width: 32px;
  height: 3px;
}

footer[role="contentinfo"] p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
  line-height: 1.7;
}

footer[role="contentinfo"] > p {
  max-width: var(--content-max);
  margin: 0 auto 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-soft);
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}

footer[role="contentinfo"] > p:last-child {
  border-top: none;
  padding-top: 0;
}

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

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

@keyframes underlineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes floatBlob {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 24px) scale(1.08);
  }
}

@supports not (animation-timeline: view()) {
  section {
    animation: fadeUp var(--dur-slow) var(--ease-out) both;
  }
}

@media (max-width: 900px) {
  nav[role="navigation"] {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  nav[role="navigation"] > ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  nav[role="navigation"] > ul::-webkit-scrollbar {
    height: 4px;
  }

  nav[role="navigation"] > ul::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-pill);
  }

  nav[role="navigation"] > ul a {
    white-space: nowrap;
  }

  h2::after {
    width: 44px;
    height: 3px;
  }
}

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

  .topbar {
    font-size: 0.72rem;
    padding: 0.4em 0.8em;
  }

  main {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  section {
    margin: 1rem 0;
    padding: 1.1rem 1rem;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 1.4rem 1.1rem;
  }

  #hero figure {
    transform: none;
  }

  #hero figure:hover {
    transform: translateY(-2px);
  }

  nav[aria-label="面包屑导航"] ol {
    font-size: 0.78rem;
  }

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

  #howto ol li {
    padding: 0.8rem 0.9rem 0.8rem 3rem;
  }

  #howto ol li::before {
    left: 0.7rem;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

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

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

  blockquote {
    padding: 0.9rem 1rem;
  }

  footer[role="contentinfo"] {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

@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;
    scroll-behavior: auto !important;
  }

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

@media print {
  body {
    background: #fff;
    color: #000;
  }

  header[role="banner"],
  footer[role="contentinfo"],
  #sitemap,
  #links {
    display: none;
  }

  section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    break-inside: avoid;
  }

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