/* Modern Clean UI Style */
:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2ecc71;
  --accent: #e74c3c;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #e1e8ed;
  --shadow: rgba(0, 0, 0, 0.08);
}

body {
  min-height: 100vh;
  background: var(--bg);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px var(--shadow);
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.95;
}

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

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.tag-site {
  background: rgba(46, 204, 113, 0.3);
}

/* Intro Section */
.intro-section {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px var(--shadow);
}

.intro-section h2 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.intro-section p {
  line-height: 1.8;
  color: var(--text);
}

.intro-section a {
  color: var(--primary);
  text-decoration: underline;
}

/* List Section */
.list-section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 24px;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.more-link {
  color: var(--primary);
  font-size: 15px;
  transition: all 0.3s;
}

.more-link:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s;
}

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

.card-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
}

.card-info {
  padding: 16px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.card-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tag {
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
}

/* Page Header */
.page-header {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px var(--shadow);
}

.page-header h1 {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 12px;
}

.page-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

/* Rank List */
.rank-list {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.rank-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

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

.rank-item:hover {
  background: var(--bg);
}

.rank-num {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg);
  border-radius: 8px;
  margin-right: 20px;
}

.rank-num.top-three {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
}

.rank-content {
  flex: 1;
  display: block;
}

.rank-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.rank-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.rank-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Topic Section */
.topic-section {
  margin-bottom: 50px;
}

.topic-title {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--secondary);
}

/* Latest List */
.latest-list {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.latest-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

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

.latest-item:hover {
  background: var(--bg);
}

.latest-date {
  flex: 0 0 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  margin-right: 20px;
}

.latest-content {
  flex: 1;
  display: block;
}

.latest-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.latest-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.latest-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Detail Page */
.detail-page {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px var(--shadow);
}

.detail-header h1 {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.meta-item {
  font-size: 15px;
  color: var(--text);
}

.meta-item strong {
  color: var(--text-light);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.detail-section {
  margin-bottom: 35px;
}

.detail-section h2 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.highlight-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--primary);
  font-weight: 500;
  background: rgba(52, 152, 219, 0.05);
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid var(--primary);
}

.summary-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 12px;
}

.review-box {
  background: var(--bg);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
}

.review-box p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* Related Grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--shadow);
}

.related-cover {
  height: 100px;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
}

.related-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 12px 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-desc {
  font-size: 13px;
  color: var(--text-light);
  padding: 0 12px 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .intro-section {
    padding: 20px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .card-cover {
    height: 120px;
    font-size: 36px;
  }

  .card-info {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
  }

  .page-header {
    padding: 30px 20px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .rank-num {
    flex: 0 0 40px;
    height: 40px;
    font-size: 18px;
    margin-right: 12px;
  }

  .rank-title {
    font-size: 16px;
  }

  .latest-date {
    flex: 0 0 60px;
    height: 50px;
    font-size: 14px;
    margin-right: 12px;
  }

  .latest-title {
    font-size: 16px;
  }

  .detail-page {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 24px;
  }

  .detail-meta {
    flex-direction: column;
    gap: 8px;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
