/* 全局样式 */
body.ui-style-7 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #2c3e50;
  min-height: 100vh;
}

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

/* 头部导航 */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 10px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  margin-right: 20px;
}

nav a {
  color: #555;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav a:hover,
nav a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* 主内容区 */
main {
  background: white;
  margin: 30px auto;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 首页 Hero */
.hero {
  text-align: center;
  padding: 40px 0 60px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 28px;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.intro {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* 栏目区块 */
section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  color: #2c3e50;
  font-weight: 700;
}

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

.video-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
}

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

.video-card h3 a:hover {
  color: #667eea;
}

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

.video-card .one-line {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

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

.video-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.video-item:hover {
  background: #f0f0ff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.video-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.video-item .meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.video-item .tags {
  font-size: 12px;
  color: #667eea;
  margin-bottom: 10px;
}

.video-item .summary {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 排行榜样式 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-item.ranked {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.rank-num {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  min-width: 50px;
  text-align: center;
}

.video-info {
  flex: 1;
}

.video-item.ranked .review {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* 最新列表样式 */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item.latest {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.date-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  min-width: 70px;
  text-align: center;
}

/* 专题页面 */
.topic-section {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

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

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

/* 详情页 */
.detail-page h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2c3e50;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
}

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

.detail-page h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #667eea;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.basic-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  line-height: 1.8;
}

.basic-info dt {
  font-weight: 600;
  color: #555;
}

.basic-info dd {
  color: #333;
}

.one-line-big {
  font-size: 18px;
  color: #667eea;
  font-weight: 500;
  padding: 20px;
  background: #f0f0ff;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.summary p,
.review p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

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

.related-card {
  background: #f9f9f9;
  padding: 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.related-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.related-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.related-card h4 a {
  color: #2c3e50;
}

.related-card h4 a:hover {
  color: #667eea;
}

/* 页面介绍 */
.page-intro {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.more-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

/* 页脚 */
footer {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 0;
  text-align: center;
  color: #666;
  margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav {
    flex-wrap: nowrap !important;
    overflow-x: visible;
    gap: 5px;
  }

  nav a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .logo {
    font-size: 20px;
    margin-right: 10px;
  }

  main {
    margin: 20px auto;
    padding: 25px 20px;
  }

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

  .intro {
    font-size: 14px;
  }

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

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

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

  .basic-info dl {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .detail-page h1 {
    font-size: 24px;
  }

  .video-item.ranked {
    flex-direction: column;
  }

  .rank-num {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
    margin-right: 8px;
  }

  nav a {
    font-size: 12px;
    padding: 6px 8px;
  }

  section h2 {
    font-size: 20px;
  }

  .video-card h3 {
    font-size: 16px;
  }
}
