/* 公共样式 - Banner、面包屑、分页等 */

/* 繁星背景效果 - 覆盖整个页面包括菜单栏和底部 */
body:not(.home-page)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/allbackground_03.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* 确保header和footer在背景之上，使用纯黑色背景 */
.header {
    position: relative;
    z-index: 1001;
    background-color: #000000;
}

.footer {
    position: relative;
    z-index: 1001;
    background-color: #000000;
}

/* 繁星背景效果 */
.starry-background {
    position: relative;
    overflow: hidden;
}

.starry-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/allbackground_03.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

@keyframes starryMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.starry-background > * {
    position: relative;
    z-index: 1;
}

/* Banner区域公共样式 */
.banner-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* 面包屑导航公共样式 */
.breadcrumb {
    background-color: transparent;
    padding: 33px 0 0 0;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* 确保所有banner区域也显示背景 */
.news-banner,
.detail-banner,
.download-banner,
.tuwen-banner,
.tuwen-detail-banner {
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    font-weight: 400;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 400;
}

.more-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: var(--primary-color);
}

/* 分页公共样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background-color: rgba(255, 165, 0, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn:active {
    transform: scale(0.95);
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background-color: rgba(255, 165, 0, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-number.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8c00);
    border-color: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
}

.pagination-number:active {
    transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 33px 0 0 0;
    }

    .breadcrumb-link,
    .breadcrumb-separator,
    .breadcrumb-current {
        font-size: 20px;
    }

    .more-link {
        font-size: 20px;
    }

    .pagination {
        margin-top: 40px;
    }

    .pagination-btn,
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 6px;
    }

    .pagination-btn,
    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
