/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: #f5f5f5;
}

/* 容器样式（固定宽度，居中） */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}
.breadcrumb a {
  color: #e63946;
  text-decoration: none;
}
.breadcrumb span {
  margin: 0 5px;
}

/* 导航栏 */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 15px 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 20px;
  font-weight: bold;
  color: #e63946;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}
.nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #e63946;
}
/* Hero区域样式 */
.hero {
  background: linear-gradient(to right, #e63946, #ff6b6b);
  color: #fff;
  padding: 60px 0;
  border-radius: 8px;
  margin: 20px auto;
}
.hero-content {
  text-align: center;
}
.hero h1 {
  font-size: 28px;
  margin-bottom: 15px;
}
.hero p {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #fff;
  color: #e63946;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.hero-btn:hover {
  background-color: #f8f8f8;
  color: #d62828;
}
/* 轮播图 */
.carousel {
  position: relative;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 8px;
}
.carousel-slide {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  flex: 0 0 100%;
}
.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}
.prev-btn {
  left: 10px;
}
.next-btn {
  right: 10px;
}

/* 主体布局（左右分栏，均衡不集中） */
.main-content {
  display: flex;
  gap: 20px;
  margin: 20px auto;
  align-items: flex-start;
}
.left-content {
  flex: 7; /* 左侧占7成宽度 */
  min-width: 0;
}
.right-sidebar {
  flex: 3; /* 右侧占3成宽度 */
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  /* 纵向排列，填满高度 */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 左侧内容板块样式 */
.content-section, .content-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.content-section h2, .content-item h3 {
  color: #e63946;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* 分类/播放/演员/解说板块子样式 */
.category-list, .play-list, .actor-list, .explain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.category-item, .actor-item, .explain-item {
  flex: 1;
  min-width: 250px;
}
.play-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 10px;
}
.play-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.play-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #e63946;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* 右侧侧边栏子样式（填满无空白） */
.sidebar-title {
  font-size: 16px;
  color: #333;
  border-bottom: 2px solid #e63946;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.friend-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.friend-link-list a {
  background-color: #f2f2f2;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background-color 0.3s;
}
.friend-link-list a:hover {
  background-color: #e63946;
  color: #fff;
}
.hot-play-list, .hot-qa-list, .new-update-list {
  list-style: none;
  padding-left: 10px;
}
.hot-play-list li, .hot-qa-list li, .new-update-list li {
  margin-bottom: 8px;
  font-size: 14px;
}
.hot-play-list a, .hot-qa-list a, .new-update-list a {
  color: #333;
  text-decoration: none;
}
.hot-play-list a:hover, .hot-qa-list a:hover {
  color: #e63946;
}
.user-comment {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  line-height: 1.6;
  font-size: 14px;
}
.user-comment p {
  margin-bottom: 8px;
}
.notice {
  background-color: #fff8e1;
  padding: 15px;
  border-left: 4px solid #ff6b6b;
  border-radius: 6px;
  font-size: 14px;
}
.qr-box {
  text-align: center;
}
.qr-box img {
  width: 160px;
  height: 160px;
  margin: 10px 0;
  border-radius: 8px;
}
.qr-box p {
  font-size: 14px;
  color: #333;
}

/* 页脚样式（撑满右下角，无空白） */
.footer {
  background-color: #333;
  color: #fff;
  padding: 30px 0;
  margin-top: 30px;
}
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-col {
  flex: 1;
  min-width: 180px;
}
.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #444;
}
.foot-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-link a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}
.foot-link a:hover {
  color: #fff;
}
.copyright {
  text-align: center;
  color: #ccc;
  border-top: 1px solid #444;
  padding-top: 16px;
  font-size: 14px;
}

/* 响应式适配（移动端也无空白） */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  .nav-menu {
    gap: 15px;
    font-size: 14px;
  }
  .carousel-item img {
    height: 200px;
  }
}