/* 全局样式 */
body.ui-style-0 {
  font-size: 16px;
}

h1, h2, h3 { margin-bottom: 1rem; color: #2c3e50; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; }

.main-title, .page-title, .detail-title {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 3px solid #3498db;
  margin-bottom: 2rem;
}

.intro, .page-desc {
  background: white;
  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 {
  border-left: 4px solid #3498db;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.section-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

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

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

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

.card .rank {
  position: absolute;
  top: 0;
  left: 0;
  background: #e74c3c;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 8px 0 8px 0;
}

.card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

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

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

.card .meta {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.card .meta span {
  background: #ecf0f1;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card .oneline {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card .tags span {
  background: #3498db;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.detail-info ul {
  list-style: none;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-info li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #ecf0f1;
}

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

.detail-oneline, .detail-summary, .detail-review, .detail-related {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .card-grid { grid-template-columns: 1fr; gap: 1rem; }
  .main-title, .page-title, .detail-title { padding: 1rem 0; }
}