/* 全局样式增强 */
body {
  min-height: 100vh;
}

a {
  transition: all 0.3s ease;
}

/* 首页样式 */
.intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

.intro a {
  color: #e74c3c;
  text-decoration: underline;
}

.hot-section, .top-section, .latest-section {
  margin-bottom: 3rem;
}

.hot-section h2, .top-section h2, .latest-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #e74c3c;
}

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

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

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

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

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

.video-card h3 a:hover {
  color: #e74c3c;
}

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

.video-card .intro {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}

.video-list {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ecf0f1;
  gap: 1rem;
}

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

.list-item .rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e74c3c;
  min-width: 40px;
  text-align: center;
}

.list-item h4 {
  flex: 1;
  margin: 0;
}

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

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

.list-item .year {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* 列表页样式 */
.page-intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

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

.daquan-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

.daquan-item h3 a:hover {
  color: #e74c3c;
}

.daquan-item .meta {
  color: #7f8c8d;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.daquan-item .tags {
  color: #95a5a6;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.daquan-item .summary {
  color: #555;
  line-height: 1.6;
}

.top-list {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ecf0f1;
  gap: 1rem;
}

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

.top-item .rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #e74c3c;
  min-width: 50px;
  text-align: center;
}

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

.top-item h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

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

.top-item h3 a:hover {
  color: #e74c3c;
}

.top-item .one-line {
  color: #666;
  font-size: 0.9rem;
}

.top-item .year-badge {
  background: #e74c3c;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.topic-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.topic-group {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.topic-title {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e74c3c;
}

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

.topic-item {
  padding: 1rem;
  border: 1px solid #ecf0f1;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.topic-item:hover {
  border-color: #e74c3c;
}

.topic-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

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

.topic-item h4 a:hover {
  color: #e74c3c;
}

.topic-item p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.latest-item .latest-date {
  background: #3498db;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  min-width: 80px;
  text-align: center;
}

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

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

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

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

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

.latest-item .intro {
  color: #555;
  line-height: 1.6;
}

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

.detail h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #e74c3c;
}

.meta-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  line-height: 2;
}

.meta-info p {
  margin: 0.5rem 0;
}

.meta-info strong {
  color: #2c3e50;
  display: inline-block;
  min-width: 80px;
}

.one-line, .summary, .review, .related {
  margin-bottom: 2rem;
}

.one-line h2, .summary h2, .review h2, .related h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid #e74c3c;
}

.one-line p, .summary p, .review p {
  color: #555;
  line-height: 1.8;
  text-indent: 2em;
}

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

.related-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #3498db;
  transition: border-color 0.3s;
}

.related-item:hover {
  border-left-color: #e74c3c;
}

.related-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

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

.related-item h4 a:hover {
  color: #e74c3c;
}

.related-item p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .latest-item .latest-date {
    align-self: flex-start;
  }

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

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

  .detail {
    padding: 1rem;
  }

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