/* 雾岚影视 - 紫罗兰梦幻 UI风格 */
:root {
  --primary-color: #6b5b95;
  --secondary-color: #9b8fc9;
  --accent-color: #d4c5f9;
  --bg-color: #f8f7fc;
  --card-bg: #ffffff;
  --text-primary: #2d2640;
  --text-secondary: #6d6580;
  --border-color: #e5e0f5;
  --hover-color: #8b7bb8;
  --success-color: #7cb342;
  --warning-color: #ffa726;
  --error-color: #ef5350;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

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

/* 头部导航 */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 2px 12px rgba(107, 91, 149, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.85;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

nav ul li a {
  display: block;
  padding: 10px 16px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 15px;
  white-space: nowrap;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* 主内容区 */
main {
  padding: 32px 0;
  min-height: calc(100vh - 200px);
}

h1 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  margin: 32px 0 20px;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.4;
}

h3 {
  font-size: 20px;
  margin: 24px 0 16px;
  color: var(--text-primary);
  font-weight: 600;
}

/* 卡片样式 */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(107, 91, 149, 0.08);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(107, 91, 149, 0.15);
  transform: translateY(-2px);
}

/* 作品网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.video-card:hover {
  box-shadow: 0 8px 24px rgba(107, 91, 149, 0.15);
  transform: translateY(-4px);
  border-color: var(--secondary-color);
}

.video-card-content {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.video-meta span {
  background: var(--accent-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
}

.video-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 91, 149, 0.3);
}

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

.video-list-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.video-list-item:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 16px rgba(107, 91, 149, 0.1);
}

.video-list-item h3 {
  margin-top: 0;
}

.video-list-item h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* 标签 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* 详情页样式 */
.detail-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 48px 24px;
  margin-bottom: 32px;
  border-radius: 12px;
}

.detail-header h1 {
  color: white;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

/* 推荐列表 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* 页脚 */
footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.9);
  padding: 32px 0;
  margin-top: 48px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
}

.footer-nav a:hover {
  color: #ffffff;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* 分组样式 */
.group-section {
  margin: 32px 0;
}

.group-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  font-weight: 600;
}

/* 排名样式 */
.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  margin-right: 16px;
  flex-shrink: 0;
}

.rank-item {
  display: flex;
  align-items: flex-start;
}

.rank-content {
  flex: 1;
}

/* 日期标签 */
.date-tag {
  display: inline-block;
  background: var(--success-color);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* 介绍模块 */
.intro-section {
  background: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  padding: 24px;
  margin: 32px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(107, 91, 149, 0.08);
  line-height: 1.8;
  font-size: 15px;
}

/* 入口卡片 */
.entrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.entrance-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.entrance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(107, 91, 149, 0.3);
}

.entrance-card h3 {
  color: white;
  margin-bottom: 12px;
  font-size: 22px;
}

.entrance-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
}

/* 专题引导 */
.topic-intro {
  background: linear-gradient(135deg, rgba(107, 91, 149, 0.1) 0%, rgba(155, 143, 201, 0.1) 100%);
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  line-height: 1.8;
  font-size: 15px;
}

.topic-intro h2 {
  margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px;
  }

  nav ul {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: nowrap;
  }

  nav ul li {
    flex: 1 1 0;
    min-width: 0;
  }

  nav ul li a {
    padding: 8px 6px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

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

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

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

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

  .detail-header {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  nav ul li a {
    padding: 8px 4px;
    font-size: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .card {
    padding: 20px;
  }

  .video-card-content {
    padding: 16px;
  }
}
