/* 站点皮肤 · lotus-ink 水墨东方 · 宣纸白 + 黛青 + 朱砂点缀 · 保留多页骨架布局 */

:root {
  --pink: #c0392b;
  --blue: #3d6b6b;
  --green: #4a7c59;
  --orange: #b87333;
  --gold: #8b6914;
  --gold-dim: #6b5010;
  --cold-blue: #3d6b6b;
  --daiqing: #2d4a4a;
  --daiqing-light: #3d6b6b;
  --xuanzhi: #f7f3eb;
  --xuanzhi-card: #faf8f4;
  --zhusha: #c0392b;
  --ink: #1a3333;
  --muted: #5a6e6e;
  --panel: #faf8f4;
  --line: rgba(45, 74, 74, 0.12);
  --soft: #f0ebe0;
  --shadow: 0 8px 32px rgba(45, 74, 74, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--xuanzhi);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

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

a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ========== 多页骨架（search / categories / rank） ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--xuanzhi-card) 96%, #fff);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(45, 74, 74, 0.06);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--daiqing);
  color: var(--xuanzhi);
  box-shadow: 0 4px 12px rgba(45, 74, 74, 0.18);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--daiqing);
  line-height: 1.2;
  max-height: 48px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--zhusha);
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--xuanzhi-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.nav-search input {
  width: 210px;
  padding: 10px 14px;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.nav-search button {
  padding: 10px 16px;
  background: var(--daiqing);
  color: var(--xuanzhi);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--xuanzhi-card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin-bottom: 48px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--xuanzhi-card) 0%, var(--soft) 100%);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  inset: auto -12% -38% auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 74, 74, 0.08), transparent 70%);
  filter: blur(8px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 48px;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow span,
.eyebrow.solo {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 6px 12px;
  background: rgba(45, 74, 74, 0.08);
  color: var(--daiqing);
  font-weight: 700;
  border: 1px solid var(--line);
}

.hero-copy h1,
.hero-copy h2,
.compact-hero h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero-copy p,
.compact-hero p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 580px;
  margin: 0 0 20px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span,
.tag-cloud a {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 4px;
  background: var(--xuanzhi-card);
  color: var(--daiqing-light);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 12px 22px;
  font-weight: 700;
}

.primary-btn {
  background: var(--daiqing);
  color: var(--xuanzhi);
  box-shadow: 0 4px 16px rgba(45, 74, 74, 0.2);
}

.primary-btn:hover {
  background: var(--daiqing-light);
  transform: translateY(-1px);
}

.ghost-btn {
  background: transparent;
  color: var(--daiqing);
  border: 1px solid var(--line);
}

.ghost-btn:hover {
  border-color: var(--daiqing);
  color: var(--zhusha);
}

.hero-visual {
  position: relative;
  z-index: 2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(45, 74, 74, 0.12);
  border: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--soft);
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(0deg, rgba(26, 51, 51, 0.82), transparent);
}

.hero-control {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hero-control button {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: rgba(250, 248, 244, 0.92);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(45, 74, 74, 0.2);
  border-radius: 2px;
}

.hero-dots button.active {
  width: 28px;
  background: var(--zhusha);
}

.quick-search {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 40px;
  padding: 24px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-search h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.quick-search form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--xuanzhi-card);
}

.quick-search input {
  flex: 1;
  padding: 14px 18px;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.quick-search button {
  padding: 0 24px;
  background: var(--daiqing);
  color: var(--xuanzhi);
  font-weight: 700;
}

.section-block {
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.section-head a {
  color: var(--daiqing-light);
  font-weight: 700;
  font-size: 14px;
}

.section-head a:hover {
  color: var(--zhusha);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(192, 57, 43, 0.1);
  color: var(--zhusha);
  font-weight: 800;
  font-size: 14px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(45, 74, 74, 0.12);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 3/4;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.image-off {
  opacity: 0;
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--zhusha);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 0 8px;
}

.movie-card-body {
  padding: 14px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}

.movie-card h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover {
  color: var(--zhusha);
}

.movie-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}

.card-actions a {
  display: inline-flex;
  border-radius: 4px;
  padding: 7px 12px;
  background: var(--daiqing);
  color: var(--xuanzhi);
  font-weight: 700;
  font-size: 12px;
}

.card-actions span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.card-compact {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 150px;
}

.soft-panel {
  padding: 24px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-tile,
.overview-card {
  display: block;
  border-radius: 6px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--daiqing) 40%, transparent);
}

.category-tile strong,
.overview-main strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.category-tile span,
.overview-main span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.rank-panel {
  padding: 24px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--xuanzhi-card), var(--soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: 40px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--xuanzhi-card);
  padding: 11px 14px;
  outline: none;
  color: var(--ink);
  font-weight: 600;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--daiqing);
}

.empty-state {
  padding: 36px;
  border-radius: 6px;
  background: var(--panel);
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  border: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 20px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--daiqing-light);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(45, 74, 74, 0.1);
}

.detail-info h1 {
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}

.detail-info p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.player-section,
.content-card {
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-section {
  padding: 24px;
  margin-bottom: 28px;
}

.player-section h2,
.content-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0a1414;
}

.player-box video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-error[hidden] {
  display: none !important;
}

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(26, 51, 51, 0.75);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  margin-bottom: 40px;
}

.content-card {
  padding: 24px;
}

.prose-card p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
  margin-bottom: 20px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.side-meta ul {
  display: grid;
  gap: 11px;
}

.side-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-meta span {
  color: var(--muted);
  font-weight: 700;
}

.side-meta strong {
  text-align: right;
  color: var(--gold);
}

.side-link {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  border-radius: 4px;
  padding: 11px 16px;
  background: var(--daiqing);
  color: var(--xuanzhi);
  font-weight: 700;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  margin-top: 24px;
  background: var(--daiqing);
  border-top: 2px solid color-mix(in srgb, var(--zhusha) 35%, transparent);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: rgba(250, 248, 244, 0.82);
  font-weight: 700;
}

.footer-inner a {
  color: rgba(250, 248, 244, 0.92);
}

.seo-brand-block {
  margin: 0 0 20px;
  padding: 20px 24px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--zhusha);
}

.seo-brand-block h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
}

.seo-brand-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  max-width: 880px;
}

/* ========== 首页 VOD 区块 ========== */

.vod-home {
  min-height: 100vh;
}

.vod-hero {
  position: relative;
  padding: 48px 0 56px;
  background: linear-gradient(165deg, var(--xuanzhi-card) 0%, var(--soft) 55%, var(--xuanzhi) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.vod-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 74, 74, 0.06), transparent 65%);
  pointer-events: none;
}

.vod-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--daiqing-light), var(--zhusha), var(--daiqing-light), transparent);
  opacity: 0.35;
}

.vod-hero__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.vod-hero__brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
}

.vod-hero__brand-mark {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--daiqing);
  line-height: 1.3;
}

.vod-hero__brand-sub {
  writing-mode: vertical-rl;
  font-size: 13px;
  color: var(--zhusha);
  letter-spacing: 0.2em;
  font-weight: 700;
}

.vod-hero__content h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}

.vod-hero__intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 10px;
  max-width: 640px;
}

.vod-hero__tagline {
  font-size: 15px;
  color: var(--daiqing-light);
  margin: 0 0 24px;
  font-weight: 600;
}

.vod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vod-section {
  padding: 32px 0;
}

.vod-section--alt {
  background: var(--xuanzhi-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vod-section__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.vod-cat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.vod-cat-scroll::-webkit-scrollbar {
  height: 4px;
}

.vod-cat-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.vod-cat-chip:hover {
  border-color: var(--daiqing);
  color: var(--zhusha);
}

.vod-seo-bar {
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ========== 顶栏 layout 覆盖 ========== */

.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--xuanzhi-card) 97%, #fff);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(45, 74, 74, 0.05);
}

.site-header-bar::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--daiqing), var(--zhusha), var(--daiqing));
  opacity: 0.5;
}

.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--daiqing);
  color: var(--xuanzhi);
  border-radius: 4px;
  font-size: 14px;
}

.site-logo__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--daiqing);
  letter-spacing: 0.04em;
}

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-desktop a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.site-nav-desktop a:hover {
  color: var(--zhusha);
}

.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown__panel {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 240px;
  padding: 8px;
  background: var(--xuanzhi-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.site-nav-dropdown:hover .site-nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
}

.site-nav-dropdown__panel a {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.site-nav-dropdown__panel a:hover {
  background: rgba(45, 74, 74, 0.06);
}

.site-search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.site-search-form input {
  width: 200px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--xuanzhi-card);
  color: var(--ink);
  font-size: 14px;
}

.site-search-form svg {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.site-nav-toggle {
  display: none;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

.site-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 12px;
  background: var(--xuanzhi-card);
  border-top: 1px solid var(--line);
}

.site-nav-mobile.open {
  display: flex;
}

.site-nav-mobile a {
  padding: 12px 16px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.site-nav-mobile a:last-child {
  border-bottom: none;
}

.site-footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer-grid h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(250, 248, 244, 0.95);
}

.site-footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-grid li {
  margin-bottom: 0.5rem;
}

.site-footer-grid p,
.site-footer-grid li a {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(250, 248, 244, 0.78);
}

.site-footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.site-footer-tags {
  font-size: 0.8125rem;
  color: rgba(250, 248, 244, 0.65);
  margin-bottom: 1rem;
}

.site-footer-tags a {
  color: rgba(250, 248, 244, 0.82);
}

.site-footer-copy {
  font-size: 0.8125rem;
  color: rgba(250, 248, 244, 0.55);
}

/* ========== 播放页 ========== */

.a2-play {
  background: var(--xuanzhi) !important;
}

.a2-play__dock {
  background: var(--xuanzhi-card) !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow) !important;
}

.a2-play__title {
  color: var(--ink) !important;
}

.a2-play__stats {
  color: var(--muted) !important;
}

.a2-play__synopsis,
.a2-play__channels {
  background: var(--panel) !important;
  border: 1px solid var(--line);
  box-shadow: none !important;
}

.a2-play__synopsis h2,
.a2-play__channels h2,
.a2-play-rail__head h2 {
  color: var(--ink) !important;
}

.a2-play__synopsis p,
.mother-play-desc {
  color: var(--muted) !important;
}

.a2-play__kicker a {
  background: rgba(45, 74, 74, 0.08) !important;
  color: var(--daiqing) !important;
}

.a2-play__kicker span {
  background: rgba(45, 74, 74, 0.04) !important;
  color: var(--muted) !important;
}

.a2-play-rail__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.a2-play-rail__title {
  color: var(--ink) !important;
}

.mother-related {
  max-width: 80rem;
  margin: 24px auto 0;
  padding: 0 1rem;
}

.mother-related h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mother-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.a2-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.a2-pager__btn,
.a2-pager__num {
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.a2-pager__num.is-active {
  background: var(--daiqing);
  border-color: var(--daiqing);
  color: var(--xuanzhi);
}

/* ========== mother-adopt 浅色覆盖 ========== */

.body-mother-adopt::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--daiqing), var(--zhusha), var(--daiqing));
  opacity: 0.45;
  position: relative;
  z-index: 100;
}

.body-mother-adopt .bg-white,
.body-mother-adopt section.bg-white {
  background: var(--xuanzhi-card) !important;
}

.body-mother-adopt .bg-gray-50,
.body-mother-adopt .min-h-screen.bg-gray-50 {
  background: var(--xuanzhi) !important;
}

.body-mother-adopt .text-gray-900,
.body-mother-adopt .text-gray-800,
.body-mother-adopt .text-gray-700 {
  color: var(--ink) !important;
}

.body-mother-adopt .text-gray-600,
.body-mother-adopt .text-gray-500,
.body-mother-adopt .text-gray-400,
.body-mother-adopt .text-gray-300 {
  color: var(--muted) !important;
}

.body-mother-adopt .text-blue-600,
.body-mother-adopt .text-blue-500 {
  color: var(--daiqing-light) !important;
}

.body-mother-adopt .text-blue-100 {
  color: var(--muted) !important;
}

.body-mother-adopt .hover\:text-blue-600:hover,
.body-mother-adopt .hover\:text-blue-700:hover,
.body-mother-adopt .hover\:text-blue-400:hover {
  color: var(--zhusha) !important;
}

.body-mother-adopt .bg-gradient-to-r.from-blue-600,
.body-mother-adopt .bg-gradient-to-r.from-blue-600.via-purple-600.to-pink-600 {
  background: linear-gradient(165deg, var(--xuanzhi-card), var(--soft)) !important;
  border-bottom: 1px solid var(--line);
  color: var(--ink) !important;
}

.body-mother-adopt .bg-gradient-to-br.from-blue-50,
.body-mother-adopt .bg-gradient-to-br.from-blue-50.to-purple-50 {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
}

.body-mother-adopt .hover\:from-blue-100:hover,
.body-mother-adopt .hover\:to-purple-100:hover {
  background: var(--soft) !important;
}

.body-mother-adopt .group-hover\:text-blue-600 {
  color: var(--zhusha) !important;
}

.body-mother-adopt .border-gray-300,
.body-mother-adopt .border-gray-200,
.body-mother-adopt .border-gray-800 {
  border-color: var(--line) !important;
}

.body-mother-adopt .shadow-sm,
.body-mother-adopt .shadow-lg,
.body-mother-adopt .shadow-md {
  box-shadow: var(--shadow) !important;
}

.body-mother-adopt .fixed.inset-0 {
  display: none !important;
}

.body-mother-adopt header.bg-white {
  background: color-mix(in srgb, var(--xuanzhi-card) 97%, #fff) !important;
}

.body-mother-adopt .site-brand-name {
  color: var(--daiqing) !important;
}

.body-mother-adopt header input[type="search"] {
  background: var(--xuanzhi-card) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.body-mother-adopt header .group-hover\:opacity-100,
.body-mother-adopt header .group-hover\:visible {
  background: var(--xuanzhi-card) !important;
  border: 1px solid var(--line);
}

.body-mother-adopt .lucide-play.text-blue-600,
.body-mother-adopt svg.text-blue-500,
.body-mother-adopt svg.text-blue-600 {
  color: var(--daiqing) !important;
}

.body-mother-adopt .bg-blue-100 {
  background: rgba(45, 74, 74, 0.08) !important;
  color: var(--daiqing) !important;
}

.body-mother-adopt .bg-red-500 {
  background: var(--zhusha) !important;
}

.body-mother-adopt .px-8.py-3.bg-white {
  background: var(--daiqing) !important;
  color: var(--xuanzhi) !important;
}

.body-mother-adopt .px-8.py-3.border-2.border-white {
  border-color: var(--line) !important;
  color: var(--daiqing) !important;
}

.body-mother-adopt .px-8.py-3.border-2.border-white:hover {
  background: rgba(45, 74, 74, 0.06) !important;
}

.body-mother-adopt .rounded-lg.shadow-sm.p-4,
.body-mother-adopt .rounded-lg.p-6 {
  background: var(--panel) !important;
  border: 1px solid var(--line);
}

.body-mother-adopt .px-3.py-1.bg-white {
  background: var(--xuanzhi-card) !important;
  border: 1px solid var(--line);
}

.body-mother-adopt .px-3.py-1.bg-white:hover {
  background: var(--soft) !important;
  color: var(--zhusha) !important;
}

.body-mother-adopt select {
  background: var(--xuanzhi-card) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.body-mother-adopt footer.bg-gray-900 {
  background: var(--daiqing) !important;
}

.body-mother-adopt footer.bg-gray-900 .text-gray-300,
.body-mother-adopt footer.bg-gray-900 .text-gray-400,
.body-mother-adopt footer.bg-gray-900 .text-gray-500 {
  color: rgba(250, 248, 244, 0.78) !important;
}

.body-mother-adopt footer.bg-gray-900 h3 {
  color: rgba(250, 248, 244, 0.95) !important;
}

/* 网格内卡片适配 */
.grid .a2-play-rail__card,
.movie-grid .a2-play-rail__card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid .a2-play-rail__thumb,
.movie-grid .a2-play-rail__thumb {
  aspect-ratio: 3/4;
}

.grid .a2-play-rail__img,
.movie-grid .a2-play-rail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(45, 74, 74, 0.25);
  border-radius: 3px;
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .hero-section {
    min-height: 680px;
  }
  .detail-hero {
    grid-template-columns: 260px 1fr;
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
  .rank-list {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 58px;
    gap: 10px;
  }
  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 6px;
    background: var(--xuanzhi-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-search {
    margin-left: auto;
  }
  .nav-search input {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .page-main {
    padding: 20px 14px 44px;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    grid-template-columns: 1fr;
  }
  .seo-brand-block {
    padding: 16px 14px;
  }
  .a2-play__body {
    grid-template-columns: 1fr;
  }
  .a2-play__dock {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .a2-play__actions {
    justify-content: center;
  }
  .vod-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .vod-hero__brand-col {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
  .vod-hero__brand-mark {
    writing-mode: horizontal-tb;
    font-size: 22px;
  }
  .vod-hero__brand-sub {
    writing-mode: horizontal-tb;
  }
  .site-nav-desktop,
  .site-search-form {
    display: none;
  }
  .site-nav-toggle {
    display: block;
  }
  .brand-text {
    writing-mode: horizontal-tb;
    font-size: 18px;
    max-height: none;
  }
}

@media (max-width: 540px) {
  .movie-grid,
  .related-grid,
  .mother-cards {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-search-form input {
    width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
