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

:root {
  --primary-color: #FF6700;
  --primary-dark: #E55500;
  --bg-color: #FFFFFF;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #E0E0E0;
  --hover-color: #FFF5F0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.ui-style-12 {
  --primary-color: #FF6700;
  --primary-dark: #E55500;
}

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

.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 16px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo a {
  font-size: 26px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
}

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

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
}

.main-content {
  min-height: 60vh;
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DC 100%);
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 12px;
}

.hero-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
}

.site-intro {
  background: white;
  padding: 30px;
  margin: 0 20px 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

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

.layout-with-sidebar {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.layout__main {
  flex: 1;
}

.layout__side {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-widget {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.widget-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.widget-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.tag:hover {
  background: var(--primary-color);
  color: white;
}

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

.module-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color);
  color: var(--text-color);
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.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: 17px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.list-page {
  padding: 40px 0;
}

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

.page-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 12px;
}

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

.detail-page {
  background: #F8F9FA;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

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

.player-play-icon {
  color: white;
  font-size: 32px;
  display: block;
  margin-left: 6px;
}

.detail-header {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.detail-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-color);
}

.detail-info {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 20px;
  margin-top: 20px;
}

.info-list dt {
  font-weight: bold;
  color: var(--primary-color);
}

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

.detail-module {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  margin-top: 20px;
}

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

.related-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

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

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

.site-footer {
  background: #2C2C2C;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

.site-footer p {
  font-size: 14px;
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 103, 0, 0.3);
  z-index: 999;
}

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 22px;
    padding: 0 20px;
  }

  .layout-with-sidebar {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
  }

  .main-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }

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

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

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

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

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 10px 15px;
  }

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