/* 影视网站 - 响应式全局样式 */
:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --accent: #00c6ff;
  --accent-alt: #7c3aed;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #2d3a4f;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* 头部 */
.site-header {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.logo:hover { color: #33d4ff; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--accent); background: rgba(0,198,255,.08); }

/* 主内容区 */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.page-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

/* 首页首屏 */
.hero {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,.15) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  color: #fff;
}
.hero p.lead {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--border);
}
.card-body { padding: 1.25rem; }
.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.card-title a {
  color: #fff;
  text-decoration: none;
}
.card-title a:hover { color: var(--accent); }
.card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 视频卡片 */
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.video-card:hover .video-card-play { opacity: 1; transform: scale(1.05); }
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0,198,255,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .95;
  transition: opacity .2s, transform .2s;
}
.video-card-play::after {
  content: "";
  margin-left: 4px;
  border: 12px solid transparent;
  border-left-color: #fff;
  border-left-width: 18px;
  height: 0;
}
.video-card-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  background: rgba(0,0,0,.75);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
}
.video-card-body { padding: 0.75rem 1rem; }
.video-card-title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-title a {
  color: #fff;
  text-decoration: none;
}
.video-card-title a:hover { color: var(--accent); }
.video-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.video-card-views::before { content: "▶ "; font-size: 0.65rem; opacity: .8; }

/* 列表页 */
.list-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  align-items: flex-start;
}
.list-item-img {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
}
.list-item-body { flex: 1; }
.list-item-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.list-item-title a { color: #fff; text-decoration: none; }
.list-item-title a:hover { color: var(--accent); }
.list-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.list-item-meta { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .list-item { flex-direction: column; }
  .list-item-img { width: 100%; min-width: 100%; }
}

/* 内容页 */
.article {
  max-width: 800px;
  margin: 0 auto;
}
.article-header { margin-bottom: 2rem; }
.article-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
  color: #fff;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.article-content {
  font-size: 1rem;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--accent);
}
.article-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.article-content ul {
  margin: 1rem 0 1rem 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.article-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-nav a {
  color: var(--accent);
  text-decoration: none;
}
.article-nav a:hover { text-decoration: underline; }

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

/* 移动端 */
@media (max-width: 768px) {
  .main { padding: 1.25rem 1rem; }
  .hero { padding: 1.5rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
}
