/* 51影院 - 横排流式风格（SEO优化） */
:root {
  --bg: #f0f2f5;
  --card: #fff;
  --blue: #1877f2;
  --blue-dark: #0d65d9;
  --text: #1c1e21;
  --text-dim: #65676b;
  --border: #e4e6eb;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 顶栏 */
header[role="banner"] {
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
}

nav[role="navigation"] {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav[role="navigation"] a {
  padding: 10px 16px;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}

nav[role="navigation"] a:hover { color: var(--blue); }

/* 主内容 */
main[role="main"] {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* 焦点区 */
.feature-row {
  margin-bottom: 32px;
}

.feature-banner {
  position: relative;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 28px 24px;
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.85) 100%);
}

.feature-overlay h1 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}

.feature-overlay p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
}

/* 介绍区 */
.intro-wrap {
  background: var(--card);
  padding: 28px 32px;
  margin-bottom: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.intro-wrap h2 {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 18px;
}

.intro-wrap p {
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.75;
}

.intro-wrap p:last-of-type { margin-bottom: 0; }

/* 横排流 - 行标题 */
.row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.row-head h2 {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.row-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 横排卡片 - 16:9 视频比例 */
.video-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.video-row::-webkit-scrollbar { height: 6px; }
.video-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.video-item {
  flex: 0 0 220px;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.video-item .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-item .info {
  padding: 12px;
}

.video-item .info h3 {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.video-item .info h3:hover { color: var(--blue); }

.video-item .info .meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* 区块间距 */
.section-wrap {
  margin-bottom: 36px;
}

/* 内容页 */
.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

article {
  background: var(--card);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

article h1 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}

.article-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-size: 1.1rem;
  color: var(--blue);
  margin: 22px 0 10px;
}

article p {
  margin-bottom: 12px;
  color: var(--text-dim);
  line-height: 1.75;
}

article .intro {
  font-size: 1.05rem;
  color: var(--text);
}

.article-img {
  margin: 22px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-img img { width: 100%; }

/* 列表页 */
.list-hero {
  height: 240px;
  position: relative;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.list-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.list-hero-caption h1 { font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.list-hero-caption p { font-size: 13px; color: rgba(255,255,255,0.85); }

/* 列表页横排 */
.list-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.list-row .video-item { flex: none; width: 100%; }

/* 页脚 */
footer[role="contentinfo"] {
  background: var(--card);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  padding: 24px 20px;
  margin-top: 40px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

footer nav a { color: var(--text-dim); font-size: 13px; }
footer nav a:hover { color: var(--blue); }
footer p { font-size: 12px; }

/* 响应式 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; padding: 12px 0; }
  nav[role="navigation"] { justify-content: center; }
  .feature-banner { height: 260px; }
  .video-item { flex: 0 0 180px; }
}

@media (max-width: 500px) {
  main[role="main"] { padding: 20px 16px; }
  .intro-wrap { padding: 20px; }
  article { padding: 24px; }
  .list-hero { height: 180px; }
  .list-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-item { flex: 0 0 150px; }
}
