:root {
  --green-900: #1b5e20;
  --green-800: #2e7d32;
  --green-700: #388e3c;
  --green-600: #43a047;
  --green-500: #4caf50;
  --green-400: #66bb6a;
  --green-300: #81c784;
  --green-200: #a5d6a7;
  --green-100: #c8e6c9;
  --green-50: #e8f5e9;
  --accent: #ffb300;
  --accent-soft: #ffe082;
  --ink-900: #16211a;
  --ink-800: #1f2d24;
  --ink-700: #2a3b31;
  --ink-600: #3d5247;
  --ink-500: #5a6f63;
  --ink-400: #7d9086;
  --ink-300: #a7b6ae;
  --ink-200: #cfdad4;
  --ink-100: #e6ede9;
  --ink-50: #f4f8f5;
  --bg: #f6faf7;
  --bg-soft: #eef5f0;
  --surface: #ffffff;
  --surface-2: #fbfdfb;
  --text: #1f2d24;
  --text-soft: #4d6157;
  --text-mute: #7a8d83;
  --line: rgba(46, 125, 50, 0.14);
  --line-strong: rgba(46, 125, 50, 0.28);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(27, 94, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 94, 32, 0.09);
  --shadow-lg: 0 18px 48px rgba(27, 94, 32, 0.14);
  --shadow-glow: 0 0 0 4px rgba(76, 175, 80, 0.16);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.32s;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --maxw: 1180px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1512;
    --bg-soft: #131c17;
    --surface: #16211b;
    --surface-2: #1a2620;
    --text: #e6f0ea;
    --text-soft: #b6c8bd;
    --text-mute: #8ba396;
    --line: rgba(129, 199, 132, 0.16);
    --line-strong: rgba(129, 199, 132, 0.32);
    --glass: rgba(22, 33, 27, 0.58);
    --glass-strong: rgba(22, 33, 27, 0.8);
    --glass-border: rgba(129, 199, 132, 0.18);
    --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 18px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 0 4px rgba(76, 175, 80, 0.24);
    --ink-50: #131c17;
    --ink-100: #1a2620;
    --ink-200: #24332b;
    --ink-300: #3a4c42;
  }
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 12% -8%, rgba(102, 187, 106, 0.18), transparent 60%),
    radial-gradient(900px 520px at 88% 4%, rgba(255, 179, 0, 0.12), transparent 62%),
    radial-gradient(1000px 700px at 50% 100%, rgba(76, 175, 80, 0.1), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

a:hover {
  color: var(--green-500);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: rgba(76, 175, 80, 0.28);
  color: var(--text);
}

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

h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2rem);
  position: relative;
  padding-left: 0.85em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--green-400), var(--green-700));
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

h3 {
  font-size: clamp(1.12rem, 1rem + 0.55vw, 1.35rem);
  color: var(--ink-700);
}

h4 {
  font-size: 1.02rem;
  color: var(--green-700);
  margin-top: 1.4em;
}

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

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

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--green-500);
}

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

small {
  font-size: 0.85em;
  color: var(--text-mute);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2em 0;
}

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

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

header a[aria-label="黄瓜魔改短剧首页"] {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

header a[aria-label="黄瓜魔改短剧首页"] svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(27, 94, 32, 0.32);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}

header a[aria-label="黄瓜魔改短剧首页"]:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 22px rgba(27, 94, 32, 0.42);
}

header a[aria-label="黄瓜魔改短剧首页"] strong {
  font-size: 1.08rem;
  background: linear-gradient(120deg, var(--green-700), var(--green-500) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

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

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

header nav li {
  margin: 0;
}

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

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--green-400), var(--accent));
  transform: translateX(-50%);
  transition: width var(--dur) var(--ease-out);
}

header nav a:hover {
  color: var(--green-700);
  background: rgba(76, 175, 80, 0.1);
  transform: translateY(-1px);
}

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

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  flex: 0 1 300px;
  min-width: 0;
}

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

header form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

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

header form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: var(--shadow-glow);
  background: var(--surface-2);
}

header form[role="search"] button {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.28);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}

header form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.38);
  filter: brightness(1.05);
}

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

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  display: block;
}

main > nav[aria-label="面包屑导航"] {
  margin: 0.25rem 0 1.25rem;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
}

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

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--ink-300);
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--green-700);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-xs);
}

main > nav[aria-label="面包屑导航"] a:hover {
  background: rgba(76, 175, 80, 0.12);
}

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

section {
  position: relative;
  margin: 1.5rem 0;
  padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: rise-in 0.7s var(--ease-out) both;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300) 35%, var(--accent-soft) 70%, transparent);
  opacity: 0.9;
}

section:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

section > h2:first-child {
  margin-top: 0.15em;
}

section > h3 {
  margin-top: 1.6em;
}

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

#hero {
  background:
    linear-gradient(135deg, rgba(27, 94, 32, 0.96), rgba(56, 142, 60, 0.9) 45%, rgba(102, 187, 106, 0.88)),
    radial-gradient(900px 400px at 90% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
  color: #f1f8f2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(27, 94, 32, 0.35);
  padding: clamp(1.5rem, 1.1rem + 2.4vw, 3.25rem);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18) 0, transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.12) 0, transparent 32%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.28), transparent 65%);
  filter: blur(6px);
  z-index: -1;
  animation: float-slow 14s ease-in-out infinite;
}

#hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  margin-bottom: 0.55em;
}

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

#hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 74ch;
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.06rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

#hero figure {
  margin: 1.5rem 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

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

#hero figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

#hero > p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

#hero > p:last-of-type a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-900);
  background: linear-gradient(135deg, #ffffff, #e8f5e9);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

#hero > p:last-of-type a:last-child {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

#hero > p:last-of-type a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

#hero > p:last-of-type a:last-child:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

#intro p,
#products p,
#solutions p,
#cases p,
#knowledge p,
#legal p,
#contact p,
#howto p {
  max-width: 78ch;
}

#products h4 + p,
#solutions h3 + p {
  margin-top: 0.35em;
}

#products > h3,
#solutions > h3,
#cases > h3,
#news > h3,
#knowledge > h3,
#howto > h3,
#legal > h3 {
  padding-top: 0.9em;
  border-top: 1px dashed var(--line);
}

#products > h3:first-of-type,
#solutions > h3:first-of-type,
#cases > h3:first-of-type,
#news > h3:first-of-type,
#knowledge > h3:first-of-type,
#howto > h3:first-of-type,
#legal > h3:first-of-type {
  border-top: 0;
  padding-top: 0.2em;
}

#news p,
#cases p {
  position: relative;
  padding-left: 1.35rem;
}

#news p::before,
#cases p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-700));
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.14);
}

#cases h3 + p,
#news h3 + p {
  color: var(--text-soft);
}

#articles {
  display: block;
}

#articles > h2 {
  margin-bottom: 1.25rem;
}

#articles article {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 1.25rem 1.35rem 1.1rem;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green-400), var(--green-700));
  opacity: 0.55;
  transition: opacity var(--dur) var(--ease), width var(--dur) var(--ease);
}

#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

#articles article:hover::before {
  opacity: 1;
  width: 6px;
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.35em;
  font-size: 1.1rem;
  transition: color var(--dur) var(--ease);
}

#articles article:hover h3 {
  color: var(--green-700);
}

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

#articles article p:first-of-type {
  display: inline-block;
  margin-bottom: 0.7em;
  padding: 0.16rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-pill);
}

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

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-700);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(76, 175, 80, 0.1);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

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

#articles article p:last-child a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
  transform: translateY(-1px);
}

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

#faq details {
  margin: 0 0 0.75rem;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

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

#faq details:hover {
  border-color: var(--line-strong);
}

#faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 3rem 0.95rem 1.15rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  -webkit-user-select: none;
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--green-700);
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid var(--green-100);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border-color: transparent;
}

#faq summary:hover {
  color: var(--green-700);
  background: rgba(76, 175, 80, 0.06);
}

#faq details > p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fade-slide 0.4s var(--ease-out) both;
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 1.1rem 0 1.4rem;
  display: grid;
  gap: 0.7rem;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 3.35rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}

#howto ol li:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

#contact {
  background:
    linear-gradient(135deg, rgba(232, 245, 233, 0.92), rgba(255, 255, 255, 0.86)),
    var(--surface);
  border-color: var(--green-100);
}

#contact p {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 1.6rem;
  font-size: 0.97rem;
}

#contact p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--green-400), var(--green-700));
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.14);
}

#contact h3 {
  margin-top: 1.4em;
  padding-top: 1em;
  border-top: 1px dashed var(--line-strong);
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.55rem;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.93rem;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

#sitemap a::before,
#links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--green-800);
  background: var(--green-50);
  border-color: var(--green-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#sitemap a:hover::before,
#links a:hover::before {
  background: var(--accent);
  transform: scale(1.4);
}

#legal {
  background: var(--surface-2);
}

#legal h3 {
  font-size: 1.05rem;
}

#legal p {
  font-size: 0.93rem;
  color: var(--text-mute);
}

footer {
  position: relative;
  margin-top: 2rem;
  padding: 2rem 1.25rem 2.4rem;
  text-align: center;
  color: var(--text-mute);
  background:
    linear-gradient(180deg, transparent, rgba(27, 94, 32, 0.06)),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-400), var(--accent-soft), transparent);
  opacity: 0.8;
}

footer p {
  margin: 0.35rem auto;
  max-width: var(--maxw);
  font-size: 0.88rem;
  color: var(--text-mute);
}

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

footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

footer a::before {
  content: "↑";
  font-weight: 700;
}

footer a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.32);
}

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

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

@keyframes float-slow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.06);
  }
}

section:nth-of-type(1) { animation-delay: 0.02s; }
section:nth-of-type(2) { animation-delay: 0.06s; }
section:nth-of-type(3) { animation-delay: 0.1s; }
section:nth-of-type(4) { animation-delay: 0.14s; }
section:nth-of-type(5) { animation-delay: 0.18s; }
section:nth-of-type(6) { animation-delay: 0.22s; }
section:nth-of-type(7) { animation-delay: 0.26s; }
section:nth-of-type(8) { animation-delay: 0.3s; }
section:nth-of-type(9) { animation-delay: 0.34s; }
section:nth-of-type(10) { animation-delay: 0.38s; }
section:nth-of-type(11) { animation-delay: 0.42s; }
section:nth-of-type(12) { animation-delay: 0.46s; }
section:nth-of-type(13) { animation-delay: 0.5s; }
section:nth-of-type(14) { animation-delay: 0.54s; }
section:nth-of-type(15) { animation-delay: 0.58s; }
section:nth-of-type(16) { animation-delay: 0.62s; }

@supports (animation-timeline: view()) {
  section {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
  #articles article {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}

@media (max-width: 1024px) {
  header > div {
    gap: 0.75rem;
  }
  header nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  header nav::-webkit-scrollbar {
    display: none;
  }
  header nav ul {
    flex-wrap: nowrap;
    gap: 0.1rem;
  }
  header nav a {
    white-space: nowrap;
    font-size: 0.88rem;
  }
  header form[role="search"] {
    flex: 1 1 220px;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --radius-lg: 20px;
    --radius: 15px;
  }
  body {
    font-size: 15.5px;
    background-attachment: scroll;
  }
  header > div {
    padding: 0.6rem 0.9rem;
  }
  header a[aria-label="黄瓜魔改短剧首页"] strong {
    font-size: 1rem;
  }
  header a[aria-label="黄瓜魔改短剧首页"] svg {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  header form[role="search"] {
    flex: 1 1 100%;
    order: 2;
  }
  header nav {
    order: 3;
  }
  main {
    padding: 1rem 0.9rem 2.25rem;
  }
  section {
    margin: 1.1rem 0;
    padding: 1.15rem 1rem 1.35rem;
  }
  #hero {
    padding: 1.35rem 1.05rem 1.5rem;
  }
  #hero figure {
    margin: 1.1rem 0 1rem;
  }
  #hero figcaption {
    font-size: 0.8rem;
    padding: 0.55rem 0.8rem;
  }
  #hero > p:last-of-type a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.6rem 1rem;
  }
  h2 {
    padding-left: 0.7em;
  }
  h2::before {
    width: 4px;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.45rem;
  }
  #sitemap a,
  #links a {
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
  }
  #articles article {
    padding: 1rem 1rem 0.95rem;
  }
  #faq summary {
    padding: 0.85rem 2.7rem 0.85rem 0.95rem;
    font-size: 0.94rem;
  }
  #faq details > p {
    padding: 0 0.95rem 0.95rem;
  }
  #howto ol li {
    padding: 0.75rem 0.85rem 0.75rem 3rem;
  }
  footer {
    padding: 1.6rem 0.9rem 2rem;
  }
}

@media (max-width: 420px) {
  header a[aria-label="黄瓜魔改短剧首页"] strong {
    font-size: 0.94rem;
  }
  header nav a {
    padding: 0.38rem 0.55rem;
    font-size: 0.84rem;
  }
  #hero h1 {
    font-size: 1.5rem;
  }
  #hero > p:last-of-type {
    gap: 0.5rem;
  }
  #hero > p:last-of-type a {
    flex: 1 1 100%;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
  #contact p {
    padding-left: 1.35rem;
    font-size: 0.92rem;
  }
}

@media (hover: none) {
  #articles article:hover,
  #sitemap a:hover,
  #links a:hover,
  #howto ol li:hover,
  section:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  #hero > p:last-of-type,
  #links,
  #sitemap {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}