/* 全局样式 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

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

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.card h3 a {
  color: #667eea;
  transition: color 0.3s;
}

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

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

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

/* 列表页样式 */
.list-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.list-card .rank {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.list-card .date {
  display: inline-block;
  background: #f093fb;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.list-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  margin-left: 60px;
}

.list-card h3 a {
  color: #333;
  transition: color 0.3s;
}

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

.list-card .meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 10px;
  margin-left: 60px;
}

.list-card .desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-left: 60px;
}

/* 详情页相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.related-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.related-card h4 a {
  color: #667eea;
  transition: color 0.3s;
}

.related-card h4 a:hover {
  color: #764ba2;
}

.related-card .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 8px;
}

.related-card .desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
  .grid, .related-grid {
    grid-template-columns: 1fr;
  }

  .list-card h3,
  .list-card .meta,
  .list-card .desc {
    margin-left: 0;
  }

  .list-card .rank {
    position: static;
    margin-bottom: 10px;
  }
}

/* UI风格变体 */
.ui-style-0 { --primary: #667eea; --secondary: #764ba2; }
.ui-style-1 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-2 { --primary: #4facfe; --secondary: #00f2fe; }
.ui-style-3 { --primary: #43e97b; --secondary: #38f9d7; }
.ui-style-4 { --primary: #fa709a; --secondary: #fee140; }
.ui-style-5 { --primary: #30cfd0; --secondary: #330867; }
.ui-style-6 { --primary: #a8edea; --secondary: #fed6e3; }
.ui-style-7 { --primary: #ff9a9e; --secondary: #fecfef; }
.ui-style-8 { --primary: #ffecd2; --secondary: #fcb69f; }
.ui-style-9 { --primary: #ff6e7f; --secondary: #bfe9ff; }
.ui-style-10 { --primary: #e0c3fc; --secondary: #8ec5fc; }
.ui-style-11 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-12 { --primary: #4facfe; --secondary: #00f2fe; }
.ui-style-13 { --primary: #43e97b; --secondary: #38f9d7; }
.ui-style-14 { --primary: #fa709a; --secondary: #fee140; }
.ui-style-15 { --primary: #667eea; --secondary: #764ba2; }
