/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #2c3e50;
  line-height: 1.8;
}

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

/* 导航栏已在内联样式中定义基础样式，这里补充美化 */
nav {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

nav a {
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

nav a.logo {
  color: #fff !important;
  font-size: 22px;
  letter-spacing: 1px;
}

/* 首页 Hero 区域 */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 32px;
  color: #1a202c;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.hero .intro {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* 模块 */
.module {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.module h2 {
  font-size: 24px;
  color: #2d3748;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  font-weight: 700;
}

.module p {
  margin-bottom: 20px;
  color: #718096;
}

.module a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.module a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #f7fafc;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card h3 a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s;
}

.card h3 a:hover {
  color: #667eea;
}

.card .meta {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 8px;
}

.card .one-line {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

/* 列表页 */
.page-header {
  text-align: center;
  background: #fff;
  padding: 50px 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.page-header h1 {
  font-size: 28px;
  color: #1a202c;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-intro {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.list-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.list-card {
  display: flex;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s;
}

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

.list-card:hover {
  background: #f7fafc;
}

.list-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #edf2f7;
  color: #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 20px;
}

.rank-badge {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-right: 20px;
}

.list-content {
  flex: 1;
}

.list-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

.list-content h3 a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s;
}

.list-content h3 a:hover {
  color: #667eea;
}

.list-content .meta {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 8px;
}

.list-content .desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

.list-content .date {
  font-size: 12px;
  color: #cbd5e0;
  margin-bottom: 6px;
}

/* 专题分组 */
.topic-group {
  margin-bottom: 40px;
}

.topic-title {
  font-size: 22px;
  color: #667eea;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #667eea;
  font-weight: 700;
}

.topic-item {
  padding: 16px;
  border-bottom: 1px dashed #e2e8f0;
}

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

.topic-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

.topic-item h4 a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s;
}

.topic-item h4 a:hover {
  color: #667eea;
}

.topic-item .meta {
  font-size: 13px;
  color: #a0aec0;
}

/* 详情页 */
.detail-page {
  max-width: 900px;
}

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

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
}

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

.detail-section {
  background: #fff;
  padding: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-section:last-child {
  border-radius: 0 0 12px 12px;
  border-bottom: none;
}

.detail-section h2 {
  font-size: 22px;
  color: #2d3748;
  margin-bottom: 16px;
  font-weight: 700;
}

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

.info-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 15px;
  color: #4a5568;
}

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

.info-list strong {
  color: #2d3748;
  font-weight: 600;
  margin-right: 8px;
}

.highlight {
  font-size: 18px;
  color: #667eea;
  font-weight: 600;
  line-height: 1.8;
  padding: 16px;
  background: #f7fafc;
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

.summary {
  font-size: 16px;
  color: #4a5568;
  line-height: 2;
  text-align: justify;
}

.review {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.9;
  padding: 20px;
  background: #fffaf0;
  border-left: 4px solid #f6ad55;
  border-radius: 4px;
  font-style: italic;
}

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

.related-card {
  padding: 16px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
  border-color: #667eea;
}

.related-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.related-card h4 a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s;
}

.related-card h4 a:hover {
  color: #667eea;
}

.related-card p {
  font-size: 13px;
  color: #718096;
  line-height: 1.6;
}

/* UI风格变体（通过body class控制，这里仅示例） */
.ui-style-0 { --accent: #667eea; }
.ui-style-1 { --accent: #f093fb; }
.ui-style-2 { --accent: #4facfe; }
.ui-style-3 { --accent: #43e97b; }
.ui-style-4 { --accent: #fa709a; }
.ui-style-5 { --accent: #30cfd0; }
.ui-style-6 { --accent: #a8edea; }
.ui-style-7 { --accent: #ff6e7f; }
.ui-style-8 { --accent: #fbc2eb; }
.ui-style-9 { --accent: #84fab0; }
.ui-style-10 { --accent: #667eea; }
.ui-style-11 { --accent: #f093fb; }
.ui-style-12 { --accent: #4facfe; }
.ui-style-13 { --accent: #43e97b; }
.ui-style-14 { --accent: #fa709a; }
.ui-style-15 { --accent: #30cfd0; }

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 20px 12px;
  }

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

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

  .module {
    padding: 20px;
  }

  .module h2 {
    font-size: 20px;
  }

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

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

  .list-card {
    flex-direction: column;
  }

  .list-num,
  .rank-badge {
    margin-bottom: 12px;
  }

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

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