/* 51吃瓜 官方站点样式 - 深色粉紫娱乐资讯主题 */
:root {
  --bg-main: #0B0B1A;
  --bg-deep: #080812;
  --bg-content: #12121F;
  --bg-secondary: #1A1A2A;
  --bg-hover: #222233;
  --text-title: #FFFFFF;
  --text-body: #E8E8F0;
  --text-secondary: #A0A0B8;
  --text-aux: #6B6B80;
  --brand-pink: #FF2D6A;
  --brand-light-pink: #FF4D8A;
  --brand-rose: #E6005C;
  --brand-purple: #7B2CBF;
  --brand-light-purple: #9B4DFF;
  --brand-soft-pink: #FFB3C9;
  --border-soft: rgba(255, 45, 106, 0.18);
  --border-focus: rgba(255, 77, 138, 0.45);
  --shadow-main: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-pink: 0 12px 36px rgba(255, 45, 106, 0.22);
  --footer-bg: #05050A;
  --footer-text: #C8C8D8;
  --nav-height: 72px;
  --max-width: 1280px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-btn: 999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; 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);
}

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--nav-height);
}

.header-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;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text-title);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

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

.logo-text {
  background: linear-gradient(135deg, #FF4D8A, #9B4DFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  margin-left: 24px;
}

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

.desktop-nav a:hover {
  color: var(--text-title);
  background: rgba(255, 45, 106, 0.1);
}

.desktop-nav a.active {
  color: var(--brand-light-pink);
  background: rgba(255, 45, 106, 0.15);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-light-purple));
  border-radius: 2px;
}

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-body);
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--bg-hover);
  border-color: var(--border-soft);
  color: var(--brand-light-pink);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, #FF4D8A 0%, #FF2D6A 50%, #E6005C 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  white-space: nowrap;
  min-height: 44px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(255, 45, 106, 0.35);
  opacity: 0.95;
  color: #fff !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  background: transparent;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border-focus);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 77, 138, 0.12);
  border-color: var(--brand-light-pink);
}

.mobile-menu-btn,
.mobile-app-btn {
  display: none;
}

/* ========== 主内容区 ========== */
.site-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.75rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFFFFF, #FFB3C9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ========== 首页首屏 ========== */
.hero {
  padding: 36px 0 20px;
}

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

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-content);
  min-height: 380px;
  box-shadow: var(--shadow-main);
  border: 1px solid var(--border-soft);
}

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

.hero-fallback {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: linear-gradient(145deg, #1A1A2A 0%, #12121F 40%, #2A1A3A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.hero-fallback-brand {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF4D8A, #9B4DFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero-fallback-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background: var(--bg-content);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-main);
}

.hero-brand {
  font-size: 0.9rem;
  color: var(--brand-light-pink);
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--text-title);
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

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

.hero-recs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.hero-rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.hero-rec-item:hover {
  border-color: var(--border-soft);
  background: var(--bg-hover);
}

.hero-rec-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-rec-text {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ========== 频道快捷条 ========== */
.channel-bar {
  padding: 12px 0 28px;
  overflow: hidden;
}

.channel-bar-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-pink) transparent;
  -webkit-overflow-scrolling: touch;
}

.channel-bar-inner::-webkit-scrollbar {
  height: 4px;
}

.channel-bar-inner::-webkit-scrollbar-thumb {
  background: var(--brand-pink);
  border-radius: 4px;
}

.channel-chip {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.channel-chip:hover {
  color: var(--text-title);
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.channel-chip.active {
  color: var(--brand-light-pink);
  border-color: var(--border-focus);
  background: rgba(255, 45, 106, 0.12);
}

/* ========== 卡片与内容块 ========== */
.card {
  background: var(--bg-content);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

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

.card-body {
  padding: 22px 24px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-btn);
  background: rgba(255, 45, 106, 0.15);
  color: var(--brand-light-pink);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ========== 今日灵感胶囊 ========== */
.inspire-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inspire-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  max-width: 280px;
  transition: border-color 0.2s, background 0.2s;
}

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

.inspire-name {
  font-weight: 600;
  color: var(--text-title);
  font-size: 0.95rem;
}

.inspire-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== 热点主推 ========== */
.hot-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.hot-main {
  background: var(--bg-content);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hot-main h3 {
  font-size: 1.45rem;
}

.hot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-aux);
}

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

.hot-side-item {
  background: var(--bg-content);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.hot-side-item:hover {
  border-color: var(--border-focus);
}

.hot-side-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.hot-side-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ========== 横向轨道 ========== */
.track-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-pink) transparent;
}

.track-scroll::-webkit-scrollbar {
  height: 5px;
}

.track-scroll::-webkit-scrollbar-thumb {
  background: var(--brand-pink);
  border-radius: 4px;
}

.track-card {
  flex: 0 0 260px;
  background: var(--bg-content);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.track-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* ========== 编号列表 ========== */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.numbered-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-content);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s;
}

.numbered-item:hover {
  border-color: var(--border-focus);
}

.num-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-content);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
}

.rank-num {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF4D8A, #9B4DFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 36px;
}

/* ========== 片单 ========== */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.list-card {
  background: var(--bg-content);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.list-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-pink);
}

.list-card h3 {
  font-size: 1.15rem;
}

.list-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

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

.timeline-item {
  flex: 0 0 220px;
  background: var(--bg-content);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 18px;
}

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

.status-published {
  background: rgba(155, 77, 255, 0.2);
  color: var(--brand-light-purple);
}

.status-preparing {
  background: rgba(255, 45, 106, 0.15);
  color: var(--brand-light-pink);
}

.status-pending {
  background: rgba(160, 160, 184, 0.15);
  color: var(--text-secondary);
}

/* ========== 杂志式不对称 ========== */
.magazine-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.magazine-block {
  background: var(--bg-content);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 26px;
}

.magazine-block.tall {
  grid-row: span 2;
}

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

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

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

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

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

.faq-list details p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 30px;
  border-top: 1px solid rgba(255, 45, 106, 0.12);
  margin-top: 40px;
}

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

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

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

.footer-brand-en {
  font-size: 0.85rem;
  color: var(--brand-soft-pink);
  letter-spacing: 1px;
}

.footer-about {
  max-width: 520px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

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

.footer-col a {
  display: block;
  color: var(--footer-text);
  font-size: 0.88rem;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-light-pink);
}

.footer-note {
  font-size: 0.82rem;
  color: var(--text-aux);
  line-height: 1.7;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-aux);
}

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

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

.channel-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 88vw;
  height: 100%;
  background: var(--bg-deep);
  z-index: 2010;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-soft);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.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-soft);
  flex-shrink: 0;
}

.panel-header .logo-link {
  font-size: 1.15rem;
}

.panel-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-body);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-close:hover {
  background: var(--bg-hover);
  color: var(--brand-light-pink);
}

.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-aux);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}

.panel-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  transition: background 0.2s;
}

.panel-link:hover {
  background: var(--bg-hover);
}

.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-secondary);
  line-height: 1.5;
}

/* ========== 搜索面板 ========== */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 18, 0.97);
  z-index: 2100;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px 40px;
  overflow-y: auto;
}

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

.search-panel-inner {
  width: 100%;
  max-width: 720px;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-body);
  font-size: 1.4rem;
  cursor: pointer;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 32px;
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-focus);
  background: var(--bg-content);
  color: var(--text-title);
  font-size: 1.05rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-aux);
}

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

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

.search-tag {
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.search-tag:hover {
  border-color: var(--border-focus);
  color: var(--brand-light-pink);
}

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

.search-result-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-content);
  border: 1px solid var(--border-soft);
  color: var(--text-body);
  transition: border-color 0.2s;
}

.search-result-item:hover {
  border-color: var(--border-focus);
  color: var(--brand-light-pink);
}

.search-result-item.hidden {
  display: none;
}

/* ========== 手机底部导航 ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(8, 8, 18, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-soft);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  height: auto;
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  min-width: 56px;
  min-height: 48px;
  color: var(--text-aux);
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.2s;
}

.bottom-nav-item svg,
.bottom-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-nav-item.active {
  color: var(--brand-light-pink);
}

/* ========== 页面通用内容区 ========== */
.page-hero {
  padding: 40px 0 24px;
}

.page-hero h1 {
  font-size: 2.1rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFFFF 30%, #FFB3C9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.75;
}

.content-block {
  background: var(--bg-content);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 28px 30px;
  margin-bottom: 24px;
}

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

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

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

.content-block ul {
  margin: 12px 0 16px 20px;
}

.content-block ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-body);
}

.prose {
  max-width: 820px;
}

.prose p {
  margin-bottom: 1.1rem;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  padding: 5px 14px;
  border-radius: var(--radius-btn);
  background: rgba(255, 45, 106, 0.12);
  color: var(--brand-light-pink);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ========== 图片区域 ========== */
.img-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border-soft);
}

.img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.img-square {
  aspect-ratio: 1;
}

.img-portrait {
  aspect-ratio: 3/4;
}

/* ========== 按钮组 ========== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 280px;
  }
  .hot-feature {
    grid-template-columns: 1fr;
  }
  .magazine-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .desktop-nav {
    display: none;
  }

  .header-actions .btn-secondary,
  .header-actions .btn-primary.desktop-only {
    display: none;
  }

  .mobile-menu-btn,
  .mobile-app-btn {
    display: inline-flex;
  }

  .logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-inner {
    position: relative;
    justify-content: space-between;
  }

  .header-actions {
    margin-left: auto;
  }

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

  .site-main {
    padding-bottom: 80px;
  }

  .site-footer {
    padding-bottom: 90px;
  }

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

  .section {
    padding: 36px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .content-block {
    padding: 20px 18px;
  }

  .hero-side {
    padding: 24px 20px;
  }

  .container {
    padding: 0 15px;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .inspire-item {
    max-width: 100%;
  }
}

/* 工具类 */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
