/* ============================================
   哔咔漫画 - 全站样式表
   manlongyy.com
   ============================================ */

/* 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: #e65100; text-decoration: none; transition: color .2s; }
a:hover { color: #ff6d00; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: #1a1a2e; font-weight: 700; }

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

/* ============ Header ============ */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1200px; margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span { color: #fff; font-size: 1.3rem; font-weight: 700; letter-spacing: 1px; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  color: rgba(255,255,255,.85); padding: 8px 16px; font-size: .95rem;
  transition: all .2s; border-radius: 6px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.12); }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* Search Bar */
.search-bar {
  background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 0;
}
.search-bar .container { display: flex; justify-content: center; }
.search-form {
  display: flex; max-width: 600px; width: 100%;
  background: #fff; border-radius: 25px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.search-form input {
  flex: 1; border: none; padding: 10px 20px; font-size: .95rem;
  outline: none; background: transparent;
}
.search-form button {
  background: linear-gradient(135deg, #e65100, #ff6d00); color: #fff;
  border: none; padding: 10px 24px; cursor: pointer; font-size: .95rem;
  transition: opacity .2s;
}
.search-form button:hover { opacity: .9; }

/* ============ Hero Banner ============ */
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  min-height: 420px; display: flex; align-items: center;
}
.hero-banner .hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.hero-banner .hero-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .4;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 60px 20px; width: 100%;
}
.hero-content h1 { color: #fff; font-size: 2.4rem; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 700px; margin: 0 auto 24px; }
.hero-btn {
  display: inline-block; background: linear-gradient(135deg, #e65100, #ff6d00);
  color: #fff; padding: 14px 36px; border-radius: 30px; font-size: 1.05rem;
  font-weight: 600; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(230,81,0,.3);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,81,0,.4); color: #fff; }

/* ============ Section Styles ============ */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-dark { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; }
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section-title p { color: #666; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-dark .section-title p { color: rgba(255,255,255,.7); }

/* ============ Video Cards ============ */
.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 15px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden; cursor: pointer;
}
.video-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; background: rgba(230,81,0,.85);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s; z-index: 2;
}
.play-btn::after {
  content: ''; border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff; margin-left: 3px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.75); color: #fff; padding: 2px 8px;
  border-radius: 4px; font-size: .8rem; z-index: 2;
}
.video-info { padding: 14px 16px; }
.video-info h3 { font-size: .95rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 12px; color: #999; font-size: .82rem; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block; background: #fff3e0; color: #e65100;
  padding: 2px 10px; border-radius: 12px; font-size: .78rem; margin-top: 8px;
}

/* ============ Category Tabs ============ */
.category-tabs {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.category-tabs .tab {
  padding: 8px 20px; border-radius: 20px; border: 1px solid #ddd;
  background: #fff; color: #666; cursor: pointer; font-size: .9rem;
  transition: all .2s;
}
.category-tabs .tab:hover, .category-tabs .tab.active {
  background: linear-gradient(135deg, #e65100, #ff6d00);
  color: #fff; border-color: transparent;
}

/* ============ Expert Cards ============ */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
  background: #fff; border-radius: 12px; padding: 30px 20px;
  text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.06);
  transition: transform .3s;
}
.expert-card:hover { transform: translateY(-5px); }
.expert-card img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 3px solid #fff3e0;
}
.expert-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-card .role { color: #e65100; font-size: .85rem; margin-bottom: 10px; }
.expert-card p { color: #666; font-size: .85rem; line-height: 1.5; }
.expert-card .expert-btns { margin-top: 14px; display: flex; gap: 8px; justify-content: center; }
.expert-card .expert-btns a {
  padding: 6px 14px; border-radius: 16px; font-size: .82rem;
  border: 1px solid #e65100; color: #e65100; transition: all .2s;
}
.expert-card .expert-btns a:hover { background: #e65100; color: #fff; }

/* ============ FAQ Section ============ */
.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,.05); overflow: hidden;
}
.faq-question {
  padding: 18px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem; transition: background .2s;
}
.faq-question:hover { background: #fafafa; }
.faq-question::after {
  content: '+'; font-size: 1.4rem; color: #e65100;
  transition: transform .3s; flex-shrink: 0;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { color: #666; font-size: .9rem; line-height: 1.7; }

/* ============ Reviews ============ */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #e65100, #ff6d00);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.review-name { font-weight: 600; font-size: .95rem; }
.review-date { color: #999; font-size: .82rem; }
.review-stars { color: #ff9800; font-size: .9rem; margin-bottom: 10px; }
.review-text { color: #555; font-size: .9rem; line-height: 1.6; }

/* ============ Brand Wall ============ */
.brand-wall {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 30px; align-items: center;
}
.brand-wall .brand-item {
  background: #fff; padding: 16px 28px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 1rem;
  font-weight: 600; color: #555; transition: transform .2s;
}
.brand-wall .brand-item:hover { transform: scale(1.05); }

/* ============ How-To Guide ============ */
.howto-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1000px; margin: 0 auto;
}
.howto-step {
  text-align: center; padding: 30px 20px;
  background: rgba(255,255,255,.08); border-radius: 12px;
}
.howto-step .step-num {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #e65100, #ff6d00);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; margin: 0 auto 16px;
}
.howto-step h4 { font-size: 1rem; margin-bottom: 8px; color: #fff; }
.howto-step p { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ============ Contact Section ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: #fff; border-radius: 12px; padding: 30px;
  text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
.contact-card .icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem;
}
.contact-card h4 { margin-bottom: 8px; }
.contact-card p { color: #666; font-size: .9rem; }

/* ============ Social Share ============ */
.social-share {
  display: flex; justify-content: center; gap: 16px; margin-top: 20px;
}
.social-share a {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; font-weight: 600;
  transition: transform .2s;
}
.social-share a:hover { transform: scale(1.1); color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00a1d6; }

/* ============ Footer ============ */
.site-footer {
  background: #1a1a2e; color: rgba(255,255,255,.7); padding: 50px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: .9rem; line-height: 1.6; margin-top: 12px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); padding: 4px 0; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: #ff6d00; }
.footer-qrcodes { display: flex; gap: 20px; margin-top: 16px; }
.footer-qrcodes .qr-item { text-align: center; }
.footer-qrcodes .qr-item img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 6px; }
.footer-qrcodes .qr-item span { font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; text-align: center; font-size: .85rem;
}
.footer-bottom .update-time { color: rgba(255,255,255,.5); margin-top: 6px; font-size: .8rem; }

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 14px 0; font-size: .85rem; color: #999;
}
.breadcrumb a { color: #e65100; }
.breadcrumb span { margin: 0 6px; }

/* ============ Inner Page ============ */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 50px 0; text-align: center;
}
.page-header h1 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,.7); font-size: 1rem; }
.page-content { padding: 40px 0; }
.content-block { background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 24px; box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.content-block h2 { font-size: 1.4rem; margin-bottom: 16px; color: #1a1a2e; }
.content-block h3 { font-size: 1.15rem; margin-bottom: 12px; color: #333; }
.content-block p { color: #555; margin-bottom: 14px; line-height: 1.8; }

/* ============ Feature Grid ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border-radius: 12px; padding: 30px;
  text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.06);
  transition: transform .3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card .feat-icon {
  width: 70px; height: 70px; border-radius: 16px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 2rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: #666; font-size: .88rem; }

/* ============ Stats Bar ============ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 30px 0;
}
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 2.2rem; font-weight: 700; color: #e65100; }
.stat-item .stat-label { color: #666; font-size: .9rem; margin-top: 4px; }

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #1a1a2e; flex-direction: column; padding: 16px; }
  .main-nav.active { display: flex; }
  .menu-toggle { display: block; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-banner { min-height: 300px; }
  .section { padding: 40px 0; }
  .howto-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; border-radius: 12px; }
  .search-form button { border-radius: 0 0 12px 12px; }
}
