/* 终极覆盖：党支部网站红色主题 - 超高特异性版本 */
/* 终极端标题样式 - 置于文件最顶部 */

/* 1. 覆盖导航栏 */
body .navbar.navbar-custom.navbar.navbar-fixed-top {
    background-color: #c1121f !important;
    background-image: none !important;
}

/* 2. 覆盖页面头部Banner - 使用极其具体的选择器 */
body header.intro-header.intro-header {
    background: #c1121f url("/img/党员合照.jpg") center center / cover no-repeat !important;
    min-height: 400px !important;
    padding: 0 0 60px 0 !important; /* 进一步减少顶部内边距（10px），使其更靠上 */
}

/* 3. 控制横幅中央的主标题 - 使用极限特异性 */
/* 修正：只移动文字，不改变背景区域 */
body header.intro-header .site-heading h1 {
    white-space: pre-line !important;
    color: #ffffff !important;
    font-size: 4rem !important; /* 替换500px，4rem≈64px（根元素16px时），可根据需要调整 */
    font-weight: 900 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin: -100px auto 0.2rem auto !important; /* 补充margin的单位（原代码-50后少了px） */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9) !important;
    display: block !important;
    width: 100%;
}
/* 保持背景区域完全不变 */
body header.intro-header.intro-header {
    padding: 100px 0 100px 0 !important; /* 恢复正常的padding值 */
    min-height: 400px !important; /* 保持背景高度 */
    background: #c1121f url("/img/党员合照.jpg") center center / cover no-repeat !important;
}

/* 4. 控制副标题并上移 */
body header.intro-header .site-heading .site-heading .subheading {
    font-size: 1.5rem !important;
    color: #f0f0f0 !important;
    margin-top: 0.5rem !important; /* 减小与主标题的间距，使其同步上移 */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7) !important;
}

/* 5. 控制左上角标题 */
body .navbar-header .navbar.navbar-brand.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    letter-spacing: -0.5px !important;
}

@media (max-width: 768px) {
    .intro-header .site-heading h1 {
        font-size: 2.5rem !important;
    }
    .intro-header .site-heading .subheading {
        font-size: 1.2rem !important;
    }
}

/* ===== 首页支部介绍区块 ===== */
.branch-intro-section {
    background: #fff;
    padding: 40px 0 20px 0;
    /* 跨浏览器一致性：确保所有子元素使用 border-box */
    -moz-box-sizing: border-box;
         box-sizing: border-box;
}
.branch-intro-section *,
.branch-intro-section *::before,
.branch-intro-section *::after {
    -moz-box-sizing: inherit;
         box-sizing: inherit;
}

/* 支部全称（顶部） */
.branch-full-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #c1121f;
    line-height: 1.4;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}
.branch-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin: 0;
}
.branch-subtitle .fa {
    color: #c1121f;
}

/* 分隔线 - 红色短分隔线，参考助学组样式 */
.branch-divider-red {
    border-color: #c1121f;
    width: 80px;
    margin: 20px 0 30px 0;
    border-top-width: 2px;
}

/* 旧分隔线保留兼容 */
.branch-divider {
    border-color: #c1121f;
    opacity: 0.25;
    margin: 18px 0 22px 0;
}
.branch-end-divider {
    border-color: #e8e8e8;
    margin: 10px 0 0 0;
}

/* 右侧旗帜 */
.branch-flag-col {
    text-align: center;
    padding-top: 10px;
}
.branch-flag-img-plain {
    width: 100%;
    max-width: 100%;
    display: block;
}
.branch-flag-img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(193,18,31,0.20);
    border: 3px solid #c1121f;
}

/* 简介段落 */
.branch-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #c1121f;
    margin-bottom: 14px;
    margin-top: 0;
}
.branch-section-title .fa {
    margin-right: 6px;
}
.branch-desc-text {
    font-size: 1.3rem;
    color: #333;
    line-height: 2.0;
    text-align: justify;
    background: #fff8f8;
    border-left: 4px solid #c1121f;
    padding: 18px 22px;
    border-radius: 0 6px 6px 0;
    margin: 0 0 22px 0;
}

/* 数据统计卡片 */
.branch-stats-row {
    margin-bottom: 28px;
}
.branch-stat-card {
    background: linear-gradient(135deg, #fff 60%, #fff0f0 100%);
    border: 1px solid #f0d0d0;
    border-top: 3px solid #c1121f;
    border-radius: 8px;
    text-align: center;
    padding: 20px 10px 16px 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(193,18,31,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.branch-stat-card:hover {
    box-shadow: 0 6px 20px rgba(193,18,31,0.16);
    transform: translateY(-3px);
}
.branch-stat-icon {
    font-size: 1.9rem;
    color: #c1121f;
    margin-bottom: 8px;
}
.branch-stat-num {
    font-size: 2.05rem;
    font-weight: 900;
    color: #c1121f;
    line-height: 1.1;
}
.branch-stat-label {
    font-size: 0.95rem;
    color: #777;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* 宗旨卡片 */
.branch-mission-row {
    margin-bottom: 28px;
}
.branch-mission-card {
    background: #fff;
    border: 1px solid #edd;
    border-radius: 10px;
    padding: 22px 18px;
    text-align: center;
    margin-bottom: 16px;
    min-height: 200px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.branch-mission-card:hover {
    border-color: #c1121f;
    box-shadow: 0 4px 16px rgba(193,18,31,0.12);
}
.branch-mission-icon {
    font-size: 2.1rem;
    color: #c1121f;
    margin-bottom: 10px;
}
.branch-mission-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}
.branch-mission-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.75;
    margin: 0;
}

/* 快速导航按钮 */
.branch-nav-row {
    margin-bottom: 10px;
}
.branch-nav-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}
.branch-nav-btn {
    display: inline-block;
    background: #c1121f;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(193,18,31,0.18);
}
.branch-nav-btn:hover {
    background: #a00e18;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(193,18,31,0.28);
    color: #fff !important;
}
.branch-nav-btn .fa {
    margin-right: 5px;
}

/* 支部荣誉 */
.branch-honor-row {
    margin-top: 30px;
}
/* 单独放大"支部荣誉"区块标题（不影响简介/导航标题） */
.branch-honor-row .branch-section-title {
    font-size: 2.1rem;
    margin-bottom: 16px;
}
.branch-honor-card {
    background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
    /* 显式声明所有边框，避免浏览器默认差异 */
    border: 1px solid #f0d6d8;
    border-left: 4px solid #c1121f;
    border-radius: 8px;
    padding: 18px 22px;
    overflow: hidden; /* 防止内容溢出边框 */
}
.branch-honor-card + .branch-honor-card {
    margin-top: 8px;
}
/* 两条荣誉之间的分隔线 */
.branch-honor-divider {
    border: none;
    height: 3px;
    background: #c1121f;
    border-radius: 2px;
    margin: 30px 0;
}
.branch-honor-text {
    font-size: 1.6rem; /* 荣誉正文放大到25.6px，首页卡片上更醒目 */
    color: #333;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 12px;
}
.branch-honor-text strong {
    color: #c1121f;
}
/* 陈嵘汉姓名超链接 */
.branch-honor-name {
    color: #c1121f !important;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 1px dashed #c1121f;
    transition: color 0.2s, border-color 0.2s;
}
.branch-honor-name:hover {
    color: #a00e18 !important;
    border-bottom-color: #a00e18;
}
/* 新闻链接：一行一个，蓝色文字链接 */
.branch-honor-links {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}
.branch-honor-links li {
    margin: 6px 0;
    line-height: 1.7;
}
.branch-honor-link {
    display: inline-block;
    color: #1a5fb4 !important;
    font-size: 1.4rem; /* 荣誉新闻链接放大到22.4px */
    text-decoration: none !important;
    transition: color 0.2s;
}
.branch-honor-link i {
    margin-right: 4px;
    color: #1a5fb4;
}
.branch-honor-link:hover {
    color: #0b3d8c !important;
    text-decoration: underline !important;
}
.branch-honor-video {
    margin-top: 14px;
}
.branch-honor-video video {
    display: block;
    width: 100% !important;
    max-height: 520px !important;
    object-fit: contain !important;
    margin: 0 auto;
    /* 跨浏览器一致性 */
    -moz-box-sizing: border-box;
         box-sizing: border-box;
    border-radius: 8px;
    background: #000;
}

/* 荣誉证书图片 */
.branch-honor-certificate {
    margin: 14px 0;
    text-align: center;
}
.branch-honor-certificate-img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    border-radius: 8px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
    transition: transform 0.2s, box-shadow 0.2s;
}
.branch-honor-certificate-img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

/* 荣誉区 PDF 下载卡片（参考助学组 tutoring-pdf-card 样式） */
.branch-honor-pdf-download {
    display: flex;
    align-items: center;
    border: 1px solid #edd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 14px;
    background: linear-gradient(135deg, #fff 60%, #fff8f8 100%);
    transition: box-shadow 0.2s;
}
.branch-honor-pdf-download:hover {
    box-shadow: 0 4px 14px rgba(193,18,31,0.10);
}
.branch-honor-pdf-icon {
    font-size: 2rem;
    color: #c1121f;
    margin-right: 14px;
    flex-shrink: 0;
}
.branch-honor-pdf-info {
    flex: 1;
}
.branch-honor-pdf-info h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.4;
}
.branch-honor-pdf-info p {
    font-size: 0.92rem;
    color: #888;
    margin: 0;
}
.branch-honor-download-btn {
    display: inline-block;
    background: #c1121f;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
}
.branch-honor-download-btn:hover {
    background: #a00e18;
    color: #fff !important;
    text-decoration: none !important;
}
.branch-honor-download-btn .fa {
    margin-right: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .branch-full-name {
        font-size: 1.1rem;
    }
    .branch-flag-col {
        margin-bottom: 24px;
    }
    .branch-flag-img-plain {
        max-width: 200px;
        margin: 0 auto;
    }
    .branch-flag-img {
        max-width: 200px;
        margin: 0 auto;
    }
    .branch-desc-text {
        font-size: 0.95rem;
    }
    .branch-section-title {
        font-size: 1.4rem;
    }
    .branch-desc-text {
        font-size: 1.1rem;
        padding: 14px 16px;
    }
    .branch-stat-icon {
        font-size: 1.6rem;
    }
    .branch-stat-num {
        font-size: 1.7rem;
    }
    .branch-stat-label {
        font-size: 0.85rem;
    }
    .branch-mission-card {
        min-height: unset;
    }
    .branch-mission-icon {
        font-size: 1.8rem;
    }
    .branch-mission-title {
        font-size: 1.1rem;
    }
    .branch-mission-text {
        font-size: 0.95rem;
    }
    .branch-nav-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .branch-honor-certificate-img {
        max-height: 220px;
    }
    .branch-honor-row .branch-section-title {
        font-size: 1.75rem;
    }
    .branch-honor-text {
        font-size: 1.4rem;
    }
    .branch-honor-link {
        font-size: 1.25rem;
    }
    .branch-honor-pdf-download {
        flex-direction: column;
        text-align: center;
    }
    .branch-honor-pdf-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .branch-honor-download-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ===== 助学组资料页样式 ===== */
.tutoring-page {
    padding: 30px 0 60px 0;
}
.tutoring-header {
    margin-bottom: 10px;
}
.tutoring-header h1 {
    color: #c1121f;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 8px;
}
.tutoring-header h1 .fa {
    margin-right: 8px;
}
.tutoring-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 0;
}
.tutoring-section {
    margin-bottom: 40px;
}
.tutoring-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c1121f;
    margin-bottom: 6px;
}
.tutoring-section-title .fa {
    margin-right: 8px;
}
.tutoring-section-desc {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

/* 合集卡片 */
.tutoring-collection-card-wrap {
    margin-bottom: 20px;
}
.tutoring-collection-card {
    display: block;
    border: 1px solid #edd;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.tutoring-collection-card:hover {
    box-shadow: 0 6px 20px rgba(193,18,31,0.15);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}
.tutoring-collection-cover {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}
.tutoring-collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tutoring-collection-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}
.tutoring-collection-pdf-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #c1121f;
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.tutoring-collection-pdf-badge i {
    margin-right: 3px;
}
.tutoring-collection-info {
    padding: 14px 16px;
}
.tutoring-collection-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}
.tutoring-collection-info p {
    font-size: 1rem;
    color: #888;
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.tutoring-collection-link {
    font-size: 1rem;
    color: #c1121f;
    font-weight: 600;
}
.tutoring-no-video-tag {
    color: #999 !important;
    font-style: italic;
}

/* 无封面文字卡片 */
.tutoring-no-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c1121f 0%, #8b0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tutoring-no-cover-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.tutoring-no-cover-lg {
    height: auto;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.tutoring-no-cover-lg .tutoring-no-cover-text {
    font-size: 1.6rem;
    padding: 30px;
}

/* 学期标签 & 选修标签 */
.tutoring-collection-semester {
    margin-bottom: 8px;
}
.tutoring-tag-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: 8px;
}

/* 暂无视频提示 */
.tutoring-empty-notice {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    margin: 20px 0;
}
.tutoring-empty-notice .fa {
    font-size: 3rem;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}
.tutoring-empty-notice p {
    font-size: 1.05rem;
    margin: 0;
}

/* PDF 下载卡片 */
.tutoring-pdf-list {
    margin-top: 10px;
}
.tutoring-pdf-card {
    display: flex;
    align-items: center;
    border: 1px solid #edd;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff 60%, #fff8f8 100%);
    transition: box-shadow 0.2s;
}
.tutoring-pdf-card:hover {
    box-shadow: 0 4px 14px rgba(193,18,31,0.10);
}
.tutoring-pdf-icon {
    font-size: 2.2rem;
    color: #c1121f;
    margin-right: 18px;
    flex-shrink: 0;
}
.tutoring-pdf-info {
    flex: 1;
}
.tutoring-pdf-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}
.tutoring-pdf-info p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}
.tutoring-pdf-download {
    flex-shrink: 0;
    margin-left: 12px;
}
.tutoring-download-btn {
    display: inline-block;
    background: #c1121f;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    white-space: nowrap;
}
.tutoring-download-btn:hover {
    background: #a00e18;
    color: #fff !important;
    text-decoration: none;
}
.tutoring-download-btn .fa {
    margin-right: 4px;
}

/* ===== 合集详情页 ===== */
.tutoring-single-page {
    padding: 30px 0 60px 0;
}
.tutoring-back-row {
    margin-bottom: 20px;
}
.tutoring-back-btn {
    color: #c1121f !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none !important;
}
.tutoring-back-btn:hover {
    text-decoration: underline !important;
}
.tutoring-collection-header {
    margin-bottom: 10px;
}
.tutoring-collection-cover-lg {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    margin-bottom: 16px;
}
.tutoring-collection-cover-lg img {
    width: 100%;
    height: auto;
    display: block;
}
.tutoring-collection-title {
    color: #c1121f;
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}
.tutoring-collection-desc {
    color: #666;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.tutoring-collection-meta {
    margin-top: 10px;
}
.tutoring-meta-item {
    display: inline-block;
    margin-right: 18px;
    color: #888;
    font-size: 1.05rem;
}
.tutoring-meta-item .fa {
    color: #c1121f;
    margin-right: 4px;
}
.tutoring-meta-item a {
    color: #c1121f !important;
    text-decoration: none !important;
}
.tutoring-meta-item a:hover {
    text-decoration: underline !important;
}
.tutoring-divider {
    border-color: #edd;
    margin: 10px 0 24px 0;
}
.tutoring-video-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}
.tutoring-video-section-title .fa {
    color: #c1121f;
    margin-right: 6px;
}

/* 视频卡片网格 - 自动填充，不留空位 */
.tutoring-video-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 18px;
}
.tutoring-video-card {
    display: block;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.tutoring-video-card:hover {
    box-shadow: 0 5px 18px rgba(0,0,0,0.13);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.tutoring-video-cover {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #222;
}
.tutoring-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tutoring-video-duration-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transition: opacity 0.2s;
}
.tutoring-video-card:hover .tutoring-video-duration-placeholder {
    opacity: 1;
}
.tutoring-video-info {
    padding: 10px 12px;
}
.tutoring-video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tutoring-video-link-text {
    font-size: 0.85rem;
    color: #c1121f;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tutoring-collection-cover-lg {
        max-width: 240px;
        margin: 0 auto 16px auto;
    }
    .tutoring-collection-title {
        font-size: 1.3rem;
        text-align: center;
    }
    .tutoring-collection-desc {
        text-align: center;
    }
    .tutoring-collection-meta {
        text-align: center;
    }
    .tutoring-pdf-card {
        flex-direction: column;
        text-align: center;
    }
    .tutoring-pdf-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .tutoring-pdf-download {
        margin-left: 0;
        margin-top: 10px;
    }
    .tutoring-video-cover {
        height: 120px;
    }
}

/* 站点访问量统计（首页底部） */
.site-visit-counter {
  text-align: center;
  padding: 18px 0 8px 0;
  margin-top: 10px;
}
.site-visit-counter-inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
  border: 1px solid #f0d6d8;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 0.92rem;
  color: #666;
}
.site-visit-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.site-visit-item .fa {
  color: #c1121f;
  margin-right: 5px;
  font-size: 0.95rem;
}
.site-visit-sep {
  color: #ddd;
  margin: 0 4px;
}
.site-visit-num {
  color: #c1121f;
  font-size: 1.15rem;
  font-weight: 900;
  min-width: 2.5em;
  text-align: center;
}

@media (max-width: 768px) {
  .site-visit-counter-inner {
    padding: 8px 20px;
    font-size: 0.85rem;
    gap: 12px;
  }
  .site-visit-num {
    font-size: 1.05rem;
  }
}

/* ===== 数字页码分页条 ===== */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 0 40px 0;
    flex-wrap: wrap;
    user-select: none;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.pagination-btn:hover {
    border-color: #c1121f;
    color: #c1121f;
    background: #fff8f8;
    text-decoration: none !important;
}
.pagination-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}
.pagination-num:hover {
    border-color: #c1121f;
    color: #c1121f;
    background: #fff8f8;
    text-decoration: none !important;
}
.pagination-active {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff !important;
    cursor: default;
    pointer-events: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #aaa;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .pagination-bar {
        gap: 4px;
        padding: 20px 0 30px 0;
    }
    .pagination-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .pagination-num {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }
    .pagination-ellipsis {
        width: 28px;
        height: 32px;
    }
}