
/* 基础变量 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-color: #2c3e50;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e1e8ed;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
}

/* UI风格8的变量覆盖 */
.ui-style-8 {
  --primary-color: #e74c3c;
  --secondary-color: #f39c12;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* 头部导航 */
.site-header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* 移动端导航 */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    text-align: center;
  }

  .main-nav ul {
    justify-content: space-between;
    gap: 0;
  }

  .main-nav ul li {
    flex: 1 1 0;
    min-width: 0;
  }

  .main-nav a {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    text-align: center;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 页面标题 */
.page-title {
  font-size: 2rem;
  margin: 2rem 0;
  color: var(--primary-color);
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

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

.video-card, .entry-card, .related-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

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

.video-card h3 a, .entry-card h3 a, .related-card h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.video-card h3 a:hover, .entry-card h3 a:hover, .related-card h3 a:hover {
  color: var(--primary-color);
}

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

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

/* 列表样式 */
.video-list, .latest-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.video-item, .latest-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.video-item:hover, .latest-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-item h3, .latest-item h3 {
  margin-bottom: 0.5rem;
}

.video-item h3 a, .latest-item h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.video-item h3 a:hover, .latest-item h3 a:hover {
  color: var(--primary-color);
}

/* 站点介绍 */
.site-intro, .intro, .topic-intro {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.site-intro a, .intro a, .topic-intro a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* 排行榜 */
.ranking-list {
  margin: 2rem 0;
}

.rank-item {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.rank-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-content {
  flex: 1;
}

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

.rank-content h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.rank-content h3 a:hover {
  color: var(--primary-color);
}

/* 专题列表 */
.topic-list {
  margin: 2rem 0;
}

.topic-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.topic-item h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.topic-item h3 a:hover {
  color: var(--primary-color);
}

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

/* 最新页日期标签 */
.latest-item {
  display: flex;
  gap: 1.5rem;
}

.date-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  min-width: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-content {
  flex: 1;
}

/* 详情页 */
.detail-page section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.info-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.oneline-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1rem;
}

.summary-text {
  line-height: 1.8;
  color: #333;
  margin-top: 1rem;
  text-align: justify;
}

.review-text {
  line-height: 1.8;
  color: #555;
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid var(--secondary-color);
  border-radius: var(--radius);
}

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

.group-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* 页脚 */
.site-footer {
  background: var(--card-bg);
  margin-top: 4rem;
  padding: 2rem 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

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

.footer-nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
}

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

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

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

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

  .rank-number {
    min-width: auto;
  }

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

  .date-tag {
    min-width: auto;
    align-self: flex-start;
  }
}
