/* 全局样式 */
:root {
  --primary-color: #3498db;
  --secondary-color: #e74c3c;
  --accent-color: #f39c12;
  --text-color: #333;
  --light-text: #fff;
  --bg-color: #fff;
  --bg-light: #f5f5f5;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

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

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* 头部样式 */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

/* 英雄区域样式 */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('{模板路径}/static/picture/b15.jpg') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-text);
  margin-top: 60px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-buttons {
  margin-top: 30px;
}

.cta-buttons .btn {
  margin: 0 10px;
}

/* 电影卡片样式 */
.movie-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.movie-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.movie-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.movie-image {
  height: 450px;
  overflow: hidden;
}

.movie-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.movie-card:hover .movie-image img {
  transform: scale(1.05);
}

.movie-info {
  padding: 20px;
}

.movie-info h3 {
  margin-bottom: 10px;
}

.movie-info .rating {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.movie-info .description {
  margin-bottom: 20px;
}

/* 影评文章样式 */
.article-list {
  display: grid;
  gap: 30px;
}

.review-article {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #777;
  font-size: 0.9rem;
}

/* 演员阵容样式 */
.actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.actor-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.actor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.actor-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.actor-card h3 {
  margin: 15px 0 5px;
}

.actor-card .role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.actor-card .description {
  padding: 0 15px 15px;
  font-size: 0.9rem;
}

/* 幕后故事样式 */
.behind-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.behind-content.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.behind-content.reverse .behind-text {
  direction: ltr;
}

.behind-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* 推荐区域样式 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.recommend-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.recommend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.recommend-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.recommend-card h3 {
  margin: 15px 0 10px;
  padding: 0 15px;
}

.recommend-card p {
  padding: 0 15px 20px;
  font-size: 0.9rem;
}

.recommend-card .btn {
  margin-bottom: 20px;
}

/* 文章区域样式 */
.articles {
  display: grid;
  gap: 30px;
}

.articles article {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.articles h3 {
  margin-bottom: 15px;
}

/* 页脚样式 */
footer {
  background-color: #2c3e50;
  color: var(--light-text);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo h3 {
  color: var(--light-text);
  margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--light-text);
  margin-bottom: 20px;
}

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

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

.footer-links ul li a {
  color: #bdc3c7;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  color: #bdc3c7;
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icon {
  display: inline-block;
  margin-right: 15px;
  color: var(--light-text);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    height: 70vh;
  }
  
  .behind-content {
    grid-template-columns: 1fr;
  }
  
  .behind-content.reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .hero {
    height: 60vh;
    margin-top: 120px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .cta-buttons .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
  
  .movie-cards,
  .actors-grid,
  .recommend-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}