/* ============================================
   51吃瓜 - 原创样式表
   品牌：51吃瓜 | 域名：jogzju.cn
   配色方案：活力红粉 + 深邃蓝黑 + 金色强调
   ============================================ */

/* === 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, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background-color: #0F0F1A;
  color: #EAEAEA;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #FF2D55; text-decoration: none; transition: color 0.3s; }
a:hover { color: #FFB800; }
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; color: #FFFFFF; }

/* === Layout Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
  font-size: 2rem;
  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: 80px;
  height: 3px;
  background: linear-gradient(90deg, #FF2D55, #FFB800);
  border-radius: 2px;
}
.section-title span { color: #FF2D55; }

/* === Header & Navigation === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 45, 85, 0.15);
  transition: all 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo .logo-text { font-size: 1.3rem; font-weight: 700; color: #FF2D55; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #EAEAEA;
  transition: all 0.3s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255, 45, 85, 0.15);
  color: #FF2D55;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #EAEAEA;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* === Search Bar === */
.search-bar-wrap {
  background: #1A1A2E;
  padding: 12px 0;
  margin-top: 70px;
  border-bottom: 1px solid rgba(255, 45, 85, 0.1);
}
.search-bar {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}
.search-bar input {
  flex: 1;
  padding: 10px 18px;
  border: 2px solid rgba(255, 45, 85, 0.3);
  border-right: none;
  border-radius: 25px 0 0 25px;
  background: #0F0F1A;
  color: #EAEAEA;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-bar input:focus { border-color: #FF2D55; }
.search-bar input::placeholder { color: #666; }
.search-bar button {
  padding: 10px 24px;
  background: linear-gradient(135deg, #FF2D55, #FF6B81);
  color: #fff;
  border: none;
  border-radius: 0 25px 25px 0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.search-bar button:hover { opacity: 0.85; }

/* === Hero Banner === */
.hero-section {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section .hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-content h1 span { color: #FF2D55; }
.hero-content p {
  font-size: 1.15rem;
  color: #ccc;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}
.hero-content .hero-tags span {
  padding: 5px 14px;
  background: rgba(255, 45, 85, 0.2);
  border: 1px solid rgba(255, 45, 85, 0.4);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #FF6B81;
}
.btn-primary {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, #FF2D55, #FF6B81);
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 45, 85, 0.4);
  color: #fff;
}
.btn-secondary {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid #FFB800;
  color: #FFB800;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
  background: transparent;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #FFB800;
  color: #0F0F1A;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(15,15,26,0.3) 0%, rgba(15,15,26,0.85) 100%);
  z-index: 1;
}

/* === Video Card Grid === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.video-card {
  background: #1E1E30;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 45, 85, 0.2);
}
.video-card .card-thumb {
  position: relative;
  padding-top: 133%;
  overflow: hidden;
}
.video-card .card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover .card-thumb img { transform: scale(1.05); }
.video-card .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 56px; height: 56px;
  background: rgba(255, 45, 85, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 3;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.play-btn::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: 3px;
}
.video-card .card-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 2;
}
.video-card .card-info { padding: 14px; }
.video-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #EAEAEA;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #888;
}
.video-card .card-meta .views::before { content: '▶ '; color: #FF2D55; }
.video-card .card-meta .likes::before { content: '♥ '; color: #FF6B81; }

/* === Horizontal Video Card (16:9) === */
.video-grid-wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card-wide .card-thumb { padding-top: 56.25%; }

/* === Feature Modules === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #1E1E30;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.feature-card:hover {
  border-color: rgba(255, 45, 85, 0.3);
  transform: translateY(-3px);
}
.feature-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(255,45,85,0.2), rgba(255,184,0,0.2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: #999; line-height: 1.6; }

/* === Expert Section === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.expert-card {
  background: #1E1E30;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}
.expert-card:hover { transform: translateY(-3px); }
.expert-card .avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 45, 85, 0.4);
}
.expert-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-card .role { font-size: 0.85rem; color: #FF2D55; margin-bottom: 10px; }
.expert-card p { font-size: 0.85rem; color: #999; margin-bottom: 14px; }
.expert-card .expert-btns { display: flex; gap: 8px; justify-content: center; }
.expert-card .expert-btns a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,45,85,0.4);
  color: #FF6B81;
  transition: all 0.3s;
}
.expert-card .expert-btns a:hover {
  background: #FF2D55;
  color: #fff;
  border-color: #FF2D55;
}

/* === Partner Logo Wall === */
.partner-wall {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}
.partner-wall img {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.partner-wall img:hover { opacity: 1; }

/* === FAQ Section === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #1E1E30;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,45,85,0.1);
}
.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: #EAEAEA;
  transition: color 0.3s;
}
.faq-question:hover { color: #FF2D55; }
.faq-question .arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: #FF2D55;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px;
  color: #999;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* === Reviews Section === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card {
  background: #1E1E30;
  border-radius: 12px;
  padding: 24px;
  border-left: 3px solid #FF2D55;
}
.review-card .stars { color: #FFB800; margin-bottom: 10px; font-size: 0.9rem; }
.review-card .review-text {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card .reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2D55, #FFB800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.review-card .reviewer-name { font-weight: 600; font-size: 0.9rem; }
.review-card .reviewer-date { font-size: 0.8rem; color: #666; }

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.contact-info-card {
  background: #1E1E30;
  border-radius: 12px;
  padding: 30px;
}
.contact-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #FF2D55;
}
.contact-info-card .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #ccc;
}
.contact-info-card .info-item .label {
  color: #FFB800;
  font-weight: 600;
  min-width: 80px;
}
.contact-qr-wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.contact-qr-wrap .qr-item {
  text-align: center;
}
.contact-qr-wrap .qr-item img {
  width: 150px; height: 150px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.contact-qr-wrap .qr-item p {
  font-size: 0.85rem;
  color: #999;
}

/* === How-To Guide === */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.howto-step {
  text-align: center;
  padding: 20px;
}
.howto-step .step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #FF2D55, #FFB800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.howto-step h4 { font-size: 0.95rem; margin-bottom: 8px; }
.howto-step p { font-size: 0.85rem; color: #999; }

/* === Social Share === */
.social-share {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.3s;
}
.social-share .share-wechat { background: #07C160; }
.social-share .share-weibo { background: #E6162D; }
.social-share .share-douyin { background: #161823; border: 1px solid #333; }
.social-share .share-bilibili { background: #00A1D6; }
.social-share a:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }

/* === Footer === */
.site-footer {
  background: #0A0A15;
  border-top: 1px solid rgba(255,45,85,0.1);
  padding: 40px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #FF2D55;
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: #888;
  line-height: 2;
  display: block;
}
.footer-col a:hover { color: #FF2D55; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: #666;
}
.footer-bottom .update-time { color: #888; margin-top: 5px; }

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

/* === Inner Page Hero === */
.inner-hero {
  background: linear-gradient(135deg, #1A1A2E, #0F0F1A);
  padding: 100px 0 40px;
  text-align: center;
}
.inner-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.inner-hero p { color: #999; font-size: 1rem; }

/* === Lazy Load Placeholder === */
.lazy-img {
  background: #1E1E30;
  transition: opacity 0.5s;
}
.lazy-img[data-src] { opacity: 0.5; }

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

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .site-logo img { height: 34px; }
  .main-nav { 
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(15,15,26,0.98);
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,45,85,0.15);
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 12px 20px; width: 100%; }
  .mobile-menu-btn { display: block; }
  .search-bar-wrap { margin-top: 60px; }
  .hero-section { height: 400px; }
  .hero-content h1 { font-size: 1.8rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-grid-wide { 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-inner { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-qr-wrap { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* === MCP Service Frontend Placeholder === */
.mcp-widget {
  background: #1E1E30;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  border: 1px dashed rgba(255,45,85,0.3);
}
.mcp-widget p { color: #666; font-size: 0.85rem; }
