/* 蘑菇视频 · 蘑菇tv · 翠绿石板深色 · 无大图单列居中 */
:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --card: #334155;
  --border: #475569;
  --text: #f8fafc;
  --text-2: #e2e8f0;
  --text-3: #94a3b8;
  --accent: #10b981;
  --accent-2: #34d399;
  --accent-bg: rgba(16, 185, 129, 0.12);
  --r: 10px;
}

*, *::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.68;
  min-height: 100vh;
}

/* 顶栏：简洁 logo + 导航 */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.topbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.topbar-logo:hover { color: var(--accent-2); }
.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.topbar-nav a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s, background 0.2s;
}
.topbar-nav a:hover, .topbar-nav a.cur { color: var(--accent-2); background: var(--accent-bg); }

/* 主区：单列居中，无大图 */
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

/* 首页：关于区块（纯文字） */
.about-sec {
  margin-bottom: 2rem;
}
.about-sec h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.7rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent);
}
.about-sec .text {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
}
.about-sec .text p {
  margin-bottom: 1rem;
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.76;
}
.about-sec .text p:last-of-type { margin-bottom: 0; }
.about-sec .text strong { color: var(--accent-2); }

/* 蘑菇tv 入口与栏目：卡片网格 */
.entry-sec {
  margin-bottom: 2rem;
}
.entry-sec h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}
.entry-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.entry-card:hover { border-color: var(--accent); background: var(--accent-bg); }
.entry-card .img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--card);
}
.entry-card .img img { width: 100%; height: 100%; object-fit: cover; }
.entry-card .cap {
  padding: 0.65rem 0.75rem;
}
.entry-card .cap .t { font-size: 0.88rem; font-weight: 600; }
.entry-card:hover .cap .t { color: var(--accent-2); }

/* 相关阅读：紧凑列表 */
.read-sec {
  margin-bottom: 1rem;
}
.read-sec h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.read-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.read-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.read-item:hover { border-color: var(--accent); }
.read-item .thumb {
  width: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.read-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.read-item .txt { flex: 1; min-width: 0; }
.read-item .txt .t { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.read-item:hover .txt .t { color: var(--accent-2); }
.read-item .txt .d { font-size: 0.78rem; color: var(--text-3); }

/* 列表页 */
.page-title {
  margin-bottom: 1.2rem;
}
.page-title h1 { font-size: 1.28rem; font-weight: 700; margin-bottom: 0.35rem; }
.page-title p { font-size: 0.86rem; color: var(--text-2); }
.list-wrap { margin-bottom: 1.5rem; }
.list-wrap .items { display: flex; flex-direction: column; gap: 0.7rem; }
.list-item {
  display: flex;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.list-item:hover { border-color: var(--accent); }
.list-item .thumb {
  width: 150px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info h2 { font-size: 0.94rem; font-weight: 600; margin-bottom: 0.25rem; }
.list-item:hover .info h2 { color: var(--accent-2); }
.list-item .info .d { font-size: 0.8rem; color: var(--text-3); }

/* 内容页 */
.article-wrap {
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.article-wrap .head { margin-bottom: 1.1rem; }
.article-wrap .head h1 { font-size: clamp(1.05rem, 2.2vw, 1.32rem); font-weight: 700; margin-bottom: 0.3rem; }
.article-wrap .head .meta { font-size: 0.78rem; color: var(--text-3); }
.article-wrap .body p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.74;
}
.article-wrap .body h2 { font-size: 0.98rem; font-weight: 600; color: var(--accent-2); margin: 1.2rem 0 0.45rem; }
.article-wrap .body h3 { font-size: 0.9rem; font-weight: 600; margin: 1rem 0 0.4rem; }
.article-wrap .body img {
  width: 100%;
  border-radius: var(--r);
  margin: 1rem 0;
  border: 1px solid var(--border);
}
.article-wrap .foot {
  margin-top: 1.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.article-wrap .foot a { color: var(--accent-2); text-decoration: none; }
.article-wrap .foot a:hover { text-decoration: underline; }

/* 页脚 */
.footer {
  padding: 1rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  font-size: 0.76rem;
  color: var(--text-3);
  text-align: center;
}
.footer p { margin-bottom: 0.2rem; }

/* 响应式 */
@media (max-width: 768px) {
  .wrap { padding: 1.2rem 0.9rem 1.6rem; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .list-item { flex-direction: column; }
  .list-item .thumb { width: 100%; max-height: 160px; aspect-ratio: 16/9; }
  .read-item .thumb { width: 60px; }
}
@media (max-width: 480px) {
  .entry-grid { grid-template-columns: 1fr; }
  .read-item { flex-wrap: wrap; }
  .read-item .thumb { width: 56px; }
}
