/* ========================================
   每日爆料投稿 - 全站样式表
   xjgype.cn
   ======================================== */

/* CSS 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", sans-serif; color: #333; background: #f8f9fa; line-height: 1.7; }
a { color: #6c3ce0; text-decoration: none; transition: color .3s; }
a:hover { color: #8b5cf6; }
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: #1a1a2e; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; margin-bottom: 10px; }
.section-title p { color: #666; font-size: 1.05rem; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 48px; width: auto; }
.logo span { font-size: 1.2rem; font-weight: 700; color: #6c3ce0; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a { padding: 8px 16px; font-size: .95rem; color: #333; border-radius: 6px; transition: all .3s; }
.main-nav a:hover, .main-nav a.active { background: #f0e6ff; color: #6c3ce0; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }

/* Search Bar */
.search-bar { background: linear-gradient(135deg, #6c3ce0 0%, #8b5cf6 100%); padding: 16px 0; }
.search-bar .container { display: flex; justify-content: center; }
.search-form { display: flex; max-width: 600px; width: 100%; }
.search-form input { flex: 1; padding: 12px 20px; border: none; border-radius: 25px 0 0 25px; font-size: 1rem; outline: none; }
.search-form button { padding: 12px 28px; background: #ff6b35; color: #fff; border: none; border-radius: 0 25px 25px 0; font-size: 1rem; cursor: pointer; transition: background .3s; }
.search-form button:hover { background: #e55a2b; }

/* Banner */
.banner { position: relative; overflow: hidden; height: 420px; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 100%); display: flex; align-items: center; }
.banner-text { color: #fff; padding-left: 60px; max-width: 600px; }
.banner-text h1 { font-size: 2.4rem; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,.3); }
.banner-text p { font-size: 1.1rem; margin-bottom: 20px; opacity: .9; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .3s; }
.banner-dots span.active { background: #fff; }

/* Breadcrumb */
.breadcrumb { padding: 12px 0; background: #fff; border-bottom: 1px solid #eee; }
.breadcrumb a, .breadcrumb span { font-size: .9rem; color: #666; }
.breadcrumb a:hover { color: #6c3ce0; }
.breadcrumb .sep { margin: 0 8px; }

/* 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; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(108,60,224,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.play-btn::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.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; }
.video-info { padding: 14px; }
.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; justify-content: space-between; font-size: .8rem; color: #999; }
.video-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-tags span { background: #f0e6ff; color: #6c3ce0; padding: 2px 10px; border-radius: 12px; font-size: .75rem; }

/* Feature Sections */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.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-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: linear-gradient(135deg, #6c3ce0, #8b5cf6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: #666; font-size: .9rem; }

/* Expert Section */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.06); text-align: center; padding: 30px 20px; }
.expert-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; border: 3px solid #f0e6ff; }
.expert-card h4 { font-size: 1.05rem; margin-bottom: 5px; }
.expert-card .role { color: #6c3ce0; font-size: .85rem; margin-bottom: 10px; }
.expert-card p { color: #666; font-size: .85rem; margin-bottom: 15px; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.btn-sm { padding: 6px 16px; border-radius: 20px; font-size: .8rem; border: 1px solid #6c3ce0; color: #6c3ce0; transition: all .3s; cursor: pointer; display: inline-block; }
.btn-sm:hover { background: #6c3ce0; color: #fff; }

/* Partner Logos */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; padding: 20px 0; }
.partner-wall img { height: 50px; opacity: .6; transition: opacity .3s; filter: grayscale(100%); }
.partner-wall img:hover { opacity: 1; filter: none; }

/* 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,.05); overflow: hidden; }
.faq-question { padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1rem; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: #6c3ce0; transition: transform .3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; 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 { color: #666; font-size: .95rem; 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: 12px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #6c3ce0, #8b5cf6); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.review-name { font-weight: 600; }
.review-date { font-size: .8rem; color: #999; }
.review-stars { color: #ffc107; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { color: #555; font-size: .95rem; }

/* How-To Guide */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.howto-step { background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.06); position: relative; }
.howto-step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; background: #6c3ce0; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 15px; }
.howto-step h4 { margin-bottom: 10px; }
.howto-step p { color: #666; font-size: .9rem; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.contact-info { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.contact-info h3 { margin-bottom: 20px; color: #6c3ce0; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.contact-icon { width: 40px; height: 40px; background: #f0e6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #6c3ce0; font-size: 1.1rem; flex-shrink: 0; }

/* Social Share */
.social-share { display: flex; gap: 12px; justify-content: center; 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: 1.1rem; transition: transform .3s; }
.social-share a:hover { transform: scale(1.1); }
.social-share .wechat { background: #07c160; }
.social-share .weibo { background: #e6162d; }
.social-share .douyin { background: #161823; }
.social-share .bilibili { background: #00a1d6; }

/* Footer */
.site-footer { background: #1a1a2e; color: #ccc; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 1.05rem; }
.footer-col a { display: block; color: #aaa; font-size: .9rem; margin-bottom: 8px; transition: color .3s; }
.footer-col a:hover { color: #8b5cf6; }
.footer-qr { display: flex; gap: 20px; }
.footer-qr img { width: 110px; height: 110px; border-radius: 8px; }
.footer-qr-label { text-align: center; font-size: .8rem; margin-top: 6px; color: #aaa; }
.footer-bottom { border-top: 1px solid #2a2a4e; padding: 20px 0; text-align: center; font-size: .85rem; color: #888; }
.footer-bottom a { color: #8b5cf6; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 25px; font-size: 1rem; font-weight: 600; transition: all .3s; cursor: pointer; text-align: center; }
.btn-primary { background: linear-gradient(135deg, #6c3ce0, #8b5cf6); color: #fff; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,60,224,.4); color: #fff; }
.btn-outline { border: 2px solid #6c3ce0; color: #6c3ce0; background: transparent; }
.btn-outline:hover { background: #6c3ce0; color: #fff; }

/* AI Section */
.ai-section { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); color: #fff; }
.ai-section .section-title h2 { color: #fff; }
.ai-section .section-title p { color: #ccc; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 30px; backdrop-filter: blur(10px); transition: transform .3s; }
.ai-card:hover { transform: translateY(-5px); }
.ai-card h3 { color: #8b5cf6; margin-bottom: 10px; }
.ai-card p { color: #ccc; font-size: .9rem; }

/* Community Section */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.community-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,.06); text-align: center; transition: transform .3s; }
.community-card:hover { transform: translateY(-5px); }
.community-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.tag-cloud a { background: #f0e6ff; color: #6c3ce0; padding: 6px 18px; border-radius: 20px; font-size: .85rem; transition: all .3s; }
.tag-cloud a:hover { background: #6c3ce0; color: #fff; }

/* Page Header */
.page-header { background: linear-gradient(135deg, #6c3ce0, #8b5cf6); color: #fff; padding: 50px 0; text-align: center; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 10px; color: #fff; }
.page-header p { opacity: .9; font-size: 1.05rem; }

/* Content Sections for Inner Pages */
.content-section { background: #fff; border-radius: 12px; padding: 40px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.content-section h2 { font-size: 1.6rem; margin-bottom: 20px; color: #6c3ce0; }
.content-section h3 { font-size: 1.2rem; margin-bottom: 12px; }
.content-section p { margin-bottom: 15px; color: #555; }

/* Lazy Load */
img[loading="lazy"] { opacity: 0; transition: opacity .5s; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 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) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; flex-direction: column; width: 100%; padding-top: 10px; }
  .main-nav.show { display: flex; }
  .main-nav a { padding: 10px; text-align: center; }
  .mobile-menu-btn { display: block; }
  .banner { height: 280px; }
  .banner-text { padding-left: 20px; }
  .banner-text h1 { font-size: 1.6rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .banner { height: 220px; }
  .banner-text h1 { font-size: 1.3rem; }
  .search-form { flex-direction: column; }
  .search-form input { border-radius: 25px; margin-bottom: 10px; }
  .search-form button { border-radius: 25px; }
}
