/* 91香蕉 · 九九香蕉视频 · 紫调流媒体 */
:root {
  --bg: #0d0d12;
  --surface: #16161d;
  --surface-2: #1c1c26;
  --ink: #e4e4e7;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --prime: #a78bfa;
  --prime-2: #c4b5fd;
  --prime-dim: rgba(167, 139, 250, 0.2);
  --edge: #27272a;
  --r: 14px;
  --r-sm: 8px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", ui-sans-serif, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.9);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(10px);
}
.topbar-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.topbar a {
  text-decoration: none;
  color: inherit;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--prime) 0%, #7c3aed 100%);
  box-shadow: 0 0 16px var(--prime-dim);
}
.brand-name { font-weight: 700; font-size: 1rem; }
.brand-tag { font-size: 0.7rem; color: var(--ink-3); margin-top: 0px; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  font-size: 0.875rem;
}
.menu a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.menu a:hover, .menu a.on { color: var(--prime-2); background: var(--prime-dim); }

/* 主容器 */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem 2rem;
}

/* 首屏：大图 + 文案（左右分栏） */
.lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r);
}
.lead-visual {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.lead-visual img { width: 100%; height: 100%; object-fit: cover; }
.lead-text h1 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 700; margin-bottom: 0.5rem; }
.lead-text p { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 0.75rem; }
.lead-text .tag { font-size: 0.75rem; color: var(--prime-2); }

/* 分类：2 行 x 3 格 */
.sec-title { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.cat {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.cat:hover { border-color: var(--prime); transform: translateY(-2px); }
.cat-pic { aspect-ratio: 16/9; overflow: hidden; }
.cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-txt { padding: 0.65rem 0.85rem; font-size: 0.9rem; font-weight: 600; }

/* 正文块 + 右侧/下方推荐卡片（2 列网格） */
.prose {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
}
.prose h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--edge); }
.prose p { margin-bottom: 1rem; font-size: 0.925rem; color: var(--ink-2); }
.prose p:last-of-type { margin-bottom: 0; }
.prose strong { color: var(--prime-2); }

.recs { margin-top: 1.25rem; }
.recs .sec-title { margin-bottom: 0.75rem; }
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.rec-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rec-card:hover { border-color: var(--prime); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.rec-card .img { aspect-ratio: 16/10; overflow: hidden; }
.rec-card .img img { width: 100%; height: 100%; object-fit: cover; }
.rec-card .txt { padding: 0.6rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
.rec-card:hover .txt { color: var(--prime-2); }
.rec-card .sub { font-size: 0.75rem; color: var(--ink-3); margin-top: 0.15rem; }

/* 列表页：标题 + 紧凑列表 */
.list-head { margin-bottom: 1.25rem; }
.list-head h1 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.35rem; }
.list-head p { font-size: 0.875rem; color: var(--ink-2); }
.list-head .tags { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.75rem; }
.list-head .tags span { padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--prime-dim); color: var(--ink-2); border: 1px solid rgba(167,139,250,0.3); }

.list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.list-item:hover { border-color: var(--prime); }
.list-item .thumb { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16/10; }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .info h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.list-item:hover .info h2 { color: var(--prime-2); }
.list-item .info .d { font-size: 0.82rem; color: var(--ink-2); margin-bottom: 0.2rem; }
.list-item .info .m { font-size: 0.75rem; color: var(--ink-3); }

/* 内容页 */
.post { max-width: 680px; margin: 0 auto; }
.post-head { margin-bottom: 1.4rem; }
.post-head h1 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; margin-bottom: 0.4rem; }
.post-head .meta { font-size: 0.8rem; color: var(--ink-3); }
.post-body p { margin-bottom: 1rem; font-size: 0.93rem; color: var(--ink-2); line-height: 1.7; }
.post-body h2 { font-size: 1rem; font-weight: 600; color: var(--prime-2); margin: 1.5rem 0 0.6rem; }
.post-body h3 { font-size: 0.92rem; font-weight: 600; margin: 1.2rem 0 0.5rem; }
.post-body img { width: 100%; border-radius: var(--r-sm); margin: 1rem 0; border: 1px solid var(--edge); }
.post-foot {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--edge);
  font-size: 0.84rem;
}
.post-foot a { color: var(--prime-2); text-decoration: none; }
.post-foot a:hover { text-decoration: underline; }

/* 页脚 */
.footer {
  border-top: 1px solid var(--edge);
  padding: 1.4rem 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--prime-2); }

/* 响应式 */
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .lead-visual { max-height: 200px; }
  .rec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 1.1rem 1rem 1.6rem; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .list-item { grid-template-columns: 1fr; }
  .list-item .thumb { max-height: 160px; aspect-ratio: 16/9; }
}
