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;
}
.form-item.active{
    border-left: 5px solid #002768;
    font-size: 18px;
    font-weight: bold;
    background: #fff;
}

/* .form-item:hover {
    background: #f8f9fa;
} */



/* 右侧内容区域 */
.content-area {
    flex: 1;
    max-width: 1000px;
    background: #ffffff;
    padding: 77px 0;
}
.form-detail-box{
    width: 850px;
    margin: 0 auto;
}

.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;
}

.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;
}

 /* Loading 样式 */
 .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #002768;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格响应式设计 */
@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;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-section-list {
        flex-direction: column;
        /* padding: 20px 10px; */
    }
    
    .sidebar {
        width: 100%;
        /* margin-bottom: 20px; */
    }
    
    .content-area {
        max-width: 100%;
    }
}

/* ====== 移动端响应式适配 ====== */
@media (max-width: 1200px) {
    /* 头部 */
    .immigration-banner{
        height: 4rem;
        border-top: 1px solid #e0e0e0;
        background: #ffffff;
    }
    .banner-img{
        display: none;
    }
    .banner-title{
        font-size: 1.227rem;
        color: #333333;
    }
    /* 内容 */
    .content-section-list{
        margin-top: 0.8rem;
        flex-direction: column;
        padding: 0 2.133rem;
        background: #ffffff;
    }
    .sidebar{
        width: 100%;
        margin-top: 2rem;
    }
    .sidebar-title{
        display: none;
    }
    .form-list{
        display: flex;
        justify-content: space-between;
    }
    .form-item{
        padding-left: 0;
        height: auto;
        line-height: normal;
        padding-bottom: 0.480rem;
    }
    .form-item.active{
        border-left: none;
        font-weight: normal;
        background: none;
        font-size: 1.120rem;
        color: #be133d;
        border-bottom: 0.16rem solid #be133d;

    } 
    .content-area{
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-top: 1rem;
    }
    .form-detail-box{
        width: 100%;
    }
    .form-detail-title{
        font-size: 1.120rem;
        line-height: normal;
    }
    .form-list-item.last-item{
        /* border: none; */
    }
    .form-description{
        color: #333333;
        font-size: 0.88rem;
    }
    .download-title{
        font-size: 0.960rem;
        font-weight: bold;
        color: #333333;
    }
    .download-icon{
        display: none;
    }
    .download-link{
        color: #023eff;
        text-decoration: none;
        font-size: 0.880rem;
        border-bottom: 1px solid #f0f0f0;
        padding: 0.667rem 0;
    }
}



