:root {
  --lm-primary: #f5a623;
  --lm-primary-dark: #e08e0b;
  --lm-primary-light: #ffc857;
  --lm-accent: #ff6b6b;
  --lm-accent-2: #6bcbff;
  --lm-bg: #fffdf8;
  --lm-bg-soft: #fff7e6;
  --lm-surface: #ffffff;
  --lm-surface-glass: rgba(255, 255, 255, 0.72);
  --lm-border: rgba(245, 166, 35, 0.18);
  --lm-text: #2b2b2b;
  --lm-text-soft: #6b6156;
  --lm-text-muted: #8a7f70;
  --lm-shadow-sm: 0 2px 8px rgba(43, 43, 43, 0.06);
  --lm-shadow-md: 0 8px 24px rgba(43, 43, 43, 0.08);
  --lm-shadow-lg: 0 16px 48px rgba(43, 43, 43, 0.12);
  --lm-shadow-glow: 0 8px 32px rgba(245, 166, 35, 0.28);
  --lm-radius-sm: 8px;
  --lm-radius-md: 14px;
  --lm-radius-lg: 22px;
  --lm-radius-xl: 32px;
  --lm-max-width: 1200px;
  --lm-header-height: 68px;
  --lm-transition: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  --lm-gradient-hero: linear-gradient(135deg, #fff3d6 0%, #ffe0b3 35%, #ffd08a 65%, #ffbe6b 100%);
  --lm-gradient-primary: linear-gradient(135deg, #f5a623 0%, #ff8c42 60%, #ff6b6b 100%);
  --lm-gradient-soft: linear-gradient(135deg, #fff7e6 0%, #fffdf8 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --lm-primary: #ffb74d;
    --lm-primary-dark: #f5a623;
    --lm-primary-light: #ffd180;
    --lm-accent: #ff8a80;
    --lm-accent-2: #82d4ff;
    --lm-bg: #14110d;
    --lm-bg-soft: #1c1812;
    --lm-surface: #221d16;
    --lm-surface-glass: rgba(34, 29, 22, 0.72);
    --lm-border: rgba(255, 183, 77, 0.18);
    --lm-text: #f3ede3;
    --lm-text-soft: #c9bda9;
    --lm-text-muted: #9a8f7d;
    --lm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --lm-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --lm-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --lm-shadow-glow: 0 8px 32px rgba(255, 183, 77, 0.22);
    --lm-gradient-hero: linear-gradient(135deg, #2a2113 0%, #3a2c14 35%, #4a3516 65%, #5a3f18 100%);
    --lm-gradient-primary: linear-gradient(135deg, #ffb74d 0%, #ff8c42 60%, #ff6b6b 100%);
    --lm-gradient-soft: linear-gradient(135deg, #1c1812 0%, #14110d 100%);
  }
}

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

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

body {
  margin: 0;
  padding: 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(--lm-text);
  background: var(--lm-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(245, 166, 35, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 107, 107, 0.06), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(107, 203, 255, 0.05), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

figure {
  margin: 28px 0;
  padding: 18px;
  background: var(--lm-surface-glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-lg);
  box-shadow: var(--lm-shadow-md);
  transition: transform var(--lm-transition), box-shadow var(--lm-transition);
}

figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--lm-shadow-lg);
}

figure svg {
  border-radius: var(--lm-radius-md);
  width: 100%;
}

figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--lm-text-muted);
  letter-spacing: 0.02em;
}

a {
  color: var(--lm-primary-dark);
  text-decoration: none;
  transition: color var(--lm-transition), opacity var(--lm-transition);
}

a:hover,
a:focus-visible {
  color: var(--lm-accent);
}

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

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
}

h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
}

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

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

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

li {
  margin-bottom: 0.5em;
}

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

blockquote {
  margin: 1.4em 0;
  padding: 20px 24px;
  background: var(--lm-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 4px solid var(--lm-primary);
  border-radius: var(--lm-radius-md);
  box-shadow: var(--lm-shadow-sm);
}

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

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

address {
  font-style: normal;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lm-surface-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--lm-border);
  box-shadow: var(--lm-shadow-sm);
}

header > div {
  max-width: var(--lm-max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--lm-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

header > div > a {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--lm-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  padding: 8px 0;
  position: relative;
}

header > div > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--lm-gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--lm-transition);
}

header > div > a:hover::after {
  transform: scaleX(1);
}

nav[aria-label="主导航"] {
  flex: 1;
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lm-text-soft);
  border-radius: 999px;
  transition: background var(--lm-transition), color var(--lm-transition),
    transform var(--lm-transition);
}

nav[aria-label="主导航"] a:hover,
nav[aria-label="主导航"] a:focus-visible {
  background: rgba(245, 166, 35, 0.14);
  color: var(--lm-primary-dark);
  transform: translateY(-1px);
}

/* ============ Main layout ============ */
main {
  max-width: var(--lm-max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ============ Breadcrumb ============ */
nav[aria-label="面包屑导航"] {
  padding: 20px 0 8px;
}

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

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

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

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

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

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

/* ============ Sections ============ */
section {
  margin: 32px 0;
  padding: 32px;
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-lg);
  box-shadow: var(--lm-shadow-sm);
  transition: box-shadow var(--lm-transition), transform var(--lm-transition);
  position: relative;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--lm-gradient-primary);
  opacity: 0;
  transition: opacity var(--lm-transition);
}

section:hover {
  box-shadow: var(--lm-shadow-md);
}

section:hover::before {
  opacity: 1;
}

section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.2em;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 3px;
  background: var(--lm-gradient-primary);
  box-shadow: var(--lm-shadow-glow);
}

section h3 {
  margin-top: 1.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px dashed var(--lm-border);
}

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

/* ============ Hero ============ */
#hero {
  margin-top: 24px;
  padding: clamp(32px, 5vw, 64px);
  background: var(--lm-gradient-hero);
  border: none;
  border-radius: var(--lm-radius-xl);
  box-shadow: var(--lm-shadow-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
  transform: rotate(18deg);
  pointer-events: none;
  z-index: -1;
  animation: lm-float 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.22), transparent 65%);
  pointer-events: none;
  z-index: -1;
  animation: lm-float 16s ease-in-out infinite reverse;
}

#hero h1 {
  color: #4a2e00;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.4);
  margin-bottom: 0.7em;
}

#hero p {
  color: #5c4320;
  font-size: 1.02rem;
  max-width: 78ch;
}

#hero strong {
  color: #b35c00;
  background: rgba(255, 255, 255, 0.5);
  padding: 0 6px;
  border-radius: 6px;
}

@media (prefers-color-scheme: dark) {
  #hero h1 {
    color: #ffe0a3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }
  #hero p {
    color: #e8d3b0;
  }
  #hero strong {
    color: #ffd180;
    background: rgba(255, 183, 77, 0.16);
  }
  #hero::before {
    background: radial-gradient(circle, rgba(255, 183, 77, 0.18), transparent 65%);
  }
}

@keyframes lm-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(18deg);
  }
  50% {
    transform: translate(-3%, 4%) rotate(22deg);
  }
}

/* ============ News & Articles ============ */
#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

#news li {
  margin: 0;
  padding: 20px 22px;
  background: var(--lm-gradient-soft);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-md);
  transition: transform var(--lm-transition), box-shadow var(--lm-transition),
    border-color var(--lm-transition);
}

#news li:hover {
  transform: translateY(-6px);
  box-shadow: var(--lm-shadow-md);
  border-color: var(--lm-primary);
}

#news li h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  border: none;
  padding: 0;
}

#news li h3 a {
  color: var(--lm-text);
}

#news li h3 a:hover {
  color: var(--lm-primary-dark);
}

#news li p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--lm-text-muted);
  line-height: 1.65;
}

/* Articles */
#articles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#articles > h2 {
  padding-left: 18px;
}

#articles > p {
  margin-bottom: 0.5em;
}

#articles article {
  padding: 24px;
  background: var(--lm-surface-glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-md);
  box-shadow: var(--lm-shadow-sm);
  transition: transform var(--lm-transition), box-shadow var(--lm-transition),
    border-color var(--lm-transition);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.5), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--lm-transition);
  pointer-events: none;
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--lm-shadow-lg);
}

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

#articles article h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.45;
  border: none;
  padding: 0;
}

#articles article h3::before {
  content: "📖 ";
  font-size: 0.9em;
}

#articles article > p:first-of-type {
  font-size: 0.8rem;
  color: var(--lm-text-muted);
  margin-bottom: 12px;
  display: inline-block;
  padding: 2px 10px;
  background: rgba(245, 166, 35, 0.12);
  border-radius: 999px;
}

#articles article p {
  font-size: 0.92rem;
  color: var(--lm-text-soft);
  line-height: 1.7;
}

#articles article a {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--lm-gradient-primary);
  border-radius: 999px;
  box-shadow: var(--lm-shadow-glow);
  transition: transform var(--lm-transition), box-shadow var(--lm-transition),
    filter var(--lm-transition);
}

#articles article a:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.42);
  filter: brightness(1.05);
  color: #fff;
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 14px;
  padding: 0;
  background: var(--lm-surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-md);
  overflow: hidden;
  transition: box-shadow var(--lm-transition), border-color var(--lm-transition),
    background var(--lm-transition);
}

#faq details:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: var(--lm-shadow-sm);
}

#faq details[open] {
  border-color: var(--lm-primary);
  box-shadow: var(--lm-shadow-md);
  background: var(--lm-surface);
}

#faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--lm-text);
  position: relative;
  transition: color var(--lm-transition), background var(--lm-transition);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--lm-primary-dark);
  background: rgba(245, 166, 35, 0.14);
  border-radius: 50%;
  transition: transform var(--lm-transition), background var(--lm-transition),
    color var(--lm-transition);
}

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

#faq summary:hover {
  color: var(--lm-primary-dark);
  background: rgba(245, 166, 35, 0.06);
}

#faq details > p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: var(--lm-text-soft);
  animation: lm-fade-in 0.4s ease;
}

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

/* ============ HowTo ============ */
#howto ol {
  counter-reset: lm-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

#howto ol > li {
  counter-increment: lm-step;
  position: relative;
  padding: 18px 22px 18px 64px;
  margin: 0;
  background: var(--lm-gradient-soft);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-md);
  color: var(--lm-text-soft);
  transition: transform var(--lm-transition), box-shadow var(--lm-transition),
    border-color var(--lm-transition);
}

#howto ol > li::before {
  content: counter(lm-step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--lm-gradient-primary);
  border-radius: 50%;
  box-shadow: var(--lm-shadow-glow);
}

#howto ol > li:hover {
  transform: translateX(4px);
  box-shadow: var(--lm-shadow-sm);
  border-color: var(--lm-primary);
}

/* ============ Knowledge / Contact / Legal ============ */
#knowledge h3,
#contact h3,
#legal h3 {
  color: var(--lm-primary-dark);
}

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

#contact address li {
  margin: 0;
  padding: 14px 18px;
  background: var(--lm-gradient-soft);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-sm);
  font-size: 0.92rem;
  color: var(--lm-text-soft);
  transition: transform var(--lm-transition), border-color var(--lm-transition);
}

#contact address li:hover {
  transform: translateY(-3px);
  border-color: var(--lm-primary);
}

/* ============ Sitemap ============ */
#sitemap ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li {
  margin: 0;
}

#sitemap a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--lm-text-soft);
  background: var(--lm-surface-glass);
  border: 1px solid var(--lm-border);
  border-radius: 999px;
  transition: background var(--lm-transition), color var(--lm-transition),
    transform var(--lm-transition), box-shadow var(--lm-transition);
}

#sitemap a:hover {
  background: var(--lm-gradient-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--lm-shadow-glow);
}

/* ============ Links ============ */
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#links li {
  margin: 0;
}

#links a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lm-primary-dark);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--lm-radius-sm);
  transition: all var(--lm-transition);
}

#links a:hover {
  background: var(--lm-gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--lm-shadow-glow);
}

/* ============ Footer ============ */
footer {
  margin-top: 48px;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 166, 35, 0.06) 100%);
  border-top: 1px solid var(--lm-border);
  text-align: center;
}

footer p {
  max-width: var(--lm-max-width);
  margin: 0 auto 10px;
  font-size: 0.86rem;
  color: var(--lm-text-muted);
  line-height: 1.7;
}

footer p:first-child {
  font-weight: 600;
  color: var(--lm-text-soft);
  font-size: 0.92rem;
}

/* ============ Scroll animations ============ */
@media (prefers-reduced-motion: no-preference) {
  section {
    animation: lm-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }

  section:nth-of-type(1) { animation-delay: 0.05s; }
  section:nth-of-type(2) { animation-delay: 0.1s; }
  section:nth-of-type(3) { animation-delay: 0.15s; }
  section:nth-of-type(4) { animation-delay: 0.2s; }
  section:nth-of-type(5) { animation-delay: 0.25s; }
  section:nth-of-type(6) { animation-delay: 0.3s; }
  section:nth-of-type(7) { animation-delay: 0.35s; }

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

  @supports (animation-timeline: view()) {
    section {
      animation: lm-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }

    @keyframes lm-reveal {
      from {
        opacity: 0;
        transform: translateY(36px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
  }
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  main {
    padding: 0 20px 56px;
  }

  section {
    padding: 26px;
  }

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

@media (max-width: 860px) {
  header > div {
    padding: 12px 18px;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav[aria-label="主导航"] {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

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

  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    gap: 2px;
  }

  nav[aria-label="主导航"] a {
    white-space: nowrap;
    padding: 7px 12px;
  }

  html {
    scroll-padding-top: 120px;
  }

  #articles {
    grid-template-columns: 1fr;
  }
}

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

  main {
    padding: 0 14px 44px;
  }

  section {
    padding: 20px 16px;
    margin: 20px 0;
    border-radius: var(--lm-radius-md);
  }

  #hero {
    padding: 28px 18px;
    border-radius: var(--lm-radius-lg);
    margin-top: 14px;
  }

  #hero p {
    font-size: 0.95rem;
  }

  section > h2 {
    padding-left: 14px;
  }

  section > h2::before {
    width: 5px;
  }

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

  #articles article {
    padding: 20px 18px;
  }

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

  #faq summary::after {
    right: 14px;
    width: 24px;
    height: 24px;
    font-size: 1.15rem;
  }

  #faq details > p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  #howto ol > li {
    padding: 16px 16px 16px 56px;
  }

  #howto ol > li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

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

  figure {
    padding: 12px;
    margin: 20px 0;
  }

  figcaption {
    font-size: 0.8rem;
  }

  footer {
    padding: 36px 16px 28px;
  }

  footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  header > div > a {
    font-size: 1.15rem;
  }

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

  section {
    padding: 16px 13px;
  }
}

/* ============ Print ============ */
@media print {
  header,
  footer,
  nav[aria-label="主导航"],
  nav[aria-label="面包屑导航"] {
    display: none;
  }

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

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

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