:root {
  --brand-navy: #0b1e3a;
  --brand-navy-2: #12294a;
  --brand-navy-3: #1d3b66;
  --brand-blue: #264f85;
  --brand-blue-2: #33639e;
  --brand-gold: #f5b301;
  --brand-gold-soft: #ffd257;
  --bg: #f4f7fc;
  --bg-soft: #eaf0f9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.86);
  --text: #16233a;
  --text-soft: #4a5a75;
  --text-muted: #6b7a94;
  --border: rgba(11, 30, 58, 0.1);
  --border-strong: rgba(11, 30, 58, 0.18);
  --shadow-sm: 0 2px 8px rgba(11, 30, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 30, 58, 0.1);
  --shadow-lg: 0 22px 60px rgba(11, 30, 58, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1200px;
  --header-height: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-hero: linear-gradient(135deg, #0b1e3a 0%, #173a68 45%, #2a5a94 100%);
  --gradient-gold: linear-gradient(135deg, #f5b301 0%, #ffd257 100%);
  --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(234, 240, 249, 0.9) 100%);
  --focus-ring: 0 0 0 3px rgba(245, 179, 1, 0.45);
}

[data-theme="dark"] {
  --bg: #070f1d;
  --bg-soft: #0b1729;
  --surface: #0f1f36;
  --surface-glass: rgba(15, 31, 54, 0.72);
  --surface-glass-strong: rgba(15, 31, 54, 0.88);
  --text: #e6edf8;
  --text-soft: #b3c2d8;
  --text-muted: #8496b0;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
  --gradient-hero: linear-gradient(135deg, #040a14 0%, #0d1f38 45%, #16314f 100%);
  --gradient-card: linear-gradient(160deg, rgba(15, 31, 54, 0.96) 0%, rgba(11, 23, 41, 0.92) 100%);
  --focus-ring: 0 0 0 3px rgba(245, 179, 1, 0.55);
}

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

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

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 12% 0%, rgba(38, 79, 133, 0.1) 0%, transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(245, 179, 1, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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-blue);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

[data-theme="dark"] a {
  color: var(--brand-gold-soft);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-gold);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

h4 {
  font-size: 1.08rem;
  color: var(--text-soft);
}

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
  color: var(--text-soft);
}

strong {
  color: var(--text);
}

/* 跳转链接 */
body > a[href="#main-content"] {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 700;
  transition: top 0.3s var(--ease);
}

body > a[href="#main-content"]:focus {
  top: 16px;
}

/* ============ 页头 ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#site-header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

#site-header > div > a[aria-label="人人影视首页"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

#site-header > div > a[aria-label="人人影视首页"]:hover {
  color: var(--brand-gold);
  transform: translateY(-1px);
}

#site-header > div > a[aria-label="人人影视首页"] svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(11, 30, 58, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#site-header > div > a[aria-label="人人影视首页"]:hover svg {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 10px 24px rgba(245, 179, 1, 0.35);
}

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

#site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#site-header nav li {
  margin: 0;
}

#site-header nav a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#site-header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-gold);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#site-header nav a:hover {
  color: var(--text);
  background: rgba(38, 79, 133, 0.08);
}

#site-header nav a:hover::after {
  width: 60%;
}

#site-header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

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

#site-header input[type="search"] {
  width: 200px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: width 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#site-header input[type="search"]::placeholder {
  color: var(--text-muted);
}

#site-header input[type="search"]:focus {
  width: 240px;
  border-color: var(--brand-gold);
  outline: none;
  box-shadow: var(--focus-ring);
}

#site-header form[role="search"] button {
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

#site-header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 179, 1, 0.4);
  filter: brightness(1.05);
}

#site-header form[role="search"] button:active {
  transform: translateY(0);
}

#theme-toggle,
#menu-toggle {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  border-color: var(--brand-gold);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ============ 主体容器 ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

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

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
}

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

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

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

/* ============ 通用区块 ============ */
main > section {
  position: relative;
  margin-bottom: 28px;
  padding: 40px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

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

main > section > h2 {
  margin-top: 0;
}

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

/* 滚动进入动画（配合 IntersectionObserver 或 CSS 原生） */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============ Hero 区 ============ */
#hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 48px;
  background: var(--gradient-hero);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #e8eefb;
}

#hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 179, 1, 0.35) 0%, transparent 68%);
  pointer-events: none;
  animation: floaty 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 99, 158, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

#hero > div:first-child {
  position: relative;
  z-index: 2;
}

#hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

#hero p {
  color: rgba(232, 238, 251, 0.88);
  font-size: 1rem;
  line-height: 1.85;
}

#hero p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 0;
}

#hero p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

#hero p:last-child a:first-child {
  background: var(--gradient-gold);
  color: var(--brand-navy);
  box-shadow: 0 10px 28px rgba(245, 179, 1, 0.35);
}

#hero p:last-child a:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(245, 179, 1, 0.5);
}

#hero p:last-child a:last-child {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#hero p:last-child a:last-child:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

#hero > div[aria-label="首页轮播图"] {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#hero figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

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

#hero figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: rgba(232, 238, 251, 0.8);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============ 区块内文章卡片 ============ */
main > section article {
  position: relative;
  margin-bottom: 18px;
  padding: 24px 26px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

main > section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-gold);
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

main > section article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

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

main > section article h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

main > section article h3 a {
  color: inherit;
}

main > section article p {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}

main > section article p:has(a) {
  margin-top: 12px;
  margin-bottom: 0;
}

main > section article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(38, 79, 133, 0.1);
  color: var(--brand-blue);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

[data-theme="dark"] main > section article p a {
  background: rgba(245, 179, 1, 0.14);
  color: var(--brand-gold-soft);
}

main > section article p a:hover {
  background: var(--gradient-gold);
  color: var(--brand-navy);
  transform: translateX(4px);
}

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

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

/* ============ 品牌历史时间节点 ============ */
#history h4 {
  position: relative;
  padding-left: 20px;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

#history h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-gold);
  box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.18);
}

#history h4 + p {
  padding-left: 20px;
  border-left: 2px dashed var(--border-strong);
  margin-left: 4px;
}

/* ============ 产品优势 / 场景 ============ */
#products h3,
#solutions h3,
#applications h3,
#cases h3,
#notes h3 {
  position: relative;
  padding-left: 16px;
}

#products h3::before,
#solutions h3::before,
#applications h3::before,
#cases h3::before,
#notes h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 6px;
  height: 1em;
  border-radius: 3px;
  background: var(--gradient-gold);
}

/* ============ 客户评价 ============ */
#cases h3:last-of-type + p,
#cases h3:last-of-type ~ p {
  position: relative;
  padding: 16px 20px 16px 48px;
  margin-bottom: 12px;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-style: italic;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases h3:last-of-type + p::before,
#cases h3:last-of-type ~ p::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brand-gold);
  font-style: normal;
  opacity: 0.7;
}

#cases h3:last-of-type + p:hover,
#cases h3:last-of-type ~ p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* ============ HowTo 步骤 ============ */
#howto h4 {
  position: relative;
  padding: 14px 18px 14px 56px;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  counter-increment: howto-step;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#howto {
  counter-reset: howto-step;
}

#howto h4::before {
  content: counter(howto-step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 179, 1, 0.35);
}

#howto h4:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-gold);
}

#howto h4 + p {
  padding-left: 56px;
  margin-top: 0;
}

/* ============ FAQ 折叠面板 ============ */
#faq details {
  margin-bottom: 12px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  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: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: rgba(245, 179, 1, 0.5);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: 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: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(38, 79, 133, 0.1);
  color: var(--brand-blue);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease);
}

[data-theme="dark"] #faq summary::after {
  background: rgba(245, 179, 1, 0.14);
  color: var(--brand-gold-soft);
}

#faq details[open] summary {
  color: var(--brand-blue);
}

[data-theme="dark"] #faq details[open] summary {
  color: var(--brand-gold-soft);
}

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

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  animation: fadeIn 0.4s var(--ease);
}

/* ============ 联系我们 ============ */
#contact p {
  font-size: 0.98rem;
}

#contact h3 {
  margin-top: 1.6em;
}

#contact h3:first-of-type {
  margin-top: 0.6em;
}

#contact p:has(a) a,
#contact a[href^="tel"],
#contact a[href^="mailto"] {
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}

/* ============ 网站地图 & 友情链接 ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  background: var(--gradient-gold);
  color: var(--brand-navy);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 179, 1, 0.35);
}

/* ============ 页脚 ============ */
footer {
  position: relative;
  background: var(--brand-navy);
  color: rgba(232, 238, 251, 0.82);
  padding: 56px 24px 32px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] footer {
  background: #040a14;
}

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

footer > section {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer > section:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
}

footer h2 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 12px;
  padding-bottom: 0;
}

footer h2::after {
  width: 36px;
  height: 3px;
  background: var(--gradient-gold);
}

footer p {
  color: rgba(232, 238, 251, 0.72);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.6em;
}

footer a {
  color: var(--brand-gold-soft);
  border-bottom: 1px dashed rgba(245, 179, 1, 0.4);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

footer a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

footer address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(232, 238, 251, 0.72);
}

footer > p:last-child {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(232, 238, 251, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============ 返回顶部 ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(245, 179, 1, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#back-to-top::before {
  content: "↑";
  position: absolute;
  top: 6px;
  font-size: 1rem;
  line-height: 1;
}

#back-to-top.is-visible,
#back-to-top:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(245, 179, 1, 0.55);
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  #site-header > div {
    gap: 12px;
  }

  #site-header input[type="search"] {
    width: 150px;
  }

  #site-header input[type="search"]:focus {
    width: 180px;
  }

  #hero {
    grid-template-columns: 1fr;
    padding: 44px 32px;
  }

  #hero > div[aria-label="首页轮播图"] {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  #hero > div[aria-label="首页轮播图"] figure {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (max-width: 860px) {
  #site-header > div {
    padding: 10px 16px;
    min-height: auto;
  }

  #site-header nav {
    order: 5;
    flex-basis: 100%;
    display: none;
  }

  #site-header nav.is-open {
    display: block;
    animation: fadeIn 0.3s var(--ease);
  }

  #site-header nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--border);
  }

  #site-header nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  #site-header nav a::after {
    display: none;
  }

  #site-header form[role="search"] {
    flex: 1 1 auto;
  }

  #site-header input[type="search"] {
    width: 100%;
    min-width: 0;
  }

  #site-header input[type="search"]:focus {
    width: 100%;
  }

  #menu-toggle {
    display: inline-block;
  }

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

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

  #hero {
    padding: 36px 24px;
    border-radius: var(--radius-lg);
  }

  #hero > div[aria-label="首页轮播图"] figure {
    flex: 0 0 88%;
  }

  #howto h4 + p {
    padding-left: 0;
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

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

  #site-header > div > a[aria-label="人人影视首页"] span {
    font-size: 1.05rem;
  }

  #site-header form[role="search"] button {
    padding: 8px 12px;
  }

  #theme-toggle,
  #menu-toggle {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  main > nav[aria-label="面包屑导航"] ol {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  main > section {
    padding: 24px 18px;
  }

  #hero {
    padding: 28px 18px;
  }

  #hero p:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  #hero p:last-child a {
    justify-content: center;
  }

  #hero > div[aria-label="首页轮播图"] {
    flex-direction: column;
    overflow: visible;
  }

  #hero > div[aria-label="首页轮播图"] figure {
    flex: 1 1 auto;
  }

  main > section article {
    padding: 18px 16px;
  }

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

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

  #howto h4 {
    padding: 12px 14px 12px 50px;
  }

  #howto h4::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  footer {
    padding: 40px 18px 24px;
  }
}

/* ============ 动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ 打印样式 ============ */
@media print {
  #site-header,
  #back-to-top,
  #hero > div[aria-label="首页轮播图"],
  footer::before {
    display: none;
  }

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

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