/* ========================================
   51吃瓜每日投稿 - 全站样式表
   51aiyoushang.com
   ======================================== */

/* 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", "Helvetica Neue", Arial, sans-serif; color: #333; background: #f8f9fa; line-height: 1.7; }
a { text-decoration: none; color: inherit; transition: color .3s; }
a:hover { color: #ff6b6b; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Header ========== */
.site-header { background: #fff; box-shadow: 0 2px 12px 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-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 42px; width: auto; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: #ff6b6b; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a { padding: 8px 16px; font-size: .95rem; font-weight: 500; color: #444; border-radius: 6px; transition: all .3s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #ff6b6b; background: rgba(255,107,107,.08); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; padding: 8px; }

/* Search Bar */
.search-bar { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); padding: 14px 0; }
.search-bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.search-input-wrap { position: relative; width: 100%; max-width: 600px; }
.search-input-wrap input { width: 100%; padding: 12px 50px 12px 20px; border: none; border-radius: 25px; font-size: 1rem; outline: none; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.search-input-wrap button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: #ff6b6b; color: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; transition: background .3s; }
.search-input-wrap button:hover { background: #e55a5a; }
.search-hot-tags { display: flex; gap: 8px; margin-top: 8px; justify-content: center; flex-wrap: wrap; }
.search-hot-tags a { color: rgba(255,255,255,.9); font-size: .8rem; padding: 2px 10px; background: rgba(255,255,255,.2); border-radius: 12px; }
.search-hot-tags a:hover { background: rgba(255,255,255,.35); color: #fff; }

/* ========== Hero Banner ========== */
.hero-section { position: relative; overflow: hidden; background: #1a1a2e; }
.hero-section img { width: 100%; height: 480px; object-fit: cover; filter: brightness(.75); }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px; }
.hero-overlay h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-overlay p { font-size: 1.15rem; max-width: 700px; margin-bottom: 24px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-btn { display: inline-block; padding: 14px 36px; background: linear-gradient(135deg, #ff6b6b, #ff8e53); color: #fff; border-radius: 30px; font-size: 1.05rem; font-weight: 600; box-shadow: 0 4px 16px rgba(255,107,107,.4); transition: transform .3s, box-shadow .3s; }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,107,.5); color: #fff; }

/* ========== Section Common ========== */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; font-weight: 700; color: #222; margin-bottom: 8px; }
.section-title p { color: #777; font-size: 1rem; }
.section-title h2 span { color: #ff6b6b; }

/* ========== Video Cards Grid ========== */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.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; cursor: pointer; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.video-card-thumb { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.video-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); opacity: 0; transition: opacity .3s; }
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn span { width: 56px; height: 56px; background: rgba(255,107,107,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; box-shadow: 0 4px 16px rgba(255,107,107,.4); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .75rem; }
.video-card-info { padding: 14px; }
.video-card-info h3 { font-size: .95rem; font-weight: 600; color: #222; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: #999; }
.video-card-meta .views { display: flex; align-items: center; gap: 4px; }
.video-card-meta .likes { display: flex; align-items: center; gap: 4px; }
.video-tag { display: inline-block; padding: 2px 8px; background: #fff0f0; color: #ff6b6b; font-size: .72rem; border-radius: 4px; margin-right: 4px; margin-bottom: 4px; }

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

/* ========== Feature Cards ========== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: 14px; padding: 30px 24px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: transform .3s; }
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: linear-gradient(135deg, #ff6b6b, #ff8e53); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: #222; }
.feature-card p { font-size: .9rem; color: #777; line-height: 1.6; }

/* ========== Expert Section ========== */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); text-align: center; transition: transform .3s; }
.expert-card:hover { transform: translateY(-4px); }
.expert-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.expert-card-info { padding: 16px; }
.expert-card-info h3 { font-size: 1rem; font-weight: 600; color: #222; margin-bottom: 4px; }
.expert-card-info .role { color: #ff6b6b; font-size: .85rem; margin-bottom: 8px; }
.expert-card-info p { font-size: .82rem; color: #777; line-height: 1.5; margin-bottom: 12px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.expert-btns a { padding: 6px 14px; border-radius: 16px; font-size: .8rem; font-weight: 500; transition: all .3s; }
.btn-contact { background: #ff6b6b; color: #fff; }
.btn-contact:hover { background: #e55a5a; color: #fff; }
.btn-works { border: 1px solid #ff6b6b; color: #ff6b6b; }
.btn-works:hover { background: #ff6b6b; color: #fff; }

/* ========== Partners ========== */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; padding: 20px 0; }
.partner-logos .partner-item { width: 140px; height: 60px; background: #f5f5f5; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #999; font-size: .9rem; transition: all .3s; }
.partner-logos .partner-item:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08); color: #ff6b6b; }

/* ========== Reviews ========== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.review-stars { color: #ffc107; font-size: 1rem; margin-bottom: 10px; }
.review-card p { font-size: .92rem; color: #555; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff6b6b, #ff8e53); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: .9rem; }
.review-author-info .name { font-weight: 600; font-size: .9rem; color: #222; }
.review-author-info .date { font-size: .78rem; color: #999; }

/* ========== Contact Section ========== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.contact-info-card { background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.contact-info-card h3 { font-size: 1.2rem; font-weight: 600; color: #222; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #ff6b6b; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-item .icon { width: 36px; height: 36px; background: #fff0f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #ff6b6b; flex-shrink: 0; }
.contact-item .text { font-size: .9rem; color: #555; }
.contact-item .text strong { color: #222; display: block; margin-bottom: 2px; }
.qrcode-group { display: flex; gap: 20px; justify-content: center; margin-top: 16px; }
.qrcode-item { text-align: center; }
.qrcode-item img { width: 130px; height: 130px; border-radius: 8px; margin-bottom: 6px; }
.qrcode-item p { font-size: .82rem; color: #777; }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.faq-question { padding: 16px 20px; font-weight: 600; color: #222; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; }
.faq-question:hover { background: #fafafa; }
.faq-question .arrow { transition: transform .3s; color: #ff6b6b; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }
.faq-answer p { font-size: .9rem; color: #666; line-height: 1.7; }

/* ========== Social Share ========== */
.share-bar { display: flex; justify-content: center; gap: 16px; padding: 20px 0; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; transition: transform .3s, box-shadow .3s; cursor: pointer; }
.share-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.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-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 12px; color: #aaa; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #ff6b6b; display: inline-block; }
.footer-col a { display: block; font-size: .88rem; color: #aaa; padding: 4px 0; transition: color .3s; }
.footer-col a:hover { color: #ff6b6b; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: .82rem; color: #888; }
.footer-qrcodes { display: flex; gap: 20px; justify-content: center; margin: 20px 0; }
.footer-qrcodes .qr-item { text-align: center; }
.footer-qrcodes .qr-item img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 4px; }
.footer-qrcodes .qr-item p { font-size: .78rem; color: #aaa; }

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

/* ========== Inner Page Banner ========== */
.inner-banner { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); padding: 60px 0; text-align: center; color: #fff; }
.inner-banner h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.inner-banner p { font-size: 1rem; color: rgba(255,255,255,.8); }

/* ========== How-To Section ========== */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.howto-step { text-align: center; padding: 24px 16px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.step-number { width: 48px; height: 48px; margin: 0 auto 12px; background: linear-gradient(135deg, #ff6b6b, #ff8e53); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem; }
.howto-step h4 { font-size: .95rem; font-weight: 600; color: #222; margin-bottom: 6px; }
.howto-step p { font-size: .82rem; color: #777; }

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

/* ========== Tool Cards ========== */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { background: #fff; border-radius: 14px; padding: 28px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: transform .3s; border: 2px solid transparent; }
.tool-card:hover { transform: translateY(-4px); border-color: #ff6b6b; }
.tool-icon { font-size: 2.5rem; margin-bottom: 14px; }
.tool-card h3 { font-size: 1.05rem; font-weight: 600; color: #222; margin-bottom: 8px; }
.tool-card p { font-size: .88rem; color: #777; line-height: 1.6; margin-bottom: 14px; }
.tool-btn { display: inline-block; padding: 8px 20px; background: linear-gradient(135deg, #ff6b6b, #ff8e53); color: #fff; border-radius: 20px; font-size: .85rem; font-weight: 500; transition: all .3s; }
.tool-btn:hover { box-shadow: 0 4px 12px rgba(255,107,107,.3); color: #fff; }

/* ========== Stats Bar ========== */
.stats-bar { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; color: #fff; }
.stat-item .num { font-size: 2.4rem; font-weight: 800; }
.stat-item .label { font-size: .9rem; opacity: .9; margin-top: 4px; }

/* ========== Live Badge ========== */
.live-badge { display: inline-flex; align-items: center; gap: 4px; background: #ff4444; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-weight: 600; }
.live-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ========== 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) {
    .header-inner { flex-wrap: wrap; }
    .main-nav { display: none; flex-direction: column; width: 100%; padding: 10px 0; gap: 0; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
    .mobile-menu-btn { display: block; }
    .hero-section img { height: 300px; }
    .hero-overlay h1 { font-size: 1.6rem; }
    .hero-overlay p { font-size: .9rem; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 1.5rem; }
    .community-grid { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: 1fr; }
    .howto-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .expert-grid { grid-template-columns: 1fr; }
    .stat-item .num { font-size: 1.8rem; }
    .hero-overlay h1 { font-size: 1.3rem; }
}

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

/* ========== Animations ========== */
.fade-in { opacity: 1; transform: translateY(0); transition: opacity .6s, transform .6s; }
@media (prefers-reduced-motion: no-preference) {
    .fade-in.animate { opacity: 0; transform: translateY(20px); }
    .fade-in.animate.visible { opacity: 1; transform: translateY(0); }
}

/* ========== Danmaku ========== */
.danmaku-container { position: relative; overflow: hidden; height: 40px; background: rgba(0,0,0,.03); border-radius: 8px; margin: 10px 0; }
.danmaku-item { position: absolute; white-space: nowrap; font-size: .82rem; color: #666; animation: danmaku-scroll 12s linear infinite; }
@keyframes danmaku-scroll { from { transform: translateX(100%); } to { transform: translateX(-200%); } }
