/* 91视频网页版 · 流媒体门户 · 青绿主题 */
:root {
  --bg-base: #0c1222;
  --bg-panel: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #162032;
  --accent: #0d9488;
  --accent-light: #2dd4bf;
  --accent-muted: rgba(13, 148, 136, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
}

/* 顶栏：紧凑型 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.98) 0%, rgba(12, 18, 34, 0.92) 100%);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--accent) 0%, #0f766e 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px var(--accent-muted);
}
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  font-size: 0.875rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--accent-light); background: var(--accent-muted); }
.nav-menu a.active { color: var(--accent-light); background: var(--accent-muted); }

/* 主区 */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

/* 首屏：全宽横幅 + 一句话 */
.banner {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18) 0%, rgba(15, 118, 110, 0.08) 50%, transparent 100%);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.banner-text h1 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: 0.35rem; }
.banner-text p { font-size: 0.875rem; color: var(--text-secondary); }
.banner-img {
  width: 120px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* 分类入口：6 宫格 */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.entry-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.entry-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.entry-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-card .label {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.entry-card:hover .label { color: var(--accent-light); }

/* 首页长文区块 */
.intro-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.75rem;
}
.intro-block .intro-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
}
.intro-block .intro-body p { margin-bottom: 1rem; font-size: 0.9375rem; color: var(--text-secondary); }
.intro-block .intro-body p:last-child { margin-bottom: 0; }
.intro-block .intro-body strong { color: var(--accent-light); font-weight: 600; }

/* 推荐列表：横向卡片 */
.recommend-list { margin-top: 1.5rem; }
.recommend-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.recommend-item:last-child { border-bottom: 0; }
.recommend-item:hover { background: rgba(255,255,255,0.03); }
.recommend-item .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.recommend-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.recommend-item .info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.recommend-item .info h3:hover { color: var(--accent-light); }
.recommend-item .info p { font-size: 0.8rem; color: var(--text-muted); }

/* 列表页：标题 + 卡片列表 */
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.35rem; }
.page-head p { font-size: 0.875rem; color: var(--text-secondary); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.75rem; }
.tags span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--text-secondary);
  border: 1px solid rgba(13, 148, 136, 0.35);
}

.card-list { display: flex; flex-direction: column; gap: 1rem; }
.card-list .item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-list .item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card-list .item .pic { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; }
.card-list .item .pic img { width: 100%; height: 100%; object-fit: cover; }
.card-list .item .body h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.card-list .item .body h2:hover { color: var(--accent-light); }
.card-list .item .body .desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.card-list .item .body .meta { font-size: 0.78rem; color: var(--text-muted); }

/* 内容页 */
.article-wrap { max-width: 720px; margin: 0 auto; }
.article-head { margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; margin-bottom: 0.4rem; }
.article-head .meta { font-size: 0.82rem; color: var(--text-muted); }
.article-body p { margin-bottom: 1rem; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; }
.article-body h2 { font-size: 1rem; font-weight: 600; color: var(--accent-light); margin: 1.5rem 0 0.6rem; }
.article-body h3 { font-size: 0.95rem; font-weight: 600; margin: 1.2rem 0 0.5rem; }
.article-body img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  border: 1px solid var(--border-color);
}
.article-foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.article-foot a { color: var(--accent-light); text-decoration: none; }
.article-foot a:hover { text-decoration: underline; }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 1.2rem 1rem 1.75rem; }
  .banner { flex-direction: column; align-items: flex-start; padding: 1.2rem 1.25rem; }
  .banner-img { width: 100%; max-width: 200px; height: 110px; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .recommend-item { grid-template-columns: 100px 1fr; gap: 0.75rem; }
  .card-list .item { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0.6rem 1rem; }
  .entry-grid { grid-template-columns: 1fr; }
  .recommend-item { grid-template-columns: 1fr; }
  .recommend-item .thumb { max-height: 140px; aspect-ratio: 16/9; }
}
