body.ui-style-2 {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
}

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

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

header {
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  text-align: center;
  padding: 20px 0 10px;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
}

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

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

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

nav ul li a {
  display: block;
  padding: 15px 10px;
  color: var(--text-color);
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav ul li a:hover {
  background: var(--bg-color);
  color: var(--accent-color);
  text-decoration: none;
}

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

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

.hero h1 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 15px;
}

section {
  background: var(--card-bg);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  color: var(--primary-color);
}

section h3 {
  font-size: 20px;
  margin: 20px 0 15px;
  color: var(--primary-color);
}

.intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

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

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3, .video-card h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--primary-color);
}

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

.video-card h3 a:hover, .video-card h4 a:hover {
  color: var(--accent-color);
}

.video-card .meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.video-card .desc {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

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

.video-item {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
}

.video-item h4 {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--primary-color);
}

.video-item p {
  font-size: 14px;
  color: #666;
}

.more-link {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
}

.more-link a {
  color: var(--accent-color);
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid var(--accent-color);
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}

.more-link a:hover {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
}

.list-page h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.list-page .intro {
  background: #f9f9f9;
  padding: 20px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.video-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.group {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.group h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.rank-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.rank-num {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-color);
  min-width: 40px;
  text-align: center;
}

.date-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.date-badge {
  background: var(--accent-color);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}

.card-content {
  flex: 1;
}

.detail-page h1 {
  font-size: 30px;
  margin-bottom: 30px;
  color: var(--primary-color);
  line-height: 1.4;
}

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

.detail-page section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.basic-info ul {
  list-style: none;
  padding: 0;
}

.basic-info ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 16px;
}

.basic-info ul li:last-child {
  border-bottom: none;
}

.basic-info ul li strong {
  color: var(--primary-color);
  margin-right: 10px;
}

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

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

.related-item {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  transition: box-shadow 0.3s;
}

.related-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.related-item h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--primary-color);
}

.related-item h4 a {
  color: var(--primary-color);
}

.related-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

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

footer p {
  font-size: 14px;
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: nowrap !important;
    overflow-x: visible;
  }

  nav ul li a {
    font-size: 14px;
    padding: 12px 5px;
  }

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

  .logo {
    font-size: 22px;
    padding: 15px 0 8px;
  }

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

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

  section {
    padding: 20px;
  }
}