/* 党建工作页面样式 */

/* header绝对定位，让banner贴紧视口顶部 */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}


.row{
min-height:200px}

/* PC端banner样式 */
.banner-container {
    height: 780px;
    width: 1920px;
    position: relative;
    overflow: hidden;
}


.main-menu-container {
    top: 540px !important;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 1920px;
    height: 915px;
    object-fit: cover;
}

/* PC端banner响应式优化 */
@media screen and (max-width: 1920px) {
    .banner-container {
        width: 100%;
        height: 600px;
    }

    .banner-image {
        width: 100%;
        height: 600px;
    }
}

@media screen and (max-width: 1440px) {

}

@media screen and (max-width: 1200px) {
  
}

/* 移动端banner样式 */
.banner-container-mobile {
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.banner-image-mobile {
    width: 375px;
    height: 302px;
    object-fit: cover;
}

/* 移动端banner蒙层 */
.banner-container-mobile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(56, 56, 56, 0.5);
    z-index: 1;
}

/* 移动端banner文字 */
 .banner-container-mobile .lanmu{
position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    white-space: nowrap;

}

/* 移动端语言切换样式 */
.language-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-right: 8px;
    position: relative;
}

.language-toggle-icon {
    width: 14px;
    height: 14px;
}

.language-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 17.38px;
    color: rgba(255, 255, 255, 1);
    margin: 0 1px;
}

.language-arrow {
    width: 10px;
    height: 14px;
}

/* 语言下拉列表样式 */
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1001;
    min-width: 80px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.25s ease-out;
    overflow: hidden;
}

.language-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.language-option {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
}

.language-option:first-child {
    border-radius: 6px 6px 0 0;
}

.language-option:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.language-option:hover {
    background-color: rgba(24, 144, 255, 0.08);
    color: #1890ff;
    padding-left: 24px;
}

.language-option.active {
    background-color: rgba(24, 144, 255, 0.12);
    color: #1890ff;
    font-weight: 600;
}

.partybuildingworkList {
    margin-top: 0px !important;
    margin-left: 530px;
    width: 1224px;

}

.page-title {
    /** 文本1 */
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 82px;
    color: rgba(56, 56, 56, 1);
    border-bottom: 1px dashed rgba(166, 166, 166, 1);
}

.document-list {
    margin-top: -20px;
}

/* PC端文档列表样式 */
.document-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.document-item:hover {
    background-color: #f8f9fa;
}

.document-title {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
    cursor: pointer;
}

.document-title:hover {
    color: #c13432;
}

.document-date {
    font-size: 14px;
    color: #666;
}

/* PC端分页样式 */
.pagination-info {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.total-info {
    display: block;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-number {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 修复文字错位 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    line-height: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.page-number:hover {
    border-color: #c13432;
    color: #c13432;
}

.page-number.active {
    background-color: #c13432;
    color: white;
    border-color: #c13432;
}

.page-arrow {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 修复文字错位 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    line-height: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.page-arrow:hover {
    border-color: #c13432;
    color: #c13432;
}

.main-menu-container {
    width: 275px;
    height: 227px;
    /* background-color: pink; */
    position: absolute;
    left: 188px;
    top: 700px;

}

.first-active {
    background: rgba(193, 52, 50, 1);
    width: 275px;
    height: 82px;
    opacity: 1;
    margin-bottom: 3px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(255, 255, 255, 1);
    text-align: left;
    vertical-align: top;
    clip-path: polygon(0.41% 0.843%, 83.947% 0%, 99.922% 99.875%, 0% 99.875%);
}

.first-active a:hover {
    color: #fff;
}

.second-active a:hover {
    color: #fff;
}

.second-active {
  color: #000;
    border-bottom: 1px solid rgba(196, 196, 196, 1);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0px;
    margin-left: 22px;
    width: 250px;
}


.active{
    background: rgba(193, 52, 50, 1);
    color: rgba(255, 255, 255, 1);
}


.third-active a {
    color: #000;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0px;
}

.active a{
   color: #fff;
}

.main-menu-container a {
    display: inline-block;
    width: 200px;
    height: 82px;
    line-height: 82px;
    text-align: center;
}



.main-menu-container span {
    color: rgba(196, 196, 196, 1);
}

/* 移动端响应式样式 */
@media screen and (max-width: 768px) {
.row{
min-height:0px}
    /* 移动端header重置为相对定位 */
    header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
    }

    .partybuildingworkList {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .main-menu-container {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .first-active,
    .second-active,
    .third-active {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 10px;
        height: auto !important;
        min-height: 50px;
        line-height: 50px;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .first-active a,
    .second-active a,
    .third-active a {
        width: 100% !important;
        height: auto !important;
        line-height: 1.5;
        padding: 10px 0;
        display: block;
    }

    .page-title {
        font-size: 20px;
        line-height: 1.5;
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .document-list {
        margin-top: 0;
    }

    .document-item {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .document-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .document-date {
        font-size: 14px;
        color: #666;
    }

    .pagination-info {
        text-align: center;
        margin-top: 30px;
    }

    .pagination-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .page-number {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
    }

    .page-number.active {
        background-color: #c13432;
        color: white;
        border-color: #c13432;
    }

    /* 移动端banner样式 */
    .banner-container-mobile {
        width: 100% !important;
        height: 302px !important;
        position: relative;
        margin-bottom: 0;
    }

    .banner-image-mobile {
        width: 100% !important;
        height: 302px !important;
        object-fit: cover;
    }

    /* 移动端banner蒙层 */
    .banner-container-mobile::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(56, 56, 56, 0.5);
        z-index: 1;
    }

 .banner-container-mobile .lanmu{
position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    white-space: nowrap;

}

    /* 移动端语言切换样式 */
    .language-toggle-wrapper {
        display: flex !important;
        align-items: center !important;
        margin-right: 8px !important;
        position: relative !important;
    }

    .language-toggle-icon {
        width: 14px !important;
        height: 14px !important;
    }

    .language-text {
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0px !important;
        line-height: 17.38px !important;
        color: rgba(255, 255, 255, 1) !important;
        margin: 0 1px !important;
    }

    .language-arrow {
        width: 10px !important;
        height: 14px !important;
    }

    /* 移动端触摸优化 */
    .document-item {
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s ease;
    }

    .document-item:active {
        background-color: #f0f0f0;
    }

    .document-title {
        cursor: pointer;
        padding: 5px 0;
        min-height: 44px;
        /* 触摸友好的最小高度 */
        display: flex;
        align-items: center;
    }

    .page-number,
    .page-arrow {
        min-height: 44px;
        /* 触摸友好的最小高度 */
        min-width: 44px;
        /* 触摸友好的最小宽度 */
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .page-number:active,
    .page-arrow:active {
        background-color: #e0e0e0;
        transform: scale(0.95);
    }

    /* 移动端导航菜单优化 */
    .first-active,
    .second-active,
    .third-active {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .first-active:active,
    .second-active:active,
    .third-active:active {
        background-color: #a92c2a !important;
    }

    .first-active a,
    .second-active a,
    .third-active a {
        width: 100%;
        text-align: center;
        padding: 15px 10px;
        box-sizing: border-box;
    }
}

/* 中等屏幕设备（平板） */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .partybuildingworkList {
        margin-left: 300px !important;
        width: calc(100% - 320px) !important;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .main-menu-container {
        width: 280px !important;
        left: 20px !important;
        top: 870px;
    }

    .first-active,
    .second-active,
    .third-active {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .page-title {
        font-size: 22px;
        line-height: 1.4;
        padding: 20px 0;
    }

    .document-item {
        padding: 18px 0;
    }

    .document-title {
        font-size: 17px;
    }

    .document-date {
        font-size: 15px;
    }

    .pagination-info {
        margin-top: 35px;
    }

    .pagination-controls {
        gap: 12px;
    }

    .page-number,
    .page-arrow {
        padding: 12px 16px;
    }

    /* 中等屏幕banner样式 */
    .banner-container {
        width: 100% !important;
        height: 600px !important;
    }

    .banner-image {
        width: 100% !important;
        height: 600px !important;
    }
}

/* 超小屏幕设备 */
@media screen and (max-width: 480px) {
    .partybuildingworkList {
        padding: 0 10px;
    }

    .page-title {
        font-size: 18px;
        padding: 12px 0;
    }

    .document-title {
        font-size: 15px;
    }

    .document-date {
        font-size: 13px;
    }

    .pagination-controls {
        gap: 8px;
    }

    .page-number {
        padding: 6px 10px;
        font-size: 14px;
    }

    /* 超小屏幕额外优化 */
    .main-menu-container {
        margin-bottom: 15px;
    }

    .first-active,
    .second-active,
    .third-active {
        min-height: 45px;
        margin-bottom: 8px;
        padding: 8px 12px;
    }

    .first-active a,
    .second-active a,
    .third-active a {
        padding: 12px 8px;
        font-size: 16px;
    }

    .document-item {
        padding: 15px 0;
    }

    .document-title {
        min-height: 40px;
        padding: 3px 0;
    }

    .page-number,
    .page-arrow {
        min-height: 40px;
        min-width: 40px;
        padding: 8px 10px;
    }

    .pagination-info {
        margin-top: 25px;
    }

    .total-info {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* 超小屏幕banner样式 */
    .banner-container-mobile {
        height: 250px !important;
    }

    .banner-image-mobile {
        height: 250px !important;
    }

    .banner-container-mobile::before {
        font-size: 20px;
        line-height: 30px;
    }
}}

