:root {
  --brand: #f5b400;
  --brand-dark: #d99e00;
  --brand-light: #ffd45e;
  --accent: #ff7a59;
  --accent-2: #4fb3a9;
  --ink: #2b2b2b;
  --ink-soft: #555;
  --ink-mute: #888;
  --bg: #fdfbf5;
  --bg-soft: #fff7e0;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.65);
  --border: rgba(43, 43, 43, 0.08);
  --shadow-sm: 0 2px 8px rgba(43, 43, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 43, 43, 0.1);
  --shadow-lg: 0 16px 48px rgba(43, 43, 43, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --gradient-brand: linear-gradient(135deg, #f5b400 0%, #ff7a59 55%, #ff9d6e 100%);
  --gradient-hero: linear-gradient(135deg, #fff7e0 0%, #ffe9b8 40%, #ffd0c2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(245, 180, 0, 0.12), rgba(255, 122, 89, 0.1));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --ink-soft: #c8c8c8;
    --ink-mute: #9a9a9a;
    --bg: #14130f;
    --bg-soft: #1d1b15;
    --card: #201e18;
    --card-glass: rgba(32, 30, 24, 0.6);
    --border: rgba(255, 255, 255, 0.09);
    --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);
    --gradient-hero: linear-gradient(135deg, #2a2416 0%, #33251c 45%, #3a231d 100%);
    --gradient-soft: linear-gradient(135deg, rgba(245, 180, 0, 0.14), rgba(255, 122, 89, 0.1));
  }
}

html[data-theme="dark"] {
  --ink: #f2f2f2;
  --ink-soft: #c8c8c8;
  --ink-mute: #9a9a9a;
  --bg: #14130f;
  --bg-soft: #1d1b15;
  --card: #201e18;
  --card-glass: rgba(32, 30, 24, 0.6);
  --border: rgba(255, 255, 255, 0.09);
  --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);
  --gradient-hero: linear-gradient(135deg, #2a2416 0%, #33251c 45%, #3a231d 100%);
  --gradient-soft: linear-gradient(135deg, rgba(245, 180, 0, 0.14), rgba(255, 122, 89, 0.1));
}

html[data-theme="light"] {
  --ink: #2b2b2b;
  --ink-soft: #555;
  --ink-mute: #888;
  --bg: #fdfbf5;
  --bg-soft: #fff7e0;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.65);
  --border: rgba(43, 43, 43, 0.08);
  --shadow-sm: 0 2px 8px rgba(43, 43, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 43, 43, 0.1);
  --shadow-lg: 0 16px 48px rgba(43, 43, 43, 0.14);
  --gradient-hero: linear-gradient(135deg, #fff7e0 0%, #ffe9b8 40%, #ffd0c2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(245, 180, 0, 0.12), rgba(255, 122, 89, 0.1));
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(
      circle at 12% 8%,
      rgba(245, 180, 0, 0.1),
      transparent 42%
    ),
    radial-gradient(circle at 88% 22%, rgba(255, 122, 89, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(79, 179, 169, 0.07), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

::selection {
  background: var(--brand);
  color: #2b2b2b;
}

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

a {
  color: var(--brand-dark);
  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,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  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(--gradient-brand);
}

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

h4 {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

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

time {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  color: var(--ink-soft);
  font-style: italic;
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
  color: inherit;
}

details {
  margin-bottom: 14px;
  padding: 4px 22px;
  border-radius: var(--radius-md);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 180, 0, 0.4);
}

details[open] {
  box-shadow: var(--shadow-md);
}

summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 34px;
  transition: color 0.25s var(--ease);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #2b2b2b;
  font-weight: 800;
  transition: transform 0.3s var(--ease);
}

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

summary:hover {
  color: var(--brand-dark);
}

details p {
  padding-bottom: 8px;
  margin-bottom: 12px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

header > div > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  flex-shrink: 0;
}

header > div > a svg {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245, 180, 0, 0.35);
  transition: transform 0.4s var(--ease);
}

header > div > a:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

header > div > a span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-dark);
}

header nav {
  flex: 1 1 auto;
  min-width: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

header nav ul li a:hover {
  background: var(--gradient-soft);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

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

header form[role="search"] input {
  width: 200px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    width 0.3s var(--ease);
}

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

header form[role="search"] input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 180, 0, 0.18);
  width: 240px;
}

header form[role="search"] button {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #2b2b2b;
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 180, 0, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 180, 0, 0.45);
  filter: brightness(1.05);
}

header form[role="search"] button:active {
  transform: translateY(0);
}

header > div > button {
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

header > div > button:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

header > div > button[aria-label="打开移动端菜单"] {
  display: none;
}

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

main > section {
  margin: 0 0 28px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 180, 0, 0.25);
}

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

@supports (animation-timeline: view()) {
  main > section {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@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[aria-labelledby="hero-title"] {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  border: none;
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 56px);
}

main > section[aria-labelledby="hero-title"]::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 180, 0, 0.45),
    rgba(255, 122, 89, 0.15) 55%,
    transparent 72%
  );
  animation: floatBlob 14s ease-in-out infinite alternate;
  pointer-events: none;
}

main > section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  bottom: -35%;
  left: -12%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 179, 169, 0.35),
    transparent 68%
  );
  animation: floatBlob 18s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

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

main > section[aria-labelledby="hero-title"] h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1.25;
  background: linear-gradient(120deg, #2b2b2b 0%, #7a4a00 60%, #b5451f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] main > section[aria-labelledby="hero-title"] h1,
@media (prefers-color-scheme: dark) {
  main > section[aria-labelledby="hero-title"] h1 {
    background: linear-gradient(120deg, #ffe9b8 0%, #ffd45e 55%, #ff9d6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

main > section[aria-labelledby="hero-title"] > p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--ink-soft);
}

main > section[aria-labelledby="hero-title"] > div {
  position: relative;
  z-index: 1;
  margin: 26px 0;
  display: flex;
  justify-content: center;
}

main > section[aria-labelledby="hero-title"] > div svg {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

main > section[aria-labelledby="hero-title"] > div svg:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 60px rgba(43, 43, 43, 0.22);
}

main > section[aria-labelledby="hero-title"] > p:last-child {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 0.95rem;
}

main > section[aria-labelledby="hero-title"] > p:last-child a {
  display: inline-block;
  padding: 10px 22px;
  font-weight: 700;
  color: #2b2b2b;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 180, 0, 0.5);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

main > section[aria-labelledby="hero-title"] > p:last-child a:hover {
  background: var(--gradient-brand);
  color: #2b2b2b;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(245, 180, 0, 0.45);
}

main > nav[aria-label="页面锚点导航"] {
  margin: 0 0 28px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
}

main > nav[aria-label="页面锚点导航"] h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

main > nav[aria-label="页面锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

main > nav[aria-label="页面锚点导航"] ul li {
  margin: 0;
}

main > nav[aria-label="页面锚点导航"] ul li a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

main > nav[aria-label="页面锚点导航"] ul li a:hover {
  color: #2b2b2b;
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 180, 0, 0.35);
}

main > section ul {
  padding-left: 1.3em;
}

main > section > ul > li,
main > section ol > li {
  padding-left: 4px;
}

section[id="products"] ul li strong,
section[id="applications"] ul li strong,
section[id="history"] ol li strong {
  color: var(--brand-dark);
}

section[id="cases"] h3,
section[id="news"] article h3,
section[id="articles"] article h3 {
  margin-top: 0;
}

section[id="news"] article,
section[id="articles"] article {
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

section[id="news"] article:hover,
section[id="articles"] article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 180, 0, 0.35);
}

section[id="news"] article h3,
section[id="articles"] article h3 {
  font-size: 1.12rem;
  color: var(--ink);
}

section[id="articles"] article p:first-of-type {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.8rem;
  color: var(--brand-dark);
  background: var(--gradient-soft);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

section[id="articles"] article p:last-child {
  margin-bottom: 0;
}

section[id="articles"] article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  color: #2b2b2b;
  background: var(--gradient-brand);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(245, 180, 0, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

section[id="articles"] article p:last-child a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

section[id="articles"] article p:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 180, 0, 0.45);
  color: #2b2b2b;
}

section[id="articles"] article p:last-child a:hover::after {
  transform: translateX(4px);
}

section[id="reviews"] blockquote {
  position: relative;
  padding-left: 54px;
}

section[id="reviews"] blockquote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 2px;
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.6;
  font-style: normal;
}

section[id="faq"] details {
  background: var(--card);
}

section[id="howto"] ol,
section[id="history"] ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

section[id="howto"] ol > li,
section[id="history"] ol > li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 56px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

section[id="howto"] ol > li::before,
section[id="history"] ol > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #2b2b2b;
  background: var(--gradient-brand);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(245, 180, 0, 0.35);
}

section[id="howto"] ol > li:hover,
section[id="history"] ol > li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

section[id="contact"] ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

section[id="contact"] ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  word-break: break-word;
}

section[id="contact"] ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 180, 0, 0.4);
  box-shadow: var(--shadow-md);
}

section[aria-labelledby="sitemap-title"] ul,
section[aria-labelledby="links-title"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

section[aria-labelledby="sitemap-title"] ul li,
section[aria-labelledby="links-title"] ul li {
  margin: 0;
}

section[aria-labelledby="sitemap-title"] ul li a,
section[aria-labelledby="links-title"] ul li a {
  display: inline-block;
  padding: 6px 15px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

section[aria-labelledby="sitemap-title"] ul li a:hover,
section[aria-labelledby="links-title"] ul li a:hover {
  color: #2b2b2b;
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 180, 0, 0.32);
}

footer {
  position: relative;
  margin-top: 20px;
  padding: clamp(32px, 5vw, 56px) 20px 32px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(245, 180, 0, 0.07) 100%
  );
  border-top: 1px solid var(--border);
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 24px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

footer > section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

footer > section h2 {
  font-size: 1.05rem;
  padding-left: 14px;
  margin-bottom: 10px;
}

footer > section h2::before {
  width: 4px;
}

footer > section p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

footer > p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #2b2b2b;
  background: var(--gradient-brand);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(245, 180, 0, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

footer > p a::before {
  content: "↑";
  font-weight: 800;
}

footer > p a:hover {
  color: #2b2b2b;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(245, 180, 0, 0.45);
}

footer > p:last-child {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

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

@media (max-width: 860px) {
  header > div {
    gap: 12px;
  }
  header nav {
    order: 3;
    flex-basis: 100%;
  }
  header nav ul {
    justify-content: center;
  }
  header form[role="search"] {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }
  body {
    font-size: 15px;
    line-height: 1.72;
  }
  header > div {
    padding: 10px 14px;
    gap: 10px;
  }
  header > div > a span {
    font-size: 1rem;
  }
  header > div > a svg {
    width: 34px;
    height: 34px;
  }
  header nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  header nav::-webkit-scrollbar {
    display: none;
  }
  header nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    padding: 0 2px;
  }
  header nav ul li a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 6px 11px;
  }
  header form[role="search"] {
    flex: 1 1 100%;
    margin-left: 0;
    order: 4;
  }
  header form[role="search"] input {
    flex: 1;
    width: 100%;
  }
  header form[role="search"] input:focus {
    width: 100%;
  }
  header > div > button {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  header > div > button[aria-label="打开移动端菜单"] {
    display: inline-block;
  }
  main {
    padding: 0 14px 44px;
  }
  main > section {
    padding: 20px 18px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }
  main > section[aria-labelledby="hero-title"] {
    padding: 26px 18px;
  }
  main > section[aria-labelledby="hero-title"] > p:last-child {
    gap: 8px;
  }
  main > section[aria-labelledby="hero-title"] > p:last-child a {
    padding: 9px 16px;
    font-size: 0.86rem;
    flex: 1 1 auto;
    text-align: center;
  }
  main > nav[aria-label="页面锚点导航"] {
    padding: 18px;
    border-radius: var(--radius-md);
  }
  main > nav[aria-label="页面锚点导航"] ul li a {
    padding: 6px 13px;
    font-size: 0.82rem;
  }
  h2 {
    padding-left: 14px;
  }
  h2::before {
    width: 5px;
  }
  blockquote {
    padding: 14px 16px;
  }
  section[id="reviews"] blockquote {
    padding-left: 42px;
  }
  section[id="reviews"] blockquote::before {
    left: 10px;
    font-size: 2.4rem;
  }
  section[id="news"] article,
  section[id="articles"] article {
    padding: 18px;
  }
  section[id="howto"] ol > li,
  section[id="history"] ol > li {
    padding: 12px 14px 12px 50px;
  }
  section[id="howto"] ol > li::before,
  section[id="history"] ol > li::before {
    left: 11px;
    width: 27px;
    height: 27px;
    font-size: 0.78rem;
  }
  section[id="contact"] ul {
    grid-template-columns: 1fr;
  }
  details {
    padding: 2px 16px;
  }
  summary {
    padding: 14px 0;
    padding-right: 32px;
    font-size: 0.95rem;
  }
  footer {
    padding: 28px 14px 24px;
  }
  footer > section {
    padding: 18px;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 380px) {
  header > div > a span {
    display: none;
  }
  main > section[aria-labelledby="hero-title"] > p:last-child a {
    flex: 1 1 100%;
  }
}

@media print {
  header,
  footer,
  main > nav[aria-label="页面锚点导航"],
  main > section[aria-labelledby="hero-title"] > div,
  main > section[aria-labelledby="hero-title"] > p:last-child {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section,
  details,
  section[id="news"] article,
  section[id="articles"] article {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}