/* Fusion theme: DeepSeek dark UI + ChatGPT information architecture */
:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #161b22;
  --line: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --primary: #ff7fac;
  --primary-dark: #ff628e;
  --nav-bg: rgba(13, 17, 23, .94);
  --card-shadow: 0 0 0 1px var(--line);
  --radius: 12px;
  --container-xl: 1180px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  background: var(--nav-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  height: 40px;
  font-weight: 800;
  font-size: 22px;
  color: #fff !important;
}
.logo span { color: var(--primary); }
.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  flex: 1;
}
.nav-main a {
  color: var(--muted);
  font-size: 14px;
  padding: 4px 0;
}
.nav-main a:hover,
.nav-main a.active { color: #fff; }
.search-box { display: flex; align-items: center; gap: 6px; }
.search-box input {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px 12px;
  width: 150px;
  outline: none;
  background: var(--panel);
  color: var(--text);
}
.search-box button {
  background: var(--primary);
  color: #111;
  border: none;
  border-radius: 16px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}
.search-box button:hover { background: var(--primary-dark); }

.subnav {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
}
.subnav a.active, .subnav a:hover { color: var(--primary); }

.page-main { padding: 16px 0 48px; }
.section { margin-bottom: 28px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}
.section-head h2 { margin: 0; font-size: 18px; }
.section-head .more { color: var(--muted); font-size: 13px; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tabs a {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.tabs a.active,
.tabs a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 420px) { .video-grid { grid-template-columns: 1fr; } }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; } }

.video-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .16s, border-color .16s;
}
.video-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.video-card .cover {
  position: relative;
  aspect-ratio: 16/9;
  background: #20252d;
  overflow: hidden;
}
.video-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card .duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
}
.video-card .meta { padding: 10px 12px 12px; }
.video-card .title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  min-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-card .stats {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.actor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .actor-grid { grid-template-columns: repeat(5, 1fr); } }
.actor-card {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 8px;
}
.actor-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  background: #20252d;
}
.actor-card .name { font-size: 13px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 992px) { .article-grid { grid-template-columns: repeat(5, 1fr); } }
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-card .cover { aspect-ratio: 4/3; background: #20252d; }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card .title { padding: 8px; font-size: 13px; min-height: 3em; overflow: hidden; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--muted);
}
.tag-cloud a:hover { background: var(--primary); border-color: var(--primary); color: #111; }

.player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.player-wrap video,
.player-wrap .plyr {
  width: 100%;
  aspect-ratio: 16/9;
}
.detail-title { font-size: clamp(20px, 3vw, 32px); margin: 0 0 8px; line-height: 1.25; }
.detail-meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-block;
  background: rgba(255, 127, 172, .12);
  color: var(--primary);
  border: 1px solid rgba(255, 127, 172, .35);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
}

.pagination-wrap { display: flex; justify-content: center; margin-top: 20px; }
.pagination-wrap nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination-wrap a,
.pagination-wrap span {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 0 8px;
  color: var(--muted);
}
.pagination-wrap .active span,
.pagination-wrap a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
}
.pagination-wrap .page-jump-input {
  width: 52px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.pagination-wrap .page-jump-input::-webkit-inner-spin-button,
.pagination-wrap .page-jump-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pagination-wrap .page-jump-input:focus {
  border-color: var(--primary);
}
.pagination-wrap .page-jump-btn {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.pagination-wrap .page-jump-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
}
.pagination-wrap .page-jump-sep {
  color: var(--muted);
  font-size: 13px;
  margin: 0 2px;
}

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0;
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: var(--muted); margin: 0 8px; }
.site-footer a:hover { color: var(--primary); }

.article-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  line-height: 1.8;
}
