/* 全局样式 */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body.ui-style-3 {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5rem;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 { font-size: 2rem; margin-bottom: 1rem; color: #2c3e50; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; color: #34495e; border-left: 4px solid #3498db; padding-left: 0.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

a { color: #3498db; text-decoration: none; transition: color 0.3s; }
a:hover { color: #2980b9; text-decoration: underline; }

.subtitle { font-size: 1rem; color: #7f8c8d; margin-top: 0.5rem; }

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

.video-card {
  padding: 1rem;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card .meta {
  font-size: 0.9rem;
  color: #95a5a6;
  margin: 0.5rem 0;
}

.video-card .oneline {
  font-size: 0.95rem;
  color: #555;
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  border-bottom: 1px solid #ecf0f1;
}

.video-item a {
  flex: 1;
}

.video-item span {
  color: #95a5a6;
  font-size: 0.9rem;
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* 列表页样式 */
.list-header {
  text-align: center;
}

.list-content {
  padding: 1rem;
}

.list-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  background: #fafafa;
}

.list-card h3 {
  margin-bottom: 0.5rem;
}

.list-card .meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.card-top .rank {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 0.5rem;
}

.card-topic .topic-tag {
  display: inline-block;
  background: #9b59b6;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.card-latest .date {
  display: inline-block;
  background: #16a085;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* 详情页样式 */
.detail {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

.detail-info ul {
  list-style: none;
}

.detail-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.detail-oneline, .detail-summary, .detail-review {
  margin-top: 2rem;
}

.detail-related {
  margin-top: 2rem;
}

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

.related-card {
  padding: 1rem;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  background: #fafafa;
}

.related-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card p {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* 页脚 */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* 响应式 */
@media (max-width: 768px) {
  main { padding: 0 0.5rem; }
  section { padding: 1rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .video-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
