
/* Layout Variant F - UI Style 4 */

body {
  font-size: 16px;
  background: #f8f9fa;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #34495e;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* 首页样式 */
.intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.hot-section, .entry-section, .latest-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.card {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
  margin-bottom: 0.8rem;
}

.card .meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.card .desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* 列表页样式 */
.page-intro {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  position: relative;
}

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

.list-item .rank {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: #3498db;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.1rem;
}

.list-item .meta {
  font-size: 0.9rem;
  color: #888;
  margin: 0.5rem 0;
}

.list-item .desc {
  color: #666;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.list-item .review {
  color: #7f8c8d;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

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

.info-section, .oneline-section, .summary-section, .review-section, .related-section {
  margin-bottom: 2rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
  line-height: 1.6;
}

.info-list li:last-child {
  border-bottom: none;
}

.oneline {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 500;
  padding: 1rem;
  background: #ecf0f1;
  border-left: 4px solid #e74c3c;
  border-radius: 4px;
}

.summary-section p, .review-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.related-item {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: background 0.3s;
}

.related-item:hover {
  background: #f0f0f0;
}

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

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

/* 响应式 */
@media (max-width: 768px) {
  main {
    padding: 0 0.5rem;
    margin: 1rem auto;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .intro, .hot-section, .entry-section, .latest-section, .video-detail, .list-container {
    padding: 1rem;
  }
}
