/* 全局样式 */
:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --text-color: #1e293b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

/* UI风格变体 */
.ui-style-0 { --primary-color: #3b82f6; }
.ui-style-1 { --primary-color: #8b5cf6; }
.ui-style-2 { --primary-color: #ec4899; }
.ui-style-3 { --primary-color: #f59e0b; }
.ui-style-4 { --primary-color: #10b981; }
.ui-style-5 { --primary-color: #06b6d4; }
.ui-style-6 { --primary-color: #6366f1; }
.ui-style-7 { --primary-color: #84cc16; }
.ui-style-8 { --primary-color: #f43f5e; }
.ui-style-9 { --primary-color: #14b8a6; }
.ui-style-10 { --primary-color: #a855f7; }
.ui-style-11 { --primary-color: #0ea5e9; }
.ui-style-12 { --primary-color: #22c55e; }
.ui-style-13 { --primary-color: #eab308; }
.ui-style-14 { --primary-color: #ef4444; }
.ui-style-15 { --primary-color: #8b5cf6; }

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";
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

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

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

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.main-nav a {
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-color);
  color: white;
}

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

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text-color);
  line-height: 1.3;
}

.page-intro,
.site-intro {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.topic-intro {
  padding: 32px;
}

.topic-intro h2 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 24px;
}

/* 区块标题 */
.section-title,
.region-title {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 24px 0;
  color: var(--text-color);
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
}

.card-title a {
  color: var(--text-color);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-color);
}

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

.meta-item {
  background: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--secondary-color);
}

.card-desc {
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.6;
  margin: 0;
}

.card-review {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--secondary-color);
  font-style: italic;
}

/* 导航卡片 */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.nav-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-align: center;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.nav-card h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
}

.nav-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-card p {
  margin: 0;
  color: var(--secondary-color);
  font-size: 14px;
}

/* 视频列表 */
.video-list,
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-item,
.latest-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.video-item:hover,
.latest-item:hover {
  box-shadow: var(--shadow-hover);
}

.video-item h4,
.latest-title {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.video-item h4 a,
.latest-title a {
  color: var(--text-color);
  text-decoration: none;
}

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

.item-meta,
.latest-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--secondary-color);
}

.item-desc,
.latest-desc {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-color);
}

.latest-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.latest-date {
  background: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.latest-content {
  flex: 1;
}

/* 排行列表 */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-item {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.2s;
}

.top-item:hover {
  box-shadow: var(--shadow-hover);
}

.rank-number {
  background: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.top-content {
  flex: 1;
}

.top-title {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.top-title a {
  color: var(--text-color);
  text-decoration: none;
}

.top-title a:hover {
  color: var(--primary-color);
}

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

.top-meta span {
  background: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--secondary-color);
}

.top-oneline {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: var(--text-color);
  font-weight: 500;
}

.top-review {
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--secondary-color);
  font-style: italic;
  line-height: 1.7;
}

/* 专题列表 */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.topic-item {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.topic-item:hover {
  box-shadow: var(--shadow-hover);
}

.topic-title {
  margin: 0 0 12px 0;
  font-size: 22px;
}

.topic-title a {
  color: var(--text-color);
  text-decoration: none;
}

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

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

.topic-meta span {
  background: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--secondary-color);
}

.topic-tags {
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  background: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--secondary-color);
  margin-right: 6px;
  margin-bottom: 6px;
}

.tag-style {
  background: var(--primary-color);
  color: white;
}

.topic-oneline {
  font-size: 15px;
  margin: 12px 0;
  color: var(--text-color);
}

.topic-summary {
  margin: 12px 0;
  color: var(--secondary-color);
  line-height: 1.8;
}

.topic-review {
  margin: 16px 0 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--secondary-color);
  font-style: italic;
  line-height: 1.7;
}

/* 详情页 */
.detail-page {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: 32px;
  margin: 0 0 32px 0;
  color: var(--text-color);
  line-height: 1.4;
}

.detail-page section {
  margin-bottom: 36px;
}

.detail-page section:last-child {
  margin-bottom: 0;
}

.detail-page h2 {
  font-size: 22px;
  margin: 0 0 16px 0;
  color: var(--primary-color);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.info-item {
  font-size: 15px;
  line-height: 1.8;
}

.info-label {
  font-weight: 600;
  color: var(--text-color);
}

.info-tags {
  grid-column: 1 / -1;
}

.oneline-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1.8;
  padding: 20px;
  background: var(--bg-color);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  margin: 0;
}

.summary-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-color);
}

.summary-text p {
  margin: 0 0 16px 0;
}

.review-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--secondary-color);
  font-style: italic;
  padding: 20px;
  background: var(--bg-color);
  border-radius: 10px;
  margin: 0;
}

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

.related-item {
  background: var(--bg-color);
  padding: 20px;
  border-radius: 10px;
  transition: all 0.2s;
}

.related-item:hover {
  background: white;
  box-shadow: var(--shadow);
}

.related-title {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.related-title a {
  color: var(--text-color);
  text-decoration: none;
}

.related-title a:hover {
  color: var(--primary-color);
}

.related-desc {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 32px;
}

.more-link a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.more-link a:hover {
  background: var(--text-color);
  transform: translateY(-2px);
}

/* 页脚 */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
  color: var(--secondary-color);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .logo {
    font-size: 20px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    padding: 0;
  }

  .main-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 6px;
    font-size: 13px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title,
  .region-title {
    font-size: 20px;
  }

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

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

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

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

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

  .detail-page {
    padding: 24px 20px;
  }

  .detail-title {
    font-size: 24px;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .main-content {
    padding: 24px 0;
  }

  .main-nav a {
    padding: 10px 4px;
    font-size: 12px;
  }
}
