/* ========== 斟知网 - 问答页面专属样式 ========== */
/* 修复分类标签溢出问题 */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    margin: 10px 0;
}
.category-filter a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e8f0fe;
    border-radius: 999px;
    text-decoration: none;
    color: #555;
    background: #f0f7ff;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.2s;
}
.category-filter a.active {
    background: #2576f7;
    color: #fff;
    border-color: #2576f7;
}

/* 修复文章标题省略号兼容性（删除非标准box-orient） */
.article-card h3 a {
    font-size: 18px;
    line-height: 1.6;
    text-decoration: none;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: box;
    line-clamp: 2;
}
.sidebar-card ul li a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    display: box;
    line-clamp: 2;
}

/* 文章卡片微调 */
.article-card {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.search-box input:focus {
    border-color: #2576f7;
    box-shadow: 0 0 0 2px rgba(37,118,247,0.2);
}

/* Tab切换基础样式 */
.tab-item { display: none; }
.tab-item.active { display: block; }

/* 回到顶部按钮 */
#goTopBtn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #2576f7;
    color: #fff;
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(37,118,247,0.3);
    display: none;
    z-index: 999;
    transition: all 0.3s;
}
#goTopBtn:hover {
    background: #1a5fcf;
    transform: translateY(-2px);
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column !important;
    }
    .content-left, .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    .sidebar {
        margin-top: 20px;
    }
    .category-filter a {
        padding: 4px 12px;
        font-size: 13px;
    }
    .search-box form {
        flex-direction: column;
        gap: 8px;
    }
    .search-box input, .search-box button {
        border-radius: 4px !important;
        width: 100% !important;
    }
    #goTopBtn {
        bottom: 20px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}






/* ===================== 侧边栏服务模块独立样式【修复完整版】 ===================== */
.sidebar-card.service-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(37, 118, 247, 0.06);
    padding: 20px;
}
/* 头部标题 */
.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.service-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-icon {
    width: 26px;
    height: 26px;
    background: #2576f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
.service-card-sub {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
}
/* 导航引导框 */
.service-nav-box {
    background: #f7fafc;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-left: 4px solid #2576f7;
}
.nav-tip {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #1a202c;
    font-weight: 500;
}
.nav-link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}
.nav-link {
    color: #2576f7;
    text-decoration: none;
    padding: 4px 10px;
    background: #edf2f7;
    border-radius: 6px;
}
/* 区块通用头部 */
.service-block {
    scroll-margin-top: 12px;
}
.block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.block-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}
.block-desc {
    font-size: 12px;
    color: #718096;
    margin-left: auto;
}
/* 标签颜色 */
.tag {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    line-height: 20px;
    color: #fff;
}
.tag-blue {
    background: #2576f7;
}
.tag-orange {
    background: #dd6b20;
}
.tag-green {
    background: #38a169;
}
.tag-red {
    background: #c53030;
}
/* 服务item通用 */
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    margin-bottom: 10px;
    transition: all 0.24s ease;
}
.service-item:hover {
    transform: translateY(-2px);
}
.item-recommend {
    border: 1px solid #2576f7;
    background: #f7fbff;
}
.item-recommend:hover {
    box-shadow: 0 4px 14px rgba(37, 118, 247, 0.12);
}
.item-orange {
    border: 1px solid #fbd38d;
    background: #fffaf5;
}
.item-orange:hover {
    box-shadow: 0 4px 14px rgba(221, 107, 32, 0.1);
}
.item-green {
    border: 1px solid #9ae6b4;
    background: #f0fff7;
}
.item-green:hover {
    box-shadow: 0 4px 14px rgba(56, 161, 105, 0.1);
}
.item-red {
    border: 1px solid #fc8181;
    background: #fff5f5;
}
.item-red:hover {
    box-shadow: 0 4px 14px rgba(197, 48, 48, 0.1);
}
.item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}
.item-desc {
    font-size: 12px;
    color: #718096;
}
.item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 价格文字 */
.price {
    font-size: 17px;
    font-weight: 700;
}
.price-blue {
    color: #2576f7;
}
.price-red {
    color: #c53030;
}
.price-purple {
    color: #6b46c1;
}
.price-orange {
    color: #dd6b20;
}
.price-green {
    color: #38a169;
}
/* 按钮 */
.btn {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    color: #fff;
}
.btn-blue {
    background: #2576f7;
}
.btn-dark {
    background: #2d3748;
}
.btn-purple {
    background: #44337a;
}
.btn-orange {
    background: #dd6b20;
}
.btn-green {
    background: #38a169;
}
.btn-red {
    background: #c53030;
}
/* 更多折叠查重 */
.more-check {
    margin-top: 6px;
}
.more-summary {
    font-size: 13px;
    color: #2576f7;
    cursor: pointer;
    padding: 6px 0;
}
.more-list {
    padding: 8px 0 4px 0;
}
.more-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    font-size: 13px;
    color: #4a5568;
}
.more-item:last-child {
    border-bottom: none;
}
/* 套餐链接 */
.package-link {
    display: flex;
    justify-content: space-between;
    padding: 8px 4px;
    border-top: 1px solid #e2e8f0;
    margin-top: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #4a5568;
}
.text-blue {
    color: #2576f7;
    font-weight: 600;
}
/* 分割线 */
.split-line {
    height: 1px;
    background: #e2e8f0;
    margin: 22px 0;
}
/* 安全保障模块 */
.safe-box {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.safe-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #2d3748;
    font-weight: 500;
    text-align: center;
}
.safe-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: center;
    font-size: 12px;
    color: #718096;
}
.safe-item {
    padding: 6px 4px;
}
/* 咨询底部按钮 */
.consult-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 18px;
    padding: 12px 0;
    border-radius: 10px;
    background: linear-gradient(90deg,#2576f7,#0f5cd8);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.consult-btn:hover {
    opacity: 0.9;
}
/* 热门问答卡片 */
.sidebar-card.hot-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}
.hot-title {
    margin: 0 0 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-li {
    margin-bottom: 10px;
    line-height: 1.6;
    padding-left: 12px;
    position: relative;
}
.hot-li::before {
    content: "•";
    color: #2576f7;
    position: absolute;
    left: 0;
}
.hot-link {
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: color 0.2s;
}
.hot-link:hover {
    color: #2576f7;
}










