/* ============================================
   51漫画 - 全站样式表
   品牌色：#e91e8c (粉紫) / #7c3aed (紫) / #1a1a2e (深色背景)
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: #e91e8c; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ff6ec7; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #e91e8c;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(233, 30, 140, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 45px; width: auto; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.main-nav ul {
  display: flex;
  gap: 8px;
}
.main-nav a {
  color: #ccc;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: all 0.3s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Search Bar */
.search-bar {
  background: rgba(26, 26, 46, 0.95);
  padding: 12px 0;
  border-bottom: 1px solid rgba(233, 30, 140, 0.2);
}
.search-bar .container { display: flex; justify-content: center; }
.search-form {
  display: flex;
  max-width: 600px;
  width: 100%;
  position: relative;
}
.search-input {
  flex: 1;
  padding: 10px 20px;
  border: 2px solid #7c3aed;
  border-right: none;
  border-radius: 25px 0 0 25px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-input::placeholder { color: #888; }
.search-input:focus { border-color: #e91e8c; }
.search-btn {
  padding: 10px 25px;
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  border: none;
  border-radius: 0 25px 25px 0;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.3s;
}
.search-btn:hover { opacity: 0.9; }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.85rem;
  color: #888;
}
.breadcrumb a { color: #e91e8c; }
.breadcrumb span { margin: 0 8px; }

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ff6ec7, #e91e8c, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  color: #fff;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.4);
  color: #fff;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 60px 0;
}
.section-dark {
  background: #0f0f1a;
}
.section-alt {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.section-title h2 em {
  font-style: normal;
  color: #e91e8c;
}
.section-title p {
  color: #999;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Video Card Grid
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.video-card {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(233, 30, 140, 0.2);
}
.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
}
.play-btn-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}
.video-card:hover .play-btn-overlay {
  opacity: 1;
}
.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(233, 30, 140, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.video-info {
  padding: 15px;
}
.video-info h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #888;
}
.video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.video-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.video-tag {
  padding: 2px 10px;
  background: rgba(233, 30, 140, 0.15);
  color: #e91e8c;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(233, 30, 140, 0.2);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: #e91e8c;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.15);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.feature-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.5;
}

/* ============================================
   Expert Section
   ============================================ */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.expert-card {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 25px 15px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s;
}
.expert-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}
.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid #7c3aed;
}
.expert-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
}
.expert-role {
  color: #e91e8c;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.expert-desc {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 15px;
  line-height: 1.5;
}
.expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.btn-sm {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid #e91e8c;
  color: #e91e8c;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
}
.btn-sm:hover {
  background: #e91e8c;
  color: #fff;
}
.btn-sm.filled {
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  border: none;
  color: #fff;
}

/* ============================================
   Reviews / Testimonials
   ============================================ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.review-card {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(233, 30, 140, 0.1);
}
.review-stars {
  color: #ffd700;
  margin-bottom: 12px;
  font-size: 1rem;
}
.review-text {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.review-author-info strong {
  color: #fff;
  font-size: 0.9rem;
}
.review-author-info span {
  color: #888;
  font-size: 0.8rem;
}

/* ============================================
   Partner Logos
   ============================================ */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}
.partner-logo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px 25px;
  color: #888;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}
.partner-logo:hover {
  border-color: #e91e8c;
  color: #e91e8c;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #1a1a2e;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.faq-question {
  padding: 18px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s;
}
.faq-question:hover { background: rgba(233, 30, 140, 0.1); }
.faq-arrow {
  transition: transform 0.3s;
  color: #e91e8c;
}
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: #999;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  padding: 0 25px 18px;
  max-height: 300px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.contact-info-card {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid rgba(233, 30, 140, 0.2);
}
.contact-info-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #ccc;
  font-size: 0.95rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1rem;
}
.qrcode-group {
  display: flex;
  gap: 30px;
  justify-content: center;
}
.qrcode-item {
  text-align: center;
}
.qrcode-item img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.qrcode-item p {
  color: #999;
  font-size: 0.85rem;
}

/* ============================================
   Social Share
   ============================================ */
.share-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  padding: 10px 20px;
  border-radius: 25px;
  color: #fff;
  font-size: 0.9rem;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; border: 1px solid #fff; }
.share-bilibili { background: #00a1d6; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #0a0a14;
  border-top: 2px solid #e91e8c;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand .logo-img { height: 40px; margin-bottom: 12px; }
.footer-brand p {
  color: #888;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 15px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e91e8c;
  display: inline-block;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #888;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: #e91e8c; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 0.85rem;
}
.footer-qrcodes {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}
.footer-qrcodes img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

/* ============================================
   Page Banner (Inner Pages)
   ============================================ */
.page-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner .hero-bg {
  filter: brightness(0.35);
}
.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-banner-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.page-banner-content p {
  color: #ccc;
  font-size: 1.05rem;
}

/* ============================================
   Category Tabs
   ============================================ */
.category-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.cat-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(233, 30, 140, 0.3);
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
}
.cat-tab:hover, .cat-tab.active {
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  border-color: transparent;
  color: #fff;
}

/* ============================================
   Tool Cards
   ============================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.tool-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
}
.tool-card:hover {
  border-color: #7c3aed;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}
.tool-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.tool-card p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}
.tool-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(233, 30, 140, 0.15);
  color: #e91e8c;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* ============================================
   Community Cards
   ============================================ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.community-card {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(233, 30, 140, 0.1);
  transition: all 0.3s;
}
.community-card:hover {
  border-color: #e91e8c;
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.15);
}
.community-card-img {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
}
.community-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-card-body {
  padding: 20px;
  flex: 1;
}
.community-card-body h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.community-card-body p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.community-stats {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #888;
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2rem;
  color: #fff;
  font-weight: 800;
}
.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ============================================
   Lazy Load Placeholder
   ============================================ */
.lazy-img {
  opacity: 0;
  transition: opacity 0.5s;
}
.lazy-img.loaded {
  opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.active { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }
  .main-nav a { display: block; text-align: center; }
  .mobile-menu-btn { display: block; }
  .hero-section { height: 350px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-card { flex-direction: column; }
  .community-card-img { width: 100%; height: 180px; }
  .page-banner { height: 220px; }
  .page-banner-content h1 { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .qrcode-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }
}
