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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: #007bff;
  text-decoration: none;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #666;
  text-decoration: none;
  padding: 0.6rem 1rem;
  display: block;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: #333;
  background: #f0f0f0;
  text-decoration: none;
}

/* 主内容区 */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

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

/* 页面标题 */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 2.5rem 0 1.2rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #007bff;
}

.section-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: #444;
  margin: 2rem 0 1rem 0;
}

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

.hero-section .page-title {
  color: #fff;
  margin: 0;
  text-align: center;
}

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

.intro-content p {
  margin: 0 0 1rem 0;
  line-height: 1.8;
  color: #555;
}

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

.home-section {
  margin-bottom: 3rem;
}

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

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

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

.video-card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

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

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.meta-item {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #e9ecef;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
}

.video-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.8rem 0 0 0;
}

/* 门户卡片 */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.portal-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border-left: 4px solid #007bff;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.portal-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.portal-card h3 a {
  color: #222;
}

.portal-card p {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* 视频列表 */
.video-list {
  margin-top: 1.5rem;
}

.video-item {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

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

.video-item h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.15rem;
}

.video-item h3 a {
  color: #222;
}

.video-item p {
  color: #666;
  margin: 0.8rem 0 0 0;
  line-height: 1.6;
}

.section-more {
  text-align: center;
  margin-top: 2rem;
}

.more-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}

.more-link:hover {
  background: #0056b3;
  text-decoration: none;
  transform: translateY(-2px);
}

/* 列表页样式 */
.list-header {
  margin-bottom: 2rem;
}

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

.list-intro p {
  margin: 0 0 1rem 0;
  line-height: 1.8;
  color: #555;
}

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

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

.year-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1.2rem 0;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
}

/* 排行榜样式 */
.top-list {
  margin-top: 2rem;
}

.top-item {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.top-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.top-rank {
  flex-shrink: 0;
}

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

.top-content {
  flex: 1;
}

.top-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.top-title a {
  color: #222;
}

.top-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: #e7f3ff;
  color: #007bff;
  border-radius: 4px;
  font-size: 0.85rem;
}

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

/* 专题页样式 */
.topic-intro {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
}

.topic-intro p {
  color: #fff;
  margin: 0 0 1rem 0;
}

.topic-list {
  margin-top: 2rem;
}

.topic-item {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-number {
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #ddd;
  width: 60px;
  text-align: center;
}

.topic-content {
  flex: 1;
}

.topic-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.topic-title a {
  color: #222;
}

.topic-analysis {
  margin-top: 1.2rem;
  padding: 1.2rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #f5576c;
}

.analysis-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f5576c;
  margin: 0 0 0.8rem 0;
}

.topic-analysis p {
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* 最新页样式 */
.latest-list {
  margin-top: 2rem;
}

.latest-item {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

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

.latest-date {
  flex-shrink: 0;
  width: 110px;
}

.date-text {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background: #e9ecef;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.latest-content {
  flex: 1;
}

.latest-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.latest-title a {
  color: #222;
}

.latest-desc {
  color: #666;
  line-height: 1.7;
  margin: 0.8rem 0 0 0;
}

/* 详情页样式 */
.detail-container {
  max-width: 900px;
}

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

.detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin: 0;
  line-height: 1.3;
}

.detail-info,
.detail-oneline,
.detail-summary,
.detail-related {
  margin-bottom: 2.5rem;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem 1.5rem;
  margin: 0;
}

.info-list dt {
  font-weight: 600;
  color: #666;
}

.info-list dd {
  margin: 0;
  color: #333;
}

.highlight-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  padding: 1.2rem;
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  border-radius: 4px;
  margin: 0;
}

.summary-text {
  color: #555;
  line-height: 1.9;
}

.summary-text p {
  margin: 0 0 1rem 0;
}

.summary-text p:last-child {
  margin-bottom: 0;
}

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

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

.related-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.related-card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.related-card h3 a {
  color: #222;
}

.related-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.8rem 0;
}

.related-meta {
  color: #999;
  font-size: 0.85rem;
}

/* 底部 */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 1rem 0;
  color: #bdc3c7;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-nav a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* 响应式 */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    overflow: hidden;
  }

  .nav li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .nav a {
    padding: 0.5rem 0.3rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .container {
    padding: 0 1rem;
  }

  .main-content {
    padding: 1.5rem 0;
  }

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

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

  .hero-section {
    padding: 2rem 1.5rem;
  }

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

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

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

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

  .topic-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .topic-number {
    font-size: 1.5rem;
    width: auto;
    text-align: left;
  }

  .latest-item {
    flex-direction: column;
    gap: 0.8rem;
  }

  .latest-date {
    width: auto;
  }

  .video-detail {
    padding: 1.5rem;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 0.6rem 1rem;
  }

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

  .footer-nav {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }

  .logo {
    font-size: 1.1rem;
  }
}
