/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

a {
  color: #0066cc;
  transition: color 0.3s;
}

a:hover {
  color: #004499;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 页眉 */
.site-header {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.page-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #666;
  font-size: 1.1rem;
}

/* 站点介绍 */
.site-intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

/* 分区 */
section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card h3 a {
  color: #333;
  text-decoration: none;
}

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

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

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

/* 链接组 */
.link-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #667eea;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn:hover {
  background: #5568d3;
}

/* 列表 */
.list {
  list-style: none;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

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

.list a {
  font-weight: 500;
}

/* 详情页 */
.detail-page {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.detail-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2.5rem;
  color: #333;
}

.detail-info ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
}

.detail-info li {
  padding: 0.5rem 0;
  font-size: 1rem;
}

.detail-info strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.detail-oneline,
.detail-summary,
.detail-review,
.detail-related {
  margin-top: 2rem;
}

.detail-oneline p,
.detail-summary p,
.detail-review p {
  line-height: 1.8;
  color: #555;
  font-size: 1.05rem;
}

/* 页脚 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer p {
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .site-title {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

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

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

  .detail-info ul {
    grid-template-columns: 1fr;
  }
}

/* UI风格变体 */
.ui-style-0 { --primary: #667eea; }
.ui-style-1 { --primary: #f093fb; }
.ui-style-2 { --primary: #4facfe; }
.ui-style-3 { --primary: #43e97b; }
.ui-style-4 { --primary: #fa709a; }
.ui-style-5 { --primary: #30cfd0; }
.ui-style-6 { --primary: #a8edea; }
.ui-style-7 { --primary: #fed6e3; }
.ui-style-8 { --primary: #fbc2eb; }
.ui-style-9 { --primary: #f6d365; }
.ui-style-10 { --primary: #e0c3fc; }
.ui-style-11 { --primary: #8ec5fc; }
.ui-style-12 { --primary: #ffecd2; }
.ui-style-13 { --primary: #fcb69f; }
.ui-style-14 { --primary: #c471f5; }
.ui-style-15 { --primary: #fa8bff; }
