* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --light: #f5f5f5;
  --dark: #0f3460;
}

body {
  background-color: white;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}

.header-scrolled {
  padding: 5px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 28px;
  color: var(--primary);
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  height: 80vh;
  position: relative;
  margin-top: 70px;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide-content {
  position: absolute;
  bottom: 150px;
  left: 100px;
  color: white;
  max-width: 600px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--accent);
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent);
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.directors-container, .actors-container, .works-container, .team-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0 50px;
}

.director-card, .actor-card, .work-card, .team-card {
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  margin: 0 7px;
  width:16.66%;
}

.director-card:hover, .actor-card:hover, .work-card:hover, .team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.director-img, .actor-img, .work-img, .team-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1.4;
}

.director-img img, .actor-img img, .work-img img, .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.director-card:hover img, .actor-card:hover img, .work-card:hover img, .team-card:hover img {
  transform: scale(1.05);
}

.director-info, .actor-info, .work-info, .team-info {
  padding: 20px;
}

.director-info h3, .actor-info h3, .work-info h3, .team-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--primary);
}

.director-info p, .actor-info p, .work-info p, .team-info p {
  font-size: 14px;
  color: #666;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 15px;
  font-size: 16px;
}

.about-img {
  flex: 1;
  overflow: hidden;
}

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

.box-office {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: white;
  padding: 50px 20px;
  border-radius: 10px;
  margin-bottom: 50px;
}

.box-office h3 {
  font-size: 42px;
  margin-bottom: 10px;
}

.box-office p {
  font-size: 18px;
  opacity: 0.9;
}

.work-img {
  aspect-ratio: 1/1.4;
}

.work-info {
  padding: 15px;
}

.work-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.work-info p {
  font-size: 14px;
  margin-bottom: 3px;
}

.box-office-number {
  font-size: 60px;
  font-weight: 700;
  background: linear-gradient(to right, #ff8a00, #da1b60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 20px 0;
}

.team-card {
  display: flex;
  height: 200px;
  width:95%;
}

.team-img {
  width: 40%;
  flex-shrink: 0;
}

.team-info {
  width: 60%;
  padding: 15px;
  overflow: hidden;
}

.team-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.team-info p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #666;
}

.contact-section {
  background-color: #f9f9f9;
  padding: 100px 0;
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent);
  font-size: 20px;
  width: 30px;
}

.contact-form {
  flex: 1;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

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

footer {
  background-color: var(--primary);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper-button-next, .swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.3);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  transition: background 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6);
}

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 20px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
}

/* 团队详情模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.modal-body {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.modal-img {
  flex: 1;
  min-width: 300px;
}

.modal-img img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1/1.4;
  object-fit: cover;
}

.modal-info {
  flex: 2;
  min-width: 300px;
}

.modal-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--primary);
}

.modal-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--accent);
}

.modal-info p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.8;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.work-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 1/1.4;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px;
  font-size: 12px;
  text-align: center;
}
.boxa{width: 15.2%;float:left;margin:7px;}
.boxb{width: 18%;float:left;margin:7px;}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .slide-content {
    left: 50px;
  }

  .slide-content h2 {
    font-size: 36px;
  }
}

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

  .slide-content {
    left: 30px;
    bottom: 100px;
    max-width: 80%;
  }

  .slide-content h2 {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-img {
    min-width: 100%;
  }
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}
.team_item{width: 33.33%; float:left;}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
  }

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

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
  .boxa {
    width: 100%;
  }
  .swiper-slide{display:block}
  .director-card{width: 100%;}
  .work-card{width: 100%;}
  .team_item{width: 100%;}
}

/* 基础按钮样式 */
.custom-btn {
  /* 按钮尺寸 */
  padding: 6px 24px;
  font-size: 16px;
  border-radius: 6px;

  /* 按钮样式 */
  border: none;
  background-color: #698dc8;
  color: white;
  cursor: pointer;

  /* 过渡效果 */
  transition: all 0.2s ease;

  /* 文本样式 */
  font-weight: 500;
  text-align: center;
  text-decoration: none;

  /* 显示方式 */
  display: inline-block;
  box-sizing: border-box;
}