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

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

body.ui-style-11 {
  --primary-color: #FF6700;
  --secondary-color: #FF8533;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --hover-color: #ff8533;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

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

.layout-container {
  display: flex;
  min-height: 100vh;
}

.layout__sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.layout__content {
  flex: 1;
  background: var(--bg-color);
}

.site-info {
  text-align: center;
}

.site-logo {
  margin-bottom: 10px;
}

.site-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.site-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav .nav-link {
  display: block;
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--text-color);
  transition: all 0.3s;
  font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.main-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

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

.main-nav .nav-item {
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav .nav-item:hover,
.main-nav .nav-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.hero-section {
  margin-bottom: 40px;
}

.hero-bg {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  color: #fff;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 700px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 103, 0, 0.4);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 103, 0, 0.5);
}

.intro-section {
  background: #fff;
  padding: 40px 0;
  margin: 30px 20px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

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

.content-module {
  padding: 40px 0;
  margin: 0 20px;
}

.module-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

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

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

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

.video-card__link {
  display: block;
}

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

.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: 15px;
}

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

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

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

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 103, 0, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 103, 0, 0.5);
}

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

.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: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255, 103, 0, 0.5);
}

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 103, 0, 0.6);
}

.player-play-icon {
  font-size: 32px;
  display: inline-block;
  padding-left: 5px;
}

.detail-header {
  padding: 30px 0;
  background: #fff;
  margin: 0 20px 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

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

.detail-info {
  padding: 30px 0;
  background: #fff;
  margin: 0 20px 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  font-size: 15px;
}

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

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

.detail-module {
  padding: 30px 0;
  background: #fff;
  margin: 0 20px 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.module-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
}

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

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ffebe6, #fff0e6);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ffccb3;
}

.related-section {
  padding: 30px 0;
  background: #fff;
  margin: 0 20px 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

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

.page-container {
  min-height: 60vh;
}

.page-header {
  padding: 40px 0;
  background: #fff;
  margin: 20px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

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

.page-content {
  padding: 30px 0;
}

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

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

.top-list__item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.top-rank {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-right: 20px;
}

.top-item-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-cover {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.top-info {
  flex: 1;
}

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

.top-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

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

@media (max-width: 1024px) {
  .layout__sidebar {
    display: none;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav .nav-item {
    font-size: 14px;
    padding: 6px 12px;
  }

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

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

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

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  .main-nav .nav-item {
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-bg {
    height: 350px;
  }

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

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

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

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

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

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

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

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    font-size: 14px;
  }

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

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

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