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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #3498db;
  transition: all 0.3s ease;
}

a:hover {
  color: #2980b9;
}

ul, ol {
  list-style: none;
}

/* Header Styles */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-area {
  text-align: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logo-area a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: #fff;
  overflow-x: visible;
}

.nav-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 1rem 0.5rem;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: #667eea;
  transition: transform 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Navigation - Single Line, No Scrolling */
@media (max-width: 768px) {
  .logo-area {
    padding: 1rem;
  }

  .logo-area a {
    font-size: 1.3rem;
  }

  .nav-container {
    padding: 0 0.5rem;
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  .nav-item {
    font-size: 0.8rem;
    padding: 0.7rem 0.2rem;
    min-width: 0;
    flex: 1 1 0;
  }
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 3rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.hero-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Sections */
.intro-section,
.video-section,
.link-section {
  background: #fff;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.intro-section h2,
.video-section h2,
.link-section h2 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid #667eea;
}

.intro-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

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

.video-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
  line-height: 1.4;
}

.video-card h3 a {
  color: #2c3e50;
}

.video-card h3 a:hover {
  color: #667eea;
}

.video-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.video-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.video-review-short {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
  font-style: italic;
}

.rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* More Link */
.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #667eea;
  color: #fff;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.more-link a:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Link List */
.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.link-list li {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.link-list li:hover {
  background: #e8eef5;
  transform: translateX(4px);
}

.link-list a {
  color: #667eea;
  font-weight: 500;
}

/* List Page */
.list-page {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.list-page h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #667eea;
}

.list-intro {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Detail Page */
.detail-page {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.detail-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #667eea;
}

.video-info,
.video-oneline,
.video-summary,
.video-review,
.related-videos {
  margin-bottom: 2.5rem;
}

.video-info h2,
.video-oneline h2,
.video-summary h2,
.video-review h2,
.related-videos h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1.2rem;
}

.info-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #555;
}

.info-list li strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.highlight-text {
  font-size: 1.2rem;
  color: #667eea;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

.video-summary p,
.video-review p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  text-align: justify;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 0 1rem;
    margin: 1rem auto;
  }

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

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

  .hero-desc {
    font-size: 0.95rem;
  }

  .intro-section,
  .video-section,
  .link-section,
  .list-page,
  .detail-page {
    padding: 1.5rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

/* UI Style Variations */
.ui-style-0 { --primary: #667eea; --secondary: #764ba2; }
.ui-style-1 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-2 { --primary: #4facfe; --secondary: #00f2fe; }
.ui-style-3 { --primary: #43e97b; --secondary: #38f9d7; }
.ui-style-4 { --primary: #fa709a; --secondary: #fee140; }
.ui-style-5 { --primary: #30cfd0; --secondary: #330867; }
.ui-style-6 { --primary: #a8edea; --secondary: #fed6e3; }
.ui-style-7 { --primary: #ff9a9e; --secondary: #fecfef; }
.ui-style-8 { --primary: #ffecd2; --secondary: #fcb69f; }
.ui-style-9 { --primary: #ff6e7f; --secondary: #bfe9ff; }
.ui-style-10 { --primary: #e0c3fc; --secondary: #8ec5fc; }
.ui-style-11 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-12 { --primary: #fdfbfb; --secondary: #ebedee; }
.ui-style-13 { --primary: #667eea; --secondary: #764ba2; }
.ui-style-14 { --primary: #fddb92; --secondary: #d1fdff; }
.ui-style-15 { --primary: #9890e3; --secondary: #b1f4cf; }
