/* 全局样式 */
:root {
  --primary-color: #2c5282;
  --secondary-color: #e53e3e;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #e2e8f0;
  --hover-color: #4299e1;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* 导航栏 */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav ul {
  max-width: 1200px;
  margin: 0 auto;
}

nav a {
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover {
  background: #333 !important;
  color: #fff;
}

/* 首页 Hero 区域 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 30px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2.5em;
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}

/* 站点介绍 */
.intro {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  line-height: 1.8;
  font-size: 1.05em;
}

/* 区块标题 */
section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 15px;
}

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

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.card h3 {
  margin: 0 0 10px 0;
  font-size: 1.3em;
  color: var(--primary-color);
}

.card h3 a {
  color: var(--primary-color);
  transition: color 0.3s;
}

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

.card .meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

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

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 20px;
}

.more-link a {
  color: var(--primary-color);
  font-weight: 500;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s;
  margin: 0 10px;
}

.more-link a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 列表页样式 */
.page-header {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

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

.list-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.3s;
}

.list-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.list-card .rank {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
}

.list-card .date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.85em;
}

.list-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.4em;
  color: var(--primary-color);
}

.list-card h3 a {
  color: var(--primary-color);
}

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

.list-card .meta {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 12px;
}

.list-card .desc {
  color: #555;
  line-height: 1.7;
}

/* 详情页样式 */
.detail {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.detail header h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--primary-color);
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 15px;
}

.detail section {
  margin-bottom: 35px;
}

.detail h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 12px;
}

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

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.6;
}

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

.info-list strong {
  color: var(--primary-color);
  margin-right: 10px;
}

.oneline-section p,
.summary-section p,
.review-section p {
  line-height: 1.8;
  font-size: 1.05em;
  color: #444;
}

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

.related-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.related-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-card h4 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.related-card h4 a {
  color: var(--primary-color);
}

.related-card h4 a:hover {
  color: var(--hover-color);
}

.related-card p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

/* 页脚 */
footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .page-header h1 {
    font-size: 1.6em;
  }

  .detail {
    padding: 25px 20px;
  }

  .detail header h1 {
    font-size: 1.8em;
  }

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

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

  main {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.5em;
  }

  section h2 {
    font-size: 1.4em;
  }

  .list-card .rank,
  .list-card .date {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}

/* UI 风格变体 - 添加不同的主题色 */
.ui-style-0 { --primary-color: #2c5282; --secondary-color: #e53e3e; }
.ui-style-1 { --primary-color: #2d3748; --secondary-color: #ed8936; }
.ui-style-2 { --primary-color: #276749; --secondary-color: #38b2ac; }
.ui-style-3 { --primary-color: #744210; --secondary-color: #dd6b20; }
.ui-style-4 { --primary-color: #5a67d8; --secondary-color: #9f7aea; }
.ui-style-5 { --primary-color: #2c7a7b; --secondary-color: #319795; }
