
/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.7;
  font-size: 16px;
}

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

/* 头部 */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  text-align: center;
}

header .logo a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

header .logo a:hover {
  opacity: 0.9;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}

header nav ul li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.6rem 0.5rem;
  display: block;
  border-radius: 4px;
  transition: background 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 500;
}

header nav ul li a:hover {
  background: rgba(255,255,255,0.2);
}

/* 主内容区 */
main {
  padding: 2.5rem 0;
  min-height: 60vh;
}

/* 标题样式 */
h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin: 1.5rem 0;
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  color: #34495e;
  margin: 2rem 0 1rem;
  font-weight: 600;
  border-left: 4px solid #667eea;
  padding-left: 0.8rem;
}

h3 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

/* 首页特殊样式 */
.hero {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.site-intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.site-intro a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.site-intro a:hover {
  text-decoration: underline;
}

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

.video-card {
  background: white;
  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.12);
}

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

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

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

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

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.video-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

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

.video-item h3 {
  margin-top: 0;
}

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

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

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

/* 入口卡片 */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

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

.entry-card:hover {
  transform: translateY(-6px);
}

.entry-card h3 a {
  color: #667eea;
  text-decoration: none;
  font-size: 1.4rem;
}

.entry-card h3 a:hover {
  text-decoration: underline;
}

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

.ranked-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  margin-top: 0;
}

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

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

.rank-content .tags {
  color: #95a5a6;
  font-size: 0.9rem;
}

.rank-content .reason {
  margin-top: 0.8rem;
  line-height: 1.7;
  color: #555;
}

/* 专题样式 */
.topic-intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

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

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

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

.topic-desc {
  margin-top: 1rem;
  line-height: 1.8;
  color: #444;
}

/* 最新整理样式 */
.latest-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.date-tag {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.latest-content {
  flex: 1;
}

.latest-content h3 {
  margin-top: 0;
}

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

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

.latest-content .brief {
  margin-top: 0.8rem;
  color: #555;
}

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

.detail-header h1 {
  margin-top: 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.info-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #ecf0f1;
}

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

.info-list strong {
  color: #34495e;
  display: inline-block;
  min-width: 80px;
}

.highlight {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 1.2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #2c3e50;
}

.detail-summary p {
  line-height: 1.9;
  color: #444;
  text-indent: 2em;
}

.review-text {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 4px solid #667eea;
  line-height: 1.8;
  color: #555;
  font-style: italic;
}

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

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

.related-item:hover {
  background: #ecf0f1;
}

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

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

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

/* 页面头部 */
.page-header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  margin-top: 0;
}

.page-header .intro {
  line-height: 1.8;
  color: #555;
  margin-top: 1rem;
}

/* 年份分组 */
.year-group {
  margin-bottom: 3rem;
}

/* 底部 */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.8;
}

footer p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
  header nav ul li a {
    font-size: 12px;
    padding: 0.4rem 0.2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

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

  .ranked-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

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

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

  .detail-page {
    padding: 1.5rem;
  }
}
