:root {
  --brand: #e63946;
  --brand-dark: #c1121f;
  --brand-light: #ff6b7a;
  --accent: #ffb703;
  --accent-2: #2a9d8f;
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1a1a2e;
  --text-soft: #55556e;
  --text-muted: #8a8aa3;
  --border: rgba(26, 26, 46, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-brand: linear-gradient(135deg, #e63946 0%, #ff6b7a 45%, #ffb703 100%);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #3d1e3f 40%, #e63946 100%);
  --gradient-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(255, 183, 3, 0.08) 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(18px) saturate(180%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --bg-elevated: rgba(30, 30, 50, 0.72);
    --text: #f0f0f8;
    --text-soft: #b8b8d0;
    --text-muted: #7a7a96;
    --border: rgba(240, 240, 248, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --gradient-hero: linear-gradient(135deg, #0f0f1a 0%, #2a1030 40%, #8a1a2a 100%);
    --gradient-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(255, 183, 3, 0.1) 100%);
    --glass-bg: rgba(30, 30, 50, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(230, 57, 70, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(255, 183, 3, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  position: relative;
}

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

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ============ HEADER ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), background var(--transition-smooth);
}

header[role="banner"] nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

header[role="banner"] nav > a[aria-label="果果短剧首页"] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  padding: 0.25rem 0;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

header[role="banner"] nav > a[aria-label="果果短剧首页"]::before {
  content: "🎬";
  font-size: 1.2rem;
  -webkit-text-fill-color: initial;
  background: none;
}

header[role="banner"] nav > a[aria-label="果果短剧首页"]:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.15);
}

header[role="banner"] nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

header[role="banner"] nav ul li a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

header[role="banner"] nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
}

header[role="banner"] nav ul li a:hover {
  color: var(--brand);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

header[role="banner"] nav ul li a:hover::after {
  width: 55%;
}

/* ============ MAIN ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ============ HERO SECTION ============ */
main > section:first-of-type {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

main > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 183, 3, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 122, 0.3) 0%, transparent 45%);
  z-index: -1;
  animation: heroFloat 12s ease-in-out infinite alternate;
}

main > section:first-of-type::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: heroOrb 18s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(2deg); }
}

@keyframes heroOrb {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, 60px); }
}

main > section:first-of-type h1 {
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

main > section:first-of-type p {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  max-width: 780px;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

main > section:first-of-type p:last-child {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

main > section:first-of-type p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

main > section:first-of-type p:last-child a:first-child {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

main > section:first-of-type p:last-child a:first-child:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

main > section:first-of-type p:last-child a:last-child {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

main > section:first-of-type p:last-child a:last-child:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
}

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

/* ============ BREADCRUMB ============ */
nav[aria-label="面包屑导航"] {
  font-size: 0.85rem;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.6;
}

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

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

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

/* ============ SECTIONS ============ */
main > section {
  scroll-margin-top: 90px;
}

main > section:not(:first-of-type):not(nav) {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

main > section:not(:first-of-type):not(nav)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

main > section:not(:first-of-type):not(nav):hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.18);
}

main > section:not(:first-of-type):not(nav):hover::before {
  opacity: 1;
}

main > section:not(:first-of-type):not(nav) h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  position: relative;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

main > section:not(:first-of-type):not(nav) h2::before {
  content: "";
  width: 6px;
  height: 1.5em;
  background: var(--gradient-brand);
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
}

main > section:not(:first-of-type):not(nav) h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 3px;
}

main > section:not(:first-of-type):not(nav) h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.85rem 0 0.85rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

main > section:not(:first-of-type):not(nav) h3:hover {
  color: var(--brand);
}

main > section:not(:first-of-type):not(nav) h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.4rem 0 0.6rem;
  color: var(--brand-dark);
  padding-left: 0.85rem;
  border-left: 3px solid var(--brand);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

main > section:not(:first-of-type):not(nav) h4:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}

main > section:not(:first-of-type):not(nav) p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

main > section:not(:first-of-type):not(nav) p strong {
  color: var(--text);
  font-weight: 700;
}

/* ============ LISTS ============ */
main > section ul,
main > section ol {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

main > section ul li,
main > section ol li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-soft);
  padding: 0.7rem 1rem 0.7rem 2.4rem;
  position: relative;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

main > section ul li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.5);
}

main > section ul li:hover,
main > section ol li:hover {
  transform: translateX(5px);
  border-color: rgba(230, 57, 70, 0.25);
  box-shadow: var(--shadow-sm);
}

/* ============ ARTICLES ============ */
main > section article {
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

main > section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-smooth);
}

main > section article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.2);
}

main > section article:hover::before {
  transform: scaleY(1);
}

main > section article h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

main > section article:hover h3 {
  color: var(--brand);
}

main > section article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--gradient-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

main > section article p {
  margin-bottom: 0.65rem;
}

main > section article p:last-child {
  margin-bottom: 0;
}

main > section article p a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 999px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

main > section article p a::after {
  content: "→";
  transition: transform var(--transition-fast);
}

main > section article p a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

main > section article p a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq h3 {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  margin: 1.35rem 0 0.6rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

#faq h3::after {
  content: "＋";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform var(--transition-smooth);
}

#faq h3:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#faq h3:hover::after {
  color: #fff;
  transform: translateY(-50%) rotate(90deg);
}

#faq h3 + p {
  padding: 0 1.15rem 0.5rem;
  border-left: 2px solid var(--border);
  margin-left: 1rem;
  transition: border-color var(--transition-fast);
}

#faq h3:hover + p {
  border-color: var(--brand);
}

/* ============ HOWTO ============ */
#howto h4 {
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.1rem;
  border-left: 4px solid var(--accent);
  margin-top: 1.5rem;
}

#howto h4:hover {
  border-left-color: var(--brand);
}

/* ============ CONTACT ============ */
#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

#contact ul li {
  padding: 1rem 1.15rem 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

#contact ul li::before {
  content: "◆";
  position: static;
  width: auto;
  height: auto;
  background: none;
  color: var(--brand);
  font-size: 0.7rem;
  box-shadow: none;
  flex-shrink: 0;
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.25);
}

/* ============ SITEMAP & LINKS ============ */
#sitemap-title + ul,
#links-title + ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

#sitemap-title + ul li,
#links-title + ul li {
  padding: 0.75rem 1rem 0.75rem 2.2rem;
  font-size: 0.9rem;
}

#sitemap-title + ul li a,
#links-title + ul li a {
  color: var(--text-soft);
  font-weight: 500;
  transition: color var(--transition-fast);
}

#sitemap-title + ul li:hover a,
#links-title + ul li:hover a {
  color: var(--brand);
}

/* ============ LEGAL ============ */
#legal-title ~ h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 1.5rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-2);
}

/* ============ FOOTER ============ */
footer {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

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

footer::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

footer p {
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 1;
}

footer p:first-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

footer p a {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}

footer p a::before {
  content: "↑";
}

footer p a:hover {
  background: var(--accent);
  color: #1a1a2e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.4);
}

/* ============ SCROLL ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  main > section:not(:first-of-type):not(nav),
  main > section article {
    animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  @supports not (animation-timeline: view()) {
    main > section:not(:first-of-type):not(nav),
    main > section article {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  main {
    padding: 1.75rem 1.25rem 3rem;
    gap: 2rem;
  }

  main > section:first-of-type {
    padding: 3rem 2rem;
  }

  main > section:not(:first-of-type):not(nav) {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header[role="banner"] nav {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }

  header[role="banner"] nav > a[aria-label="果果短剧首页"] {
    font-size: 1.15rem;
  }

  header[role="banner"] nav ul {
    gap: 0.2rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header[role="banner"] nav ul::-webkit-scrollbar {
    display: none;
  }

  header[role="banner"] nav ul li a {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
  }

  main {
    padding: 1.25rem 1rem 2.5rem;
    gap: 1.5rem;
  }

  main > section:first-of-type {
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  main > section:first-of-type p:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  main > section:first-of-type p:last-child a {
    justify-content: center;
    width: 100%;
  }

  main > section:not(:first-of-type):not(nav) {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  main > section:not(:first-of-type):not(nav) h2 {
    font-size: 1.25rem;
  }

  main > section:not(:first-of-type):not(nav) h3 {
    font-size: 1.1rem;
  }

  main > section article {
    padding: 1.25rem 1.15rem;
  }

  #contact ul,
  #sitemap-title + ul,
  #links-title + ul {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  main {
    padding: 1rem 0.85rem 2rem;
    gap: 1.25rem;
  }

  main > section:first-of-type {
    padding: 1.75rem 1.15rem;
  }

  main > section:first-of-type h1 {
    font-size: 1.4rem;
  }

  main > section:not(:first-of-type):not(nav) {
    padding: 1.25rem 1rem;
  }

  main > section:not(:first-of-type):not(nav) h2 {
    font-size: 1.15rem;
    padding-bottom: 0.65rem;
  }

  main > section:not(:first-of-type):not(nav) h2::before {
    width: 4px;
  }

  main > section:not(:first-of-type):not(nav) p {
    font-size: 0.92rem;
    line-height: 1.85;
  }

  #faq h3 {
    font-size: 0.98rem;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
  }

  #faq h3::after {
    right: 0.9rem;
  }

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

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

@media (prefers-contrast: more) {
  :root {
    --border: rgba(26, 26, 46, 0.3);
    --text-soft: #333344;
  }

  main > section:not(:first-of-type):not(nav) {
    border-width: 2px;
  }
}

/* ============ PRINT ============ */
@media print {
  header[role="banner"],
  footer,
  main > section:first-of-type p:last-child {
    display: none;
  }

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

  main > section:not(:first-of-type):not(nav) {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}