* {
  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;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.ui-style-12 {
  --primary-color: #FF6700;
  --primary-gradient: linear-gradient(135deg, #FF6700 0%, #FF3D00 100%);
  --text-primary: #333;
  --text-secondary: #666;
  --bg-light: #FFF5F0;
  --border-color: #FFE0CC;
  --shadow: 0 2px 12px rgba(255, 103, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(255, 103, 0, 0.2);
}

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

.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

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

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

.hero {
  background: var(--primary-gradient);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

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

.site-intro {
  padding: 48px 0;
  background: var(--bg-light);
}

.site-intro__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.video-section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

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

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

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.video-cover {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
  background: var(--bg-light);
}

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.video-one-line {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer {
  background: #f8f8f8;
  padding: 32px 0;
  text-align: center;
  margin-top: 60px;
}

.footer__text {
  color: var(--text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.page-header {
  background: var(--primary-gradient);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-header__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header__desc {
  font-size: 16px;
  opacity: 0.95;
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}

.pagination__btn {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.pagination__btn:hover,
.pagination__btn--active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.page--top .top-list {
  padding: 60px 0;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-list__item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.top-list__item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.top-list__rank {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.top-list__cover {
  flex-shrink: 0;
  width: 100px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
}

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

.top-list__info {
  flex: 1;
  min-width: 0;
}

.top-list__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.top-list__meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.top-list__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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;
  background: rgba(255, 103, 0, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  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 {
  color: #fff;
  font-size: 32px;
}

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

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

.detail-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.detail-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.detail-info-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

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

.info-label {
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

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

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

.detail-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  padding-left: 16px;
}

.detail-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

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

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--primary-color);
  transition: all 0.3s;
}

.tag:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.related-section {
  margin-top: 60px;
}

.related-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
  position: relative;
  padding-left: 16px;
}

.related-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.video-card--related {
  height: 100%;
}

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

  .hero__title {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
  }

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

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

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

  .top-list__cover {
    width: 100%;
    height: 200px;
  }

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

  .detail-section {
    padding: 20px;
  }

  .detail-section h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 8px;
    font-size: 13px;
  }

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

  .hero {
    padding: 48px 0 32px;
  }

  .hero__title {
    font-size: 20px;
  }

  .hero__subtitle {
    font-size: 14px;
  }
}
