html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #ffffff;
}

#app {
    background: #ffffff;
}

.immigration-banner-service {
    width: 100%;
    border-top: 1px solid #82B8D4;
    border-bottom: 1px solid #E2EFF5;
}

.banner-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    height: 60px;
    align-items: center;
    gap: 8px;
}

.banner-content .banner-title-service {
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: #333333;
    cursor: pointer;
}

.content-section-list {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 115px;
    margin-bottom: 160px;
}

.file-grid-wrap {
    position: relative;
    padding: 40px 40px 0;
}

.file-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px 60px;
    justify-items: center;
}

.file-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.file-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.file-icon {
    /* width: 64px;
    height: 64px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon svg {
    width: 64px;
    height: 64px;
    display: block;
}

.file-name {
    margin-top: 12px;
    font-size: 18px;
    color: #06c3f5;
    /* width: 120px; */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-data {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #666666;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 4px solid #e5e5e5;
    border-top-color: #06c3f5;
    animation: te-spin 0.9s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: #333333;
}

@keyframes te-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media screen and (max-width: 1100px) {
    .file-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .banner-content {
        width: 100%;
        padding: 0 15px;
    }
    .content-section-list {
        padding-top: 90px;
    }
    .file-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px 45px;
    }
    .file-grid-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media screen and (max-width: 600px) {
    .file-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 25px;
    }
    .file-name {
        width: 90px;
        font-size: 16px;
    }
}

/* Pagination Section Styles (reuse from channel_case) */
.pagination-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    text-align: center;
    margin: 32px 0 0 0;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 18px;
    cursor: pointer;
    font-weight: normal;
    user-select: none;
}

.page-item:hover {
    border-color: #06c3f5;
    color: #06c3f5;
}

.page-item.active {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #06c3f5;
    color: #06c3f5;
    font-weight: bold;
}

.page-ellipsis {
    color: #333333;
    font-size: 14px;
    padding: 0 4px;
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.page-jump {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.jump-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jump-label {
    color: #333333;
    font-size: 16px;
}

.jump-input {
    width: 70px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    color: #333333;
    outline: none;
    padding: 0 8px;
    background-color: #ffffff;
    transition: all 0.3s;
}

.jump-input:focus {
    border-color: #06c3f5;
}

.jump-input.error {
    border-color: #ff4d4f;
    background-color: #fff1f0;
}

.jump-button {
    height: 36px;
    padding: 0 20px;
    background-color: #06c3f5;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.jump-button:hover {
    background-color: #06c3f5;
}

.jump-button:active {
    background-color: #06c3f5;
}

.jump-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    padding: 8px 12px;
    min-width: 300px;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
}

.file-icon-img{
    width: 100px;
    height: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ff4d4f;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
}

.error-text {
    color: #ff4d4f;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

/* 成功案例：图片预览弹框 */
.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    box-sizing: border-box;
    animation: imagePreviewFadeIn 0.2s ease-out;
}

@keyframes imagePreviewFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-preview-dialog {
    position: relative;
    max-width: min(96vw, 1200px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-preview-close:hover {
    background: rgba(6, 195, 245, 0.5);
}

.image-preview-img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 56px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.image-preview-caption {
    margin: 0;
    max-width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    word-break: break-all;
}

@media (max-width: 768px) {
    .image-preview-close {
        top: -48px;
        right: -8px;
    }
}

