/* 全局样式 */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* 标题样式 */
h1, h2, h3 {
  line-height: 1.3;
}

.page-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.section-heading {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
}

/* 首页样式 */
.hero-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.site-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-top: 1rem;
}

.site-intro p {
  margin-bottom: 1rem;
}

.site-intro a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.site-intro a:hover {
  text-decoration: underline;
}

/* 视频网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.video-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.video-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.meta-item {
  background: var(--bg-color);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.video-desc {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.video-item {
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.video-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.item-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.item-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.item-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.item-desc {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.75rem 2rem;
  border: 2px solid var(--secondary-color);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.more-link a:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* 列表页样式 */
.list-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 6px;
}

.video-list-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-card-full {
  display: flex;
  gap: 1rem;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.video-card-full:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
}

.card-content {
  flex: 1;
}

.video-one-line {
  color: var(--text-color);
  line-height: 1.6;
  margin: 0.75rem 0;
  font-size: 1rem;
}

.video-review {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0.75rem;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  background: var(--secondary-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* 详情页样式 */
.detail-page {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--secondary-color);
}

.detail-info {
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.info-item {
  padding: 0.75rem;
  background: var(--bg-color);
  border-radius: 6px;
}

.info-label {
  font-weight: 600;
  color: var(--primary-color);
}

.info-value {
  color: var(--text-color);
}

.tags-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.detail-oneline {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
}

.detail-oneline .section-heading {
  color: #fff;
  margin-top: 0;
}

.oneline-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #fff;
  font-weight: 500;
}

.detail-summary {
  margin-bottom: 2rem;
}

.summary-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
  text-align: justify;
}

.detail-review {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  font-style: italic;
}

.detail-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.related-card {
  background: var(--bg-color);
  padding: 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.related-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.related-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.related-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* 页脚 */
.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .hero-section, .list-section, .detail-page {
    padding: 1.5rem 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 1.8rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .video-card-full {
    flex-direction: column;
  }

  .rank-number {
    align-self: flex-start;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
