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

:root {
  --primary-color: #00C75A;
  --bg-color: #ffffff;
  --text-color: #333333;
  --border-color: #e5e5e5;
  --hover-color: #f5f5f5;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

body.ui-style-0 { --primary-color: #000000; }
body.ui-style-1 { --primary-color: #ff6700; }
body.ui-style-2 { --primary-color: #ff6700; }
body.ui-style-3 { --primary-color: #ff0000; }
body.ui-style-4 { --primary-color: #e50914; }
body.ui-style-5 { --primary-color: #141414; }
body.ui-style-6 { --primary-color: #0063e5; }
body.ui-style-7 { --primary-color: #0073e6; }
body.ui-style-8 { --primary-color: #00d573; }
body.ui-style-9 { --primary-color: #000000; }
body.ui-style-10 { --primary-color: #00C75A; }
body.ui-style-11 { --primary-color: #0099FF; }
body.ui-style-12 { --primary-color: #FF6700; }
body.ui-style-13 { --primary-color: #00A1D6; }
body.ui-style-14 { --primary-color: #1e3a8a; }

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

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  overflow: visible;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

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

@media (max-width: 768px) {
  .header-content {
    gap: 16px;
  }

  .site-logo {
    font-size: 20px;
  }

  .main-nav {
    gap: 12px;
    font-size: 14px;
  }

  .main-nav a {
    font-size: 14px;
  }
}

.site-main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, rgba(0,199,90,0.1) 0%, rgba(0,199,90,0.05) 100%);
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color);
}

.site-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  max-width: 900px;
}

.content-section {
  margin-bottom: 60px;
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
}

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-cover {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.video-cover::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .video-cover::before {
    padding-top: 60%;
  }
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-color);
}

.top-list__items {
  list-style: none;
}

.top-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(8px);
}

.top-rank {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.top-item-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-item-link img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}

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

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

.top-item-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.meta {
  font-size: 12px;
  color: #999;
}

.detail-page {
  max-width: 1000px;
  margin: 0 auto;
}

.video-player-section {
  margin-bottom: 40px;
}

.video-player {
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #fff;
  margin-left: 4px;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-header h1 {
  font-size: 32px;
  font-weight: bold;
}

.detail-info,
.detail-module,
.related-section {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  line-height: 1.8;
}

.info-list dt {
  font-weight: 600;
  color: #666;
}

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

.detail-module p {
  line-height: 1.8;
  color: #333;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--hover-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-color);
}

.site-footer {
  background: #f8f8f8;
  padding: 32px 0;
  text-align: center;
  color: #666;
  border-top: 1px solid var(--border-color);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }

  .site-intro {
    font-size: 14px;
  }

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

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

  .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-item-link {
    flex-direction: column;
    width: 100%;
  }

  .top-item-link img {
    width: 100%;
    height: auto;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
