/* ========================================
   51黑料 - 独立电影与青年导演扶持平台
   艺术影展风 + 黑白极简主题样式
   ======================================== */

/* CSS 变量定义 */
:root {
  --color-primary: #000000;
  --color-secondary: #FFFFFF;
  --color-bg: #111111;
  --color-card: #222222;
  --color-accent: #FF3366;
  --color-text: #E0E0E0;
  --color-text-muted: #999999;
  --color-border: #333333;
  --font-heading: "Noto Serif SC", "Source Han Serif CN", serif;
  --font-body: "Noto Sans SC", "Source Han Sans CN", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --max-width: 1200px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 排版系统 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

a:hover {
  color: var(--color-secondary);
}

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

/* 容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--wide {
  max-width: 1400px;
}

/* ========================================
   导航栏
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-base);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-secondary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition-base);
}

/* ========================================
   首屏 Hero
   ======================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(17, 17, 17, 0.6) 60%,
    rgba(17, 17, 17, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--spacing-md);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease-out;
}

.hero-content .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}

/* ========================================
   内容区块
   ======================================== */
.section {
  padding: var(--spacing-xl) 0;
}

.section--dark {
  background: var(--color-primary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: var(--spacing-sm) auto 0;
}

/* ========================================
   影片卡片网格
   ======================================== */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.film-card {
  background: var(--color-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.film-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.film-card__poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.film-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.film-card:hover .film-card__poster img {
  filter: grayscale(0%);
}

.film-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.film-card__info {
  padding: var(--spacing-sm);
}

.film-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.film-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ========================================
   导演卡片
   ======================================== */
.director-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.director-card {
  display: flex;
  gap: var(--spacing-sm);
  background: var(--color-card);
  border-radius: 8px;
  padding: var(--spacing-sm);
  transition: transform var(--transition-base);
}

.director-card:hover {
  transform: translateX(8px);
}

.director-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.director-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.director-card:hover .director-card__avatar img {
  filter: grayscale(0%);
}

.director-card__info h4 {
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.director-card__info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ========================================
   创投进度条
   ======================================== */
.pitch-progress {
  margin-top: var(--spacing-sm);
}

.pitch-progress__bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.pitch-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #FF6699);
  border-radius: 3px;
  transition: width 1s ease-out;
}

.pitch-progress__text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ========================================
   影展日历
   ======================================== */
.festival-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-sm);
}

.calendar-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-card);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
  transition: background var(--transition-base);
}

.calendar-item:hover {
  background: #2a2a2a;
}

.calendar-item__date {
  text-align: center;
  min-width: 60px;
}

.calendar-item__date .month {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
}

.calendar-item__date .day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.calendar-item__info h4 {
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.calendar-item__info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========================================
   评审评语滚动墙
   ======================================== */
.review-wall {
  overflow: hidden;
  position: relative;
  padding: var(--spacing-md) 0;
}

.review-wall__track {
  display: flex;
  gap: var(--spacing-md);
  animation: scrollReviews 30s linear infinite;
}

.review-wall__item {
  min-width: 350px;
  background: var(--color-card);
  border-radius: 8px;
  padding: var(--spacing-md);
  border-top: 3px solid var(--color-accent);
}

.review-wall__item blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.review-wall__item cite {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* ========================================
   详情页布局
   ======================================== */
.detail-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
}

.detail-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) blur(2px);
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-lg) var(--spacing-md);
  width: 100%;
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.95));
}

.detail-content {
  padding: var(--spacing-lg) 0;
}

.detail-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
}

.detail-main {
  min-width: 0;
}

.detail-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.detail-aside .info-box {
  background: var(--color-card);
  border-radius: 8px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.detail-aside .info-box h4 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.detail-aside .info-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.detail-aside .info-box dt {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.detail-aside .info-box dd {
  color: var(--color-text);
  font-size: 0.9rem;
}

/* ========================================
   播放器占位
   ======================================== */
.video-player-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-primary);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: var(--spacing-md) 0;
}

.video-player-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.video-player-placeholder .play-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border: 3px solid var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.video-player-placeholder:hover .play-btn {
  transform: scale(1.1);
  border-color: var(--color-accent);
}

.video-player-placeholder .play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid var(--color-secondary);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* ========================================
   按钮系统
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.btn--primary:hover {
  background: #E6295A;
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 51, 102, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 0.5rem 0;
}

.btn--ghost:hover {
  color: var(--color-secondary);
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
}

.footer-links h4 {
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom .legal-links {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-bottom .legal-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========================================
   搜索页
   ======================================== */
.search-container {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.search-box {
  display: flex;
  gap: 0;
  margin-bottom: var(--spacing-lg);
}

.search-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--color-secondary);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-base);
}

.search-box input:focus {
  border-color: var(--color-accent);
}

.search-box button {
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-base);
}

.search-box button:hover {
  background: #E6295A;
}

.search-results {
  list-style: none;
}

.search-results li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.search-results li a {
  display: block;
}

.search-results li h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.search-results li p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ========================================
   FAQ 手风琴
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: var(--spacing-sm) 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-secondary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding-bottom: var(--spacing-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
  padding: var(--spacing-sm) 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumb li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--color-text-muted);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .current {
  color: var(--color-secondary);
}

/* ========================================
   404 页面
   ======================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-md);
}

.error-page__code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--color-card);
  line-height: 1;
  font-family: var(--font-heading);
}

.error-page h2 {
  margin: var(--spacing-sm) 0;
}

.error-page p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

/* ========================================
   动画关键帧
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 滚动淡入动画类 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   响应式断点
   ======================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .film-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .review-wall__item {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .film-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }

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

  .festival-calendar {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
  .site-header,
  .site-footer,
  .hero-scroll-hint,
  .nav-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 1rem 0;
  }
}
