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

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: #2c5282; transition: color 0.3s; }
a:hover { color: #1a365d; }

ul { list-style: none; }

/* 头部 */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #2c5282;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

nav li { white-space: nowrap; }

nav a {
  display: block;
  padding: 8px 16px;
  color: #555;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.3s;
}

nav a:hover {
  background: #edf2f7;
  color: #2c5282;
}

/* 主容器 */
.main-container,
.detail-container,
.list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 首页 Hero */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

/* 站点介绍 */
.site-intro {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.intro-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.intro-content a {
  font-weight: 600;
}

/* 区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #2c5282;
}

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

.video-card {
  background: #fff;
  padding: 20px;
  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 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #2d3748;
}

.video-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #718096;
}

.video-meta span {
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 4px;
}

.video-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 12px;
}

.read-more {
  display: inline-block;
  padding: 8px 16px;
  background: #2c5282;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.read-more:hover {
  background: #1a365d;
  color: #fff;
}

/* 入口区块 */
.entry-section {
  margin-bottom: 40px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.entry-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.entry-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #2d3748;
}

.entry-card p {
  color: #4a5568;
  line-height: 1.6;
}

/* 视频列表 */
.video-list {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.video-list-item {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.video-list-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #2d3748;
}

.video-year {
  display: inline-block;
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #718096;
  margin-right: 12px;
}

.video-list-item p {
  font-size: 14px;
  color: #4a5568;
  margin-top: 8px;
}

.more-link {
  text-align: center;
  margin-top: 24px;
}

.more-link a {
  font-size: 16px;
  font-weight: 600;
}

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

.detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #2c5282;
}

.detail-article section {
  margin-bottom: 32px;
}

.detail-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2c5282;
  margin-bottom: 16px;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  color: #4a5568;
}

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

.oneline-text {
  font-size: 18px;
  font-weight: 600;
  color: #2c5282;
  line-height: 1.8;
  padding: 16px;
  background: #edf2f7;
  border-radius: 8px;
  border-left: 4px solid #2c5282;
}

.summary-text p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #2d3748;
}

.review-text {
  padding: 20px;
  background: #fffaf0;
  border-radius: 8px;
  border-left: 4px solid #ed8936;
}

.review-text p {
  line-height: 1.8;
  color: #2d3748;
  font-style: italic;
}

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

.related-card {
  background: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #2d3748;
}

.related-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

/* 列表页 */
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #2c5282;
}

.page-intro {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-intro p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #2d3748;
}

.page-intro p:last-child {
  margin-bottom: 0;
}

.topic-intro {
  padding: 32px;
}

/* 大全页 */
.year-group {
  margin-bottom: 40px;
}

.year-title {
  font-size: 22px;
  font-weight: 700;
  color: #2c5282;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #2c5282;
}

.daquan-list {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.daquan-item {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.daquan-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #2d3748;
}

.item-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.item-meta span {
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 4px;
  color: #718096;
}

.item-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

/* 排行榜 */
.top-list {
  list-style: none;
  counter-reset: top-counter;
}

.top-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  counter-increment: top-counter;
}

.top-rank {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.top-content {
  flex: 1;
}

.top-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2d3748;
}

.top-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}

.top-meta span {
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 4px;
  color: #718096;
}

.top-meta .tag {
  background: #fed7d7;
  color: #c53030;
}

.top-reason {
  font-size: 14px;
  line-height: 1.8;
  color: #2d3748;
}

/* 专题页 */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topic-item {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #2d3748;
}

.topic-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.topic-meta span {
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 4px;
  color: #718096;
}

.topic-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #2d3748;
}

/* 最新整理 */
.latest-list {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.latest-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.latest-date {
  flex-shrink: 0;
  width: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #2c5282;
  background: #edf2f7;
  padding: 6px 12px;
  border-radius: 4px;
  text-align: center;
}

.latest-content {
  flex: 1;
}

.latest-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #2d3748;
}

.latest-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.latest-meta span {
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 4px;
  color: #718096;
}

.latest-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

/* 底部 */
.footer {
  background: #2d3748;
  color: #cbd5e0;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer p {
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #cbd5e0;
  font-size: 14px;
}

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

/* 响应式 */
@media (max-width: 768px) {
  .header-container { height: 56px; padding: 0 12px; }
  .logo { font-size: 20px; }
  nav ul { gap: 4px; }
  nav a { padding: 6px 10px; font-size: 13px; }

  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 24px; }

  .main-container, .detail-container, .list-container { padding: 24px 12px; }

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

  .detail-article { padding: 24px 16px; }
  .detail-title { font-size: 22px; }

  .top-item { flex-direction: column; gap: 12px; }
  .top-rank { width: 40px; height: 40px; font-size: 20px; }

  .topic-item { padding: 20px; }

  .latest-item { flex-direction: column; gap: 8px; }
  .latest-date { width: auto; }

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

@media (max-width: 480px) {
  nav ul { gap: 2px; }
  nav a { padding: 6px 6px; font-size: 12px; }

  .hero h1 { font-size: 20px; }
  .section-title { font-size: 20px; }
  .page-title { font-size: 22px; }
}
