/* ========================================
   每日吃瓜每日投稿 - 全站样式表
   bznocc.cn
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #f8f9fa; line-height: 1.7;
}
a { color: #e74c3c; text-decoration: none; transition: color .2s; }
a:hover { color: #c0392b; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ========== Header ========== */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 45px; width: auto; object-fit: contain; }
.nav-list { display: flex; gap: 8px; }
.nav-link {
  display: block; padding: 8px 18px; font-size: 15px; color: #333;
  border-radius: 6px; transition: all .2s; font-weight: 500;
}
.nav-link:hover, .nav-link.active { background: #e74c3c; color: #fff; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative; flex-direction: column;
  justify-content: space-between;
}
.mobile-menu-btn span {
  display: block; width: 100%; height: 3px; background: #333;
  border-radius: 2px; transition: .3s;
}

/* Search Bar */
.search-bar {
  background: #f0f2f5; padding: 10px 0; border-top: 1px solid #e8e8e8;
}
.search-form { display: flex; max-width: 600px; margin: 0 auto; }
.search-input {
  flex: 1; padding: 10px 16px; border: 2px solid #ddd; border-right: none;
  border-radius: 25px 0 0 25px; font-size: 14px; outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: #e74c3c; }
.search-btn {
  padding: 10px 24px; background: #e74c3c; color: #fff; border: none;
  border-radius: 0 25px 25px 0; cursor: pointer; font-size: 14px;
  transition: background .2s;
}
.search-btn:hover { background: #c0392b; }

/* Breadcrumb */
.breadcrumb {
  background: #fff; padding: 12px 0; font-size: 13px; color: #999;
  border-bottom: 1px solid #eee;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e74c3c; }

/* ========== Hero Section ========== */
.hero-section { position: relative; overflow: hidden; }
.hero-bg { height: 500px; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%);
  display: flex; align-items: center;
}
.hero-content { color: #fff; max-width: 700px; }
.hero-content h1 { font-size: 36px; margin-bottom: 16px; line-height: 1.3; }
.hero-subtitle { font-size: 18px; margin-bottom: 20px; opacity: .9; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tag {
  padding: 4px 14px; background: rgba(255,255,255,.15); border-radius: 20px;
  font-size: 13px; backdrop-filter: blur(4px);
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all .2s;
  text-align: center;
}
.btn-primary { background: #e74c3c; color: #fff; border: 2px solid #e74c3c; }
.btn-primary:hover { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #333; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ========== Sections ========== */
.section { padding: 60px 0; }
.section:nth-child(even) { background: #fff; }
.section-title {
  font-size: 28px; text-align: center; margin-bottom: 12px; color: #222;
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: #e74c3c; margin: 12px auto 0;
}
.section-desc {
  text-align: center; color: #666; font-size: 15px; margin-bottom: 40px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.section-more { text-align: center; margin-top: 30px; }
.section-more .btn-outline { color: #e74c3c; border-color: #e74c3c; }
.section-more .btn-outline:hover { background: #e74c3c; color: #fff; }

/* ========== Video Cards ========== */
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.video-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden; cursor: pointer;
}
.video-thumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.3); display: flex; align-items: center;
  justify-content: center; opacity: 0; transition: opacity .3s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 60px; height: 60px; background: rgba(231,76,60,.9);
  border-radius: 50%; position: relative;
}
.play-btn::after {
  content: ''; position: absolute; left: 24px; top: 18px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-duration {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75);
  color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px;
}
.video-info { padding: 16px; }
.video-title { font-size: 15px; margin-bottom: 8px; line-height: 1.4; color: #222; }
.video-meta { font-size: 13px; color: #999; display: flex; gap: 12px; margin-bottom: 6px; }
.video-stats { font-size: 12px; color: #aaa; display: flex; gap: 12px; }
.video-desc { font-size: 13px; color: #666; margin-top: 8px; line-height: 1.5; }

/* ========== Service Cards ========== */
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  background: #fff; padding: 30px 24px; border-radius: 12px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s;
}
.service-card:hover { transform: translateY(-4px); }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-size: 17px; margin-bottom: 10px; color: #222; }
.service-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* ========== Entertainment ========== */
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ent-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s;
}
.ent-card:hover { transform: translateY(-4px); }
.ent-card img { width: 100%; height: 200px; object-fit: cover; }
.ent-info { padding: 20px; }
.ent-info h3 { font-size: 16px; margin-bottom: 8px; color: #222; }
.ent-info p { font-size: 14px; color: #666; }

/* ========== AI Section ========== */
.ai-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ai-image img { border-radius: 12px; width: 100%; }
.ai-features { display: flex; flex-direction: column; gap: 20px; }
.ai-feature {
  padding: 20px; background: #fff; border-radius: 10px;
  border-left: 4px solid #e74c3c; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ai-feature h3 { font-size: 16px; margin-bottom: 8px; color: #222; }
.ai-feature p { font-size: 14px; color: #666; }

/* ========== Community ========== */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.community-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.community-card img { width: 100%; height: 240px; object-fit: cover; }
.community-card h3 { padding: 16px 20px 8px; font-size: 17px; color: #222; }
.community-card p { padding: 0 20px 20px; font-size: 14px; color: #666; }

/* ========== Experts ========== */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
  background: #fff; padding: 30px 20px; border-radius: 12px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-card img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 3px solid #e74c3c;
}
.expert-card h3 { font-size: 18px; margin-bottom: 4px; color: #222; }
.expert-title { font-size: 14px; color: #e74c3c; margin-bottom: 10px; }
.expert-desc { font-size: 13px; color: #666; margin-bottom: 10px; line-height: 1.5; }
.expert-awards { font-size: 12px; color: #999; margin-bottom: 16px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }

/* ========== Partners ========== */
.partner-logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.partner-item {
  background: #fff; border-radius: 10px; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); min-height: 80px;
}
.partner-placeholder {
  font-size: 14px; color: #999; font-weight: 500;
}

/* ========== How-To ========== */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.howto-step {
  background: #fff; padding: 30px 24px; border-radius: 12px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); position: relative;
}
.step-num {
  font-size: 48px; font-weight: 800; color: #f0f0f0; margin-bottom: 10px;
  line-height: 1;
}
.howto-step h3 { font-size: 17px; margin-bottom: 10px; color: #222; }
.howto-step p { font-size: 14px; color: #666; }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 10px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; cursor: pointer; transition: background .2s;
}
.faq-question:hover { background: #fafafa; }
.faq-question h3 { font-size: 15px; color: #333; font-weight: 500; }
.faq-toggle {
  font-size: 24px; color: #e74c3c; font-weight: 300; transition: transform .3s;
  min-width: 24px; text-align: center;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px; padding: 0 24px 18px;
}
.faq-answer p { font-size: 14px; color: #666; line-height: 1.7; }

/* ========== Reviews ========== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: #fff; padding: 24px; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.review-stars { color: #f39c12; font-size: 18px; margin-bottom: 12px; }
.review-text { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.review-author { display: flex; justify-content: space-between; font-size: 13px; }
.author-name { color: #e74c3c; font-weight: 500; }
.review-date { color: #999; }

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 20px; margin-bottom: 20px; color: #222; }
.contact-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.contact-social { margin-top: 20px; }
.contact-social h4 { font-size: 16px; margin-bottom: 10px; color: #222; }
.contact-social p { font-size: 14px; color: #666; margin-bottom: 6px; }
.contact-qrcodes { display: flex; gap: 30px; align-items: flex-start; }
.qrcode-item { text-align: center; }
.qrcode-item img { width: 180px; height: 180px; border-radius: 8px; margin-bottom: 8px; }
.qrcode-item p { font-size: 13px; color: #666; }

/* ========== Share ========== */
.share-section { text-align: center; padding: 40px 0; background: #fff; }
.share-section h3 { font-size: 18px; margin-bottom: 20px; color: #333; }
.share-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  padding: 10px 24px; border-radius: 25px; color: #fff; font-size: 14px;
  cursor: pointer; transition: opacity .2s;
}
.share-btn:hover { opacity: .85; color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00a1d6; }

/* ========== Footer ========== */
.site-footer { background: #1a1a2e; color: #ccc; padding: 50px 0 0; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 30px; }
.footer-brand p { font-size: 14px; margin-top: 12px; color: #999; }
.footer-logo { height: 40px; width: auto; filter: brightness(2); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; font-size: 13px; }
.footer-col a { color: #999; }
.footer-col a:hover { color: #e74c3c; }
.footer-qrcodes {
  display: flex; gap: 24px; justify-content: center; padding: 20px 0;
  border-top: 1px solid #2a2a3e; border-bottom: 1px solid #2a2a3e;
}
.footer-qrcodes .qrcode-item img { width: 100px; height: 100px; }
.footer-qrcodes .qrcode-item span { display: block; font-size: 12px; color: #999; margin-top: 6px; }
.footer-bottom {
  text-align: center; padding: 20px 0; font-size: 13px; color: #666;
}
.footer-bottom p { margin-bottom: 4px; }

/* ========== Inner Pages ========== */
.page-main { padding: 40px 0 60px; }
.page-main h1 { font-size: 30px; margin-bottom: 16px; color: #222; }
.page-intro { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 40px; max-width: 900px; }
.inner-section { margin-bottom: 50px; }
.inner-section h2 {
  font-size: 22px; color: #222; margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid #e74c3c;
}

/* Tool Grid */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card {
  background: #fff; padding: 28px 24px; border-radius: 12px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s;
}
.tool-card:hover { transform: translateY(-4px); }
.tool-icon { font-size: 36px; margin-bottom: 14px; }
.tool-card h3 { font-size: 16px; margin-bottom: 10px; color: #222; }
.tool-card p { font-size: 13px; color: #666; margin-bottom: 14px; line-height: 1.6; }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.feature-card img { width: 100%; height: 200px; object-fit: cover; }
.feature-card h3 { padding: 16px 20px 8px; font-size: 16px; color: #222; }
.feature-card p { padding: 0 20px 20px; font-size: 13px; color: #666; line-height: 1.6; }

/* Topic List */
.topic-list { max-width: 700px; }
.topic-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: #fff; border-radius: 10px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.topic-hot {
  display: inline-block; padding: 2px 8px; background: #e74c3c; color: #fff;
  border-radius: 4px; font-size: 12px; font-weight: 600;
}
.topic-new {
  display: inline-block; padding: 2px 8px; background: #3498db; color: #fff;
  border-radius: 4px; font-size: 12px; font-weight: 600;
}
.topic-item h3 { font-size: 15px; color: #333; flex: 1; }
.topic-meta { font-size: 12px; color: #999; white-space: nowrap; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item {
  padding: 6px 18px; background: #fff; border: 1px solid #ddd; border-radius: 20px;
  font-size: 13px; color: #666; transition: all .2s;
}
.tag-item:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.category-card {
  background: #fff; padding: 24px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.category-card h3 { font-size: 16px; margin-bottom: 8px; color: #222; }
.category-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* Guide Content */
.guide-content { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.guide-content p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 16px; }

/* About */
.about-content { }
.about-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.about-content p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 16px; }
.contact-detail { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.join-info { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.join-info p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 12px; }
.join-channels { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.join-channels p { font-size: 14px; color: #666; margin-bottom: 8px; }

/* ========== Mobile Responsive ========== */
@media (max-width: 1024px) {
  .service-grid, .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { grid-template-columns: repeat(3, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .main-nav { display: none; }
  .main-nav.active {
    display: block; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 999;
  }
  .main-nav.active .nav-list { flex-direction: column; padding: 10px 0; }
  .main-nav.active .nav-link { padding: 12px 24px; border-radius: 0; }
  .mobile-menu-btn { display: flex; }

  .hero-bg { height: 350px; }
  .hero-content h1 { font-size: 24px; }
  .hero-subtitle { font-size: 15px; }

  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .ent-grid { grid-template-columns: 1fr; }
  .ai-showcase { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
  .howto-steps { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-qrcodes { justify-content: center; }
  .tool-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  .page-main h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .partner-logos { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-bg { height: 280px; }
  .hero-content h1 { font-size: 20px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; }
}

/* ========== Lazy Load Placeholder ========== */
img[loading="lazy"] {
  background: #f0f0f0;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.section { animation: fadeInUp .6s ease-out; }
