body.ui-style-0 { --primary: #2563eb; --secondary: #1e40af; }
body.ui-style-1 { --primary: #059669; --secondary: #047857; }
body.ui-style-2 { --primary: #dc2626; --secondary: #b91c1c; }
body.ui-style-3 { --primary: #7c3aed; --secondary: #6d28d9; }
body.ui-style-4 { --primary: #ea580c; --secondary: #c2410c; }
body.ui-style-5 { --primary: #0891b2; --secondary: #0e7490; }
body.ui-style-6 { --primary: #4f46e5; --secondary: #4338ca; }
body.ui-style-7 { --primary: #0d9488; --secondary: #0f766e; }
body.ui-style-8 { --primary: #be123c; --secondary: #9f1239; }
body.ui-style-9 { --primary: #0369a1; --secondary: #075985; }
body.ui-style-10 { --primary: #7e22ce; --secondary: #6b21a8; }
body.ui-style-11 { --primary: #ca8a04; --secondary: #a16207; }
body.ui-style-12 { --primary: #15803d; --secondary: #166534; }
body.ui-style-13 { --primary: #b45309; --secondary: #92400e; }
body.ui-style-14 { --primary: #1d4ed8; --secondary: #1e40af; }
body.ui-style-15 { --primary: #0e7490; --secondary: #155e75; }

body {
  font-size: 16px;
  min-height: 100vh;
}

.container {
  background: #fff;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.hero {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary, #0066cc) 0%, var(--secondary, #004499) 100%);
  color: #fff;
  border-radius: 8px 8px 0 0;
}

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

.hero .intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

section {
  padding: 30px 20px;
  border-bottom: 1px solid #eee;
}

section:last-child {
  border-bottom: none;
}

section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary, #0066cc);
  border-left: 4px solid var(--primary, #0066cc);
  padding-left: 12px;
}

.section-desc {
  color: #666;
  margin-bottom: 16px;
  font-size: 15px;
}

.link-entry {
  margin-top: 16px;
}

.link-entry a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary, #0066cc);
  color: #fff;
  border-radius: 4px;
  transition: all 0.3s;
}

.link-entry a:hover {
  background: var(--secondary, #004499);
  text-decoration: none;
  transform: translateY(-2px);
}

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

.video-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s;
}

.video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--primary, #0066cc);
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.video-card h3 a {
  color: #222;
}

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

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

.oneline, .brief {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

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

.video-item {
  padding: 16px;
  background: #fafafa;
  border-left: 3px solid var(--primary, #0066cc);
  border-radius: 4px;
  transition: all 0.3s;
}

.video-item:hover {
  background: #f0f0f0;
  transform: translateX(4px);
}

.video-item h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.video-item h4 a {
  color: #222;
}

.video-item h4 a:hover {
  color: var(--primary, #0066cc);
}

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

.more-link a {
  font-size: 16px;
  font-weight: 500;
}

.page-desc {
  color: #666;
  font-size: 15px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 4px;
}

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

.list-card, .top-card, .topic-card, .latest-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s;
}

.list-card:hover, .top-card:hover, .topic-card:hover, .latest-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: var(--primary, #0066cc);
}

.card-number, .rank-badge, .topic-tag, .update-date {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary, #0066cc);
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  font-size: 18px;
}

.topic-tag {
  width: auto;
  padding: 8px 12px;
  height: auto;
  font-size: 14px;
}

.update-date {
  background: #666;
  font-size: 16px;
}

.card-content, .card-body, .card-main, .card-info {
  flex: 1;
}

.card-content h3, .card-body h3, .card-main h3, .card-info h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card-content h3 a, .card-body h3 a, .card-main h3 a, .card-info h3 a {
  color: #222;
}

.card-content h3 a:hover, .card-body h3 a:hover, .card-main h3 a:hover, .card-info h3 a:hover {
  color: var(--primary, #0066cc);
}

.summary, .desc, .intro {
  margin-top: 8px;
  color: #555;
  line-height: 1.6;
}

.review-short, .summary-preview {
  margin-top: 8px;
  color: #777;
  font-size: 14px;
  font-style: italic;
}

.detail {
  padding: 40px 20px;
}

.detail h1 {
  font-size: 28px;
  color: #222;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary, #0066cc);
}

.detail section {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.detail section:last-child {
  border-bottom: none;
}

.detail h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--primary, #0066cc);
  border-left: 3px solid var(--primary, #0066cc);
  padding-left: 10px;
}

.info ul {
  list-style: none;
}

.info li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

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

.oneline p, .summary p, .review p {
  line-height: 1.8;
  color: #444;
}

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

.related-card {
  padding: 16px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s;
}

.related-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: var(--primary, #0066cc);
}

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

.related-card h3 a {
  color: #222;
}

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

@media (max-width: 768px) {
  .hero h1 { font-size: 22px; }
  .hero .intro { font-size: 14px; }
  section h2 { font-size: 20px; }
  .video-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .list-card, .top-card, .topic-card, .latest-card { flex-direction: column; }
  .card-number, .rank-badge, .topic-tag, .update-date {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}
