/* ============================================
   母狗 - 游戏解说视频社区 官方网站样式
   域名: juhuipay.cn
   ============================================ */

/* === 基础重置与全局样式 === */
*, *::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: #e0e0e0;
  background: #0a0a1a;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: #c084fc; text-decoration: none; transition: color 0.3s; }
a:hover { color: #e879f9; }
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.3; }

/* === 容器 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }

/* === 顶部导航 === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.2);
  transition: background 0.3s;
}
.nav-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo span { font-size: 1.3rem; font-weight: 700; color: #c084fc; }
.nav-menu { display: flex; gap: 5px; }
.nav-menu a {
  padding: 8px 16px; border-radius: 8px; font-size: 0.95rem;
  color: #c0c0d0; transition: all 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(192, 132, 252, 0.15); color: #e879f9;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-toggle span { width: 25px; height: 2px; background: #c084fc; transition: 0.3s; }

/* === 搜索框 === */
.search-bar {
  background: rgba(20, 20, 40, 0.8);
  border-bottom: 1px solid rgba(192, 132, 252, 0.1);
  padding: 12px 0; margin-top: 70px;
}
.search-bar .container { display: flex; justify-content: center; }
.search-form {
  display: flex; max-width: 600px; width: 100%;
  background: rgba(30, 30, 60, 0.8); border-radius: 30px;
  border: 1px solid rgba(192, 132, 252, 0.3); overflow: hidden;
}
.search-form input {
  flex: 1; padding: 10px 20px; background: transparent;
  border: none; color: #e0e0e0; font-size: 0.95rem; outline: none;
}
.search-form input::placeholder { color: #666; }
.search-form button {
  padding: 10px 24px; background: linear-gradient(135deg, #7c3aed, #c084fc);
  border: none; color: #fff; font-size: 0.95rem; cursor: pointer;
  transition: opacity 0.3s;
}
.search-form button:hover { opacity: 0.85; }

/* === Banner区域 === */
.hero-banner {
  position: relative; min-height: 520px;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,26,0.92) 0%, rgba(60,20,80,0.7) 50%, rgba(10,10,26,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 700px;
  padding: 40px 0;
}
.hero-content h1 {
  font-size: 2.6rem; margin-bottom: 16px;
  background: linear-gradient(135deg, #c084fc, #f0abfc, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content .subtitle {
  font-size: 1.15rem; color: #b0b0c0; margin-bottom: 24px;
}
.hero-content .hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hero-content .hero-tags span {
  padding: 5px 14px; border-radius: 20px; font-size: 0.85rem;
  background: rgba(192, 132, 252, 0.15); color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; border-radius: 30px;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: #fff; font-size: 1rem; font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-cta:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

/* === 通用区块标题 === */
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem; margin-bottom: 10px;
  background: linear-gradient(135deg, #c084fc, #f0abfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p { color: #888; font-size: 1rem; }

/* === 视频卡片网格 === */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  position: relative; border-radius: 12px; overflow: hidden;
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
}
.video-card .thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
}
.video-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.video-card:hover .thumb img { transform: scale(1.08); }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 56px; height: 56px;
  background: rgba(124, 58, 237, 0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-card .duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 0.8rem;
}
.video-card .card-body { padding: 14px 16px; }
.video-card .card-body h3 {
  font-size: 1rem; color: #e0e0e0; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card .card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: #777;
}
.video-card .card-meta .views { display: flex; align-items: center; gap: 4px; }
.video-card .card-meta .likes { display: flex; align-items: center; gap: 4px; }

/* === 内容模块卡片 === */
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.module-card {
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
}
.module-card .card-img {
  aspect-ratio: 16/10; overflow: hidden;
}
.module-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.module-card:hover .card-img img { transform: scale(1.05); }
.module-card .card-info { padding: 16px; }
.module-card .card-info h3 {
  font-size: 1.05rem; color: #e0e0e0; margin-bottom: 8px;
}
.module-card .card-info p {
  font-size: 0.9rem; color: #888; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* === 专家展示 === */
.expert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.expert-card {
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 12px; padding: 24px; text-align: center;
  transition: transform 0.3s;
}
.expert-card:hover { transform: translateY(-5px); }
.expert-card .avatar {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
  border: 3px solid rgba(192, 132, 252, 0.4);
}
.expert-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h3 { font-size: 1.1rem; color: #e0e0e0; margin-bottom: 4px; }
.expert-card .role { font-size: 0.85rem; color: #c084fc; margin-bottom: 10px; }
.expert-card p { font-size: 0.85rem; color: #888; margin-bottom: 14px; }
.expert-card .btn-sm {
  display: inline-block; padding: 6px 18px; border-radius: 20px;
  background: rgba(192, 132, 252, 0.15); color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
  font-size: 0.85rem; transition: all 0.3s; margin: 0 4px;
}
.expert-card .btn-sm:hover {
  background: rgba(192, 132, 252, 0.3); color: #e879f9;
}

/* === FAQ区域 === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 10px; margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 16px 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; color: #e0e0e0; font-weight: 600;
  transition: background 0.3s;
}
.faq-question:hover { background: rgba(192, 132, 252, 0.08); }
.faq-question .arrow {
  transition: transform 0.3s; font-size: 0.8rem; color: #c084fc;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 20px; color: #999; font-size: 0.95rem;
}
.faq-item.active .faq-answer {
  max-height: 300px; padding: 0 20px 16px;
}

/* === 用户评论 === */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 12px; padding: 20px;
}
.review-card .stars { color: #fbbf24; margin-bottom: 10px; font-size: 0.9rem; }
.review-card .review-text {
  font-size: 0.95rem; color: #c0c0d0; margin-bottom: 12px;
  font-style: italic; line-height: 1.7;
}
.review-card .reviewer {
  display: flex; align-items: center; gap: 10px;
}
.review-card .reviewer .r-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 700;
}
.review-card .reviewer .r-info span { display: block; }
.review-card .reviewer .r-info .r-name { font-size: 0.9rem; color: #e0e0e0; }
.review-card .reviewer .r-info .r-date { font-size: 0.75rem; color: #666; }

/* === 合作品牌 === */
.partner-section { text-align: center; }
.partner-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
  align-items: center; margin-bottom: 30px;
}
.partner-logos img { height: 60px; opacity: 0.7; transition: opacity 0.3s; filter: grayscale(0.3); }
.partner-logos img:hover { opacity: 1; filter: grayscale(0); }

/* === 联系我们 === */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.contact-card {
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 12px; padding: 24px;
}
.contact-card h3 { font-size: 1.1rem; color: #c084fc; margin-bottom: 14px; }
.contact-card p { font-size: 0.9rem; color: #999; margin-bottom: 8px; }
.contact-card .qr-img { max-width: 180px; margin: 10px auto 0; border-radius: 8px; }

/* === 社交分享 === */
.share-bar {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap; padding: 20px 0;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 25px;
  font-size: 0.9rem; color: #fff; transition: transform 0.3s, opacity 0.3s;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.85; color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; border: 1px solid #333; }
.share-bilibili { background: #00a1d6; }

/* === 页脚 === */
.site-footer {
  background: rgba(5, 5, 15, 0.95);
  border-top: 1px solid rgba(192, 132, 252, 0.15);
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 1rem; color: #c084fc; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(192, 132, 252, 0.2);
}
.footer-col p, .footer-col a { font-size: 0.85rem; color: #777; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: #c084fc; }
.footer-col .footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-col .footer-logo img { height: 32px; }
.footer-col .footer-logo span { font-size: 1.1rem; font-weight: 700; color: #c084fc; }
.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(192, 132, 252, 0.1);
  font-size: 0.8rem; color: #555;
}
.footer-bottom a { color: #777; }
.footer-qr { display: flex; gap: 20px; justify-content: center; margin: 20px 0; }
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-item img { width: 120px; border-radius: 8px; margin-bottom: 6px; }
.footer-qr .qr-item span { font-size: 0.8rem; color: #777; }

/* === How-To指南 === */
.howto-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-top: 30px;
}
.howto-step {
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 12px; padding: 20px; text-align: center;
}
.howto-step .step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: #fff; font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.howto-step h4 { font-size: 1rem; color: #e0e0e0; margin-bottom: 8px; }
.howto-step p { font-size: 0.85rem; color: #888; }

/* === 面包屑 === */
.breadcrumb {
  padding: 12px 0; font-size: 0.85rem; color: #666;
}
.breadcrumb a { color: #c084fc; }
.breadcrumb span { margin: 0 6px; }

/* === 内页通用 === */
.page-hero {
  padding: 100px 0 40px;
  background: linear-gradient(135deg, rgba(10,10,26,0.95), rgba(60,20,80,0.6));
}
.page-hero h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #c084fc, #f0abfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 10px;
}
.page-hero p { color: #999; font-size: 1rem; }
.page-content { padding: 40px 0 60px; }

/* === 图片样式 === */
img { opacity: 1; }

/* === 社区动物卡片 === */
.community-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* === AI赋能区域 === */
.ai-features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.ai-card {
  background: rgba(20, 20, 45, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 12px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform 0.3s;
}
.ai-card:hover { transform: translateY(-3px); }
.ai-card .ai-icon {
  width: 50px; height: 50px; min-width: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ai-card h3 { font-size: 1rem; color: #e0e0e0; margin-bottom: 6px; }
.ai-card p { font-size: 0.85rem; color: #888; }

/* === 响应式 === */
@media (max-width: 768px) {
  .nav-menu {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(10, 10, 26, 0.98); flex-direction: column;
    padding: 20px; gap: 5px;
  }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: flex; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-banner { min-height: 400px; }
  .section-title h2 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .ai-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* === 滚动动画 === */
.fade-in {
  opacity: 1; transform: translateY(0);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === MCP前端占位 === */
.mcp-widget {
  background: rgba(20, 20, 45, 0.6);
  border: 1px dashed rgba(192, 132, 252, 0.3);
  border-radius: 10px; padding: 20px; text-align: center;
  margin: 20px 0;
}
.mcp-widget p { color: #666; font-size: 0.85rem; }
