/* UI Style 8 - Layout D */

:root {
  --primary-color: #0066cc;
  --secondary-color: #f0f0f0;
  --text-color: #333;
  --border-color: #ddd;
  --hover-color: #0052a3;
}

body {
  font-size: 16px;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero .intro {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.95;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

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

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.video-card .meta {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.video-card .oneline {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.section-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

/* 列表页样式 */
.list-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.page-intro {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555;
}

.video-item-ranked,
.video-item-topic,
.video-item-latest,
.video-item-simple {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.video-item-ranked {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.video-item-ranked .rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 60px;
}

.video-item-ranked .video-info {
  flex: 1;
}

.topic-group {
  margin-bottom: 3rem;
}

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

.video-item-latest .date-label {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.video-item-simple .tags {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* 详情页样式 */
.detail-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.basic-info ul {
  list-style: none;
}

.basic-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--secondary-color);
}

.summary p,
.review p,
.one-line p {
  line-height: 1.8;
  text-align: justify;
}

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

.related-item {
  background: var(--secondary-color);
  padding: 1rem;
  border-radius: 6px;
}

.related-item h4 {
  margin-bottom: 0.5rem;
}

.related-item p {
  font-size: 0.9rem;
  color: #666;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .hero .intro { font-size: 0.9rem; }
  .video-grid { grid-template-columns: 1fr; }
  .detail-page { padding: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
}
