:root {
  --brand: #E8447A;
  --brand-dark: #C42E63;
  --brand-light: #FF8FB1;
  --accent: #FFD166;
  --accent-2: #7B61FF;
  --bg: #FFF7FA;
  --bg-alt: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #FFFFFF;
  --border: rgba(232, 68, 122, 0.16);
  --text: #2B1B24;
  --text-soft: #6B5561;
  --text-mute: #9A8792;
  --shadow-sm: 0 2px 10px rgba(180, 60, 100, 0.08);
  --shadow-md: 0 10px 30px rgba(180, 60, 100, 0.12);
  --shadow-lg: 0 24px 60px rgba(150, 40, 85, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #E8447A 0%, #FF8FB1 45%, #FFD166 100%);
  --grad-soft: linear-gradient(135deg, rgba(232, 68, 122, 0.10), rgba(123, 97, 255, 0.10));
  --grad-btn: linear-gradient(135deg, #E8447A, #FF6F9C);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF6F9C;
    --brand-dark: #FF8FB1;
    --brand-light: #FFB3CC;
    --accent: #FFD166;
    --accent-2: #9E8BFF;
    --bg: #150E13;
    --bg-alt: #1C1319;
    --surface: rgba(40, 26, 35, 0.62);
    --surface-solid: #241821;
    --border: rgba(255, 143, 177, 0.18);
    --text: #F7EDF2;
    --text-soft: #CDB9C4;
    --text-mute: #9A8792;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --grad-hero: linear-gradient(135deg, #8E1F49 0%, #C42E63 45%, #6B4FB8 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 111, 156, 0.14), rgba(158, 139, 255, 0.14));
    --grad-btn: linear-gradient(135deg, #FF6F9C, #C42E63);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 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(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(232, 68, 122, 0.10), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(123, 97, 255, 0.10), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 209, 102, 0.10), transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

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

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

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

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  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(--grad-btn);
}

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

h4 {
  font-size: 1.02rem;
  color: var(--brand-dark);
}

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

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

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

li {
  margin-bottom: 0.45em;
}

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

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

header nav[aria-label="主导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header nav[aria-label="主导航"] > a[aria-label="悟空短剧首页"] {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform 0.3s var(--ease);
}

header nav[aria-label="主导航"] > a[aria-label="悟空短剧首页"]:hover {
  transform: scale(1.04);
}

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

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

header nav[aria-label="主导航"] ul a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

header nav[aria-label="主导航"] ul a:hover {
  background: var(--grad-soft);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

header nav[role="search"] {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

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

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

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

header nav[role="search"] input[type="search"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 68, 122, 0.14);
  width: 240px;
  outline: none;
}

header nav[role="search"] button {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 68, 122, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

header nav[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 68, 122, 0.42);
}

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

/* breadcrumb */
header nav[aria-label="面包屑"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 10px;
}

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

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

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

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

header nav[aria-label="面包屑"] a:hover {
  color: var(--brand);
}

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

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

main > section {
  margin-bottom: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: riseIn 0.7s var(--ease) both;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 68, 122, 0.28);
}

/* stagger animation */
main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }
main > section:nth-of-type(13) { animation-delay: 0.5s; }

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

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

/* ============ HERO ============ */
main > section[aria-labelledby="hero-title"] {
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--grad-hero);
  background-size: 180% 180%;
  animation: riseIn 0.7s var(--ease) both, gradientShift 14s ease infinite;
  border: none;
  box-shadow: var(--shadow-lg);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main > section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 209, 102, 0.35), transparent 40%);
  pointer-events: none;
}

main > section[aria-labelledby="hero-title"] > * {
  position: relative;
  z-index: 1;
}

main > section[aria-labelledby="hero-title"] h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(120, 20, 55, 0.35);
  max-width: 22ch;
}

main > section[aria-labelledby="hero-title"] p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 68ch;
  font-size: 1.02rem;
  text-shadow: 0 1px 10px rgba(120, 20, 55, 0.25);
}

main > section[aria-labelledby="hero-title"] strong {
  color: #FFE9B0;
  font-weight: 800;
}

main > section[aria-labelledby="hero-title"] figure {
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 40px rgba(100, 15, 45, 0.3);
  transition: transform 0.45s var(--ease);
}

main > section[aria-labelledby="hero-title"] figure:hover {
  transform: translateY(-4px) scale(1.005);
}

main > section[aria-labelledby="hero-title"] figure svg {
  width: 100%;
  height: auto;
  display: block;
}

main > section[aria-labelledby="hero-title"] figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.14);
}

/* ============ ABOUT / LISTS ============ */
#about ul,
#solutions ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#about ul li,
#solutions ul li {
  position: relative;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

#about ul li::before,
#solutions ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 4px rgba(232, 68, 122, 0.14);
}

#about ul li:hover,
#solutions ul li:hover {
  transform: translateX(4px);
  border-color: rgba(232, 68, 122, 0.4);
  box-shadow: var(--shadow-sm);
}

/* ============ PRODUCTS ============ */
#products h4 {
  margin-top: 1.4em;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border-left: 4px solid var(--brand);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

#products h4:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#products h4 + p {
  padding-left: 18px;
}

/* ============ CASES ============ */
#cases blockquote {
  margin: 0 0 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  top: -6px;
  right: 18px;
  font-size: 4rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.16;
  font-family: Georgia, serif;
}

#cases blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--brand-dark);
}

#cases blockquote p {
  margin: 0;
  color: var(--text-soft);
  font-style: italic;
}

/* ============ NEWS / ARTICLES ============ */
#news article {
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-btn);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 68, 122, 0.35);
}

#news article:hover::before {
  transform: scaleY(1);
}

#news article h3 {
  margin-bottom: 0.4em;
  transition: color 0.25s var(--ease);
}

#news article:hover h3 {
  color: var(--brand);
}

#news article p {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}

#news article p:first-of-type {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--brand-dark);
  background: rgba(232, 68, 122, 0.1);
  margin-bottom: 0.7em;
}

#news article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
}

#news article a::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

#news article a:hover::after {
  transform: translateX(5px);
}

/* ============ HOWTO ============ */
main > section[aria-labelledby="howto-title"] ol {
  counter-reset: howto;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

main > section[aria-labelledby="howto-title"] ol li {
  counter-increment: howto;
  position: relative;
  padding: 16px 18px 16px 60px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

main > section[aria-labelledby="howto-title"] ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(232, 68, 122, 0.32);
}

main > section[aria-labelledby="howto-title"] ol li:hover {
  transform: translateX(4px);
  border-color: rgba(232, 68, 122, 0.4);
  box-shadow: var(--shadow-md);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(232, 68, 122, 0.35);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(232, 68, 122, 0.45);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#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: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand);
  background: rgba(232, 68, 122, 0.1);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

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

#faq summary:hover {
  color: var(--brand);
  background: var(--grad-soft);
}

#faq details p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--text-soft);
  animation: fadeSlide 0.35s var(--ease);
}

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

/* ============ CONTACT ============ */
#contact p {
  padding: 10px 16px;
  margin: 0 0 8px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(232, 68, 122, 0.4);
}

/* ============ SITEMAP ============ */
main > section[aria-labelledby="sitemap-title"] ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

main > section[aria-labelledby="sitemap-title"] ul a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease),
    background 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

main > section[aria-labelledby="sitemap-title"] ul a:hover {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 68, 122, 0.32);
}

/* ============ FOOTER ============ */
footer {
  background: var(--surface);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--border);
  padding: 40px 24px 56px;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

footer h2 {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  margin-bottom: 0.2em;
}

footer h3 {
  font-size: 1rem;
  color: var(--brand-dark);
  margin-bottom: 0.3em;
}

footer p {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

footer p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

::selection {
  background: rgba(232, 68, 122, 0.24);
  color: var(--text);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  header nav[aria-label="主导航"] {
    padding: 10px 18px;
    gap: 12px;
  }

  header nav[aria-label="主导航"] ul {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    padding-bottom: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav[aria-label="主导航"] ul a {
    white-space: nowrap;
    padding: 7px 11px;
    font-size: 0.86rem;
  }

  header nav[role="search"] input[type="search"] {
    width: 150px;
  }

  header nav[role="search"] input[type="search"]:focus {
    width: 180px;
  }

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

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

  main > section[aria-labelledby="hero-title"] {
    padding: 32px 22px;
  }
}

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

  header nav[aria-label="主导航"] > a[aria-label="悟空短剧首页"] {
    font-size: 1.1rem;
  }

  header nav[role="search"] {
    width: 100%;
    margin-left: 0;
    order: 4;
  }

  header nav[role="search"] input[type="search"],
  header nav[role="search"] input[type="search"]:focus {
    flex: 1;
    width: auto;
  }

  header nav[role="search"] button {
    padding: 9px 14px;
  }

  header nav[aria-label="面包屑"] {
    padding: 0 16px 8px;
  }

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

  main > section[aria-labelledby="hero-title"] {
    padding: 26px 18px;
    border-radius: var(--radius);
  }

  main > section[aria-labelledby="hero-title"] h1 {
    max-width: none;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #news article {
    padding: 18px 16px;
  }

  #cases blockquote {
    padding: 16px 18px;
  }

  main > section[aria-labelledby="howto-title"] ol li {
    padding: 14px 14px 14px 54px;
  }

  main > section[aria-labelledby="howto-title"] ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.95rem;
  }

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

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

  footer > section {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (hover: none) {
  main > section:hover,
  #news article:hover,
  #faq details:hover,
  #cases blockquote:hover,
  #about ul li:hover,
  #solutions ul li:hover,
  #contact p:hover,
  footer p:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  main > section[aria-labelledby="hero-title"] figure {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
  }
}