body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* 顶部小工具栏 */
.top-bar {
    background-color: #ffffff;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.top-bar a {
    color: #666;
    text-decoration: none;
}

.top-bar a:hover {
    color: #000;
}

/* Hero Banner */
.hero-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.btn-dark-custom {
    background-color: #121212;
    color: #fff;
    border-radius: 30px;
    padding: 10px 24px;
    border: none;
    transition: all 0.3s;
}

.btn-dark-custom:hover {
    background-color: #333;
    color: #fff;
}

/* 卡片通用样式 */
.custom-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

/* 工具入口卡片 */
.tool-card {
    padding: 20px;
    height: 100%;
}

.tool-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

/* 右侧悬浮工具栏 */
.sticky-toolbar {
    position: fixed;
    right: 15px;
    top: 60%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sticky-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sticky-btn:hover {
    background: #f8f9fa;
    color: #000;
}

.sticky-btn-blue {
    background: #0d6efd;
    color: #fff;
    border: none;
}

.sticky-btn-blue:hover {
    background: #0b5ed7;
    color: #fff;
}

/* ==================== 精确复刻导航栏样式 ==================== */

/* 1. 顶部 Logo 行样式 */
.brand-header {
    background-color: #f8f9fa;
}

/* 2. 黄色联系合作位特殊样式 */
.brand-sponsor-box {
    background-color: #fff9db;
    border: 1px solid #ffe066;
    border-radius: 6px;
    padding: 8px 12px;
    color: #f08c00;
    font-size: 14px;
    line-height: 1.2;
}

/* 3. 悬浮导航卡片样式 */
.floating-nav-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    /* margin-top: -15px; 负偏移实现卡片悬浮 */
    position: relative;
    z-index: 100;
    border: 1px solid #ebebeb;
    overflow: hidden;
}

/* 4. 导航列表容器 */
.cat-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    /* 保证子元素高度完全一致 */
    width: 100%;
    flex-wrap: wrap;
    /* 容纳多分辨率防挤压错位 */
}

/* 5. 独立导航项 */
.cat-nav-item {
    border-right: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    position: relative;
}

.cat-nav-item:last-child {
    border-right: none;
}

/* 6. 导航链接样式 */
.cat-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    height: 100%;
    position: relative;
}

/* 7. 特殊处理“首页”项 - 左侧对齐 */
.cat-nav-item-home .cat-nav-link {
    padding-left: 28px;
}

/* 8. 导航项：Hover 和 Active 状态 */
.cat-nav-link:hover {
    background-color: #f8f9fa;
    color: #000000;
}

.cat-nav-item.active {
    background-color: #f8f9fa;
}

.cat-nav-item.active .cat-nav-link {
    color: #000000;
    font-weight: 600;
}

/* 选中状态底部黑色加粗条 */
.cat-nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #121212;
}

/* 9. 角标 (Badge) 消除高度塌陷 */
.cat-nav-badge-wrapper {
    position: relative;
    display: inline-block;
}

.cat-nav-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 10px;
    line-height: 1;
    font-weight: bold;
    transform: scale(0.85);
}

/* 10. 移动端与平板响应式适配 */
@media (max-width: 991.98px) {
    .floating-nav-card {
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }

    .cat-nav-list {
        flex-direction: column;
        width: 100%;
    }

    .cat-nav-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .cat-nav-item.active::after {
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        bottom: auto;
    }

    .cat-nav-link {
        padding: 14px 20px;
        justify-content: flex-start;
        width: 100%;
    }

    .cat-nav-item-home .cat-nav-link {
        padding-left: 20px;
    }

    .cat-nav-badge {
        position: static;
        transform: none;
        margin-left: 6px;
        font-size: 10px;
        padding: 2px 6px;
    }

    .cat-nav-badge-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
}

/* ==================== 热门排行榜专属样式 ==================== */

/* 面包屑导航 */
.breadcrumb-custom {
    padding: 0.5rem 0;
    /*margin-bottom: 1.5rem;*/
    font-size: 14px;
}

.breadcrumb-custom a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-custom a:hover {
    color: #121212;
}

/* 排行榜顶部横幅 */
.rank-hero-section {
    background: linear-gradient(135deg, #1e1e24 0%, #121212 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.rank-hero-section::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* 领奖台 (Podium) 区域 */
.podium-container {
    margin-bottom: 2.5rem;
}

.podium-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.podium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* 领奖台冠亚季军排名偏移 (PC端效果) */
@media (min-width: 992px) {
    .podium-rank-1 {
        margin-top: -15px;
        border: 2px solid #ffe066;
        background: linear-gradient(to bottom, #fffdf5, #ffffff);
    }

    .podium-rank-2 {
        margin-top: 15px;
    }

    .podium-rank-3 {
        margin-top: 25px;
    }
}

/* 皇冠与徽章 */
.podium-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin: 0 auto 15px;
    position: relative;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.podium-rank-1 .podium-badge {
    background: linear-gradient(135deg, #f5d020 0%, #f59820 100%);
}

.podium-rank-2 .podium-badge {
    background: linear-gradient(135deg, #e6e6e6 0%, #a3a3a3 100%);
}

.podium-rank-3 .podium-badge {
    background: linear-gradient(135deg, #e0a96d 0%, #a26a42 100%);
}

.podium-crown {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    color: #f5d020;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.podium-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* 热度进度条 */
.heat-indicator {
    margin: 15px 0;
}

.heat-text {
    font-size: 12px;
    color: #777;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.progress-custom {
    height: 6px;
    border-radius: 3px;
    background-color: #f1f3f5;
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #fd7e14, #ffc107);
    width: 0%;
    transition: width 1s ease-in-out;
}

/* 排名列表页签 */
.rank-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
    gap: 10px;
}

.rank-tab-btn {
    border: none;
    background: none;
    padding: 10px 20px;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: all 0.2s;
}

.rank-tab-btn:hover {
    color: #121212;
}

.rank-tab-btn.active {
    color: #121212;
    font-weight: 600;
}

.rank-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #121212;
    border-radius: 3px 3px 0 0;
}

/* 列表行样式 */
.rank-item-row {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 12px;
    transition: all 0.2s ease-in-out;
}

.rank-item-row:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-color: #e0e0e0;
}

/* 普通排名徽章 (4+) */
.normal-rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #f1f3f5;
    color: #666;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.rank-item-row .tool-icon-box {
    width: 48px;
    height: 48px;
    margin-right: 0;
}

/* 右侧边栏小挂件：“大家都在测”实时状态滚动 */
.live-activity-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
}

.live-activity-list-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.live-activity-list {
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: scroll-activity 18s linear infinite;
}

.live-activity-list:hover {
    animation-play-state: paused;
}

.live-activity-item {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-activity-item:last-child {
    border-bottom: none;
}

.live-activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2b8a3e;
    display: inline-block;
    position: relative;
}

.live-activity-dot::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(43, 138, 62, 0.4);
    animation: pulse-dot 1.5s infinite;
}

/* 动画定义 */
@keyframes scroll-activity {
    0% {
        top: 0;
    }

    100% {
        top: -180px;
    }
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ==================== 说明类页面专属样式 ==================== */

/* 侧边说明导航栏 */
.info-nav-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.info-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.info-nav-item a i {
    font-size: 16px;
    margin-right: 10px;
}

.info-nav-item a:hover {
    background-color: #f8f9fa;
    color: #121212;
}

.info-nav-item.active a {
    background-color: #121212;
    color: #ffffff;
    font-weight: 600;
}

/* 右侧正文卡片 */
.info-content-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.info-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #212529;
    border-left: 4px solid #121212;
    padding-left: 12px;
    margin-top: 30px;
    margin-bottom: 18px;
}

.info-section-title:first-of-type {
    margin-top: 0;
}

.info-text {
    color: #495057;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* 条款/隐私细则列表 */
.info-rules-list {
    padding-left: 20px;
    margin-bottom: 24px;
}

.info-rules-list li {
    font-size: 15px;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 警示/引用区块 */
.info-alert-block {
    background-color: #fffdf5;
    border: 1px solid #ffe066;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.info-alert-block-title {
    font-weight: bold;
    color: #f08c00;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.info-alert-block-title i {
    font-size: 18px;
    margin-right: 8px;
}

/* 联系页排版样式 */
.contact-method-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-icon {
    font-size: 32px;
    color: #121212;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .info-nav-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .info-nav-item a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .info-content-card {
        padding: 24px;
    }
}

/* 针对列表页的增强样式 */
.article-card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            border: none;
            height: 100%;
        }
.article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
        }
.article-thumb {
            height: 180px;
            object-fit: cover;
            border-radius: 8px 8px 0 0;
        }
.category-pill {
            font-size: 0.75rem;
            padding: 0.2rem 0.6rem;
            border-radius: 50px;
            display: inline-block;
            margin-bottom: 0.5rem;
        }
.pagination .page-link {
            color: #333;
            border: none;
            margin: 0 3px;
            border-radius: 5px;
        }
.pagination .page-item.active .page-link {
            background-color: #0d6efd;
            color: #fff;
        }
.search-box-wrapper {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 3rem 1rem;
            margin-bottom: 3rem;
        }
.category-header {
            background: #ffffff;
            border-radius: 24px;
            padding: 3.5rem 2.5rem;
            margin-bottom: 3rem;
            border: 1px solid #eff2f5;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
        }
        .category-header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 6px;
            height: 100%;
            background: linear-gradient(to bottom, #0d6efd, #0dcaf0);
        }
        .category-header .header-bg-icon {
            position: absolute;
            right: -20px;
            bottom: -20px;
            font-size: 12rem;
            color: #f8f9fa;
            z-index: 0;
            pointer-events: none;
        }
        .category-header .content-wrapper {
            position: relative;
            z-index: 1;
        }

        /* 修复首页移植过来的卡片 Bug */
        .tool-card {
            overflow: hidden; /* 确保内容不溢出卡片边界 */
        }
        .tool-card .tool-icon-box {
            flex-shrink: 0; /* 防止图标在文字较多时被压缩 */
        }
        .tool-card > div:not(.tool-icon-box) {
            min-width: 0; /* 关键：允许 Flex 子元素收缩，使 text-truncate 生效 */
        }