* {
  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: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

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

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

.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: #00A1D6;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

.main-nav a:hover {
  background: #f0f0f0;
  color: #00A1D6;
}

main {
  min-height: calc(100vh - 180px);
  padding: 30px 0;
}

.hero-section {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero-slider {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 16px;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hero-slide {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.hero-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #00A1D6;
  color: #222;
}

.content-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.intro-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 16px 0;
}

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

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

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

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

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

.video-info {
  padding: 12px;
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #222;
  line-height: 1.4;
}

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

.video-meta {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #222;
}

.page-description {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

.video-player-section {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.video-player {
  width: 100%;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

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

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

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

.detail-main {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.detail-main h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
  line-height: 1.4;
}

.basic-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.basic-info h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

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

.info-item {
  display: flex;
  font-size: 14px;
  line-height: 1.8;
}

.info-label {
  font-weight: 600;
  color: #666;
  margin-right: 8px;
  min-width: 60px;
}

.info-value {
  color: #333;
}

.content-module {
  margin: 30px 0;
}

.content-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #222;
  padding-bottom: 12px;
  border-bottom: 2px solid #00A1D6;
}

.content-module p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-item {
  padding: 6px 14px;
  background: #e8f4f8;
  color: #00A1D6;
  border-radius: 20px;
  font-size: 13px;
}

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

.related-section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: #222;
}

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

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

footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
}

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

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

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

.back-to-top:hover {
  background: #0088b3;
  transform: translateY(-4px);
}

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

body.ui-style-10 {
  background: #f0f7fa;
}

body.ui-style-10 .site-logo {
  color: #00C75A;
}

body.ui-style-10 .main-nav a:hover {
  color: #00C75A;
}

body.ui-style-10 .section-title {
  border-left-color: #00C75A;
}

body.ui-style-10 .player-play-btn {
  background: rgba(0, 199, 90, 0.9);
}

body.ui-style-10 .player-play-btn:hover {
  background: #00C75A;
}

body.ui-style-10 .content-module h2 {
  border-bottom-color: #00C75A;
}

body.ui-style-10 .tag-item {
  background: #e8f8ed;
  color: #00C75A;
}

body.ui-style-10 .back-to-top {
  background: #00C75A;
  box-shadow: 0 4px 12px rgba(0,199,90,0.4);
}

body.ui-style-10 .back-to-top:hover {
  background: #00a048;
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

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

  .main-nav {
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

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

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

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

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

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

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

  .detail-main {
    padding: 20px;
  }

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

  .hero-slide {
    flex: 0 0 240px;
  }

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

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

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

.top-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.top-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.top-item:nth-child(1) .top-rank {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.top-item:nth-child(2) .top-rank {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.top-item:nth-child(3) .top-rank {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.top-cover {
  flex-shrink: 0;
  width: 100px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}

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

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

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

.top-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .top-item {
    padding: 12px;
    gap: 12px;
  }

  .top-rank {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .top-cover {
    width: 70px;
    height: 98px;
  }

  .top-info h3 {
    font-size: 15px;
  }

  .top-info p {
    font-size: 13px;
  }
}
