/* 糖心vlog 论坛网站全局样式 */

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

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

/* 头部导航样式 */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.site-logo h1 {
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.site-logo h1:hover {
  transform: scale(1.05);
}

.main-navigation ul {
  display: flex;
  gap: 30px;
}

.main-navigation a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.main-navigation a:hover {
  background: rgba(255,255,255,0.2);
}

/* 英雄区域 */
.hero-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content-wrapper h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-content-wrapper p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: #667eea;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* 主要内容区 */
.main-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* 网格布局 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.content-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.content-card:hover .card-image-wrapper img {
  transform: scale(1.1);
}

.card-content-area {
  padding: 20px;
}

.card-content-area h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.card-content-area p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.card-meta-info {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

/* 页脚样式 */
.site-footer {
  background: #2d3748;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #cbd5e0;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.copyright-text {
  font-size: 14px;
  color: #a0aec0;
}

/* 列表页面样式 */
.video-list-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.video-item-row {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.video-item-row:last-child {
  border-bottom: none;
}

.video-thumbnail-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.video-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info-section {
  flex: 1;
}

.video-info-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

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

.video-stats-bar {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #999;
}

/* 论坛样式 */
.forum-topic-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.forum-topic-card:hover {
  transform: translateX(5px);
}

.topic-header-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.topic-title-text {
  font-size: 20px;
  color: #333;
  font-weight: bold;
  margin-bottom: 10px;
}

.topic-meta-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e9ecef;
  color: #667eea;
  border-radius: 15px;
  font-size: 12px;
}

.topic-content-text {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.topic-footer-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

/* 作者卡片 */
.creator-profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.creator-avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #667eea;
}

.creator-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-name-text {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.creator-bio-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.creator-stats-row {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.stat-item-col {
  text-align: center;
}

.stat-number-text {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  display: block;
}

.stat-label-text {
  font-size: 13px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-navigation ul {
    gap: 15px;
  }

  .main-navigation a {
    font-size: 14px;
    padding: 6px 12px;
  }

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

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .video-item-row {
    flex-direction: column;
  }

  .video-thumbnail-wrap {
    width: 100%;
    height: 180px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 15px;
  }
}
