/* 蜜桃视频 MITAO VIDEO - 全站样式 */
:root {
  --bg-main: #FFF5F8;
  --bg-deep: #FFEBF1;
  --bg-content: #FFFFFF;
  --bg-secondary: #FFF0F5;
  --bg-hover: #FFE4EC;
  --text-title: #2D1B24;
  --text-body: #3D2A32;
  --text-secondary: #6B4E58;
  --text-assist: #9A7A85;
  --brand: #FF6B9D;
  --brand-light: #FF8FAB;
  --peach: #FFB3C6;
  --peach-light: #FFD6E3;
  --border: rgba(255, 107, 157, 0.15);
  --border-strong: rgba(255, 107, 157, 0.35);
  --shadow: 0 12px 36px rgba(255, 107, 157, 0.12);
  --shadow-pink: 0 10px 28px rgba(255, 107, 157, 0.18);
  --footer-bg: #2D1B24;
  --footer-text: #FFD6E3;
  --nav-height: 72px;
  --max-width: 1280px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

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

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.55rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-body);
}

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 245, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text-title);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-logo:hover {
  color: var(--brand);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  position: relative;
}

.desktop-nav a:hover {
  color: var(--brand);
  background: var(--bg-hover);
}

.desktop-nav a.active {
  color: var(--brand);
  background: var(--bg-hover);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--bg-hover);
  color: var(--brand);
}

.nav-btn-app {
  background: linear-gradient(135deg, #FF8FAB 0%, #FF6B9D 100%);
  color: #FFFFFF !important;
  border: none;
  padding: 0 18px;
  box-shadow: var(--shadow-pink);
}

.nav-btn-app:hover {
  filter: brightness(1.05);
  color: #FFFFFF !important;
  box-shadow: 0 12px 32px rgba(255, 107, 157, 0.28);
}

.nav-btn-search,
.nav-btn-panel {
  border: 1px solid var(--border);
}

.mobile-menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  color: var(--text-title);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mobile-brand {
  display: none;
  flex: 1;
  justify-content: center;
}

/* ========== 主内容区 ========== */
main {
  min-height: calc(100vh - var(--nav-height) - 200px);
  padding-bottom: 40px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 680px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #FF8FAB 0%, #FF6B9D 100%);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(255, 107, 157, 0.3);
  color: #FFFFFF !important;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 107, 157, 0.4);
  color: var(--brand) !important;
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--brand);
  color: var(--brand) !important;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

/* ========== 卡片通用 ========== */
.card {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-pink);
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-title);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tag-strong {
  background: linear-gradient(135deg, #FF8FAB 0%, #FF6B9D 100%);
  color: #FFFFFF;
}

/* ========== 首页首屏 ========== */
.hero {
  padding: 40px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.hero-fallback {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(145deg, #FFE4EC 0%, #FFD6E3 40%, #FFB3C6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.hero-fallback-title {
  font-size: 2rem;
  color: var(--text-title);
  margin-bottom: 12px;
}

.hero-fallback-sub {
  color: var(--text-secondary);
  max-width: 320px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.hero-brand {
  font-size: 0.9rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.hero-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-list li:last-child {
  border-bottom: none;
}

.hero-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ========== 频道快捷条 ========== */
.channel-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 8px;
}

.channel-bar-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 4px;
}

.channel-bar-inner::-webkit-scrollbar {
  display: none;
}

.channel-bar a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-content);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.channel-bar a:hover,
.channel-bar a.active {
  color: var(--brand);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

/* ========== 今日灵感胶囊 ========== */
.inspire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.inspire-item {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: all 0.2s ease;
}

.inspire-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--bg-hover);
}

.inspire-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-title);
}

.inspire-item p {
  font-size: 0.85rem;
  color: var(--text-assist);
  margin: 0;
  line-height: 1.5;
}

/* ========== 热议主推 + 列表 ========== */
.buzz-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.buzz-feature {
  background: var(--bg-content);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.buzz-feature-img {
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  overflow: hidden;
}

.buzz-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buzz-feature-body {
  padding: 24px;
}

.buzz-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buzz-side-item {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.buzz-side-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.buzz-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 28px;
}

/* ========== 横向轨道 ========== */
.track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--peach) transparent;
}

.track::-webkit-scrollbar {
  height: 6px;
}

.track::-webkit-scrollbar-thumb {
  background: var(--peach);
  border-radius: 3px;
}

.track-card {
  flex: 0 0 260px;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.track-card h4 {
  margin-bottom: 8px;
}

.track-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ========== 电影精选 ========== */
.cinema-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.cinema-main {
  background: var(--bg-content);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cinema-main-img {
  aspect-ratio: 21/9;
  background: var(--bg-deep);
}

.cinema-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-main-body {
  padding: 28px;
}

.cinema-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cinema-type {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.2s ease;
}

.cinema-type:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

/* ========== 短片编号目录 ========== */
.micro-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.micro-item {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: all 0.2s ease;
}

.micro-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.micro-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--peach);
  line-height: 1;
  margin-bottom: 10px;
}

/* ========== 剧集观察 ========== */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.drama-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.2s ease;
}

.drama-card:hover {
  background: var(--bg-hover);
  box-shadow: var(--shadow);
}

/* ========== 幕后杂志排版 ========== */
.mag-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.mag-item {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.mag-item.wide {
  grid-column: 1 / -1;
}

/* ========== 片单收藏册 ========== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.collection-card {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: all 0.2s ease;
}

.collection-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  box-shadow: var(--shadow);
}

.collection-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ========== 榜单编号 ========== */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all 0.2s ease;
}

.rank-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.rank-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  min-width: 40px;
  line-height: 1.2;
}

/* ========== 时间轨道 ========== */
.timeline {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.timeline-item {
  flex: 0 0 240px;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.timeline-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  background: var(--bg-secondary);
  color: var(--brand);
}

/* ========== 观点列表 ========== */
.critique-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.critique-item {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.critique-label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ========== 探索发现 ========== */
.find-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.find-card {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.2s ease;
}

.find-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* ========== APP 区域 ========== */
.app-section {
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  border: 1px solid var(--border);
}

.app-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-content);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-visual img {
  max-height: 320px;
  width: auto;
  margin: 0 auto;
}

.app-fallback {
  width: 100%;
  height: 280px;
  background: linear-gradient(160deg, #FFD6E3, #FFB3C6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
}

/* ========== 双栏版权分级 ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 32px;
  margin-top: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-brand-en {
  font-size: 0.85rem;
  color: var(--peach-light);
  letter-spacing: 0.1em;
}

.footer-desc {
  color: var(--peach-light);
  font-size: 0.9rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--peach-light);
  font-size: 0.88rem;
  padding: 5px 0;
  opacity: 0.85;
}

.footer-col a:hover {
  color: #FFFFFF;
  opacity: 1;
}

.footer-note {
  border-top: 1px solid rgba(255, 214, 227, 0.15);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--peach-light);
  line-height: 1.7;
  opacity: 0.8;
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--peach-light);
  opacity: 0.7;
}

/* ========== 频道面板 ========== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 27, 36, 0.45);
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.channel-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  max-width: 88vw;
  height: 100%;
  background: var(--bg-content);
  z-index: 2100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(255, 107, 157, 0.15);
}

.channel-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-header .brand-logo {
  font-size: 1.1rem;
}

.panel-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 40px;
  -webkit-overflow-scrolling: touch;
}

.panel-group {
  margin-bottom: 28px;
}

.panel-group-title {
  font-size: 0.8rem;
  color: var(--text-assist);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  font-weight: 600;
}

.panel-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.panel-link:last-child {
  border-bottom: none;
}

.panel-link-name {
  font-weight: 600;
  color: var(--text-title);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.panel-link-desc {
  font-size: 0.82rem;
  color: var(--text-assist);
  line-height: 1.5;
}

.panel-link:hover .panel-link-name {
  color: var(--brand);
}

/* ========== 搜索面板 ========== */
.search-panel {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-content);
  z-index: 1900;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.25s ease;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.search-panel.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.search-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 36px;
}

.search-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0 20px;
  font-size: 1rem;
  background: var(--bg-main);
  color: var(--text-title);
  outline: none;
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

.search-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-title);
}

.search-section-title {
  font-size: 0.85rem;
  color: var(--text-assist);
  margin-bottom: 12px;
  font-weight: 600;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.search-tags a,
.search-tags button {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
}

.search-tags a:hover,
.search-tags button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-hover);
}

.search-results {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.search-results.show {
  display: flex;
}

.search-result-item {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.search-result-item a {
  color: var(--text-title);
  font-weight: 500;
}

.search-result-item a:hover {
  color: var(--brand);
}

/* ========== 手机底部导航 ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 245, 248, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--text-assist);
  font-size: 0.7rem;
  gap: 2px;
  padding: 6px 0;
}

.mobile-bottom-nav a span.icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-bottom-nav a.active {
  color: var(--brand);
  font-weight: 600;
}

/* ========== 页面通用内页头 ========== */
.page-hero {
  padding: 40px 0 28px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-hero-desc {
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-assist);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-assist);
}

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

/* ========== FAQ ========== */
.faq-list details {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-title);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--brand);
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 16px 20px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== 内容块 ========== */
.content-block {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.content-block h2 {
  margin-bottom: 14px;
}

.content-block h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin-bottom: 1.2rem;
}

/* ========== 图片占位 ========== */
.img-placeholder {
  background: linear-gradient(145deg, #FFE4EC 0%, #FFD6E3 50%, #FFB3C6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  font-weight: 600;
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  min-height: 160px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .buzz-main {
    grid-template-columns: 1fr;
  }
  .cinema-layout {
    grid-template-columns: 1fr;
  }
  .mag-grid {
    grid-template-columns: 1fr;
  }
  .inspire-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .micro-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .drama-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .find-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-section {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-btn-search,
  .nav-btn-panel,
  .nav-btn-collection {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-brand {
    display: flex;
  }

  .nav-left {
    gap: 0;
  }

  .brand-logo.desktop-only {
    display: none;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 36px 0;
  }

  .inspire-grid,
  .micro-list,
  .drama-grid,
  .collection-grid,
  .find-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  main {
    padding-bottom: 80px;
  }

  .site-footer {
    margin-bottom: 56px;
  }

  .container {
    padding: 0 16px;
  }

  .page-hero {
    padding: 28px 0 20px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .app-section {
    padding: 28px 20px;
  }

  .search-panel {
    top: 0;
    height: 100%;
    max-height: 100%;
  }

  .channel-panel {
    width: 88vw;
  }
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-fallback-title {
    font-size: 1.5rem;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* 工具类 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
