/* 全站样式 - 佳片影视 */

:root {
  --primary-color: #e74c3c;
  --secondary-color: #3498db;
  --text-dark: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg-light: #f5f5f5;
  --bg-white: #fff;
  --border-color: #eee;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* 基础重置 */
* {
  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";
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 布局容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  list-style: none;
}

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

nav ul li a {
  display: block;
  padding: 8px 12px;
  color: var(--text-light);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
  background: #fef5f5;
}

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.video-card {
  background: var(--bg-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

.video-card .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.video-card .tags {
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 10px;
}

.video-card .oneline {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

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

.list-item {
  background: var(--bg-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

.list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.list-item .rank {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.list-item .info {
  flex: 1;
}

.list-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.list-item .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.list-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

footer p {
  font-size: 14px;
  opacity: 0.9;
}

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

  .logo {
    font-size: 20px;
  }

  nav ul {
    width: 100%;
    gap: 5px;
  }

  nav ul li a {
    padding: 6px 4px;
    font-size: 13px;
  }

  .hero {
    padding: 40px 15px;
  }

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

  .hero p {
    font-size: 15px;
  }

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

  .list-item {
    flex-direction: column;
  }
}

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

  .logo {
    font-size: 18px;
  }

  nav ul li a {
    font-size: 12px;
    padding: 5px 2px;
  }

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

  .hero p {
    font-size: 14px;
  }
}

/* UI 风格变体 */
.ui-style-0 { --primary-color: #e74c3c; }
.ui-style-1 { --primary-color: #e67e22; }
.ui-style-2 { --primary-color: #f39c12; }
.ui-style-3 { --primary-color: #16a085; }
.ui-style-4 { --primary-color: #27ae60; }
.ui-style-5 { --primary-color: #2980b9; }
.ui-style-6 { --primary-color: #8e44ad; }
.ui-style-7 { --primary-color: #2c3e50; }
.ui-style-8 { --primary-color: #c0392b; }
.ui-style-9 { --primary-color: #d35400; }
.ui-style-10 { --primary-color: #f1c40f; }
.ui-style-11 { --primary-color: #1abc9c; }
.ui-style-12 { --primary-color: #3498db; }
.ui-style-13 { --primary-color: #9b59b6; }
.ui-style-14 { --primary-color: #34495e; }
.ui-style-15 { --primary-color: #e84393; }

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
