/* ============================================
   抖阴 - 原创样式表
   品牌色系：糖心粉 #FF6B9D / 深玫红 #C44569 / 浅樱粉 #F8A5C2
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #FFF5F7; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: #C44569; text-decoration: none; transition: color .3s; }
a:hover { color: #FF6B9D; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.4; color: #2D1F3D; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  text-align: center; margin-bottom: 40px; position: relative; padding-bottom: 15px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: linear-gradient(90deg, #FF6B9D, #C44569);
  border-radius: 2px;
}
.section-title h2 { font-size: 28px; margin-bottom: 8px; }
.section-title p { color: #888; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(196,69,105,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 42px; width: auto; }
.logo-wrap span { font-size: 22px; font-weight: 800; color: #C44569; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 20px; font-size: 15px; font-weight: 500;
  color: #555; transition: all .3s;
}
.main-nav a:hover, .main-nav a.active {
  background: linear-gradient(135deg, #FF6B9D, #C44569); color: #fff;
}

/* Search Box */
.search-bar {
  background: #f9f0f3; padding: 12px 0; border-bottom: 1px solid #f0dde3;
}
.search-bar form {
  max-width: 600px; margin: 0 auto; display: flex; gap: 0;
}
.search-bar input {
  flex: 1; padding: 10px 18px; border: 2px solid #F8A5C2; border-right: none;
  border-radius: 25px 0 0 25px; font-size: 14px; outline: none;
  background: #fff; transition: border-color .3s;
}
.search-bar input:focus { border-color: #C44569; }
.search-bar button {
  padding: 10px 24px; background: linear-gradient(135deg, #FF6B9D, #C44569);
  color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: opacity .3s;
}
.search-bar button:hover { opacity: .85; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative;
}
.menu-toggle span {
  display: block; width: 100%; height: 3px; background: #C44569;
  border-radius: 2px; transition: all .3s; position: absolute; left: 0;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

/* ---------- Hero Banner ---------- */
.hero-banner {
  position: relative; overflow: hidden; height: 520px;
}
.hero-slides { display: flex; transition: transform .8s ease; height: 100%; }
.hero-slide {
  min-width: 100%; height: 100%; position: relative;
  background-size: cover; background-position: center;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,31,61,.65), rgba(196,69,105,.45));
}
.hero-content {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; text-align: center; color: #fff; width: 90%; max-width: 700px;
}
.hero-content h1 { font-size: 42px; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hero-content p { font-size: 18px; margin-bottom: 28px; opacity: .95; }
.hero-btn {
  display: inline-block; padding: 14px 36px; border-radius: 30px;
  background: linear-gradient(135deg, #FF6B9D, #C44569); color: #fff;
  font-size: 16px; font-weight: 600; transition: transform .3s, box-shadow .3s;
}
.hero-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,107,157,.4);
  color: #fff;
}
.hero-dots {
  position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dots span {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5);
  cursor: pointer; transition: background .3s;
}
.hero-dots span.active { background: #FF6B9D; }

/* ---------- Video Card Grid ---------- */
.video-section { padding: 60px 0; }
.video-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.video-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(196,69,105,.08); transition: transform .3s, box-shadow .3s;
}
.video-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 35px rgba(196,69,105,.15);
}
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-thumb img,
.video-thumb video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.video-card:hover .video-thumb img,
.video-card:hover .video-thumb video { transform: scale(1.08); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  width: 56px; height: 56px; background: rgba(255,107,157,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s; z-index: 2;
}
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-left: 18px solid #fff; border-top: 11px solid transparent;
  border-bottom: 11px solid transparent; margin-left: 4px;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.video-duration {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7);
  color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; z-index: 2;
}
.video-info { padding: 14px 16px; }
.video-info h3 {
  font-size: 15px; margin-bottom: 8px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta { display: flex; gap: 14px; color: #999; font-size: 13px; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  background: #FFF0F5; color: #C44569; font-size: 12px; margin-top: 6px;
}

/* ---------- Service Section ---------- */
.service-section { padding: 60px 0; background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  padding: 36px 28px; border-radius: 16px; text-align: center;
  background: linear-gradient(145deg, #FFF5F7, #fff);
  border: 1px solid #f8e0e8; transition: all .3s;
}
.service-card:hover {
  border-color: #FF6B9D; box-shadow: 0 8px 30px rgba(255,107,157,.12);
}
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: #777; font-size: 14px; line-height: 1.7; }

/* ---------- AI Section ---------- */
.ai-section { padding: 60px 0; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-card {
  background: #fff; border-radius: 14px; padding: 30px 24px;
  border: 1px solid #f0dde3; transition: all .3s; position: relative; overflow: hidden;
}
.ai-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, #FF6B9D, #C44569);
}
.ai-card:hover { box-shadow: 0 8px 30px rgba(196,69,105,.1); transform: translateY(-4px); }
.ai-card h3 { font-size: 18px; margin-bottom: 12px; }
.ai-card p { color: #777; font-size: 14px; }

/* ---------- Community Section ---------- */
.community-section { padding: 60px 0; background: linear-gradient(135deg, #2D1F3D, #4a2c5e); color: #fff; }
.community-section .section-title h2 { color: #fff; }
.community-section .section-title p { color: rgba(255,255,255,.7); }
.community-section .section-title::after { background: linear-gradient(90deg, #F8A5C2, #FF6B9D); }
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.community-card {
  background: rgba(255,255,255,.08); border-radius: 14px; padding: 28px 20px;
  text-align: center; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1);
  transition: all .3s;
}
.community-card:hover { background: rgba(255,255,255,.15); transform: translateY(-4px); }
.community-card .icon { font-size: 36px; margin-bottom: 14px; }
.community-card h3 { font-size: 16px; margin-bottom: 8px; }
.community-card p { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- Expert Section ---------- */
.expert-section { padding: 60px 0; }
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
  background: #fff; border-radius: 14px; overflow: hidden; text-align: center;
  box-shadow: 0 4px 20px rgba(196,69,105,.06); transition: all .3s;
}
.expert-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(196,69,105,.12); }
.expert-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 24px auto 14px;
  overflow: hidden; border: 3px solid #F8A5C2;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h3 { font-size: 17px; margin-bottom: 4px; }
.expert-card .title { color: #C44569; font-size: 13px; margin-bottom: 10px; }
.expert-card p { padding: 0 16px; font-size: 13px; color: #888; margin-bottom: 16px; }
.expert-links { padding: 0 16px 20px; display: flex; gap: 10px; justify-content: center; }
.expert-links a {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.btn-primary {
  background: linear-gradient(135deg, #FF6B9D, #C44569); color: #fff;
}
.btn-outline {
  border: 1px solid #C44569; color: #C44569;
}
.btn-outline:hover { background: #C44569; color: #fff; }

/* ---------- Partner Section ---------- */
.partner-section { padding: 50px 0; background: #fff; }
.partner-logos {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 30px;
}
.partner-logos img { height: 60px; opacity: .6; transition: opacity .3s; filter: grayscale(100%); }
.partner-logos img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Review Section ---------- */
.review-section { padding: 60px 0; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  background: #fff; border-radius: 14px; padding: 28px; position: relative;
  border: 1px solid #f0dde3; transition: all .3s;
}
.review-card:hover { box-shadow: 0 8px 25px rgba(196,69,105,.1); }
.review-card::before {
  content: '\201C'; position: absolute; top: 12px; left: 20px;
  font-size: 48px; color: #F8A5C2; font-family: Georgia, serif; line-height: 1;
}
.review-content { padding-left: 10px; margin-bottom: 16px; color: #555; font-size: 14px; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-user img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review-user .name { font-weight: 600; font-size: 14px; }
.review-user .date { font-size: 12px; color: #aaa; }
.review-stars { color: #FFB800; font-size: 14px; margin-bottom: 10px; padding-left: 10px; }

/* ---------- FAQ Section ---------- */
.faq-section { padding: 60px 0; background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid #f0dde3; border-radius: 12px; margin-bottom: 12px;
  overflow: hidden; transition: all .3s;
}
.faq-item:hover { border-color: #F8A5C2; }
.faq-question {
  padding: 18px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px; color: #2D1F3D; background: #fff;
}
.faq-question::after {
  content: '+'; font-size: 22px; color: #C44569; transition: transform .3s;
  font-weight: 400;
}
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 24px; color: #666; font-size: 14px; line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* ---------- Join Guide ---------- */
.join-section { padding: 60px 0; }
.join-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-bottom: 30px;
}
.join-step {
  text-align: center; padding: 30px 20px; background: #fff;
  border-radius: 14px; border: 1px solid #f0dde3;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, #FF6B9D, #C44569); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.join-step h3 { font-size: 16px; margin-bottom: 8px; }
.join-step p { font-size: 13px; color: #888; }

/* ---------- Contact Section ---------- */
.contact-section { padding: 60px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card {
  text-align: center; padding: 30px 20px; border-radius: 14px;
  border: 1px solid #f0dde3;
}
.contact-card .icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: #777; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2D1F3D; color: rgba(255,255,255,.8); padding: 50px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); }
.footer-col h4 {
  font-size: 16px; color: #fff; margin-bottom: 16px; position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: #FF6B9D;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.6); font-size: 14px;
  padding: 4px 0; transition: color .3s;
}
.footer-col a:hover { color: #FF6B9D; }
.footer-qr { display: flex; gap: 16px; margin-top: 10px; }
.footer-qr img { width: 100px; border-radius: 8px; }
.footer-bottom {
  text-align: center; padding: 20px 0; font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---------- Social Share ---------- */
.share-bar {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
}
.share-bar a {
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.1); font-size: 18px;
  transition: all .3s; color: #666;
}
.share-bar a:hover { background: linear-gradient(135deg, #FF6B9D, #C44569); color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 14px 0; font-size: 13px; color: #999;
  border-bottom: 1px solid #f0dde3; background: #fff;
}
.breadcrumb a { color: #C44569; }
.breadcrumb span { margin: 0 6px; }

/* ---------- Category Page ---------- */
.category-hero {
  height: 300px; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.category-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,31,61,.7), rgba(196,69,105,.5));
}
.category-hero h1 {
  position: relative; z-index: 2; color: #fff; font-size: 36px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.category-content { padding: 50px 0; }
.category-desc {
  max-width: 800px; margin: 0 auto 40px; text-align: center;
  color: #666; font-size: 15px; line-height: 1.8;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: 8px; font-size: 14px;
  border: 1px solid #f0dde3; color: #666; transition: all .3s;
}
.pagination a:hover, .pagination .current {
  background: linear-gradient(135deg, #FF6B9D, #C44569); color: #fff;
  border-color: transparent;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 20px; width: 44px; height: 44px;
  border-radius: 50%; background: linear-gradient(135deg, #FF6B9D, #C44569);
  color: #fff; display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999; font-size: 20px; border: none;
  box-shadow: 0 4px 15px rgba(255,107,157,.3); transition: opacity .3s;
}
.back-to-top:hover { opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .join-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1); gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 20px; border-radius: 8px; }

  .hero-banner { height: 380px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }

  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .entertainment-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .join-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .share-bar { display: none; }
  .section-title h2 { font-size: 22px; }
}

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

/* ---------- Category Desc ---------- */
.category-desc h1 { font-size: 32px; margin-bottom: 16px; color: #2D1F3D; }
.category-desc h2 { font-size: 24px; margin-bottom: 12px; color: #2D1F3D; }

/* ---------- Entertainment Section ---------- */
.entertainment-section { padding: 60px 0; background: #fff; }
.entertainment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.entertainment-card {
  background: linear-gradient(145deg, #FFF5F7, #fff); border-radius: 14px;
  padding: 28px 20px; text-align: center; border: 1px solid #f8e0e8; transition: all .3s;
}
.entertainment-card:hover { border-color: #FF6B9D; transform: translateY(-4px); box-shadow: 0 8px 25px rgba(255,107,157,.1); }
.entertainment-card .icon { font-size: 36px; margin-bottom: 12px; }
.entertainment-card h3 { font-size: 16px; margin-bottom: 8px; }
.entertainment-card p { font-size: 13px; color: #777; line-height: 1.7; }

/* ---------- Lazy Load ---------- */
img[data-src] { opacity: 0; transition: opacity .5s; }
img[data-src].loaded { opacity: 1; }

/* ---------- Animation ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease forwards; }
