:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8f66;
  --secondary: #2c3e50;
  --accent: #16a085;
  --accent-light: #1abc9c;
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a0;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: 18px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-elevated: #22223a;
    --text: #eaeaf0;
    --text-secondary: #b0b0c8;
    --text-muted: #6a6a88;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(26, 26, 46, 0.78);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

p {
  margin-bottom: 0.8em;
  color: var(--text-secondary);
}

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

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

header[role="banner"] nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

header[role="banner"] nav > a[aria-label="阳光影院首页"] {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  position: relative;
  padding: 0.2rem 0;
}

header[role="banner"] nav > a[aria-label="阳光影院首页"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

header[role="banner"] nav > a[aria-label="阳光影院首页"]:hover::after {
  transform: scaleX(1);
}

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

header[role="banner"] nav ul li a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

header[role="banner"] nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
}

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

header[role="banner"] nav form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

header[role="banner"] nav form[role="search"] input[type="search"] {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  background: var(--bg-card);
  color: var(--text);
  width: 200px;
  outline: none;
  transition: all var(--transition);
  font-family: inherit;
}

header[role="banner"] nav form[role="search"] input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
  width: 240px;
}

header[role="banner"] nav form[role="search"] button {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

header[role="banner"] nav form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ===== MAIN ===== */
main[role="main"] {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  margin: 1.5rem 0 2rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ff6b35 0%, #ff8f66 25%, #2c3e50 65%, #16a085 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

#hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#hero > p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 900px;
  position: relative;
  font-size: 0.95rem;
}

#hero > p strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* Banner carousel */
#hero > div[aria-label="Banner轮播"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
  position: relative;
}

#hero > div[aria-label="Banner轮播"] figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
}

#hero > div[aria-label="Banner轮播"] figure:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#hero > div[aria-label="Banner轮播"] figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

#hero > div[aria-label="Banner轮播"] figure:hover img {
  transform: scale(1.05);
}

#hero > div[aria-label="Banner轮播"] figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Stats */
#hero > div[aria-label="数据统计"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  position: relative;
}

#hero > div[aria-label="数据统计"] p {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1rem 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  margin: 0;
  transition: all var(--transition);
}

#hero > div[aria-label="数据统计"] p:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

#hero > div[aria-label="数据统计"] p strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.15rem;
  font-weight: 800;
}

/* ===== BREADCRUMB ===== */
nav[aria-label="面包屑导航"] {
  margin: 1rem 0;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.82rem;
}

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

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

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

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

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

/* ===== ANCHOR NAV ===== */
nav[aria-label="页面锚点导航"] {
  margin: 1rem 0 2rem;
  padding: 0.8rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

nav[aria-label="页面锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

nav[aria-label="页面锚点导航"] ul li a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

nav[aria-label="页面锚点导航"] ul li a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
main > section {
  margin-bottom: 2.5rem;
  padding: 2rem 1.8rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

main > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

main > section:hover {
  box-shadow: var(--shadow-md);
}

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

main > section h2 {
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

main > section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

main > section h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}

main > section h3:first-of-type {
  margin-top: 0;
}

main > section p {
  font-size: 0.92rem;
}

main > section ul,
main > section ol {
  padding-left: 0;
  margin: 0.8rem 0;
}

main > section ul li,
main > section ol li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

main > section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-50%);
}

main > section ol {
  counter-reset: item;
}

main > section ol li {
  counter-increment: item;
  padding-left: 2rem;
}

main > section ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  position: relative;
  margin: 1rem 0;
  padding: 1.2rem 1.2rem 1.2rem 2.8rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(22, 160, 133, 0.04));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.7rem;
  top: 0.3rem;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

blockquote:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(22, 160, 133, 0.08));
  transform: translateX(4px);
}

blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== ARTICLES ===== */
main article {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

main article:last-child {
  border-bottom: none;
}

main article:hover {
  padding-left: 0.5rem;
}

main article h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  transition: color var(--transition);
}

main article:hover h3 {
  color: var(--primary);
}

main article > p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

main article p {
  font-size: 0.88rem;
}

main article a {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  transition: all var(--transition);
}

main article a::after {
  content: " →";
  transition: transform var(--transition);
  display: inline-block;
}

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

/* ===== DETAILS (FAQ) ===== */
details {
  margin: 0.6rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: all var(--transition);
}

details:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: var(--shadow-md);
}

details summary {
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

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

details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: all var(--transition);
}

details[open] summary::before {
  content: "−";
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: rotate(180deg);
}

details summary:hover {
  background: rgba(255, 107, 53, 0.04);
}

details > p {
  padding: 0 1.2rem 1rem 3.2rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  animation: fadeSlideIn 0.3s ease;
}

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

/* ===== ADDRESS / CONTACT ===== */
address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.6rem 2rem;
  margin: 1rem 0;
}

address p {
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

address p strong {
  color: var(--text);
  min-width: 5.5em;
}

address a {
  word-break: break-all;
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(44, 62, 80, 0.06) 100%);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 2rem;
}

footer section {
  max-width: 1280px;
  margin: 0 auto 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

footer section:hover {
  box-shadow: var(--shadow-sm);
}

footer section h2 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

footer section h2::before {
  content: "";
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

footer section p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

footer section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer section ul li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  background: rgba(255, 107, 53, 0.06);
  border-radius: 50px;
  transition: all var(--transition);
}

footer section ul li:hover {
  background: rgba(255, 107, 53, 0.12);
}

footer section ul li a {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

footer section ul li a:hover {
  color: var(--primary);
}

#footer-info {
  text-align: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

#footer-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#footer-info a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}

#footer-info a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

/* ===== SCROLL ANIMATIONS ===== */
main > section,
#hero,
nav[aria-label="面包屑导航"],
nav[aria-label="页面锚点导航"] {
  opacity: 0;
  transform: translateY(24px);
  animation: sectionReveal 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#hero { animation-delay: 0.05s; }
nav[aria-label="面包屑导航"] { animation-delay: 0.1s; }
nav[aria-label="页面锚点导航"] { animation-delay: 0.15s; }

main > section:nth-of-type(1) { animation-delay: 0.2s; }
main > section:nth-of-type(2) { animation-delay: 0.25s; }
main > section:nth-of-type(3) { animation-delay: 0.3s; }
main > section:nth-of-type(4) { animation-delay: 0.35s; }
main > section:nth-of-type(5) { animation-delay: 0.4s; }
main > section:nth-of-type(6) { animation-delay: 0.45s; }
main > section:nth-of-type(7) { animation-delay: 0.5s; }
main > section:nth-of-type(8) { animation-delay: 0.55s; }
main > section:nth-of-type(9) { animation-delay: 0.6s; }
main > section:nth-of-type(10) { animation-delay: 0.65s; }
main > section:nth-of-type(11) { animation-delay: 0.7s; }
main > section:nth-of-type(12) { animation-delay: 0.75s; }
main > section:nth-of-type(13) { animation-delay: 0.8s; }
main > section:nth-of-type(14) { animation-delay: 0.85s; }
main > section:nth-of-type(15) { animation-delay: 0.9s; }
main > section:nth-of-type(16) { animation-delay: 0.95s; }

@keyframes sectionReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
}

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

/* ===== SELECTION ===== */
::selection {
  background: rgba(255, 107, 53, 0.25);
  color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  header[role="banner"] nav {
    padding: 0.6rem 1rem;
  }

  header[role="banner"] nav ul {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
  }

  header[role="banner"] nav form[role="search"] {
    margin-left: auto;
  }

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

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

  main[role="main"] {
    padding: 0 1rem 2rem;
  }

  #hero {
    padding: 1.8rem 1.3rem;
    border-radius: var(--radius-lg);
  }

  #hero > div[aria-label="Banner轮播"] {
    grid-template-columns: 1fr;
  }

  #hero > div[aria-label="Banner轮播"] figure img {
    aspect-ratio: 16 / 7;
  }

  main > section {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
  }

  main > section h2 {
    font-size: 1.25rem;
  }

  address {
    grid-template-columns: 1fr;
  }

  footer[role="contentinfo"] {
    padding: 1.8rem 1rem 1rem;
  }

  footer section {
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 15px;
  }

  header[role="banner"] nav {
    gap: 0.5rem;
  }

  header[role="banner"] nav > a[aria-label="阳光影院首页"] {
    font-size: 1.15rem;
  }

  header[role="banner"] nav ul li a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

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

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

  header[role="banner"] nav form[role="search"] input[type="search"]:focus {
    width: auto;
  }

  #hero {
    padding: 1.4rem 1rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
  }

  #hero > div[aria-label="数据统计"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  #hero > div[aria-label="数据统计"] p strong {
    font-size: 1.2rem;
  }

  main > section {
    padding: 1.2rem 1rem;
    margin-bottom: 1.5rem;
  }

  main > section h2 {
    font-size: 1.15rem;
  }

  main > section h3 {
    font-size: 1rem;
  }

  details summary {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }

  details > p {
    padding: 0 0.9rem 0.8rem 2.8rem;
    font-size: 0.82rem;
  }

  blockquote {
    padding: 1rem 0.9rem 1rem 2.4rem;
  }

  nav[aria-label="页面锚点导航"] {
    padding: 0.6rem 0.7rem;
  }

  nav[aria-label="页面锚点导航"] ul li a {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }
}

/* ===== REDUCED MOTION ===== */
@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;
  }

  main > section,
  #hero,
  nav[aria-label="面包屑导航"],
  nav[aria-label="页面锚点导航"] {
    opacity: 1;
    transform: none;
  }
}

/* ===== PRINT ===== */
@media print {
  header[role="banner"],
  nav[aria-label="页面锚点导航"],
  #footer-info a {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}