
/* 全局样式 */
body.ui-style-8 {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
}

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

/* 导航样式已在head中内联 */

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero .intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.content-section {
  padding: 3rem 0;
}

.content-section.alt {
  background: white;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

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

.card {
  background: white;
  padding: 1.5rem;
  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(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

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

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

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

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

.more-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.more-link:hover {
  background: var(--secondary);
}

.text-center {
  text-align: center;
}

/* 列表页样式 */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 3rem 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.list-section {
  padding: 3rem 0;
}

.list-item {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.list-item .rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  min-width: 50px;
  text-align: center;
}

.list-item .item-content {
  flex: 1;
}

.list-item h3 {
  margin-bottom: 0.5rem;
}

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

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

.list-item .meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.list-item .desc {
  color: #555;
  line-height: 1.6;
}

/* 详情页样式 */
.detail {
  padding: 3rem 0;
}

.detail h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.detail section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

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

.highlight p, .summary p, .review p {
  line-height: 1.8;
  font-size: 1.05rem;
}

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

.related-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.related-card:hover {
  background: #f0f0f0;
}

.related-card h4 {
  margin-bottom: 0.5rem;
}

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

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

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

/* 页脚 */
footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

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

  .hero .intro {
    font-size: 1rem;
  }

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

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

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

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