
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333;
  --text-light: #666;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

body.ui-style-8 {
  background: var(--bg-color);
  color: var(--text-color);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

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

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

.site-intro {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.site-intro h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

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

.hot-list, .topic-section, .latest-list {
  margin-bottom: var(--spacing-xl);
}

.hot-list h2, .topic-section h2, .latest-list h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  padding-bottom: var(--spacing-xs);
  border-bottom: 3px solid var(--secondary-color);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: var(--shadow);
  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: var(--spacing-xs);
  font-size: 1.1rem;
}

.card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--secondary-color);
}

.card .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

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

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.topic-card {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.topic-card:hover {
  transform: scale(1.05);
}

.topic-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
}

.topic-card p {
  color: var(--text-light);
  margin-top: var(--spacing-sm);
}

.list-simple {
  background: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

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

.list-item .num {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
  min-width: 2rem;
}

.list-item h3 {
  flex: 1;
  font-size: 1rem;
}

.list-item h3 a {
  color: var(--text-color);
  text-decoration: none;
}

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

.list-item .year {
  color: var(--text-light);
  font-size: 0.9rem;
}

.more-link {
  text-align: center;
  margin-top: var(--spacing-md);
}

.more-link a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1rem;
}

.more-link a:hover {
  text-decoration: underline;
}

.list-page .page-header {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.list-page h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
}

.page-desc {
  color: var(--text-light);
  line-height: 1.6;
}

.list-container {
  display: grid;
  gap: var(--spacing-md);
}

.list-card, .rank-item, .latest-card {
  background: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.list-card .card-header {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.badge {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.rank-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.rank-num {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
  min-width: 3rem;
  text-align: center;
}

.rank-content {
  flex: 1;
}

.topic-group {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-md);
}

.group-title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--border-color);
}

.topic-items {
  display: grid;
  gap: var(--spacing-sm);
}

.topic-item {
  padding: var(--spacing-sm);
  border-left: 3px solid var(--secondary-color);
  padding-left: var(--spacing-sm);
}

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

.latest-card .date-badge {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.tags {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

.detail-page {
  max-width: 900px;
}

.video-detail {
  background: var(--card-bg);
  padding: var(--spacing-xl);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 3px solid var(--secondary-color);
}

.detail-info, .detail-oneline, .detail-summary, .detail-review, .related-videos {
  margin-bottom: var(--spacing-lg);
}

.detail-info h2, .detail-oneline h2, .detail-summary h2, .detail-review h2, .related-videos h2 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

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

.info-list li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--border-color);
}

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

.oneline-text, .summary-text, .review-text {
  line-height: 1.8;
  color: var(--text-light);
}

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

.related-card {
  background: var(--bg-color);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.related-card h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

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

.site-footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
  .main-content {
    padding: var(--spacing-sm);
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

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

  .video-detail {
    padding: var(--spacing-md);
  }
}
