:root {
  --primary-color: #3182ce;
  --secondary-color: #2d3748;
  --accent-color: #ed8936;
  --bg-color: #f7fafc;
  --card-bg: #ffffff;
  --text-color: #2d3748;
  --text-secondary: #718096;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.nav li {
  display: flex;
}

.nav a {
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--primary-color);
  background: var(--bg-color);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 12px;
    height: 56px;
  }

  .logo {
    font-size: 20px;
  }

  .nav {
    flex: 1 1 0;
    min-width: 0;
    justify-content: space-between;
    margin-left: 8px;
  }

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

  .nav a {
    padding: 8px 4px;
    font-size: 13px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.main-content {
  min-height: calc(100vh - 180px);
  padding: 40px 0;
}

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

.detail-container {
  max-width: 900px;
}

h1 {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  color: var(--secondary-color);
  margin: 32px 0 16px;
  font-weight: 600;
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

h3 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 8px;
  font-weight: 600;
}

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

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

.site-intro {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  text-indent: 2em;
}

.intro-text {
  background: var(--card-bg);
  padding: 24px 32px;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.intro-text p {
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.topic-intro p {
  margin-bottom: 16px;
}

.hot-section,
.list-section,
.latest-section,
.year-group {
  margin-bottom: 48px;
}

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

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

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

.video-card h3 {
  margin-bottom: 12px;
}

.video-card h3 a {
  color: var(--secondary-color);
  font-size: 18px;
}

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.video-meta span {
  padding: 4px 10px;
  background: var(--bg-color);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.video-desc,
.video-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

.entry-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.entry-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.entry-card h3 a {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 600;
}

.entry-card p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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

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

.video-item h3 a {
  color: var(--secondary-color);
  font-size: 18px;
}

.video-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.top-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.top-item {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.top-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.rank-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.top-content {
  flex: 1;
}

.recommend-reason {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.topic-item {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topic-item h3 a {
  color: var(--secondary-color);
  font-size: 20px;
}

.tags {
  margin: 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.topic-intro {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.topic-why {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-color);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.latest-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

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

.update-date {
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  height: fit-content;
}

.latest-content {
  flex: 1;
}

.latest-content h3 a {
  color: var(--secondary-color);
  font-size: 18px;
}

.latest-content p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.detail-article {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.detail-info {
  margin-bottom: 32px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  margin-top: 16px;
  padding: 20px;
  background: var(--bg-color);
  border-radius: 8px;
}

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

.info-list dd {
  color: var(--text-secondary);
}

.detail-highlight {
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #667eea15, #764ba215);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.highlight-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--secondary-color);
  font-weight: 500;
}

.detail-summary {
  margin-bottom: 32px;
}

.detail-summary p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-color);
  text-indent: 2em;
}

.detail-review {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-color);
  border-radius: 8px;
}

.detail-review p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
  font-style: italic;
}

.detail-related {
  margin-top: 40px;
}

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

.related-card {
  background: var(--bg-color);
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.related-card h3 a {
  color: var(--secondary-color);
  font-size: 16px;
}

.related-card p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer {
  background: var(--secondary-color);
  color: white;
  padding: 40px 0 24px;
  margin-top: 60px;
}

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

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

.footer-nav a:hover {
  color: white;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #a0aec0;
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .hero {
    padding: 30px 15px;
  }

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

  .site-intro,
  .intro-text {
    padding: 20px;
  }

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

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

  .top-item {
    flex-direction: column;
    gap: 12px;
  }

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

  .latest-item {
    flex-direction: column;
    gap: 12px;
  }

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

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

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

.ui-style-0 { --primary-color: #2b6cb0; --accent-color: #ed8936; }
.ui-style-1 { --primary-color: #1a202c; --accent-color: #f6ad55; }
.ui-style-2 { --primary-color: #c05621; --accent-color: #ed8936; }
.ui-style-3 { --primary-color: #2f855a; --accent-color: #68d391; }
.ui-style-4 { --primary-color: #4a5568; --accent-color: #cbd5e0; }
.ui-style-5 { --primary-color: #c53030; --accent-color: #fc8181; }
.ui-style-6 { --primary-color: #2c5282; --accent-color: #63b3ed; }
.ui-style-7 { --primary-color: #6b46c1; --accent-color: #b794f4; }
.ui-style-8 { --primary-color: #744210; --accent-color: #d69e2e; }
.ui-style-9 { --primary-color: #d53f8c; --accent-color: #ed64a6; }
.ui-style-10 { --primary-color: #3730a3; --accent-color: #818cf8; }
.ui-style-11 { --primary-color: #0e7490; --accent-color: #06b6d4; }
.ui-style-12 { --primary-color: #92400e; --accent-color: #a78bfa; }
.ui-style-13 { --primary-color: #ca8a04; --accent-color: #fcd34d; }
.ui-style-14 { --primary-color: #27272a; --accent-color: #71717a; }
.ui-style-15 { --primary-color: #64748b; --accent-color: #94a3b8; }
