/* 全局样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 首页Hero区域 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero .intro {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* 内容区块 */
.content-section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

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

.card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card h3, .card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.card h3 a, .card h4 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.card h3 a:hover, .card h4 a:hover {
  color: #667eea;
}

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

.card .one-line {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card .tags {
  color: #95a5a6;
  font-size: 0.85rem;
}

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

/* 紧凑卡片 */
.card-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.card-compact {
  background: #fff;
  padding: 1rem;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.card-compact:hover {
  border-color: #667eea;
}

.card-compact h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card-compact .meta-small {
  color: #95a5a6;
  font-size: 0.85rem;
}

/* 列表容器 */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  transition: background 0.3s;
}

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

.list-item a {
  color: #2c3e50;
  text-decoration: none;
  flex: 1;
}

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

.list-item .year {
  color: #95a5a6;
  font-size: 0.9rem;
  margin-left: 1rem;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e8ed;
}

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.more-link a:hover {
  color: #764ba2;
}

/* 关于区域 */
.about p {
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

/* 列表页样式 */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.page-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.95;
}

.list-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

/* 分组展示 */
.group-section {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 5px solid #667eea;
}

/* 排行榜 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rank-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s;
}

.rank-item:hover {
  background: #e9ecef;
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  min-width: 60px;
  text-align: center;
  line-height: 1;
}

.rank-content {
  flex: 1;
}

.rank-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.rank-content .review {
  color: #666;
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* 专题 */
.topic-section {
  margin-bottom: 2.5rem;
}

.topic-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

.card-horizontal {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 6px;
  border-top: 3px solid #667eea;
}

.card-horizontal h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.meta-inline {
  color: #95a5a6;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.one-line-small {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 最新整理 */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-latest {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.card-latest:hover {
  border-color: #667eea;
}

.latest-date {
  position: absolute;
  top: -12px;
  right: 15px;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: bold;
}

.card-latest h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.summary-short {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* 详情页 */
.detail-page {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 3px solid #667eea;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
}

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

.detail-section h2 {
  font-size: 1.75rem;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 5px solid #667eea;
}

.detail-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

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

.info-item {
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  font-size: 0.95rem;
}

.info-item strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.highlight {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #2c3e50;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 5px solid #667eea;
  font-weight: 500;
}

.summary-content, .review-content {
  line-height: 2;
  color: #555;
  font-size: 1.05rem;
  text-align: justify;
}

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

.related-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid #667eea;
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-3px);
}

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

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

  .hero h1 {
    font-size: 1.5rem;
  }

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

  .content-section {
    padding: 1.5rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .card-grid, .card-compact-grid, .card-row, .latest-grid, .related-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .detail-header h1 {
    font-size: 2rem;
  }

  .rank-item {
    flex-direction: column;
    gap: 1rem;
  }

  .rank-number {
    min-width: auto;
  }

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

/* UI风格变体 */
.ui-style-7 .hero {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.ui-style-7 .card {
  border-left-color: #11998e;
}

.ui-style-7 .content-section h2 {
  border-bottom-color: #11998e;
}

.ui-style-7 .more-link a {
  color: #11998e;
}

.ui-style-7 .detail-header {
  border-bottom-color: #11998e;
}

.ui-style-7 .detail-section h2 {
  border-left-color: #11998e;
}

.ui-style-7 .highlight {
  border-left-color: #11998e;
}

.ui-style-7 .info-item strong {
  color: #11998e;
}
