/* 51影视 - 影院海报墙风格（SEO优化） */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --teal: #39d353;
  --teal-dim: #26a641;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --border: #30363d;
}

* { 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(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

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(--teal); }

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

/* 轮播/焦点区 */
.hero-banner {
  position: relative;
  height: 400px;
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: 8px;
}

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

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 32px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-overlay h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}

.hero-overlay p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

/* 介绍区 */
.intro-block {
  background: var(--bg-card);
  padding: 32px 36px;
  margin-bottom: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.intro-block h2 {
  font-size: 1.2rem;
  color: var(--teal);
  margin-bottom: 20px;
}

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

.intro-block p:last-child { margin-bottom: 0; }

/* 区块标题 */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
}

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

/* 海报网格 - 2:3 电影比例 */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.poster-card {
  transition: transform 0.2s;
}

.poster-card:hover { transform: translateY(-6px); }

.poster-card .poster {
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}

.poster-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-card .info {
  padding: 12px 0 0;
}

.poster-card .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;
}

.poster-card .info h3:hover { color: var(--teal); }

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

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

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

article {
  background: var(--bg-card);
  padding: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

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

article h2 {
  font-size: 1.15rem;
  color: var(--teal);
  margin: 24px 0 12px;
}

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

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

.article-img {
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
}

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

/* 列表页 */
.list-hero {
  height: 260px;
  position: relative;
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
}

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

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

.list-hero-caption h1 { font-size: 1.4rem; margin-bottom: 8px; }
.list-hero-caption p { font-size: 14px; color: rgba(255,255,255,0.85); }

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

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

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

/* 响应式 */
@media (max-width: 1000px) {
  .poster-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .hero-banner { height: 280px; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .header-inner { flex-direction: column; align-items: stretch; padding: 12px 0; }
  nav[role="navigation"] { justify-content: center; }
}

@media (max-width: 500px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  main[role="main"] { padding: 20px 16px; }
  article { padding: 24px; }
  .intro-block { padding: 24px; }
  .list-hero { height: 200px; }
}
