/* ============================================
   河马剧场 - 全局样式
   深色影院风格 + 金色强调
   ============================================ */

:root {
  --bg-dark: #0b0d14;
  --bg-deep: #10131f;
  --bg-card: #171b2a;
  --bg-card-hover: #1e2338;
  --gold: #d4af37;
  --gold-light: #f0d57a;
  --gold-dark: #a8862a;
  --text-main: #e8eaf0;
  --text-sub: #9aa0b4;
  --text-muted: #6b7188;
  --line: rgba(255, 255, 255, 0.08);
  --danger: #e4575f;
  --success: #4bbf8f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head .eyebrow {
  display: inline-block;
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1.3;
  color: #fff;
}

.section-head p {
  color: var(--text-sub);
  margin-top: 12px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #141618;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #141618;
  font-size: 18px;
}

.brand em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-sub);
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 22px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #141618 !important;
  border-radius: 999px !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.12), transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(64, 82, 160, 0.25), transparent 50%),
    var(--bg-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
  animation: fadeUp 0.9s ease both;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 1px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-sub {
  margin: 20px auto 34px;
  font-size: 18px;
  color: var(--text-sub);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 32px;
  color: var(--gold);
  font-weight: 700;
}

.hero-stat span {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- 通用卡片 ---------- */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.06);
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #141618;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.movie-badge.hot {
  background: linear-gradient(135deg, var(--danger), #b32f38);
  color: #fff;
}

.movie-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 18px;
  padding: 4px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.movie-desc {
  font-size: 14px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 特性区 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- 榜单 ---------- */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: var(--transition);
}

.rank-item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateX(6px);
}

.rank-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-sub);
}

.rank-item.top-1 .rank-num,
.rank-item.top-2 .rank-num,
.rank-item.top-3 .rank-num {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #141618;
}

.rank-body {
  flex: 1;
  min-width: 0;
}

.rank-body h3 {
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-body p {
  font-size: 13px;
  color: var(--text-muted);
}

.rank-score {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 16px;
}

/* ---------- 资讯卡片 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow);
}

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

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-body {
  padding: 22px;
}

.news-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 18px;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.news-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 90px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.16), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-deep);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #07090f;
  border-top: 1px solid var(--line);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}

.footer-brand p {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-sub);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.faq-item h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item h3::after {
  content: "+";
  color: var(--gold);
  font-size: 22px;
  font-weight: 400;
}

.faq-item.open h3::after {
  content: "−";
}

.faq-item p {
  font-size: 14px;
  color: var(--text-sub);
  display: none;
  padding-top: 8px;
}

.faq-item.open p {
  display: block;
}

/* ---------- 文章详情 ---------- */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  margin-bottom: 36px;
}

.article-header h1 {
  font-size: 38px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--line);
}

.article-body {
  font-size: 16px;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 26px;
  color: #fff;
  margin: 34px 0 16px;
}

.article-body p {
  margin-bottom: 18px;
  color: #c9cdd9;
}

.article-body blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(212, 175, 55, 0.08);
  padding: 16px 22px;
  border-radius: 0 10px 10px 0;
  margin: 22px 0;
  color: var(--text-sub);
}

.article-share {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-sub);
}

/* ---------- 表格 ---------- */
.simple-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.simple-table th,
.simple-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.simple-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  font-weight: 600;
}

.simple-table tr:last-child td {
  border-bottom: none;
}

/* ---------- 表单 ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ---------- 联系信息 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
}

.contact-card .feature-icon {
  margin: 0 auto 16px;
}

.contact-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- 关于页 ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--text-sub);
  margin-bottom: 16px;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.timeline {
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 0 0 34px 46px;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.timeline-item time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.timeline-item h3 {
  font-size: 18px;
  color: #fff;
  margin: 6px 0 8px;
}

.timeline-item p {
  color: var(--text-sub);
  font-size: 14px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-block {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 20px;
}

.stat-block strong {
  display: block;
  font-size: 38px;
  color: var(--gold);
}

.stat-block span {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 14px;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.pagination .current {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #141618;
  font-weight: 700;
}

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .feature-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 13, 20, 0.98);
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-stats {
    gap: 30px;
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 20px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }
}
