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

:root {
  --primary-orange: #FF6700;
  --gradient-orange: linear-gradient(135deg, #FF6700 0%, #FF8C00 100%);
  --text-dark: #333;
  --text-light: #666;
  --bg-white: #fff;
  --bg-gray: #f5f5f5;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(255,103,0,0.3);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.ui-style-12 {
  background: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
}

.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  background: var(--gradient-orange);
  color: white;
  transform: translateY(-2px);
}

.main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.layout__container {
  display: flex;
  gap: 2rem;
}

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

.layout__main {
  flex: 1;
  min-width: 0;
}

.hero-section {
  background: var(--gradient-orange);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--gradient-orange);
  border-radius: 2px;
}

.section-more {
  color: var(--primary-orange);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.section-more:hover {
  opacity: 0.8;
}

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

.video-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  overflow: hidden;
}

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.video-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.intro-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.intro-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-orange);
}

.page-header {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  color: var(--text-light);
  line-height: 1.8;
}

.video-player-section {
  margin-bottom: 2rem;
}

.video-player {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.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: none;
  background: var(--gradient-orange);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,103,0,0.4);
}

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

.player-play-icon {
  display: block;
  font-size: 2rem;
  color: white;
  margin-left: 4px;
}

.detail-main {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.detail-info {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.detail-info h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-orange);
}

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

.info-item {
  display: flex;
  gap: 0.5rem;
}

.info-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 60px;
}

.info-value {
  color: var(--text-light);
}

.detail-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.detail-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-orange);
}

.detail-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.detail-section p:last-child {
  margin-bottom: 0;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: var(--primary-orange);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background: var(--gradient-orange);
  color: white;
  transform: translateY(-2px);
}

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

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

.footer {
  background: var(--bg-white);
  border-top: 1px solid #e0e0e0;
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-orange);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  font-size: 1.25rem;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.top-list__item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition);
}

.top-list__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.top-rank {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 50px;
  text-align: center;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.top-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.top-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-orange);
  padding-left: 1rem;
  border-left: 4px solid var(--primary-orange);
}

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

.sidebar-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-orange);
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-section li:last-child {
  border-bottom: none;
}

.sidebar-section a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-section a:hover {
  color: var(--primary-orange);
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: scroll;
  }

  .nav a {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
  }

  .layout__container {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
  }

  .hero-section {
    padding: 2rem 1.5rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

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

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

  .section-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .top-list__item {
    flex-direction: column;
    text-align: center;
  }

  .top-rank {
    font-size: 1.5rem;
  }

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 140%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

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

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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