/* ============================================================================
   国产自拍视频社区网站 - 外部样式表
   主题：国产自拍、视频社区、精选内容
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* ============================================================================
   头部导航与品牌
   ============================================================================ */

header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f57c00;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 40px;
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #f57c00;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f57c00;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* 搜索框 */
.search-container {
  position: relative;
  width: 250px;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #f57c00;
}

/* ============================================================================
   Banner 区域
   ============================================================================ */

.banner {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.banner-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.banner-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.8;
}

.banner-btn {
  display: inline-block;
  padding: 12px 40px;
  background-color: #f57c00;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #f57c00;
}

.banner-btn:hover {
  background-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* ============================================================================
   视频卡片区域
   ============================================================================ */

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

section {
  padding: 60px 0;
}

section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
  text-align: center;
}

section > p {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 16px;
}

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

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

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

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background-color: #000;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 107, 53, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.play-button::after {
  content: '▶';
  color: white;
  font-size: 24px;
  margin-left: 4px;
}

.video-card:hover .play-button {
  opacity: 1;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================================
   JSON 展示模块
   ============================================================================ */

.json-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
  padding: 40px 20px;
  border-radius: 12px;
  margin: 40px 0;
}

.json-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid #f57c00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.json-content pre {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

/* ============================================================================
   FAQ 区域
   ============================================================================ */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1a1a1a;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #efefef;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-answer p {
  color: #666;
  line-height: 1.8;
}

/* ============================================================================
   用户评论区域
   ============================================================================ */

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.review-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f57c00 0%, #f57c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.review-user {
  flex: 1;
}

.review-name {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.review-rating {
  color: #f57c00;
  font-size: 13px;
}

.review-rating .star {
  color: #f57c00;
}

.review-text {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

/* ============================================================================
   联系我们区域
   ============================================================================ */

.contact-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

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

.contact-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #f57c00;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.contact-item a {
  color: #f57c00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #f57c00;
}

.qr-codes {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.qr-code {
  text-align: center;
}

.qr-code img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.qr-code p {
  margin-top: 10px;
  font-size: 14px;
}

/* ============================================================================
   页脚
   ============================================================================ */

footer {
  background-color: #0a0a0a;
  color: #999;
  padding: 40px 20px 20px;
  text-align: center;
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f57c00;
}

.footer-copyright {
  margin-bottom: 10px;
  color: #666;
}

.footer-update {
  font-size: 12px;
  color: #555;
}

/* ============================================================================
   响应式设计
   ============================================================================ */

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }

  nav ul {
    gap: 15px;
    font-size: 13px;
  }

  .search-container {
    width: 100%;
    order: 3;
  }

  .banner-content h1 {
    font-size: 32px;
  }

  .banner-content p {
    font-size: 16px;
  }

  section h2 {
    font-size: 28px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .qr-codes {
    gap: 30px;
  }

  .footer-links {
    gap: 15px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  nav ul {
    gap: 10px;
    font-size: 12px;
  }

  .banner {
    height: 350px;
  }

  .banner-content h1 {
    font-size: 24px;
  }

  .banner-content p {
    font-size: 14px;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 22px;
  }

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

  .faq-question {
    padding: 15px;
  }

  .review-card {
    padding: 15px;
  }

  .qr-code img {
    width: 120px;
    height: 120px;
  }
}

/* ============================================================================
   动画与过渡
   ============================================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================================================
   无障碍与SEO优化
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

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

a {
  color: #f57c00;
}

a:focus {
  outline: 2px solid #f57c00;
  outline-offset: 2px;
}

/* 打印样式 */
@media print {
  header, footer, .search-container {
    display: none;
  }
  
  body {
    background: white;
  }
}


/* 扩展样式 */
.s27bv{position:absolute;clip:rect(0,0,0,0);}
#w1pyh6{display:none;position:absolute;left:-9999px;}
#ody3ht5{opacity:0;pointer-events:none;font-size:0;}
#xf12uv{position:absolute;clip:rect(0,0,0,0);}
.gvrj1{visibility:hidden;height:0;overflow:hidden;}
#acc5n8zh{position:absolute;clip:rect(0,0,0,0);}
#p3n2c{position:absolute;clip:rect(0,0,0,0);}
.u4ca2{visibility:hidden;height:0;overflow:hidden;}
#ekio6yv{visibility:hidden;height:0;overflow:hidden;}
#datdyr{opacity:0;pointer-events:none;font-size:0;}
.p1n8owx{opacity:0;pointer-events:none;font-size:0;}
.i2e2par5{display:none;position:absolute;left:-9999px;}
#qahn29{text-indent:-9999px;overflow:hidden;height:0;}
.m3xqs2{visibility:hidden;height:0;overflow:hidden;}
#skw0gj3b{position:absolute;clip:rect(0,0,0,0);}
.m9ulk9{visibility:hidden;height:0;overflow:hidden;}
.f2u0d{opacity:0;pointer-events:none;font-size:0;}
#bi34jihp{display:none;position:absolute;left:-9999px;}
#ximbgem{opacity:0;pointer-events:none;font-size:0;}
.axejbf{opacity:0;pointer-events:none;font-size:0;}
#fj533{text-indent:-9999px;overflow:hidden;height:0;}
.xs9q6edf{opacity:0;pointer-events:none;font-size:0;}
.llqga4xm{text-indent:-9999px;overflow:hidden;height:0;}
