/* ======================================
   乐丰融媒 - 全站统一样式表（最终完美版）
   PC不动｜手机端不叠加｜页脚居中｜微信兼容
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.75;
}
img {
    max-width: 100%;
    vertical-align: top;
}
a {
    text-decoration: none;
    transition: all 0.25s ease;
}
button, input {
    font-family: inherit;
}

/* ==================== 页头 ==================== */
header {
    background: #0f172a !important;
    display: block !important;
    width: 100% !important;
    padding: 15px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #1e293b !important;
    position: relative !important;
    z-index: 999 !important;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}
.brand-logo h2 {
    color: #ffffff !important;
    font-size: 21px;
    font-weight: 600;
}
.brand-logo p {
    color: #cbd5e1 !important;
    font-size: 13px;
    margin-top: 3px;
}
.brand-nav a {
    color: #ffffff !important;
    font-size: 15px;
    margin-left: 24px;
}
.brand-nav a:hover,
.brand-nav a.active {
    color: #ffd700 !important;
}
.dropdown-wrap {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 999;
    display: none;
}
.dropdown-menu a {
    color: #333 !important;
    padding: 10px 15px;
    display: block;
    font-size: 14px;
    margin: 0;
}
.dropdown-menu a:hover {
    background: #f5f5f5;
}

/* ==================== 内容区域 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    background: transparent !important;
}
.top-head {
    background: #ffffff;
    text-align: center;
    padding: 50px 0 36px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.top-head h1 {
    font-size: 31px;
    color: #0f172a;
}
.top-head p {
    font-size: 16px;
    color: #64748b;
    max-width: 780px;
    margin: 0 auto;
}

/* 搜索框 */
.search-wrap {
    max-width: 580px;
    margin: 0 auto 36px;
    display: flex;
    gap: 12px;
}
.search-wrap input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 15px;
    background: #fff;
}
.search-wrap button {
    padding: 14px 28px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

/* 分页切换 */
.all-switch {
    text-align: center;
    margin-bottom: 24px;
}
.all-switch a {
    color: #0f172a !important;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 8px;
}
.all-switch a:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* 分类导航 */
.cate-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    align-items: center;
}
.cate-dropdown {
    position: relative;
    min-width: 200px;
}
.cate-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
}
.cate-dropdown-toggle.active {
    border-color: #0f172a;
    color: #0f172a;
    font-weight: 500;
}
.cate-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 100;
    display: none;
}
.cate-dropdown-menu.show {
    display: block;
}
.cate-dropdown-item {
    padding: 12px 18px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
}
.cate-dropdown-item.active {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 500;
}
.cate-dropdown-item .count {
    float: right;
    color: #94a3b8;
    font-size: 13px;
}
.cate-quick-tag {
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    cursor: pointer;
    color: #334155;
}
.cate-quick-tag.active {
    background: #0f172a;
    color: #fff !important;
}

/* FAQ 卡片 */
.faq-card-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}
.faq-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    cursor: pointer;
}
.faq-answer {
    padding: 0 24px 24px;
    display: none;
}
.faq-card.open .faq-answer {
    display: block;
}
.hot-tag {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 12px;
}
.empty-tips {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 24px;
    color: #64748b;
}
.faq-answer .view-count {
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* 分页 */
.page-box {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}
.page-box a, .page-box span {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: inline-block;
    margin: 0 4px 8px;
}
.page-box span.current {
    background: #0f172a;
    color: #fff;
}

/* ==================== 页脚 ==================== */
footer {
    background: #0f172a !important;
    padding: 60px 0 35px;
    margin-top: 80px;
    color: #e2e8f0;
    width: 100% !important;
    display: block !important;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 32px !important;
    background: #0f172a !important;
}
.footer-col {
    flex: 1 !important;
    min-width: 180px !important;
    max-width: 230px !important;
    background: transparent !important;
}
.footer-col h4 {
    color: #ffd700 !important;
    font-size: 17px !important;
    margin-bottom: 18px !important;
    font-weight: 600 !important;
}
.footer-col p,
.footer-col a {
    color: #cbd5e1 !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
}
.footer-col a:hover {
    color: #ffffff !important;
}
.footer-bottom {
    max-width: 1200px !important;
    margin: 35px auto 0 !important;
    padding-top: 25px !important;
    text-align: center !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    background: #0f172a !important;
}

/* ==================== 浮动按钮 ==================== */
.float-contact {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 999;
}
.float-btn {
    width: 56px;
    height: 56px;
    background: #0f172a;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: none;
}
.float-menu.show {
    display: block;
}

/* ==================== 退出弹窗 ==================== */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
}
.exit-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.exit-popup-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
}

/* ==================== CTA 横幅 ==================== */
.cta-banner {
    max-width: 1200px;
    margin: 40px auto;
    padding: 32px 24px;
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    text-align: center;
}
.cta-banner h3 {
    color: #ffd700;
}
.cta-banner-btn {
    background: #ffd700;
    color: #0f172a !important;
    padding: 12px 32px;
    border-radius: 50px;
    display: inline-block;
}

/* ==================== 热门推荐 ==================== */
.hot-faqs {
    max-width: 1200px;
    margin: 50px auto;
}
.hot-faqs-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.hot-faq-item {
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 50px;
}

/* ==================== 404 & 按钮 ==================== */
.page-404 {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.page-404 h1 {
    font-size: 80px;
    color: #0f172a;
    margin-bottom: 10px;
}
.page-404 h2 {
    font-size: 24px;
    color: #334155;
    margin-bottom: 20px;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 15px;
    margin: 0 6px;
}
.btn-primary {
    background: #0f172a !important;
    color: #fff !important;
}
.btn-secondary {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* ==================== 移动端修复：不叠加、不挤压 ==================== */
@media (max-width: 768px) {
    .brand-nav { display: none; }

    /* 分类导航手机端：纵向排列，不叠加 */
    .cate-nav {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
        align-items: center !important;
    }
    .cate-dropdown {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .cate-quick-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }

    /* FAQ卡片手机端：单列，间距足够，不叠加 */
    .faq-card-box {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 30px !important;
    }
    .faq-card {
        margin-bottom: 0 !important;
    }

    /* 分页手机端：自动换行、间距足够，不叠文字 */
    .page-box {
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        padding: 0 10px !important;
    }
    .page-box a,
    .page-box span {
        margin: 0 4px 10px !important;
        display: inline-block !important;
    }

    /* 搜索框手机端不挤 */
    .search-wrap {
        padding: 0 10px !important;
        gap: 8px !important;
    }

    /* 内容边距 */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* 手机端页脚完全居中 */
    .footer-container {
        display: block !important;
        text-align: center !important;
    }
    .footer-col {
        text-align: center !important;
        margin: 0 auto 24px !important;
        display: block !important;
        width: 100% !important;
    }
    .footer-col img {
        margin: 0 auto !important;
        display: block !important;
    }
    .footer-bottom {
        text-align: center !important;
    }
}