/* 国产影视资源站 - 响应式样式 */

:root {
  --primary: #d32f2f;
  --primary-dark: #9a0007;
  --primary-light: #ff6659;
  --secondary: #455a64;
  --accent: #ffa726;
  --bg-main: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-hover: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-dim: #707070;
  --border-color: #2a2a2a;
  --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, var(--bg-main) 0%, #1a1010 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

body.ui-style-10 {
  --primary: #e53935;
  --accent: #ff8a65;
}

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

/* 头部导航 */
header {
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 1px;
}

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

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  background: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* 移动端导航 - 单行不换行不滚动 */
@media (max-width: 768px) {
  nav ul {
    justify-content: space-between;
    width: 100%;
    gap: 4px;
    overflow: visible;
  }

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

  nav a {
    padding: 6px 4px;
    font-size: 12px;
    text-align: center;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

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

.page-title {
  font-size: 32px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-intro {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
}

/* 内容区块 */
section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  color: var(--text-primary);
}

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

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

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow);
  border-color: var(--primary);
}

.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: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.video-link {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.video-link:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

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

.video-list-item {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 24px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.video-list-item:hover {
  background: var(--bg-hover);
  transform: translateX(8px);
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.rank-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  min-width: 50px;
}

/* 详情页 */
.detail-container {
  max-width: 960px;
  margin: 0 auto;
}

.detail-header {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

.detail-title {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  gap: 8px;
  font-size: 15px;
}

.meta-label {
  color: var(--text-secondary);
  min-width: 60px;
}

.meta-value {
  color: var(--text-primary);
  flex: 1;
}

.detail-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

.detail-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.detail-section p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 12px;
  background: rgba(211, 47, 47, 0.15);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(211, 47, 47, 0.3);
}

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

.related-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.related-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.related-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* 页脚 */
footer {
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

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

  .detail-header {
    padding: 24px;
  }

  .detail-title {
    font-size: 28px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .detail-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  main {
    padding: 24px 0;
  }

  .page-title {
    font-size: 20px;
  }
}
