/* 全局样式增强 */
body.ui-style-0 { --primary: #d32f2f; --secondary: #1976d2; }
body.ui-style-1 { --primary: #c62828; --secondary: #0288d1; }
body.ui-style-2 { --primary: #e53935; --secondary: #0097a7; }
body.ui-style-3 { --primary: #d84315; --secondary: #00796b; }
body.ui-style-4 { --primary: #c2185b; --secondary: #388e3c; }
body.ui-style-5 { --primary: #7b1fa2; --secondary: #689f38; }
body.ui-style-6 { --primary: #512da8; --secondary: #afb42b; }
body.ui-style-7 { --primary: #303f9f; --secondary: #f57c00; }
body.ui-style-8 { --primary: #1976d2; --secondary: #e64a19; }
body.ui-style-9 { --primary: #0288d1; --secondary: #d32f2f; }
body.ui-style-10 { --primary: #0097a7; --secondary: #c2185b; }
body.ui-style-11 { --primary: #00796b; --secondary: #7b1fa2; }
body.ui-style-12 { --primary: #388e3c; --secondary: #512da8; }
body.ui-style-13 { --primary: #689f38; --secondary: #303f9f; }
body.ui-style-14 { --primary: #f57c00; --secondary: #1976d2; }
body.ui-style-15 { --primary: #e64a19; --secondary: #0288d1; }

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

/* 首页样式 */
.hero {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-title {
  font-size: 2rem;
  color: var(--primary, #d32f2f);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.site-intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.site-intro p {
  margin-bottom: 1rem;
}

.site-intro a {
  color: var(--primary, #d32f2f);
  text-decoration: underline;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary, #d32f2f);
}

/* 卡片网格 */
.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 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.card-title a:hover {
  color: var(--primary, #d32f2f);
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.meta-item {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #666;
}

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

/* 导航分类 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.guide-item {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.guide-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.guide-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.guide-item h3 a {
  color: var(--primary, #d32f2f);
}

.guide-item p {
  color: #666;
  line-height: 1.6;
}

/* 列表样式 */
.list-items {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.list-item {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s;
}

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

.list-item:hover {
  background: #f9f9f9;
}

.item-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.item-title a {
  color: #333;
}

.item-title a:hover {
  color: var(--primary, #d32f2f);
}

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

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

/* 列表页样式 */
.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.page-desc {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.list-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 大全页卡片 */
.daquan-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.daquan-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary, #d32f2f);
  min-width: 60px;
  text-align: center;
}

.card-content {
  flex: 1;
}

.badge {
  display: inline-block;
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #666;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 排行榜卡片 */
.top-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s;
}

.top-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rank-badge {
  font-size: 2rem;
  font-weight: bold;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--secondary, #1976d2);
}

.rank-badge.rank-top {
  background: var(--primary, #d32f2f);
}

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

.card-review {
  color: #666;
  font-style: italic;
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid #e0e0e0;
}

/* 专题页卡片 */
.topic-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  transition: all 0.3s;
}

.topic-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary, #d32f2f);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.card-meta-line {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* 最新页卡片 */
.latest-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s;
}

.latest-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-date {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary, #d32f2f);
  min-width: 80px;
  text-align: center;
  padding: 1rem 0.5rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.card-body {
  flex: 1;
}

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

.tag {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
}

/* 详情页样式 */
.detail-page {
  padding-top: 2rem;
}

.detail-content {
  background: #fff;
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.detail-title {
  font-size: 2.5rem;
  color: var(--primary, #d32f2f);
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-badge {
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  color: #666;
}

.detail-section {
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary, #d32f2f);
}

.info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem 2rem;
  line-height: 1.8;
}

.info-list dt {
  font-weight: bold;
  color: #666;
}

.info-list dd {
  color: #333;
}

.highlight-text {
  font-size: 1.25rem;
  color: var(--primary, #d32f2f);
  line-height: 1.8;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--primary, #d32f2f);
}

.summary-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.9;
  text-indent: 2em;
}

.review-text {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  font-style: italic;
}

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

.related-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-card:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-title a {
  color: #333;
}

.related-title a:hover {
  color: var(--primary, #d32f2f);
}

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

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

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

/* 活动链接样式 */
.nav a.active {
  color: var(--primary, #d32f2f);
  font-weight: bold;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

  .daquan-card, .top-card, .latest-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-number, .rank-badge, .card-date {
    min-width: auto;
  }

  .detail-content {
    padding: 2rem 1.5rem;
  }

  .detail-title {
    font-size: 1.75rem;
  }

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 0.75rem 1rem;
  }

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

@media (max-width: 480px) {
  .page-title {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .highlight-text {
    font-size: 1.1rem;
  }
}
