/* 全站样式 - 国产影视 */

:root {
  --primary-color: #1976d2;
  --secondary-color: #424242;
  --accent-color: #ff9800;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --hover-bg: #f0f0f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 16px 12px;
  text-decoration: none;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover {
  background: var(--hover-bg);
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

nav a:first-child {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 18px;
}

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

section {
  margin-bottom: 40px;
}

h1, h2, h3 {
  margin: 0 0 16px 0;
  font-weight: 600;
}

h1 {
  font-size: 28px;
  color: var(--secondary-color);
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  color: var(--secondary-color);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

h3 {
  font-size: 18px;
  color: var(--text-color);
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.hero h1 {
  color: white;
  font-size: 32px;
  margin: 0;
}

.intro {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-header {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  color: #666;
  font-size: 15px;
  margin: 0;
}

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

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

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

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

.video-card,
.video-card-full,
.video-card-topic,
.video-card-latest {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.video-card:hover,
.video-card-full:hover,
.video-card-topic:hover,
.video-card-latest:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-card h3,
.video-card-full h3,
.video-card-topic h3,
.video-card-latest h3 {
  margin: 0 0 10px 0;
  font-size: 17px;
  color: var(--secondary-color);
}

.video-card h3 a,
.video-card-full h3 a,
.video-card-topic h3 a,
.video-card-latest h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

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

.meta,
.meta-line {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.genre {
  color: var(--accent-color);
  font-weight: 500;
}

.oneline {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0 0;
}

.summary,
.summary-short,
.summary-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0 0;
}

.year-badge {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 10px;
}

.video-list,
.video-list-ranked {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-item,
.video-item-ranked {
  background: var(--card-bg);
  padding: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

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

.rank,
.rank-number {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
}

.rank-number {
  font-size: 24px;
  min-width: 50px;
}

.rank-number.rank-top {
  color: var(--accent-color);
  font-size: 28px;
}

.video-item h3,
.video-content h3 {
  margin: 0 0 6px 0;
  font-size: 17px;
}

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

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

.video-content {
  flex: 1;
}

.review,
.review-short {
  color: #777;
  font-style: italic;
  font-size: 13px;
  margin-top: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-color);
}

.topic-group {
  margin-bottom: 40px;
}

.topic-title {
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

.more-link a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.more-link a:hover {
  background: var(--primary-color);
  color: white;
}

.detail-page {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-info,
.detail-oneline,
.detail-summary,
.detail-review,
.detail-related {
  margin-bottom: 30px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  line-height: 1.8;
}

.info-list dt {
  font-weight: 600;
  color: var(--secondary-color);
}

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

.highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.detail-summary p,
.detail-review p {
  line-height: 1.8;
  font-size: 15px;
  color: #555;
}

.review-text {
  padding: 16px;
  background: #fff3e0;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  font-style: italic;
}

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

.related-card {
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

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

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

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

footer {
  background: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  nav a {
    font-size: 13px;
    padding: 12px 6px;
  }

  nav a:first-child {
    font-size: 16px;
  }

  main {
    padding: 15px;
  }

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

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .video-grid,
  .video-grid-large,
  .video-grid-topic,
  .video-grid-latest,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .detail-page {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 26px;
  }

  .info-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-list dt {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 12px;
    padding: 10px 4px;
  }

  nav a:first-child {
    font-size: 14px;
  }
}

/* UI风格变体 */
body.ui-style-0 { --primary-color: #1976d2; }
body.ui-style-1 { --primary-color: #388e3c; }
body.ui-style-2 { --primary-color: #d32f2f; }
body.ui-style-3 { --primary-color: #7b1fa2; }
body.ui-style-4 { --primary-color: #0097a7; }
body.ui-style-5 { --primary-color: #f57c00; }
body.ui-style-6 { --primary-color: #c2185b; }
body.ui-style-7 { --primary-color: #303f9f; }
body.ui-style-8 { --primary-color: #00796b; }
body.ui-style-9 { --primary-color: #5d4037; }
body.ui-style-10 { --primary-color: #455a64; }
body.ui-style-11 { --primary-color: #e64a19; }
body.ui-style-12 { --primary-color: #1976d2; }
body.ui-style-13 { --primary-color: #00838f; }
body.ui-style-14 { --primary-color: #6a1b9a; }
body.ui-style-15 { --primary-color: #ad1457; }
