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

:root {
  --primary-color: #FF6700;
  --secondary-color: #FFB84D;
  --text-color: #333;
  --bg-color: #FFF;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

body.ui-style-12 {
  --primary-color: #FF6700;
  --secondary-color: #FFB84D;
}

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

.site-header {
  background: #FFF;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.site-logo a:hover {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 30px;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

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

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #FFF;
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.95;
}

.site-intro,
.content-section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--text-color);
  font-weight: bold;
}

.intro-content {
  background: #F9F9F9;
  padding: 30px;
  border-radius: 12px;
  line-height: 1.8;
}

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

.video-card {
  background: #FFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #F0F0F0;
}

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 20px;
}

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

.video-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

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

.page-header {
  padding: 40px 0;
  background: #F9F9F9;
  text-align: center;
}

.page-title {
  font-size: 36px;
  color: var(--text-color);
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.page--grid .video-grid {
  padding: 60px 0;
}

.page--top .top-list__items {
  list-style: none;
  padding: 40px 0;
}

.top-list__item {
  display: flex;
  align-items: center;
  background: #FFF;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.top-list__item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

.top-rank--gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-rank--silver {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-rank--bronze {
  background: linear-gradient(135deg, #CD7F32, #B8722C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-cover {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 20px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.top-meta,
.top-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.video-player-section {
  background: #000;
  padding: 0;
}

.video-player {
  max-width: 1200px;
  margin: 0 auto;
}

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 103, 0, 0.9);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #FFF;
}

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.detail-section {
  background: #FFF;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  gap: 10px;
}

.info-label {
  font-weight: bold;
  color: #666;
  white-space: nowrap;
}

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

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

.tag {
  background: #F0F0F0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-card--related {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-footer {
  background: #F9F9F9;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-text {
  color: #666;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFF;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

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

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .main-nav {
    gap: 15px;
    font-size: 14px;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

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

  .video-cover {
    padding-top: 45%;
  }

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

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

  .top-list__item {
    flex-wrap: wrap;
  }

  .top-cover {
    margin: 10px 0;
  }

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