/* 全局样式 */
body.ui-style-9 {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
  --border-color: #dee2e6;
}

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

/* 通用卡片样式 */
.card, .list-item, .related-card, .guide-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.card:hover, .list-item:hover, .related-card:hover, .guide-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card h3, .list-item h3, .related-card h4, .guide-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.4;
}

.card h3 a, .list-item h3 a, .related-card h4 a, .guide-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.card h3 a:hover, .list-item h3 a:hover, .related-card h4 a:hover, .guide-card h3 a:hover {
  color: var(--primary-color);
}

.meta {
  color: var(--secondary-color);
  font-size: 14px;
  margin-bottom: 8px;
}

.oneline, .summary {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* 首页样式 */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero .subtitle {
  font-size: 18px;
  opacity: 0.95;
}

.intro, .page-header .intro {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.intro h2, .page-header h1 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.card-grid, .related-grid, .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

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

/* 列表页样式 */
.page-header {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rank, .date, .genre {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 10px;
}

.rank {
  background: #ffc107;
  color: #000;
}

.date {
  background: #28a745;
  color: #fff;
}

.genre {
  background: #17a2b8;
  color: #fff;
}

/* 详情页样式 */
.detail {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 50px 40px;
  text-align: center;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.detail-header .subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.detail-info, .detail-content, .related {
  padding: 40px;
}

.detail-info h2, .detail-content h2, .related h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.detail-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px 20px;
  margin-bottom: 20px;
}

.detail-info dt {
  font-weight: 600;
  color: var(--secondary-color);
}

.detail-info dd {
  color: var(--text-dark);
}

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

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 13px;
  color: var(--secondary-color);
}

.highlight {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #856404;
  border-radius: 4px;
  margin-bottom: 30px;
}

.detail-content .summary {
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 30px;
}

.review {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.review h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.review p {
  line-height: 1.8;
  color: #555;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin: 0;
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
  main {
    padding: 15px;
  }

  .hero {
    padding: 40px 15px;
  }

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

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

  .detail-header, .detail-info, .detail-content, .related {
    padding: 25px 20px;
  }

  .detail-info dl {
    grid-template-columns: 80px 1fr;
    gap: 10px 15px;
  }
}