/* 糖心视频网站样式 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #fef5f8 0%, #fff5f7 50%, #fff8f5 100%);
  min-height: 100vh;
}

/* 固定头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 192, 203, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.logo-text {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-item {
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-weight: 500;
  border: none;
  background: transparent;
  font-size: 16px;
}

.nav-item:hover {
  background: rgba(255, 192, 203, 0.1);
  color: #ff6b9d;
}

.nav-item.active {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login {
  background: transparent;
  color: #ff6b9d;
  border: 2px solid transparent;
}

.btn-login:hover {
  background: rgba(255, 192, 203, 0.1);
}

.btn-register {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* 主要内容区 */
main {
  padding-top: 70px;
}

section {
  min-height: 100vh;
  padding: 100px 20px;
}

.section-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.section-subtitle {
  font-size: 20px;
  text-align: center;
  color: #666;
  margin-bottom: 60px;
}

/* 首页区块 */
#home {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 192, 203, 0.1) 0%, rgba(255, 218, 224, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-icon {
  font-size: 80px;
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-title {
  font-size: 72px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 50%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
}

.hero-description {
  font-size: 24px;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn-primary {
  padding: 18px 40px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
  padding: 18px 40px;
  background: white;
  color: #ff6b9d;
  border: 2px solid #ff6b9d;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 192, 203, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: bold;
  color: #ff6b9d;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 18px;
  color: #666;
}

/* 分类区块 */
#categories {
  background: white;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
  border: 2px solid rgba(255, 192, 203, 0.2);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: #ff8fab;
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
}

.category-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.category-name {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.category-count {
  font-size: 16px;
  color: #999;
}

/* 精选视频区块 */
#featured {
  background: linear-gradient(135deg, #fff5f7 0%, #fff8f5 100%);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #ffc0cb 0%, #ffb6c1 100%);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ff6b9d;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
}

.video-creator {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.video-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

/* 创作者区块 */
#creators {
  background: white;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.creator-card {
  background: linear-gradient(135deg, #fff5f7 0%, #fff8f5 100%);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.creator-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.15);
}

.creator-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.creator-name {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.creator-tag {
  display: inline-block;
  background: white;
  color: #ff6b9d;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

.creator-stats {
  margin: 20px 0;
  color: #666;
  font-size: 14px;
  line-height: 2;
}

.btn-follow {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-follow:hover {
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

/* 排行榜区块 */
#ranking {
  background: linear-gradient(135deg, #fff8f5 0%, #ffede0 100%);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.ranking-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.ranking-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.ranking-icon {
  font-size: 35px;
}

.ranking-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fff5f7 0%, #fff8f5 100%);
  padding: 20px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.15);
}

.rank-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  color: white;
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
  color: white;
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  color: white;
}

.rank-other {
  background: #f0f0f0;
  color: #666;
}

.ranking-content {
  flex: 1;
}

.ranking-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.ranking-views {
  font-size: 13px;
  color: #999;
}

.ranking-badge {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 社区区块 */
#community {
  background: white;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.community-card {
  background: linear-gradient(135deg, #fff5f7 0%, #fff8f5 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.community-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.community-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  margin-bottom: 25px;
}

.community-title {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.community-desc {
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.cta-banner {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 50%, #ffb347 100%);
  border-radius: 25px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}

.cta-desc {
  font-size: 20px;
  margin-bottom: 35px;
  opacity: 0.95;
}

.btn-cta {
  padding: 18px 50px;
  background: white;
  color: #ff6b9d;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 关于区块 */
#about {
  background: linear-gradient(135deg, #fff5f7 0%, #fff8f5 50%, #ffede0 100%);
}

.about-content {
  background: white;
  border-radius: 30px;
  padding: 60px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.about-section-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
}

.about-text {
  color: #555;
  line-height: 2;
  margin-bottom: 20px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, #fff5f7 0%, #fff8f5 100%);
  padding: 20px;
  border-radius: 15px;
}

.feature-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-text h5 {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.feature-text p {
  font-size: 14px;
  color: #666;
}

.about-stats {
  padding-top: 50px;
  border-top: 2px solid #f0f0f0;
}

/* 底部 */
footer {
  background: #1a1a1a;
  color: white;
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-desc {
  color: #999;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 15px;
  transition: color 0.3s;
  padding: 0;
  font-family: inherit;
}

.footer-links button:hover {
  color: #ff8fab;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #999;
  max-width: 1200px;
  margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

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

  .section-title {
    font-size: 36px;
  }

  .categories-grid,
  .videos-grid,
  .creators-grid {
    grid-template-columns: 1fr;
  }

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

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

  .about-content {
    padding: 30px;
  }
}
