/* 钴蓝胶片主题 · 全站差异化覆盖（首页 / 分类 / 列表 / 详情 / 页脚） */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap');

:root {
  --ink: #152033;
  --ink-soft: #2c3a52;
  --paper: #e8ecf3;
  --paper-2: #f4f6fa;
  --surface: #ffffff;
  --cobalt: #1d4f91;
  --cobalt-deep: #143668;
  --cobalt-soft: #d9e4f5;
  --ember: #e85d04;
  --ember-soft: #ffe0cc;
  --line: #c5cedd;
  --muted: #5a6a82;
  --radius: 6px;
  --header-h: 4rem;
  --font-display: 'ZCOOL XiaoWei', 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow-lift: 0 10px 28px rgba(21, 32, 51, 0.12);
}

/* —— 基础 —— */
html,
body,
#root {
  font-family: var(--font-body);
  background:
    repeating-linear-gradient(
      -32deg,
      transparent 0 22px,
      rgba(29, 79, 145, 0.035) 22px 23px
    ),
    radial-gradient(1100px 520px at 0% -8%, rgba(29, 79, 145, 0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(232, 93, 4, 0.07), transparent 50%),
    linear-gradient(180deg, #f0f3f8 0%, var(--paper) 42%, #dde3ee 100%) !important;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

#root > .min-h-screen.bg-gray-50,
#root .min-h-screen.bg-gray-50,
#main-content.min-h-screen,
#main-content.bg-gray-50 {
  background: transparent !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  background: var(--surface);
  color: var(--cobalt-deep);
  border-radius: var(--radius);
  border: 2px solid var(--cobalt);
  box-shadow: var(--shadow-lift);
  font-weight: 700;
  text-decoration: none;
}

/* —— 配色类名映射（去粉紫） —— */
#root .text-pink-500,
#root .text-pink-600,
#root .hover\:text-pink-500:hover,
#root .hover\:text-pink-600:hover,
#root .hover\:text-pink-700:hover,
#root .group:hover .group-hover\:text-pink-600 {
  color: var(--cobalt) !important;
}

#root .bg-pink-50,
#root .hover\:bg-pink-100:hover {
  background-color: var(--cobalt-soft) !important;
}

#root .bg-pink-600,
#root .hover\:bg-pink-700:hover,
#root .border-pink-600 {
  --tw-gradient-from: var(--cobalt) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: var(--cobalt-deep) var(--tw-gradient-to-position) !important;
  background-color: var(--cobalt) !important;
  border-color: var(--cobalt) !important;
}

/* 渐变停靠色：只改 CSS 变量，避免盖掉 Banner 的 background-image */
#root .from-pink-600 {
  --tw-gradient-from: var(--cobalt) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(29 79 145 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

#root .to-pink-600,
#root .to-purple-600 {
  --tw-gradient-to: var(--cobalt-deep) var(--tw-gradient-to-position) !important;
}

#root .focus\:ring-pink-500:focus {
  --tw-ring-color: rgba(29, 79, 145, 0.4) !important;
}

#root a.bg-pink-600:hover,
#root button.bg-pink-600:hover,
#root .hover\:bg-pink-700:hover {
  background-color: var(--cobalt-deep) !important;
}

#root a.border-pink-600 {
  border: 2px solid var(--cobalt) !important;
  color: var(--cobalt) !important;
  background: transparent !important;
  border-radius: var(--radius) !important;
}

#root a.border-pink-600:hover {
  background: var(--cobalt) !important;
  color: #fff !important;
}

/* —— 头部：浅色顶栏，不覆盖 Tailwind 响应式显隐 —— */
#root > .min-h-screen > header.sticky,
#root header.bg-white.shadow-lg {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line) !important;
  border-bottom: none;
  border-top: 3px solid var(--cobalt);
  height: auto;
}

#root header .max-w-7xl {
  width: 100%;
}

#root header .max-w-7xl > .flex.justify-between.items-center,
#root header .max-w-7xl > .flex.justify-between {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center !important;
  justify-content: stretch !important;
  flex-wrap: nowrap !important;
  gap: 0.85rem;
  min-height: var(--header-h);
  height: var(--header-h) !important;
}

#root header .h-16 {
  height: var(--header-h) !important;
  min-height: var(--header-h);
}

#root header a[aria-label] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  height: 2.25rem;
  padding: 0 0.7rem 0 0.45rem;
  background: var(--cobalt);
  border-radius: var(--radius);
  box-shadow: none;
  line-height: 1;
  flex: 0 0 auto;
  margin: 0;
  grid-column: 1;
  justify-self: start;
}

#root header a[aria-label].space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0 !important;
}

#root header a[aria-label] span,
#root header .text-xl.font-bold {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff !important;
  font-size: 1.05rem !important;
  line-height: 1;
}

#root header a[aria-label] span::after {
  display: none;
}

#root header svg.text-pink-500,
#root header a[aria-label] svg {
  color: #fff !important;
  stroke: currentColor;
  width: 1.15rem !important;
  height: 1.15rem !important;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}

/* 导航居中于中间栏，搜索固定右侧 */
#root header nav[aria-label='主导航'] {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 1 auto;
  justify-content: center;
  min-width: 0;
  grid-column: 2;
  justify-self: center;
  width: max-content;
  max-width: 100%;
}

#root header nav[aria-label='主导航'].space-x-8 > :not([hidden]) ~ :not([hidden]),
#root header nav[aria-label='主导航'] > * + * {
  margin-left: 0 !important;
}

#root header nav a {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--ink-soft) !important;
  border-bottom: none !important;
  border-radius: var(--radius);
  height: 2.25rem;
  padding: 0 0.75rem !important;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

#root header nav a:hover {
  color: var(--cobalt) !important;
  background: var(--cobalt-soft) !important;
}

#root header nav a[aria-current='page'],
#root header nav a.text-pink-600 {
  color: #fff !important;
  background: var(--cobalt) !important;
  box-shadow: none;
}

#root header form[role='search'] {
  align-items: center !important;
  flex: 0 0 auto;
  margin-left: 0 !important;
  height: 2.25rem;
  grid-column: 3;
  justify-self: end;
}

#root header form[role='search'] .relative {
  width: 13.5rem;
  max-width: 100%;
  height: 2.25rem;
}

#root header form[role='search'] input,
#root header input[type='search'] {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  color: var(--ink) !important;
  height: 2.25rem !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#root header form[role='search'] input:focus,
#root header input[type='search']:focus {
  border-color: var(--cobalt) !important;
  box-shadow: 0 0 0 3px rgba(29, 79, 145, 0.12);
  outline: none;
}

#root header form[role='search'] input::placeholder,
#root header input[type='search']::placeholder {
  color: var(--muted) !important;
}

#root header form[role='search'] svg {
  color: var(--cobalt) !important;
  top: 50% !important;
  transform: translateY(-50%);
}

#root header button[data-menu-toggle],
#root header button.md\:hidden {
  color: var(--cobalt) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  margin-left: 0;
  grid-column: 3;
  justify-self: end;
}

/* 恢复响应式：桌面隐藏汉堡，手机隐藏主导航 */
@media (min-width: 768px) {
  #root header button[data-menu-toggle],
  #root header button.md\:hidden {
    display: none !important;
  }

  #root header nav[aria-label='主导航'] {
    display: flex !important;
  }

  #root header form.hidden.sm\:flex[role='search'],
  #root header form[role='search'].hidden.sm\:flex {
    display: flex !important;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  #root header form[role='search'] .relative {
    width: 10.5rem;
  }

  #root header nav a {
    padding: 0 0.55rem !important;
  }

  #root header a[aria-label] span {
    font-size: 0.95rem !important;
  }

  #root header .max-w-7xl > .flex.justify-between {
    gap: 0.55rem;
  }
}

@media (max-width: 767px) {
  #root header nav[aria-label='主导航'] {
    display: none !important;
  }

  #root header button[data-menu-toggle],
  #root header button.md\:hidden {
    display: inline-flex !important;
  }

  #root header form.hidden.sm\:flex[role='search'],
  #root header form[role='search'].hidden.sm\:flex {
    display: none !important;
  }
}

#root header [data-mobile-panel] {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem !important;
  box-shadow: var(--shadow-lift);
}

#root header [data-mobile-panel].open {
  display: block;
}

#root header [data-mobile-panel] a {
  color: var(--ink-soft) !important;
  border-radius: var(--radius) !important;
}

#root header [data-mobile-panel] a.text-pink-600,
#root header [data-mobile-panel] a.bg-pink-50 {
  background: var(--cobalt) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--ember);
}

#root header [data-mobile-panel] input[type='search'] {
  background: var(--paper-2) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
  border-radius: var(--radius) !important;
  width: 100% !important;
}

/* —— Hero：居中构图，与内容区对齐 —— */
#root > .min-h-screen > section.relative.min-h-\[72vh\],
#root section.relative.min-h-\[72vh\],
#root section.relative.md\:min-h-screen {
  min-height: 58vh !important;
  align-items: center !important;
  justify-content: center !important;
  padding-bottom: 0 !important;
}

@media (min-width: 768px) {
  #root > .min-h-screen > section.relative.min-h-\[72vh\],
  #root section.relative.min-h-\[72vh\],
  #root section.relative.md\:min-h-screen {
    min-height: 64vh !important;
  }
}

#root section.relative .absolute.inset-0.bg-gradient-to-r,
#root section.relative .from-pink-600\/20 {
  background: linear-gradient(
    160deg,
    rgba(15, 28, 48, 0.72) 0%,
    rgba(29, 79, 145, 0.4) 45%,
    rgba(21, 32, 51, 0.55) 100%
  ) !important;
}

#root section.relative .absolute.inset-0.bg-black\/30 {
  background: rgba(12, 22, 40, 0.28) !important;
}

#root section.relative .relative.z-10 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 48rem !important;
  width: 100%;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  animation: theme-rise 0.7s ease-out both;
}

#root section.relative .relative.z-10 h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  font-size: clamp(1.85rem, 4.2vw, 3rem) !important;
  margin-bottom: 1rem !important;
}

#root section.relative .relative.z-10 h1::before {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0 auto 1rem;
  background: var(--ember);
  border-radius: 2px;
}

#root section.relative .relative.z-10 p {
  max-width: 36rem;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.6;
}

#root section.relative .hero-actions-stack {
  gap: 0.75rem !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
}

#root section.relative .hero-actions-stack a,
#root section.relative a.bg-pink-600,
#root section.relative a.bg-white\/20 {
  border-radius: var(--radius) !important;
  letter-spacing: 0.02em;
  font-weight: 700 !important;
  box-shadow: none !important;
  min-width: 8.5rem;
  justify-content: center !important;
}

#root section.relative a.bg-pink-600 {
  background: var(--ember) !important;
}

#root section.relative a.bg-pink-600:hover {
  background: #c44e03 !important;
}

#root section.relative a.bg-white\/20 {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
}

#root section.relative a.bg-white\/20:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* 去掉胶片齿孔，改为干净底边 */
#root > .min-h-screen > section.relative.min-h-\[72vh\]::after,
#root section.relative.md\:min-h-screen::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 12;
  pointer-events: none;
  background: var(--cobalt);
  opacity: 1;
}

/* —— 数据条 —— */
#root > .min-h-screen > section.py-16.bg-white {
  background: var(--paper-2) !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  border-bottom: 1px solid var(--line);
}

#root > .min-h-screen > section.py-16.bg-white .grid {
  gap: 1rem !important;
  border: none;
  background: transparent;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

#root > .min-h-screen > section.py-16.bg-white .grid > div {
  padding: 0.85rem 0.75rem 1rem;
  border-right: none;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#root > .min-h-screen > section.py-16.bg-white .grid > div::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.25rem;
  height: 2px;
  transform: translateX(-50%);
  background: var(--cobalt);
}

#root > .min-h-screen > section.py-16.bg-white .text-4xl {
  font-family: var(--font-display);
  color: var(--cobalt-deep) !important;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 0.35rem !important;
}

#root > .min-h-screen > section.py-16.bg-white .text-gray-600 {
  color: var(--muted) !important;
  letter-spacing: 0;
  margin-top: 0;
}

/* —— 中部区块标题 —— */
#main-content section .text-center.mb-12 h2,
#root main section .text-center h2,
#root #main-content h2.text-3xl,
#root #main-content h2.md\:text-4xl {
  font-family: var(--font-display);
  color: var(--ink) !important;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
}

#main-content section .text-center.mb-12 h2::before,
#root main section .text-center h2::before {
  content: none;
  display: none;
}

#main-content section .text-center.mb-12 h2::after,
#root main section .text-center h2::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.75rem auto 0;
  background: var(--ember);
  border-radius: 2px;
}

#root #main-content .text-gray-600.text-lg {
  color: var(--muted) !important;
}

#root #main-content > section.py-16.bg-white,
#root main section.py-16.bg-white {
  background: var(--paper-2) !important;
}

/* 仅让普通内容区透底；勿伤到分类/列表顶栏渐变 Banner */
#root #main-content > section.py-16:not(.bg-white):not(.bg-gradient-to-r):not(.from-pink-600) {
  background: transparent !important;
}

/* —— 分类大卡：票根直角 + 顶橙条 —— */
#root #main-content a.group.relative.block.overflow-hidden.rounded-lg,
#root a.group.relative.block.rounded-lg.shadow-md {
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  outline: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#root #main-content a.group.relative.block.overflow-hidden.rounded-lg:hover,
#root a.group.relative.block.rounded-lg.shadow-md:hover {
  transform: translateY(-3px);
  border-color: var(--cobalt);
  border-top-color: var(--ember);
  box-shadow: var(--shadow-lift) !important;
}

#root #main-content a.group.relative.block .absolute.bottom-0 {
  background: linear-gradient(
    0deg,
    rgba(15, 28, 48, 0.92) 0%,
    rgba(15, 28, 48, 0.35) 70%,
    transparent 100%
  );
  border-top: none;
  padding: 1.25rem 1.25rem 1.1rem !important;
}

#root #main-content a.group.relative.block .absolute.bottom-0 h3 {
  margin-bottom: 0.35rem !important;
  line-height: 1.3;
}

#root #main-content a.group.relative.block .absolute.bottom-0 p {
  margin-bottom: 0.35rem !important;
  line-height: 1.4;
}

#root #main-content a.group.relative.block h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* —— 作品卡片：上图下字票根风 —— */
#root article.group.bg-white.rounded-lg.shadow-md,
#root #main-content article.group {
  background: var(--surface) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  border: 1px solid var(--line);
  border-left: none;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#root article.group.bg-white.rounded-lg.shadow-md::before,
#root #main-content article.group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cobalt);
  z-index: 2;
}

#root article.group.bg-white.rounded-lg.shadow-md:hover,
#root #main-content article.group:hover {
  border-color: var(--cobalt);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift) !important;
}

#root article.group .aspect-\[3\/4\] {
  border-bottom: 1px solid var(--line);
}

#root article.group .aspect-\[3\/4\] img,
#root article.group .group-hover\:scale-105 {
  transition: transform 0.45s ease, filter 0.3s ease !important;
}

#root article.group:hover img {
  transform: scale(1.05);
  filter: saturate(1.06) contrast(1.04);
}

#root article.group .p-4 {
  background: #fff;
  padding: 0.9rem 1rem 1rem !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#root article.group .p-4 h3 {
  font-family: var(--font-display);
  font-size: 1rem !important;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 0.4rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

#root article.group .p-4 > p {
  line-height: 1.5;
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#root article.group .text-xs.text-pink-600 {
  color: var(--cobalt-deep) !important;
  background: var(--cobalt-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-right: 0.15rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.15rem;
}

#root article.group .flex.justify-between.items-center.mt-3 {
  margin-top: auto !important;
  padding-top: 0.65rem;
  align-items: center;
}

/* —— 分类 / 列表页顶栏 Banner —— */
#root #main-content > section.bg-gradient-to-r,
#root section.bg-gradient-to-r.from-pink-600.to-purple-600,
#root section.from-pink-600.to-purple-600,
#root main section.bg-gradient-to-r {
  background-color: var(--cobalt-deep) !important;
  background-image: linear-gradient(105deg, var(--cobalt-deep) 0%, var(--cobalt) 100%) !important;
  position: relative;
  overflow: hidden;
  clip-path: none;
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
  border-bottom: 3px solid var(--ember);
  color: #fff !important;
}

#root section.bg-gradient-to-r::before,
#root main section.bg-gradient-to-r::before {
  content: none;
  display: none;
}

#root section.bg-gradient-to-r::after,
#root main section.bg-gradient-to-r::after {
  content: none;
  display: none;
}

#root section.bg-gradient-to-r h1,
#root main section.bg-gradient-to-r h1 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  position: relative;
}

#root section.bg-gradient-to-r .text-center,
#root main section.bg-gradient-to-r .text-center {
  text-align: center !important;
  max-width: none;
}

/* sticky 顶栏已占文档流高度，去掉模板遗留的 pt-16 双倍空白 */
#root #main-content.pt-16 {
  padding-top: 0 !important;
}

#root #main-content.min-h-screen {
  min-height: 0 !important;
}

#root #main-content .grid,
#root main .grid {
  align-items: stretch;
}

#root #main-content .grid.gap-6,
#root #main-content .grid.gap-8 {
  gap: 1.25rem !important;
}

#root #main-content .grid > *,
#root main .grid > * {
  min-width: 0;
}

#root #main-content .max-w-7xl,
#root header .max-w-7xl,
#root footer .max-w-7xl {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* —— 详情 / 播放 / 搜索 / 关于等通用面 —— */
#root #player,
#root #main-content #player {
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  border-radius: 0 !important;
  overflow: hidden;
  background: #0c1422;
}

#root .bg-pink-50.text-pink-600,
#root span.bg-pink-50,
#root .rounded-full.bg-pink-50 {
  background: var(--cobalt-soft) !important;
  color: var(--cobalt-deep) !important;
  border-radius: 2px !important;
}

#root #main-content .max-w-3xl,
#root #main-content .max-w-2xl,
#root #main-content article.prose,
#root #main-content .bg-white.rounded-lg {
  border-radius: var(--radius) !important;
}

#root form input,
#root form textarea,
#root form select {
  border-radius: var(--radius) !important;
}

#root form button[type='submit'],
#root button.bg-pink-600 {
  background: var(--cobalt) !important;
  border-radius: var(--radius) !important;
}

#root form button[type='submit']:hover,
#root button.bg-pink-600:hover {
  background: var(--cobalt-deep) !important;
}

/* 404 大数字 */
#root .text-pink-600.text-9xl,
#root h1.text-pink-600 {
  color: var(--cobalt) !important;
  font-family: var(--font-display);
}

/* —— 页脚：深蓝分栏 + 橙顶线 —— */
#root footer.bg-gray-900,
#root footer.text-white.mt-16 {
  background:
    linear-gradient(180deg, #1a2740 0%, #101a2c 48%, #0b1220 100%) !important;
  border-top: none;
  margin-top: 4.5rem !important;
  position: relative;
}

#root footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cobalt);
  opacity: 1;
}

#root footer::after {
  content: none;
  display: none;
}

#root footer .text-xl.font-bold {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

#root footer svg.text-pink-500 {
  color: var(--ember) !important;
}

#root footer h3 {
  color: #e8eef8 !important;
  font-family: var(--font-display);
  font-size: 1rem !important;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem !important;
}

#root footer .flex.items-center.space-x-2.mb-4 {
  align-items: center !important;
  gap: 0.5rem;
}

#root footer .flex.items-center.space-x-2.mb-4 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0 !important;
}

#root footer a:hover {
  color: var(--ember-soft) !important;
}

#root footer .border-gray-800 {
  border-color: rgba(197, 206, 221, 0.18) !important;
}

#root footer .text-gray-400 {
  color: rgba(210, 220, 235, 0.72) !important;
}

#root footer .grid {
  gap: 1.75rem !important;
  align-items: start;
}

#root footer .grid > div {
  min-width: 0;
}

#root footer .border-t.mt-8 {
  align-items: center !important;
}

/* —— 按钮统一 —— */
#root a.inline-flex.items-center.rounded-lg,
#root a.px-6.py-3.rounded-lg,
#root a.px-8.py-4.rounded-lg {
  border-radius: var(--radius) !important;
}

/* —— 动效 —— */
@keyframes theme-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#root #main-content section {
  animation: theme-rise 0.55s ease-out both;
}

#root #main-content section:nth-of-type(2) {
  animation-delay: 0.08s;
}

#root article.group {
  animation: theme-rise 0.5s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  #root section.relative .relative.z-10,
  #root #main-content section,
  #root article.group {
    animation: none !important;
  }
}

/* —— 移动端 —— */
@media (max-width: 767px) {
  header input[type='search'] {
    font-size: 16px;
  }

  #player video {
    max-height: 56vh;
    width: 100%;
    object-fit: contain;
  }

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

  .hero-actions-stack {
    width: 100%;
  }

  .hero-actions-stack a {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  #root header a[aria-label] {
    box-shadow: none;
    height: 2.1rem;
    padding: 0 0.55rem 0 0.35rem;
  }

  #root header a[aria-label] span {
    font-size: 0.92rem !important;
  }

  #root header button[data-menu-toggle],
  #root header button.md\:hidden {
    width: 2.1rem;
    height: 2.1rem;
  }

  #root > .min-h-screen > section.py-16.bg-white {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  #root > .min-h-screen > section.py-16.bg-white .grid {
    gap: 0.35rem !important;
  }

  #root > .min-h-screen > section.py-16.bg-white .grid > div {
    padding: 0.65rem 0.5rem 0.85rem;
  }

  #root > .min-h-screen > section.py-16.bg-white .grid > div::after {
    width: 2rem;
  }

  #root section.relative .relative.z-10 {
    text-align: center !important;
  }

  #root section.relative .hero-actions-stack a {
    min-width: 0;
  }

  #root section.bg-gradient-to-r .text-center,
  #root main section.bg-gradient-to-r .text-center {
    text-align: center !important;
  }

  #root #main-content > section.bg-gradient-to-r,
  #root section.bg-gradient-to-r.from-pink-600.to-purple-600 {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  .photo-grid-tight {
    grid-template-columns: 1fr;
  }
}

[data-mobile-panel] {
  display: none;
}

[data-mobile-panel].open {
  display: block;
}

/* ABABSEO — 钴蓝版 */
.ababseo-fly {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
  user-select: none;
}

.ababseo-fly__stage {
  position: relative;
  width: 52px;
  height: 52px;
}

.ababseo-fly__plane {
  width: 48px;
  height: 48px;
  transform-origin: 38% 52%;
  animation: ababseo-plane-fly 5.2s ease-in-out infinite;
  /* 原 SVG 粉紫渐变 → 贴合钴蓝主题 */
  filter: hue-rotate(248deg) saturate(0.78) brightness(0.92);
}

.ababseo-fly__trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ababseo-fly__trail i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, #9ebce8 0%, #1d4f91 55%, transparent 100%);
  opacity: 0;
  animation: ababseo-trail-spark 5.2s ease-in-out infinite;
}

.ababseo-fly__trail i:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 4px;
  top: 28px;
  animation-delay: 0.35s;
}

.ababseo-fly__trail i:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 0;
  top: 20px;
  animation-delay: 0.9s;
}

.ababseo-fly__trail i:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 10px;
  top: 34px;
  animation-delay: 1.45s;
}

.ababseo-fly__trail i:nth-child(4) {
  width: 2px;
  height: 2px;
  left: 16px;
  top: 26px;
  animation-delay: 2.1s;
}

.ababseo-fly__text {
  margin: 0;
  display: flex;
  gap: 0.14em;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(29, 79, 145, 0.3);
}

.ababseo-fly__text span {
  display: inline-block;
  background: linear-gradient(160deg, #8eb4e8 0%, #1d4f91 42%, #e85d04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ababseo-letter-float 5.2s ease-in-out infinite;
}

.ababseo-fly__text span:nth-child(1) {
  animation-delay: 0s;
}
.ababseo-fly__text span:nth-child(2) {
  animation-delay: 0.08s;
}
.ababseo-fly__text span:nth-child(3) {
  animation-delay: 0.16s;
}
.ababseo-fly__text span:nth-child(4) {
  animation-delay: 0.24s;
}
.ababseo-fly__text span:nth-child(5) {
  animation-delay: 0.32s;
}
.ababseo-fly__text span:nth-child(6) {
  animation-delay: 0.4s;
}
.ababseo-fly__text span:nth-child(7) {
  animation-delay: 0.48s;
}

@keyframes ababseo-plane-fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-12deg) scale(1);
  }
  20% {
    transform: translate(12px, -16px) rotate(-2deg) scale(1.06);
  }
  42% {
    transform: translate(22px, -6px) rotate(-18deg) scale(0.98);
  }
  64% {
    transform: translate(10px, -20px) rotate(-4deg) scale(1.04);
  }
  82% {
    transform: translate(3px, -8px) rotate(-10deg) scale(1);
  }
}

@keyframes ababseo-trail-spark {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  30% {
    opacity: 0.95;
    transform: translate(-10px, 6px) scale(1);
  }
  60% {
    opacity: 0;
    transform: translate(-20px, 14px) scale(0.3);
  }
}

@keyframes ababseo-letter-float {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-2px);
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-fly__plane,
  .ababseo-fly__trail i,
  .ababseo-fly__text span {
    animation: none;
  }
}

@media print {
  .ababseo-fly,
  .skip-link {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .ababseo-fly {
    left: auto;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: scale(0.82);
    transform-origin: right bottom;
    opacity: 0.55;
  }

  .ababseo-fly__plane {
    width: 34px;
    height: 34px;
  }
}
