/* 蘑菇视频 MOGU VIDEO - 全局样式 */
*, *::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", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
  background: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #E90052; text-decoration: none; transition: color 0.2s; }
a:hover { color: #C90046; }
a:focus-visible, button:focus-visible { outline: 2px solid #FF1765; outline-offset: 3px; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { color: #222222; font-weight: 700; line-height: 1.35; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* 颜色变量 */
:root {
  --pink: #FF1765;
  --pink-bright: #FF3D7D;
  --pink-rose: #E90052;
  --pink-deep: #C90046;
  --pink-light: #FFD8E6;
  --pink-soft: #FFF0F5;
  --bg-soft: #FFF7FA;
  --bg-gray: #F7F7F8;
  --text: #444444;
  --text-dark: #222222;
  --text-muted: #777777;
  --text-light: #999999;
  --border: rgba(255,23,101,0.12);
  --border-gray: rgba(0,0,0,0.08);
  --shadow: 0 14px 40px rgba(30,20,25,0.08);
  --shadow-pink: 0 16px 42px rgba(255,23,101,0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --max: 1280px;
  --header-h: 72px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gray);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--pink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand-logo img { height: 36px; width: auto; }
.brand-text { color: var(--pink); }
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 12px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover { background: var(--pink-soft); color: var(--pink); }
.nav-link.is-active {
  background: var(--pink-soft);
  color: var(--pink);
  box-shadow: inset 0 -2px 0 var(--pink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.search-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dark);
}
.search-btn:hover { background: var(--bg-gray); color: var(--pink); }
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-btn-ghost {
  color: var(--text-dark);
  border: 1px solid var(--border-gray);
}
.header-btn-ghost:hover { border-color: var(--pink); color: var(--pink); }
.header-btn-primary {
  background: linear-gradient(135deg, #FF4A86 0%, #FF1765 55%, #E90052 100%);
  color: #fff !important;
  box-shadow: var(--shadow-pink);
}
.header-btn-primary:hover { filter: brightness(1.05); color: #fff !important; }
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
}
.menu-bar {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: 0.2s;
}
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .desktop-nav { display: flex; }
}

/* 主内容区 */
#mainContent {
  min-height: 60vh;
  padding-bottom: 40px;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 48px 0;
}
.section-soft { background: var(--bg-soft); }
.section-gray { background: var(--bg-gray); }
.section-title {
  margin-bottom: 1.5rem;
}
.section-desc {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #FF4A86 0%, #FF1765 55%, #E90052 100%);
  color: #fff !important;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover { filter: brightness(1.06); color: #fff !important; }
.btn-secondary {
  background: #fff;
  color: var(--pink);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--pink-soft); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; }

/* 卡片 */
.card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.card:hover { box-shadow: var(--shadow-pink); border-color: var(--border); }
.card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--pink-soft);
  color: var(--pink);
  margin-bottom: 8px;
}

/* 首页首屏 */
.hero {
  padding: 32px 0 48px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #FFF0F5 0%, #FFD8E6 50%, #FFE4EC 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 16/10;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--pink);
}
.hero-placeholder .ph-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero-placeholder .ph-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.hero-intro {
  color: var(--text);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}
.hero-recs {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-rec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.hero-rec-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-rec strong { display: block; color: var(--text-dark); font-size: 0.95rem; }
.hero-rec span { font-size: 0.85rem; color: var(--text-muted); }

/* 频道快捷条 */
.channel-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-gray);
  background: #fff;
}
.channel-bar-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px;
}
.channel-bar-inner::-webkit-scrollbar { display: none; }
.channel-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-gray);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.channel-chip:hover, .channel-chip.is-active {
  border-color: var(--pink);
  background: var(--pink-soft);
  color: var(--pink);
}

/* 胶囊主题 */
.theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.theme-pill {
  display: inline-flex;
  flex-direction: column;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  max-width: 100%;
  transition: 0.2s;
}
.theme-pill:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow);
}
.theme-pill strong {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.theme-pill span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 网格布局 */
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 横向轨道 */
.track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.track-item {
  flex: 0 0 260px;
  max-width: 280px;
}
@media (min-width: 768px) {
  .track-item { flex-basis: 220px; }
}

/* 精选主推荐 */
.featured-main {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 800px) {
  .featured-main { grid-template-columns: 1.2fr 1fr; }
}
.featured-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pink-soft);
  min-height: 220px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-body .tag { margin-bottom: 10px; }
.featured-body h2 { margin-bottom: 12px; }
.featured-body p { color: var(--text); }

/* 编号列表 */
.num-list { counter-reset: item; }
.num-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-gray);
}
.num-item:last-child { border-bottom: none; }
.num-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF4A86, #E90052);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 片单卡片 */
.list-card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 20px;
  height: 100%;
}
.list-card h3 { margin-bottom: 8px; }
.list-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 12px; }

/* 时间轨道 */
.timeline {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.timeline-item {
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.timeline-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-gray);
  color: var(--text-muted);
  margin-bottom: 8px;
}
.timeline-status.done { background: var(--pink-soft); color: var(--pink); }

/* 杂志式 */
.magazine {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .magazine { grid-template-columns: 1.3fr 1fr; }
  .magazine .mag-wide { grid-column: 1 / -1; }
}

/* 页脚 */
.site-footer {
  background: #171717;
  color: #F4F4F4;
  padding: 56px 0 100px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-brand { margin-bottom: 36px; }
.footer-logo { display: inline-block; margin-bottom: 8px; }
.footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.brand-text-light { color: #fff; font-weight: 800; font-size: 1.2rem; }
.footer-en {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.footer-desc {
  max-width: 520px;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.65;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}
.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}
.footer-col a:hover { color: #FFD8E6; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-copy { margin-top: 12px; color: rgba(255,255,255,0.4); }

/* 手机底部导航 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--border-gray);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  color: var(--text-muted);
  font-size: 0.7rem;
  gap: 2px;
}
.bottom-item .bottom-icon { font-size: 1.15rem; line-height: 1; }
.bottom-item.is-active { color: var(--pink); font-weight: 600; }
@media (max-width: 959px) {
  .mobile-bottom-nav { display: flex; }
  .site-footer { padding-bottom: 90px; }
  .header-btn-ghost { display: none; }
}

/* 频道面板 */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,10,15,0.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s, visibility 0.28s;
}
.panel-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.channel-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 88vw);
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.channel-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-gray);
  flex-shrink: 0;
}
.panel-brand img { height: 28px; width: auto; }
.panel-close {
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.panel-close:hover { background: var(--bg-gray); color: var(--text-dark); }
.panel-body {
  overflow-y: auto;
  flex: 1;
  padding: 12px 20px 40px;
  -webkit-overflow-scrolling: touch;
}
.panel-group { margin-bottom: 28px; }
.panel-group h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 10px;
  padding-left: 4px;
}
.panel-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: 0.15s;
}
.panel-link:hover { background: var(--pink-soft); }
.panel-link strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.panel-link span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
body.panel-open { overflow: hidden; }

/* 搜索面板 */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: #fff;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
  overflow-y: auto;
}
.search-panel.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
@media (min-width: 768px) {
  .search-panel {
    top: var(--header-h);
    inset: var(--header-h) 0 0 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border-gray);
    max-height: calc(100vh - var(--header-h));
  }
}
.search-panel-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.search-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.search-panel-header h2 { font-size: 1.2rem; margin: 0; }
.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid var(--border-gray);
  border-radius: 999px;
  font-size: 1rem;
  background: var(--bg-gray);
  color: var(--text-dark);
}
.search-box input:focus {
  outline: none;
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,23,101,0.15);
}
.search-hot { margin: 24px 0; }
.search-hot h3, .search-results h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-gray);
  background: #fff;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.search-tag:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }
.search-list li { margin-bottom: 4px; }
.search-list a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.95rem;
}
.search-list a:hover { background: var(--pink-soft); color: var(--pink); }
body.search-open { overflow: hidden; }

/* 内页通用 */
.page-hero {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 0;
}
.content-block {
  padding: 32px 0;
}
.content-block + .content-block {
  border-top: 1px solid var(--border-gray);
}
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.9rem; }
.prose h3 { margin-top: 1.5rem; }

/* FAQ */
details {
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
}
summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--pink);
  font-weight: 400;
}
details[open] summary::after { content: '−'; }
details .answer {
  padding: 0 20px 18px;
  color: var(--text);
  font-size: 0.95rem;
}

/* 装饰占位 */
.img-placeholder {
  background: linear-gradient(145deg, #FFF0F5, #FFD8E6);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-weight: 700;
  min-height: 160px;
  aspect-ratio: 16/9;
}
.img-placeholder.portrait { aspect-ratio: 3/4; }
.img-placeholder.square { aspect-ratio: 1; }

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

/* 安全区域与防横向滚动 */
html, body { max-width: 100vw; overflow-x: hidden; }
.container, .header-inner, .footer-inner { padding-left: max(15px, env(safe-area-inset-left)); padding-right: max(15px, env(safe-area-inset-right)); }
