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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

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

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: #e74c3c;
}

.site-main {
  min-height: 80vh;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 0;
  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;
}

.intro-section {
  background: #fff;
  padding: 40px 0;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

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

.video-section--alt {
  background: #fff;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #333;
}

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

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

.video-info {
  padding: 16px;
}

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

.video-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

.video-one-line {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.video-list {
  max-width: 800px;
  margin: 0 auto;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-rank {
  font-size: 28px;
  font-weight: bold;
  color: #e74c3c;
  min-width: 40px;
  text-align: center;
}

.video-item__link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.video-cover--small {
  width: 120px;
  padding-top: 67.5px;
  flex-shrink: 0;
}

.section-more {
  text-align: center;
  margin-top: 30px;
}

.btn-more {
  display: inline-block;
  padding: 12px 32px;
  background: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-more:hover {
  background: #c0392b;
}

.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-text {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #3498db;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

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

.page-header {
  background: #fff;
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.page-desc {
  font-size: 16px;
  color: #666;
}

.detail-page {
  background: #fff;
}

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

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: rgba(192, 57, 43, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  margin-left: 4px;
}

.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.detail-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-info {
  padding: 40px 0;
  background: #f8f9fa;
}

.module-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #e74c3c;
  padding-left: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-item {
  display: flex;
  align-items: baseline;
  font-size: 15px;
}

.info-label {
  font-weight: 600;
  color: #555;
  min-width: 60px;
}

.info-value {
  color: #333;
  flex: 1;
}

.detail-module {
  padding: 40px 0;
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.module-content p {
  margin-bottom: 16px;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #ecf0f1;
  color: #555;
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  padding: 50px 0;
  background: #f8f9fa;
}

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

.top-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-rank {
  min-width: 50px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
}

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

.video-cover--top {
  width: 150px;
  padding-top: 84.375px;
  flex-shrink: 0;
}

.ui-style-3 .site-logo a {
  color: #fb7299;
}

.ui-style-3 .site-nav a:hover {
  color: #fb7299;
}

.ui-style-3 .btn-more {
  background: #fb7299;
}

.ui-style-3 .btn-more:hover {
  background: #d6547a;
}

.ui-style-3 .back-to-top {
  background: #fb7299;
}

.ui-style-3 .back-to-top:hover {
  background: #d6547a;
}

.ui-style-3 .player-play-btn {
  background: rgba(251, 114, 153, 0.9);
}

.ui-style-3 .player-play-btn:hover {
  background: rgba(214, 84, 122, 0.95);
}

.ui-style-3 .module-title {
  border-left-color: #fb7299;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
    font-size: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

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

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

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

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

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

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

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

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

  .top-item {
    flex-direction: row;
    gap: 12px;
  }

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

  .video-cover--top,
  .video-cover--small {
    width: 100%;
    padding-top: 56.25%;
  }

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

  .video-item__link {
    flex-direction: column;
    width: 100%;
  }

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

@media (max-width: 480px) {
  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    font-size: 12px;
    padding: 4px 2px;
  }
}
