/* 全局样式 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding: 2rem 0;
}

/* 页面标题 */
.page-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

/* 介绍区域 */
.intro {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 1.8;
}

/* 区块 */
.section {
  margin-bottom: 3rem;
}

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

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

.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;
  font-size: 1.1rem;
}

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

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

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

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

/* 链接卡片 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s;
}

.link-card:hover {
  transform: translateY(-4px);
}

.link-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.link-card p {
  opacity: 0.9;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s;
}

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

/* 列表样式 */
.list {
  display: grid;
  gap: 1rem;
}

.list-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

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

.year-section {
  margin-bottom: 2rem;
}

.year-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #667eea;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

/* 排行榜样式 */
.rank-list {
  display: grid;
  gap: 1.5rem;
}

.rank-item {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rank-num {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  margin-bottom: 0.5rem;
}

.rank-content h3 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.2rem;
}

.rank-content h3 a:hover {
  color: #667eea;
}

.tags {
  color: #667eea;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.desc {
  color: #555;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* 专题样式 */
.topic-list {
  display: grid;
  gap: 1.5rem;
}

.topic-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.topic-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

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

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

/* 最新列表样式 */
.latest-list {
  display: grid;
  gap: 1rem;
}

.latest-item {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.date {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  color: #667eea;
  font-weight: bold;
  display: flex;
  align-items: center;
}

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

.latest-item h3 {
  margin-bottom: 0.3rem;
}

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

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

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

.detail-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info-item {
  font-size: 0.95rem;
}

.info-item strong {
  color: #667eea;
}

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

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

.highlight {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
  line-height: 1.8;
}

.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

.related h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

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

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

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

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

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

.related-card h4 a:hover {
  color: #667eea;
}

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

.footer-nav {
  margin-top: 1rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-nav a:hover {
  color: #667eea;
}

/* 响应式 */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.4rem;
  }

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

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

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

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

  .rank-num {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}