/* 9·1短视频菠萝 · 菠萝视频 · 菠萝影院 · 暖色影院风 */
:root {
  --bg: #0c0a09;
  --surface: #1c1917;
  --card: #292524;
  --border: #3f3f46;
  --text: #fafaf9;
  --text-2: #d6d3d1;
  --text-3: #a8a29e;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-bg: rgba(245, 158, 11, 0.15);
  --hero-overlay: rgba(12, 10, 9, 0.6);
  --r: 12px;
}

*, *::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(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* 顶栏：站点名 + 横向导航 */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-head-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.site-logo:hover { color: var(--accent-2); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover, .site-nav a.cur { color: var(--accent-2); background: var(--accent-bg); }

/* 主容器 */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Hero：大图 + 叠字 */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  min-height: 200px;
  max-height: 360px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-cap {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.hero-cap h1 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.hero-cap p { font-size: 0.85rem; color: var(--text-2); }

/* 首页：介绍区块 */
.intro-sec {
  padding: 2rem 0 1.5rem;
}
.intro-sec h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--accent);
}
.intro-sec .prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
}
.intro-sec .prose p {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.78;
}
.intro-sec .prose p:last-of-type { margin-bottom: 0; }
.intro-sec .prose strong { color: var(--accent-2); }

/* 栏目入口：卡片网格 */
.cat-sec {
  padding: 1.5rem 0 2rem;
}
.cat-sec h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.cat-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cat-card .pic {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.cat-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .txt {
  padding: 0.75rem;
}
.cat-card .txt .t { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.cat-card:hover .txt .t { color: var(--accent-2); }
.cat-card .txt .d { font-size: 0.78rem; color: var(--text-3); }

/* 推荐阅读：横向卡片列表 */
.rec-sec {
  padding: 1.5rem 0 2rem;
}
.rec-sec h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rec-item {
  display: flex;
  gap: 1rem;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.rec-item:hover { border-color: var(--accent); }
.rec-item .thumb {
  width: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.rec-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rec-item .body { flex: 1; min-width: 0; }
.rec-item .body .t { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.rec-item:hover .body .t { color: var(--accent-2); }
.rec-item .body .d { font-size: 0.82rem; color: var(--text-3); }

/* 列表页 */
.page-head {
  padding: 1.5rem 0 1rem;
}
.page-head h1 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; }
.page-head p { font-size: 0.88rem; color: var(--text-2); }
.list-sec { padding: 0 0 2rem; }
.list-sec .rows { display: flex; flex-direction: column; gap: 0.75rem; }
.list-row {
  display: flex;
  gap: 1rem;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.list-row:hover { border-color: var(--accent); }
.list-row .thumb {
  width: 160px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row .info { flex: 1; min-width: 0; }
.list-row .info h2 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.3rem; }
.list-row:hover .info h2 { color: var(--accent-2); }
.list-row .info .d { font-size: 0.82rem; color: var(--text-3); }

/* 内容页 */
.art-sec {
  padding: 1.5rem 0 2rem;
  max-width: 720px;
}
.art-sec .art-h { margin-bottom: 1.25rem; }
.art-sec .art-h h1 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; margin-bottom: 0.35rem; }
.art-sec .art-h .meta { font-size: 0.8rem; color: var(--text-3); }
.art-sec .art-body p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
}
.art-sec .art-body h2 { font-size: 1rem; font-weight: 600; color: var(--accent-2); margin: 1.25rem 0 0.5rem; }
.art-sec .art-body h3 { font-size: 0.92rem; font-weight: 600; margin: 1rem 0 0.4rem; }
.art-sec .art-body img {
  width: 100%;
  border-radius: var(--r);
  margin: 1rem 0;
  border: 1px solid var(--border);
}
.art-sec .art-f {
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.art-sec .art-f a { color: var(--accent-2); text-decoration: none; }
.art-sec .art-f a:hover { text-decoration: underline; }

/* 页脚 */
.site-ft {
  padding: 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
}
.site-ft p { margin-bottom: 0.25rem; }
.site-ft a { color: var(--text-2); text-decoration: none; }
.site-ft a:hover { color: var(--accent-2); }

/* 响应式 */
@media (max-width: 768px) {
  .hero { aspect-ratio: 16/9; min-height: 180px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .list-row { flex-direction: column; }
  .list-row .thumb { width: 100%; max-height: 180px; aspect-ratio: 16/9; }
  .rec-item { flex-wrap: wrap; }
  .rec-item .thumb { width: 80px; }
}
@media (max-width: 480px) {
  .site-head-inner { flex-direction: column; align-items: flex-start; }
  .cat-grid { grid-template-columns: 1fr; }
  .rec-item .thumb { width: 70px; }
}
