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

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

.ui-style-3 {
  --primary-color: #00A1D6;
  --primary-dark: #0087b8;
  --secondary-color: #FB7299;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e5e5e5;
  --hover-bg: #f8f8f8;
}

body.ui-style-3 {
  color: var(--text-color);
  background: #f0f0f0;
  font-size: 15px;
}

.site-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

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

.main-nav {
  display: flex;
  gap: 8px;
}

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

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

@media (max-width: 768px) {
  .header-container {
    padding: 0 12px;
    height: 50px;
  }

  .site-logo a {
    font-size: 18px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 12px;
  }
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 60px 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: center;
}

.hero-section h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 900px;
  margin: 0 auto;
}

.site-intro {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.home-module {
  margin-bottom: 50px;
}

.home-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

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

.video-card {
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px 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%;
  background: #e0e0e0;
  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: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .video-one-line {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .hero-section {
    padding: 40px 20px;
  }

  .hero-section h1 {
    font-size: 22px;
  }

  .site-intro {
    padding: 20px;
  }

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

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.page-header p {
  font-size: 16px;
  color: var(--text-light);
}

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

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

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

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

.player-play-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-left: 4px;
}

.video-header {
  text-align: center;
  margin-bottom: 30px;
}

.video-header h1 {
  font-size: 28px;
  color: var(--text-color);
  font-weight: 600;
}

.video-meta {
  background: var(--bg-color);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.video-meta h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  font-size: 15px;
}

.meta-list dt {
  font-weight: 600;
  color: var(--text-color);
}

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

.detail-module {
  background: var(--bg-color);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 12px;
}

.detail-module p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 12px;
}

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

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--hover-bg);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

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

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

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

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

.site-footer p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  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.15);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  main {
    padding: 20px 12px;
  }

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

  .video-header h1 {
    font-size: 22px;
  }

  .detail-module,
  .video-meta {
    padding: 16px;
  }

  .meta-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .video-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }
}
