
/* 全局样式 */
body.ui-style-1 {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 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: 18px;
  margin-bottom: 10px;
}

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

.card h3 a:hover {
  color: #3498db;
}

.card .meta {
  color: #7f8c8d;
  font-size: 13px;
  margin-bottom: 10px;
}

.card .desc {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 列表样式 */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.list-number {
  font-size: 32px;
  font-weight: bold;
  color: #3498db;
  min-width: 60px;
  text-align: center;
  align-self: flex-start;
}

.list-content {
  flex: 1;
}

.list-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.list-content h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.list-content h3 a:hover {
  color: #3498db;
}

.list-content .meta {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 12px;
}

.list-content .desc {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.list-content .review {
  color: #e67e22;
  font-style: italic;
  font-size: 14px;
  padding: 10px;
  background: #fef5e7;
  border-left: 3px solid #e67e22;
  margin-top: 10px;
}

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

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

  .list-number {
    font-size: 24px;
    min-width: auto;
  }
}

/* 返回顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 999;
  transition: all 0.3s;
}

#backToTop:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

#backToTop.show {
  display: block;
}
