:root {
  --bg: #f4f6fb;
  --bg-alt: #eef1f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #101828;
  --text-soft: #475467;
  --text-muted: #667085;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --primary: #6d28d9;
  --primary-2: #db2777;
  --primary-3: #0ea5e9;
  --accent: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14), 0 6px 18px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --blur: 18px;
  --nav-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad: linear-gradient(135deg, #6d28d9 0%, #db2777 48%, #f59e0b 100%);
  --grad-soft: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(219, 39, 119, 0.12), rgba(14, 165, 233, 0.12));
}

html[data-theme="dark"] {
  --bg: #080c17;
  --bg-alt: #0c1220;
  --surface: rgba(20, 27, 45, 0.62);
  --surface-solid: #121a2b;
  --surface-strong: rgba(24, 32, 52, 0.9);
  --text: #f4f7ff;
  --text-soft: #c3cbdc;
  --text-muted: #98a3ba;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --primary: #a78bfa;
  --primary-2: #f472b6;
  --primary-3: #38bdf8;
  --accent: #fbbf24;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #080c17;
    --bg-alt: #0c1220;
    --surface: rgba(20, 27, 45, 0.62);
    --surface-solid: #121a2b;
    --surface-strong: rgba(24, 32, 52, 0.9);
    --text: #f4f7ff;
    --text-soft: #c3cbdc;
    --text-muted: #98a3ba;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --primary: #a78bfa;
    --primary-2: #f472b6;
    --primary-3: #38bdf8;
    --accent: #fbbf24;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
    --grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
    --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
  }
}

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

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

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(109, 40, 217, 0.16), transparent 60%),
    radial-gradient(900px 520px at 96% 4%, rgba(219, 39, 119, 0.14), transparent 62%),
    radial-gradient(1000px 700px at 50% 108%, rgba(14, 165, 233, 0.12), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

img,
svg,
video {
  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,
a:focus-visible {
  color: var(--primary-2);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

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

h1 {
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(109, 40, 217, 0.45);
}

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

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

blockquote cite {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: normal;
}

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

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

header nav > a[aria-label="撸撸射视频首页"] {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
}

header nav > a[aria-label="撸撸射视频首页"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

header nav > a[aria-label="撸撸射视频首页"]:hover::after {
  transform: scaleX(1);
}

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

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

header nav ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad-soft);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: -1;
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
}

header nav ul li a:hover::before,
header nav ul li a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

header nav button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 16px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

header nav button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--grad-soft);
  border-color: transparent;
}

header nav button:active {
  transform: translateY(0) scale(0.97);
}

header nav button[aria-label="切换菜单"] {
  display: none;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 80px;
  display: block;
}

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 22px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
}

main > nav[aria-label="面包屑导航"] ol li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

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

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

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

main > section {
  position: relative;
  margin-bottom: 26px;
  padding: 30px clamp(18px, 3.2vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  animation: rise-in 0.75s var(--ease) both;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.35), rgba(219, 39, 119, 0.25), rgba(14, 165, 233, 0.3));
  -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;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

main > section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

main > section:nth-of-type(1) {
  background:
    linear-gradient(135deg, rgba(109, 40, 217, 0.14), rgba(219, 39, 119, 0.12) 50%, rgba(14, 165, 233, 0.14)),
    var(--surface);
  border-color: transparent;
}

main > section:nth-of-type(1) h1 {
  margin-bottom: 0.5em;
}

main > section:nth-of-type(1) p {
  color: var(--text-soft);
  font-size: 1.02rem;
}

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

main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.12s; }
main > section:nth-of-type(4) { animation-delay: 0.18s; }
main > section:nth-of-type(5) { animation-delay: 0.24s; }
main > section:nth-of-type(6) { animation-delay: 0.3s; }
main > section:nth-of-type(7) { animation-delay: 0.36s; }
main > section:nth-of-type(8) { animation-delay: 0.42s; }
main > section:nth-of-type(9) { animation-delay: 0.48s; }
main > section:nth-of-type(10) { animation-delay: 0.54s; }
main > section:nth-of-type(11) { animation-delay: 0.6s; }
main > section:nth-of-type(12) { animation-delay: 0.66s; }
main > section:nth-of-type(13) { animation-delay: 0.72s; }
main > section:nth-of-type(14) { animation-delay: 0.78s; }
main > section:nth-of-type(15) { animation-delay: 0.84s; }

figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  background: var(--surface-solid);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

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

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

figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

section[id="products"] h3,
section[id="solutions"] h3,
section[id="cases"] h3,
section[id="contact"] h3 {
  margin-top: 1.4em;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed var(--border-strong);
}

section[id="products"] h3:first-of-type,
section[id="solutions"] h3:first-of-type,
section[id="cases"] h3:first-of-type,
section[id="contact"] h3:first-of-type {
  margin-top: 0.4em;
}

section[id="news"] article,
section[id="articles"] article {
  position: relative;
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

section[id="news"] article::after,
section[id="articles"] article::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

section[id="news"] article:hover,
section[id="articles"] article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

section[id="news"] article:hover::after,
section[id="articles"] article:hover::after {
  transform: scaleX(1);
}

section[id="news"] article h3,
section[id="articles"] article h3 {
  margin-bottom: 0.35em;
  transition: color 0.3s var(--ease);
}

section[id="news"] article:hover h3,
section[id="articles"] article:hover h3 {
  color: var(--primary);
}

section[id="news"] article p:nth-of-type(1),
section[id="articles"] article p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 0.6em;
}

section[id="news"] article a,
section[id="articles"] article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

section[id="news"] article a::after,
section[id="articles"] article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

section[id="news"] article a:hover,
section[id="articles"] article a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

section[id="news"] article a:hover::after,
section[id="articles"] article a:hover::after {
  transform: translateX(4px);
}

details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

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

details[open] {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  background: var(--surface-strong);
}

details[open]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--grad-soft);
  opacity: 0.5;
}

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

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

details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

details summary:hover {
  color: var(--primary);
  background: var(--grad-soft);
}

details p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
  animation: fade-slide 0.45s var(--ease) both;
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

section[id="howto"] ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 62px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

section[id="howto"] ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.35);
}

section[id="howto"] ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

section[id="sitemap-title"] ul,
section[aria-labelledby="sitemap-title"] ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

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

section[aria-labelledby="sitemap-title"] ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

section[aria-labelledby="sitemap-title"] ul li a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

section[aria-labelledby="sitemap-title"] h3 {
  margin-top: 1.6em;
}

footer {
  position: relative;
  margin-top: 20px;
  padding: 44px 20px 34px;
  text-align: center;
  background: var(--surface-strong);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

footer p {
  margin: 0 0 0.5em;
  color: var(--text-muted);
}

footer a {
  color: var(--text-soft);
  font-weight: 600;
  position: relative;
}

footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

footer a:hover::after {
  transform: scaleX(1);
}

footer button {
  margin-top: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

footer button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(219, 39, 119, 0.45);
  filter: brightness(1.06);
}

footer button:active {
  transform: translateY(-1px) scale(0.98);
}

@media (max-width: 900px) {
  header nav {
    padding: 10px 16px;
    gap: 8px;
  }

  header nav ul {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 2px;
    padding-bottom: 6px;
  }

  header nav ul li a {
    padding: 7px 11px;
    font-size: 0.86rem;
  }

  main {
    padding: 20px 16px 64px;
  }

  main > section {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }
}

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

  :root {
    --nav-h: 60px;
  }

  header nav {
    flex-wrap: wrap;
  }

  header nav > a[aria-label="撸撸射视频首页"] {
    font-size: 1.08rem;
  }

  header nav button {
    padding: 8px 13px;
    font-size: 0.8rem;
  }

  header nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  main > section {
    padding: 20px 15px;
    margin-bottom: 18px;
  }

  main > nav[aria-label="面包屑导航"] ol {
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
  }

  blockquote {
    padding: 14px 16px;
  }

  section[id="news"] article,
  section[id="articles"] article {
    padding: 16px 16px;
  }

  details summary {
    padding: 14px 48px 14px 16px;
    font-size: 0.95rem;
  }

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

  section[id="howto"] ol li {
    padding: 12px 14px 12px 56px;
  }

  section[aria-labelledby="sitemap-title"] ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  footer {
    padding: 34px 16px 26px;
  }
}

@media (max-width: 380px) {
  section[aria-labelledby="sitemap-title"] ul {
    grid-template-columns: 1fr;
  }
}

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

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

  header,
  footer button {
    display: none;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    backdrop-filter: none;
  }
}