/* 全局样式增强 */
.ui-style-0 {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

/* 布局容器 */
.container {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero区域 */
.hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 区块样式 */
section {
  margin-bottom: 3rem;
}

section > h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

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

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.video-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

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

.video-card .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.video-card .one-line {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 入口卡片 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.entry-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.entry-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.entry-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.entry-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.entry-card h3 a:hover {
  color: var(--secondary-color);
}

.entry-card p {
  color: var(--text-light);
  line-height: 1.6;
}

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

.video-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.video-item:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--secondary-color);
}

.video-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-item h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.video-item h3 a:hover {
  color: var(--primary-color);
}

.video-item .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.video-item .one-line {
  color: var(--text-light);
  line-height: 1.6;
}

/* 完整列表页 */
.list-page {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.list-page h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.page-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.video-list-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item-full {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.video-item-full:hover {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.video-item-full .rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
}

.video-item-full .item-content {
  flex: 1;
}

.video-item-full h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.video-item-full h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.video-item-full h3 a:hover {
  color: var(--primary-color);
}

.video-item-full .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.video-item-full .summary {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.video-item-full .review {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-color);
}

/* 详情页 */
.video-detail {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.video-detail h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.video-detail section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.video-detail h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

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

.video-info dt {
  font-weight: bold;
  color: var(--text-dark);
}

.video-info dd {
  color: var(--text-light);
}

.video-oneline p,
.video-summary p,
.video-review p {
  line-height: 1.8;
  color: var(--text-dark);
}

.video-review p {
  font-style: italic;
  padding: 1rem;
  background: white;
  border-left: 4px solid var(--accent-color);
}

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

.related-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.related-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.related-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-item h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

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

.related-item .meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.related-item .one-line {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.more-link a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .site-intro {
    font-size: 1rem;
  }

  section > h2 {
    font-size: 1.5rem;
  }

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

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

  .video-info dl {
    grid-template-columns: 80px 1fr;
    gap: 0.5rem;
  }

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

  .video-detail {
    padding: 1rem;
  }

  .list-page {
    padding: 1rem;
  }

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

  .video-item-full .rank {
    min-width: auto;
  }
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  display: flex;
}
