html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
}
#app{
    background: #f3f3f3;
}

.immigration-banner {
    width: 100%;
    height: 315px;
    position: relative;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-title {
    font-size: 72px;
    color: #002768;
    text-align: center;
}

/* 主要内容区域 */
.content-section-list {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 160px;
    display: flex;
    
}

/* 左侧导航栏 */
.sidebar {
    width: 200px;
    /* padding: 20px; */
}

.sidebar-title {
    font-size: 22px;
    color: #333333;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-left: 35px;
    /* height: 58px; */
    /* line-height: 58px; */
    width: 170px;
}

.form-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.form-item {
    padding-left: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* height: 58px; */
    color: #002768;
    /* line-height: 58px; */
    padding-top: 10px;
    padding-bottom: 10px;
}
.form-item.active{
    border-left: 5px solid #002768;
    font-size: 18px;
    font-weight: bold;
    background: #fff;
}

/* .form-item:hover {
    background: #f8f9fa;
} */

/* 二级目录样式 */
.sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* background: #f8f9fa; */
    /* border-left: 3px solid #e0e0e0; */
}
.sub-item.active{
    color: #002768;
}
.sub-item {
    padding-left: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* height: 45px; */
    color: #666666;
    /* line-height: 45px; */
    font-size: 14px;
    /* border-bottom: 1px solid #e0e0e0; */
}
.sub-item-title{
    font-size: 16px;
    color: #002768;
    padding-left: 35px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.sub-item:hover {
    /* background: #ffffff; */
    color: #002768;
}

.sub-item:last-child {
    border-bottom: none;
}



/* 右侧内容区域 */
.content-area {
    flex: 1;
    max-width: 1000px;
    background: #ffffff;
    padding: 77px 0;
    position: relative;
}
.form-detail-box{
    width: 850px;
    margin: 0 auto;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    margin-bottom: 40px;
}
.tab-item{
    font-size: 18px;
    /* font-weight: bold; */
    color: #002768;
    margin-right: 100px;
    padding: 0 2px;
    cursor: pointer;
}

.tab-item.active {
    border-bottom: 3px solid #be133d;
    color: #be133d;
    /* background-color: #be133d; */
    /* color: white; */
    /* border-color: #be133d; */
}

.form-detail {
    margin-bottom: 30px;
}

.form-detail-title {
    font-size: 22px;
    color: #002768;
    /* margin-bottom: 40px; */
    line-height: 70px;
    
}
.chevron::after {
    content: '';
    background: url("../img/d-arrow.png") no-repeat center center;
    background-size: 14px 8px;
    display: inline-block;
    width: 14px;
    height: 8px;
    margin-left: 0.5em;
    transition: transform 0.3s ease;
}

.sub-list-box{
    list-style: none;
    padding: 0;
    margin: 0;
}
.sub-item-titl{
    font-size: 16px;
    color: #1B66EE;
    padding-left: 35px;
    cursor: pointer;
    text-decoration: underline;
    
}

.chevron.chevron-open::after {
    transform: rotate(180deg);
}

.form-detail-title .chevron {
    font-size: 16px;
    cursor: pointer;
}

.form-detail{
    padding: 0 10px;
}
.form-description {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.download-section {
    margin-top: 20px;
}

.download-title {
    font-size: 16px;
    color: #002768;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.download-icon{
    color: #be133d;
    font-size: 18px;
    font-weight: bold;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link {
    font-size: 16px;
    color: #be133d;
    /* text-decoration: none; */
    text-decoration: underline;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #be133d;
}

/* 表单列表项 */
.form-list-item {
    height: 70px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.form-list-item.first-item {
    border-top: none;
}

.form-list-item.last-item {
    border-bottom: 1px solid #e0e0e0;
}


/* 表格样式 */
.download-links p table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Microsoft YaHei', Arial, sans-serif sans-serif;
    font-size: 14px;
    background: #ffffff;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-links p table thead {
    background: #C00000;
    color: white;
}

.download-links p table thead tr:first-child th {
    background: #C00000;
    font-weight: bold;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #fff;
    font-size: 16px;
}

.download-links p table thead tr:last-child th {
    background: #C00000;
    font-weight: bold;
    text-align: center;
    padding: 10px 8px;
    border: 1px solid #fff;
    font-size: 14px;
}

.download-links p table tbody {
    background: #ffffff;
}

.download-links p table tbody tr {
    border-bottom: 1px solid #DDDDDD;
}

.download-links p table tbody tr:last-child {
    border-bottom: none;
}

.download-links p table tbody td {
    padding: 10px 12px;
    border-right: 1px solid #DDDDDD;
    vertical-align: top;
}

.download-links p table tbody td:last-child {
    border-right: none;
}

/* 总计和分类行的特殊样式 */
.download-links p table tbody tr.total-row td:first-child,
.download-links p table tbody tr.category-row td:first-child {
    background: #213764;
    color: white;
    font-weight: bold;
    text-align: left;
}

.download-links p table tbody tr.total-row td:first-child + td,
.download-links p table tbody tr.category-row td:first-child + td {
    background: #213764;
    color: white;
    font-weight: bold;
}

/* 数字列右对齐 */
.download-links p table tbody td:nth-child(n+3) {
    text-align: right;
}

/* 处理时间列居中对齐 */
.download-links p table tbody td:last-child {
    text-align: center;
}

/* 描述列的左对齐 */
.download-links p table tbody td:nth-child(2) {
    text-align: left;
}

/* 更新列表 */
.header{
    display: flex;
    justify-content: space-between;
}
.header-title{
    font-size: 17px;
    color: #002768;
    font-weight: bold;
}
.header-date{
    font-size: 14px;
    color: #666666;
}

.pm-resource__header{
    font-size: 16px;
    color: #333;
}
.pm-resource__content p,.pm-resource__associated_pages{
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
}
.pm-resource__content .btn--anchor{
    font-size: 14px;
    color: #002768;
    text-decoration: none;
}

.pm-resource__content .btn--anchor:hover{
    text-decoration: underline;
    color: #002768;
}

.tabcontent h2, .clearfix h2{
    font-size: 22px;
    color: #333;
    font-weight: bold;
}
.pm-resource__header{
    font-size: 17px;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #e8e8e8;
}
.row-data{
    font-size: 14px;
    color: #333;
}
.clearfix p{
    font-size: 14px;
    color: #333;
}
.row-data p{
    margin-bottom: 0;
    line-height: 35px;
}

/* 表格响应式设计 */
@media (max-width: 768px) {
    .download-links p table {
        font-size: 12px;
    }
    
    .download-links p table thead tr th,
    .download-links p table tbody tr td {
        padding: 8px 6px;
    }
    
    .download-links p table thead tr:first-child th {
        font-size: 14px;
    }
    
    .download-links p table thead tr:last-child th {
        font-size: 12px;
    }
}

/* 搜索相关样式 */
.search-container {
    width: 100%;
}

.search-title {
    font-size: 22px;
    color: #333333;
    /* font-weight: bold; */
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.search-input-field {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    color: #333333;
    background: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-field:focus {
    border-color: #002768;
}

.search-input-field::placeholder {
    color: #999999;
}

.search-btn {
    height: 40px;
    padding: 0 30px;
    background: #002768;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #003d99;
}

.search-btn:active {
    background: #001f4d;
}

.search-results-section {
    margin-top: 30px;
}

.search-results-title {
    font-size: 18px;
    color: #333333;
    /* font-weight: bold; */
    margin-bottom: 20px;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    font-size: 16px;
    color: #1B66EE;
    text-decoration: underline;
    cursor: pointer;
    padding: 3px 0;
    transition: color 0.3s ease;
}

.search-result-item:hover {
    color: #002768;
}

.no-search-results {
    font-size: 16px;
    color: #666666;
    text-align: center;
    padding: 20px 0;
}

/* 搜索加载提示 */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #002768;
    font-size: 16px;
}

.loading-container i {
    margin-right: 8px;
    font-size: 18px;
    animation: rotate 1s linear infinite;
}

/* 全局Loading遮罩 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #002768;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 16px;
    color: #002768;
    font-weight: 500;
}

.loading-content {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 移动端头部样式 */
.mobile-header {
    display: none;
}

.mobile-menu-icon {
    width: 60px;
    /* height: 60px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
    gap: 8px;
}

.menu-line {
    width: 40px;
    height: 4px;
    background: #002768;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-title {
    flex: 1;
    text-align: center;
    font-size: 46px;
    color: #333333;
    font-weight: normal;
}

/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pm-resources p em{
    color:#333333;
    font-style: normal;
}

/* 表格样式 - dataTable */
.dataTable,
table.dataTable,
.form-detail-box table.dataTable,
.content-area table.dataTable {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    margin: 20px 0;
    font-size: 14px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.dataTable caption,
table.dataTable caption {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    text-align: left;
    padding: 15px 0;
    margin-bottom: 10px;
    caption-side: top;
}

.dataTable thead,
table.dataTable thead {
    background: #ffffff;
}

.dataTable thead th,
table.dataTable thead th {
    background: #ffffff;
    color: #333333;
    font-weight: bold;
    font-size: 14px;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    vertical-align: middle;
}

.dataTable thead th:first-child,
table.dataTable thead th:first-child {
    border-left: 1px solid #e0e0e0 !important;
}

.dataTable thead th:last-child,
table.dataTable thead th:last-child {
    border-right: 1px solid #e0e0e0 !important;
}

.dataTable thead tr:first-child th,
table.dataTable thead tr:first-child th {
    border-top: 1px solid #e0e0e0;
}

.dataTable tbody,
table.dataTable tbody {
    background: #ffffff;
}

.dataTable tbody tr,
table.dataTable tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}


.dataTable tbody tr:last-child,
table.dataTable tbody tr:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.dataTable tbody td,
table.dataTable tbody td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333333;
    vertical-align: top;
    line-height: 1.6;
    border-right: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
}

.dataTable tbody td:first-child,
table.dataTable tbody td:first-child {
    border-left: 1px solid #e0e0e0 !important;
    font-weight: 500;
}

.dataTable tbody td:last-child,
table.dataTable tbody td:last-child {
    border-right: 1px solid #e0e0e0 !important;
}

.dataTable tbody tr:last-child td,
table.dataTable tbody tr:last-child td {
    border-bottom: 1px solid #e0e0e0;
}

/* 表格容器，用于移动端横向滚动 */
.dataTable-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.dataTable-container table {
    min-width: 600px;
}

/* 响应式设计 - 移动端 */
@media (max-width: 1200px) {
    .loaded{
        height: 100vh;
    }
    .immigration-banner{
        display: none;
    }
    .content-section-list{
        width: 100vw;
        margin: 0;
        flex-direction: column;
        /* margin-top: 20px; */
    }
    
 
    
    /* 显示移动端头部 */
    .mobile-header {
        display: flex;
        border-top: 1px solid #e0e0e0;
        background: #ffffff;
        height: 4rem;
        padding: 0 1.333rem;
    }
    .mobile-header .mobile-title{
        font-size: 1.227rem;
        color: #333333;
        line-height: 4rem;
    }
    .menu-line-open{
        width: 30px;
    }

    
    /* 侧边栏移动端样式 - 弹框 */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 80%;
        height: 100vh;
        margin-bottom: 0;
        padding: 0 1.333rem;
        background: #ffffff;
        z-index: 1001;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.sidebar-open {
        left: 0;
    }
    
    .sidebar-title {
        font-size: 1.227rem;
        text-align: center;
        color: #333333;
        padding: 1.467rem 0;
        margin-bottom: 0;
        border-bottom: 0.267rem solid #e0e0e0;
        width: 100%;
    }
    
    .form-item {
        padding: 1.467rem 0;
        font-size: 1.200rem;
        color: #000000;
        
    }
    
    .form-item.active {
        font-size: 1.200rem;
        color: #002768;
        border-left: none;
        background: #ffffff;
        font-weight: bold;
    }
    
    .sub-item {
        padding: 1.467rem 0;
        font-size: 1.120rem;
        color: #333333;
        margin-left: 18px;
    }
    
    .sub-item-title {
        font-size: 1.200rem;
        color: #002768;
        padding: 1.467rem 0;
        font-weight: normal;
    }
    
     /* 内容区域 */
     .content-area{
         width: 100vw;
         margin-top: 20px;
         padding: 0 1.333rem;
         position: relative;
     }
     
     /* 移动端Loading样式 */
     .loading-overlay {
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         bottom: 0;
         background: rgba(255, 255, 255, 0.95);
         z-index: 1000;
     }
     
     .spinner {
         width: 50px;
         height: 50px;
         border-width: 5px;
     }
     
     .loading-text {
         font-size: 0.960rem;
     }
    .form-detail-title{
        font-size: 0.960rem;
    }
    .form-detail-box{
        width: 100%;
        min-height: 400px;
    }
    .tab-nav {
        justify-content: space-between;
    }
    .tab-item{
        margin: 0;
        font-size: 0.888rem;
       
    }
    .tab-nav{
        margin-bottom: 1.760rem;
    }
    .sub-list-box .sub-item-titl{
        font-size: 0.888rem;
        padding-left:0;
        padding-bottom: 5px;
        color: #023eff;
    }

    .tabcontent h2,.clearfix p{
        font-size: 0.960rem;
    }
    .pm-resource__container{
        margin-top: 10px;
    }
    .pm-resource__header{
        font-size: 0.880rem;
    }
    .row-data p a{
        font-size: 0.888rem;
       
        color: #023eff;
    }
    .row-data p {
        font-size: 0.888rem;
        color:#333333;
    }
     .pm-resources p em{
         font-size: 0.888rem;
         color:#333333;
         font-style: normal;
     }
     
     /* 移动端表格样式 */
     .dataTable,
     table.dataTable,
     .form-detail-box table.dataTable,
     .content-area table.dataTable {
         font-size: 0.888rem;
         margin: 15px 0;
         border: 1px solid #e0e0e0;
         border-radius: 3px;
     }
     
     .dataTable caption,
     table.dataTable caption {
         font-size: 0.960rem;
         padding: 10px 0;
         margin-bottom: 8px;
     }
     
     .dataTable thead th,
     table.dataTable thead th {
         font-size: 0.888rem;
         padding: 10px 12px;
         border-bottom: 2px solid #e0e0e0;
         border-right: 1px solid #e0e0e0;
     }
     
     .dataTable thead th:last-child,
     table.dataTable thead th:last-child {
         border-right: none;
     }
     
     .dataTable tbody td,
     table.dataTable tbody td {
         font-size: 0.888rem;
         padding: 10px 12px;
         line-height: 1.5;
         border-right: 1px solid #e0e0e0;
     }
     
     .dataTable tbody td:last-child,
     table.dataTable tbody td:last-child {
         border-right: none;
     }
     
     /* 移动端表格容器 - 支持横向滚动 */
     .dataTable-container {
         margin: 15px 0;
         -webkit-overflow-scrolling: touch;
         width: 100%;
         overflow-x: auto;
     }
     
     .dataTable-container table {
         /* min-width: 500px; */
     }
     
     /* 移动端表格自动横向滚动 */
     .form-detail-box table.dataTable,
     .content-area table.dataTable {
         overflow-x: auto;
         -webkit-overflow-scrolling: touch;
         display: table;
         /* min-width: 500px; */
     }


    

    
    /* 加载提示移动端样式 */
    .loading-container {
        padding: 60px 20px;
        font-size: 36px;
    }
    
    .loading-container i {
        font-size: 40px;
        margin-right: 15px;
    }
    
    /* 更新列表移动端样式 */
    .update-item {
        /* padding: 30px 0; */
        border-bottom: 1px solid #e0e0e0;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .header-title {
        font-size: 1.120rem;
        color: #002768;
        margin-bottom: 10px;
    }
    
    .header-date {
        font-size: 0.960rem;
        color: #666666;
    }
    
    .content-update {
        font-size: 0.960rem;
        line-height: 1.6;
        color: #333333;
    } 


    /* 搜索 */
    .search-container{
       
        padding-top: 2rem;
    }
    .search-container .search-title{
        font-size: 1.120rem;
        color: #002768;
    }
    .loading-container span{
        font-size: 1.120rem;
    }
    .search-results-title{
        font-size: 0.960rem;
    }
    .search-result-item{
        font-size: 0.888rem;
        color: #023eff;
    }
}



