/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}
a { color: #0066cc; text-decoration: none; transition: color 0.3s; }
a:hover { color: #004499; }
ul, ol { list-style: none; }

/* 头部导航 */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.nav a {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav a:hover { background: rgba(255,255,255,0.2); }

/* 主要内容区 */
.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 4px rgba(0,0,0,0.1);
}
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
  line-height: 1.3;
}
h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: #333;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}
h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: #444;
}
p { margin-bottom: 1rem; }

/* 视频列表 */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.video-card {
  background: #fafafa;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e0e0e0;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.video-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #222;
}
.video-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.3rem;
}
.video-oneline {
  font-size: 0.95rem;
  color: #555;
  margin: 0.5rem 0;
  line-height: 1.5;
}
.video-summary {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0.5rem 0;
}
.video-review {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f0f0f0;
  border-radius: 4px;
}
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.tag {
  background: #667eea;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

/* 详情页 */
.detail-info {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.info-row {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}
.info-label {
  font-weight: bold;
  min-width: 80px;
  color: #555;
}
.info-value {
  color: #333;
}

/* 相关推荐 */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* 页脚 */
.footer {
  background: #333;
  color: #aaa;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}
.footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .header-container { padding: 0 0.5rem; }
  .logo { font-size: 1.4rem; }
  .nav { gap: 0.2rem; }
  .nav a {
    padding: 0.4rem 0.3rem;
    font-size: 0.85rem;
  }
  .main { padding: 0 0.5rem; }
  .section { padding: 1rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .video-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .related-list { grid-template-columns: 1fr; }
}

/* UI风格变体 */
body.ui-style-0 { --primary: #667eea; }
body.ui-style-1 { --primary: #f093fb; }
body.ui-style-2 { --primary: #4facfe; }
body.ui-style-3 { --primary: #43e97b; }
body.ui-style-4 { --primary: #fa709a; }
body.ui-style-5 { --primary: #30cfd0; }
body.ui-style-6 { --primary: #a8edea; }
body.ui-style-7 { --primary: #ff6a00; }
body.ui-style-8 { --primary: #ee0979; }
body.ui-style-9 { --primary: #f5af19; }
body.ui-style-10 { --primary: #17ead9; }
body.ui-style-11 { --primary: #6a11cb; }
body.ui-style-12 { --primary: #fc466b; }
body.ui-style-13 { --primary: #3f5efb; }
body.ui-style-14 { --primary: #2af598; }
body.ui-style-15 { --primary: #c471f5; }
