/* 糖心vlog - 影视传媒视频社区 核心样式 */
:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --secondary: #2c3e50;
  --accent: #e74c3c;
  --gold: #f39c12;
  --light: #f8f9fa;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: #333;
  line-height: 1.8;
  background: var(--light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== 顶部导航 ===== */
.top-bar {
  background: var(--dark);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 44px;
}

.logo-text {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 12px;
  color: var(--gray);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  color: var(--secondary);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary);
  color: var(--white);
}

/* 搜索框 */
.search-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 14px 0;
}

.search-bar .container {
  display: flex;
  justify-content: center;
}

.search-form {
  display: flex;
  max-width: 600px;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-form input {
  flex: 1;
  padding: 12px 24px;
  border: none;
  outline: none;
  font-size: 15px;
}

.search-form button {
  padding: 12px 28px;
  background: var(--gold);
  border: none;
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.search-form button:hover {
  background: #e67e22;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--white);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--gray);
}

/* ===== Banner ===== */
.banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.banner-content h1 {
  font-size: 42px;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.banner-content p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 24px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s;
}

.banner-btn:hover {
  transform: translateY(-2px);
}

/* ===== 板块通用 ===== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--gray);
  font-size: 15px;
}

.section-title .title-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto;
}

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: rgba(192, 57, 43, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

.video-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.video-thumb .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-info h3 a:hover {
  color: var(--primary);
}

.video-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 13px;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 资讯/文章卡片 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card .thumb {
  width: 180px;
  min-height: 120px;
  flex-shrink: 0;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .content {
  padding: 16px 16px 16px 0;
  flex: 1;
}

.article-card .content h3 {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card .content p {
  font-size: 13px;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .meta {
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
}

/* ===== 专家展示 ===== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.expert-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.expert-card:hover {
  transform: translateY(-4px);
}

.expert-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 24px auto 12px;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.expert-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-card h3 {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 4px;
}

.expert-card .role {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
}

.expert-card .desc {
  font-size: 13px;
  color: var(--gray);
  padding: 0 16px 16px;
}

.expert-card .actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-bottom: 20px;
}

.expert-card .btn {
  padding: 6px 16px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
  transition: all 0.3s;
}

.expert-card .btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item .question {
  padding: 16px 24px;
  font-weight: bold;
  font-size: 15px;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-item .question:hover {
  background: #f0f0f0;
}

.faq-item .answer {
  padding: 0 24px 16px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  display: none;
}

.faq-item.open .answer {
  display: block;
}

/* ===== 评论 ===== */
.comment-section {
  max-width: 800px;
  margin: 0 auto;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-item .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-item .body {
  flex: 1;
}

.comment-item .name {
  font-weight: bold;
  color: var(--secondary);
  font-size: 14px;
}

.comment-item .time {
  font-size: 12px;
  color: #aaa;
  margin-left: 8px;
}

.comment-item .text {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.reply {
  margin-left: 64px;
  margin-top: 12px;
  padding: 12px 16px;
  background: #f8f8f8;
  border-radius: var(--radius);
  font-size: 13px;
  color: #666;
}

.reply strong {
  color: var(--primary);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: #aaa;
  font-size: 14px;
  transition: color 0.3s;
}

.footer ul a:hover {
  color: var(--primary);
}

.footer-about p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.qr-codes {
  display: flex;
  gap: 16px;
}

.qr-codes img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  background: var(--white);
  padding: 4px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ===== 分享按钮 ===== */
.share-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
  transition: transform 0.3s;
}

.share-btn:hover {
  transform: scale(1.15);
}

.share-weixin { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #000; }
.share-bilibili { background: #00a1d6; }

/* ===== 标签 ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 12px;
  color: var(--gray);
  transition: all 0.3s;
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--secondary);
  transition: all 0.3s;
}

.pagination .current,
.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== 内页内容 ===== */
.page-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.page-content h1 {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.page-content .subtitle {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-content p {
  margin-bottom: 16px;
  font-size: 15px;
}

.page-content h2 {
  font-size: 22px;
  color: var(--secondary);
  margin: 32px 0 16px;
}

.page-content h3 {
  font-size: 18px;
  color: var(--secondary);
  margin: 24px 0 12px;
}

.page-content .highlight-box {
  background: linear-gradient(135deg, #fff5f5, #fff0f0);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== 内页视频展示 ===== */
.inner-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.inner-video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== 合作品牌Logo墙 ===== */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
}

.brand-wall-item {
  width: 140px;
  height: 70px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.brand-wall-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ===== 统计数字 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-item .number {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary);
}

.stat-item .label {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

/* ===== 时间线/步骤 ===== */
.steps {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  z-index: 1;
}

.step-content h3 {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--gray);
}

/* ===== 移动端适配 ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-main {
    flex-wrap: wrap;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .banner {
    height: 320px;
  }

  .banner-content h1 {
    font-size: 26px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    flex-direction: column;
  }

  .article-card .thumb {
    width: 100%;
    min-height: 180px;
  }

  .article-card .content {
    padding: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-content {
    padding: 24px 16px;
  }

  .inner-video-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 内页布局变体 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  opacity: 0.8;
}

/* ===== 侧边栏布局 ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.sidebar h3 {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.sidebar ul li a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ===== 视频大图展示 ===== */
.video-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.video-featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.video-featured .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-featured .overlay .play-btn-large {
  width: 80px;
  height: 80px;
  background: rgba(192, 57, 43, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-featured .overlay .play-btn-large::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

/* ===== 时间线样式 ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 10px 0 10px 20px;
  border-left: 3px solid var(--primary);
  position: relative;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 14px;
  width: 11px;
  height: 11px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
}

.timeline li strong {
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}

/* ===== 分页样式 ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: #333;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 滚动后导航样式 ===== */
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===== 搜索栏 ===== */
.search-bar {
  background: var(--secondary);
  padding: 12px 0;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.search-form input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 30px 0 0 30px;
  font-size: 14px;
  outline: none;
}

.search-form button {
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 30px 30px 0;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}
