/* 好片轩 · site-18 · harbor-cyan 港湾清爽皮肤 */
:root {
  --accent: #16425b;
  --accent-hover: #0d3b66;
  --accent-soft: rgba(22, 66, 91, 0.08);
  --cta: #e76f51;
  --cta-hover: #d65a3f;
  --cta-soft: rgba(231, 111, 81, 0.12);
  --bg: #eef4f6;
  --bg-deep: #dce8ec;
  --surface: #ffffff;
  --surface-2: #f5f9fa;
  --text: #1a2e3b;
  --text-muted: #5a7280;
  --text-dim: #8fa3ad;
  --border: rgba(22, 66, 91, 0.1);
  --border-accent: rgba(22, 66, 91, 0.2);
  --shadow: 0 4px 24px rgba(22, 66, 91, 0.08);
  --shadow-lg: 0 12px 40px rgba(22, 66, 91, 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body.body-mother-adopt,
.body-mother-adopt {
  min-height: 100vh;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.body-mother-adopt::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(22, 66, 91, 0.06), transparent 55%),
    linear-gradient(180deg, #f5f9fa 0%, var(--bg) 50%, var(--bg-deep) 100%);
}

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

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

/* ── 顶栏 · 搜索优先 ── */
.body-mother-adopt header.sticky,
.body-mother-adopt .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 2px 16px rgba(22, 66, 91, 0.06) !important;
  backdrop-filter: blur(12px);
}

.body-mother-adopt .header-top {
  min-height: 3.75rem;
}

.body-mother-adopt header .brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.body-mother-adopt header a[href*="index"] span.font-bold,
.body-mother-adopt .brand-text {
  color: var(--accent) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.body-mother-adopt .header-search {
  flex: 1 1 16rem;
  max-width: 36rem;
  margin: 0 auto;
}

.body-mother-adopt .header-search input[type="search"] {
  width: 100% !important;
  padding: 0.625rem 1rem 0.625rem 2.5rem !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  color: var(--text) !important;
  font-size: 0.9375rem;
}

.body-mother-adopt .header-search input[type="search"]:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
  outline: none;
}

.body-mother-adopt .header-search input[type="search"]::placeholder {
  color: var(--text-dim);
}

.body-mother-adopt .header-search svg {
  color: var(--text-dim) !important;
}

.body-mother-adopt .header-nav {
  border-top: 1px solid var(--border);
  padding-top: 0.375rem;
}

.body-mother-adopt header nav a {
  color: var(--text-muted) !important;
  border-radius: var(--radius);
}

.body-mother-adopt header nav a:hover,
.body-mother-adopt header nav a[aria-current="page"] {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.body-mother-adopt header input[type="search"] {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.body-mother-adopt header input[type="search"]::placeholder {
  color: var(--text-dim);
}

.body-mother-adopt [data-mobile-menu] {
  background: var(--surface) !important;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.body-mother-adopt [data-mobile-menu].open {
  display: flex !important;
}

.body-mother-adopt .mobile-search {
  padding: 0.75rem 0.5rem 0.5rem;
}

.body-mother-adopt .mobile-search input[type="search"] {
  width: 100% !important;
  padding: 0.625rem 1rem 0.625rem 2.5rem !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text) !important;
}

/* ── Tailwind 色板覆写（浅色 harbor-cyan） ── */
.body-mother-adopt .bg-white { background-color: var(--surface) !important; }
.body-mother-adopt .bg-gray-50 { background-color: var(--bg) !important; }
.body-mother-adopt .bg-gray-100 { background-color: var(--surface-2) !important; }
.body-mother-adopt .bg-gray-700 { background-color: #5a7280 !important; }
.body-mother-adopt .bg-gray-900 { background-color: var(--accent) !important; }
.body-mother-adopt .bg-blue-50 { background-color: var(--accent-soft) !important; }
.body-mother-adopt .bg-blue-600 { background-color: var(--accent) !important; }

.body-mother-adopt .text-gray-900,
.body-mother-adopt .text-gray-800,
.body-mother-adopt .text-gray-700 { color: var(--text) !important; }
.body-mother-adopt .text-gray-600,
.body-mother-adopt .text-gray-500 { color: var(--text-muted) !important; }
.body-mother-adopt .text-gray-400,
.body-mother-adopt .text-gray-300 { color: var(--text-dim) !important; }
.body-mother-adopt .text-blue-600,
.body-mother-adopt .text-blue-400 { color: var(--accent) !important; }
.body-mother-adopt .text-blue-100 { color: rgba(255, 255, 255, 0.88) !important; }
.body-mother-adopt .text-white { color: #fff !important; }

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

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

.body-mother-adopt .from-blue-600,
.body-mother-adopt .from-purple-600,
.body-mother-adopt .to-purple-600,
.body-mother-adopt .to-blue-600 {
  background-image: none !important;
}

.body-mother-adopt .bg-gradient-to-r.from-blue-600.to-purple-600,
.body-mother-adopt .bg-gradient-to-r.from-purple-600.to-blue-600,
.body-mother-adopt .hero-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #1a5276 100%) !important;
}

.body-mother-adopt .hover\:bg-gray-100:hover,
.body-mother-adopt .hover\:bg-gray-50:hover,
.body-mother-adopt .hover\:bg-gray-200:hover {
  background-color: var(--surface-2) !important;
}

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

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

/* ── 首页 Hero ── */
.body-mother-adopt .hero-banner {
  position: relative;
  overflow: hidden;
}

.body-mother-adopt .hero-banner h1 {
  text-shadow: none;
  letter-spacing: -0.02em;
}

.body-mother-adopt .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.875rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.body-mother-adopt .hero-cta-primary {
  background: var(--cta) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: none;
}

.body-mother-adopt .hero-cta-primary:hover {
  background: var(--cta-hover) !important;
  color: #fff !important;
}

.body-mother-adopt .hero-cta-ghost {
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
  color: #fff !important;
  border-radius: var(--radius-lg);
  background: transparent !important;
}

.body-mother-adopt .hero-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* ── 分类快捷入口 ── */
.body-mother-adopt .category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.body-mother-adopt .category-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.body-mother-adopt .category-chip__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.body-mother-adopt .category-chip h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.body-mother-adopt .section-vod {
  padding: 3rem 0;
}

.body-mother-adopt .section-vod--alt {
  background: var(--surface);
}

.body-mother-adopt .section-vod__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.body-mother-adopt .section-vod__head h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
}

.body-mother-adopt .section-vod__icon {
  color: var(--cta);
  flex-shrink: 0;
}

.body-mother-adopt .vod-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .body-mother-adopt .vod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .body-mother-adopt .vod-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* ── 视频卡片 ── */
.body-mother-adopt .video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.body-mother-adopt .video-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.body-mother-adopt .video-card h3 a:hover {
  color: var(--accent) !important;
}

.body-mother-adopt .video-card .play-btn {
  background: rgba(255, 255, 255, 0.95) !important;
}

.body-mother-adopt .video-card .play-btn svg {
  color: var(--cta) !important;
}

.body-mother-adopt .video-card.card-compact {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.body-mother-adopt .video-card.card-compact > .relative {
  flex-shrink: 0;
}

.body-mother-adopt .tag-row span,
.body-mother-adopt .tag-row a {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border-accent);
}

.body-mother-adopt .player-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.body-mother-adopt .player-meta-card {
  border: 1px solid var(--border);
}

.body-mother-adopt .mother-play-desc {
  max-width: 80rem;
  margin: 1.5rem auto;
  padding: 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.body-mother-adopt .mother-related {
  max-width: 80rem;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.body-mother-adopt .mother-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--cta);
}

.body-mother-adopt .mother-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── 分页 ── */
.body-mother-adopt .category-pagination__inner {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.body-mother-adopt .category-pagination__info strong {
  color: var(--text) !important;
}

.body-mother-adopt .category-pagination__btn {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.body-mother-adopt .category-pagination__btn:hover:not(:disabled) {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}

.body-mother-adopt .category-pagination__btn--active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* ── 骨架页（search/rank/categories） ── */
.page-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}

.page-hero,
.compact-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 2.75rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-hero h1,
.compact-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.page-hero p,
.compact-hero p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 36rem;
}

.eyebrow span,
.eyebrow.solo {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.875rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid var(--border-accent);
}

.section-block {
  margin-bottom: 3rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
}

.section-head a {
  color: var(--cta);
  font-weight: 700;
  font-size: 0.875rem;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--cta-soft);
  color: var(--cta);
  font-weight: 800;
}

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

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

.category-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-tile,
.overview-card {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.category-tile strong,
.overview-main strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.category-tile span,
.overview-main span {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.875rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.875rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  font-weight: 500;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.empty-state {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.rank-panel {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ── 页脚 ── */
.body-mother-adopt footer {
  background: var(--accent) !important;
  border-top: none !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.body-mother-adopt footer h3 {
  color: #fff !important;
}

.body-mother-adopt footer a {
  color: rgba(255, 255, 255, 0.78) !important;
}

.body-mother-adopt footer a:hover {
  color: #fff !important;
}

.body-mother-adopt footer .text-gray-300 {
  color: rgba(255, 255, 255, 0.78) !important;
}

.body-mother-adopt footer .brand-text {
  color: #fff !important;
}

.body-mother-adopt footer .brand-mark {
  background: rgba(255, 255, 255, 0.2);
}

.body-mother-adopt footer .border-gray-800 {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ── 滚动条 ── */
.body-mother-adopt ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.body-mother-adopt ::-webkit-scrollbar-track {
  background: var(--bg);
}

.body-mother-adopt ::-webkit-scrollbar-thumb {
  background: #b8cdd6;
  border-radius: 4px;
}

.body-mother-adopt ::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── 移动端 ── */
@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .body-mother-adopt .header-top {
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0.625rem 0;
    min-height: auto;
  }

  .body-mother-adopt .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-hero,
  .compact-hero {
    padding: 2rem 1.25rem;
  }

  .body-mother-adopt .hero-banner {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .body-mother-adopt .hero-banner h1 {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 540px) {
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .body-mother-adopt .vod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

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