html {
    height: 100%
}

body.signin {
    height: 100vh;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #2c5aa0 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
        background-size: 200% 200%;
    }

    50% {
        background-position: 100% 50%;
        background-size: 150% 150%;
    }

    100% {
        background-position: 0% 50%;
        background-size: 200% 200%;
    }
}

.gov-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(74, 144, 226, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    backdrop-filter: blur(5px)
}

.gov-header .gov-emblem {
    background: #4a90e2;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #357abd;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3)
}

.gov-header .gov-emblem .fa {
    font-size: 22px;
    color: #fff
}

.gov-header .system-title h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8)
}

.gov-header .security-badge {
    display: flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #2e7d32;
    backdrop-filter: blur(5px)
}

.gov-header .security-badge .fa {
    margin-right: 8px
}


body.signin {
    /* 移除动画效果，保持静态背景 */
}

@keyframes subtlePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.005);
    }

    100% {
        transform: scale(1);
    }
}

.signinpanel {
    width: 750px;
    margin: 3% auto 0;
    color: #333333;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.signinpanel:hover {
    transform: translateY(0) scale(1);
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.15),
        inset 1px 1px 0 rgba(255, 255, 255, 0.8),
        inset -1px -1px 0 rgba(0, 0, 0, 0.1);
}

.signinpanel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    border-radius: 20px;
    z-index: -1;
}

.signinpanel .logopanel {
    float: none;
    width: auto;
    padding: 0;
    background: 0 0
}

.signinpanel .signin-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0
}

.signinpanel .form-control {
    display: block;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.signinpanel .form-control::placeholder {
    color: #999999;
    opacity: 1;
}

.signinpanel .form-control::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(26, 179, 148, 0.1) 10%, transparent 10.01%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.signinpanel .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    transform: translateY(-1px);
}

.signinpanel .form-control:focus::after {
    transform: translate(-50%, -50%) scale(1);
}

.signinpanel .form-control:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    border-color: rgba(74, 144, 226, 0.5);
}

.signinpanel .uname {
    background: #ffffff url(../img/user.png) no-repeat 95% center;
    color: #333;
    padding-left: 40px;
    background-size: 16px;
}

.signinpanel .pword {
    background: #ffffff url(../img/locked.png) no-repeat 95% center;
    color: #333;
    padding-left: 40px;
    background-size: 16px;
}

.signinpanel .code {
    background: #ffffff no-repeat 95% center;
    color: #333;
    margin: 0 0 15px 0;
    padding-left: 40px;
    background-size: 16px;
    border-radius: 2px;
    border: 2px solid #808080;
    transition: all 0.2s ease;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.signinpanel .code:focus {
    border-color: #0078d4;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px #0078d4;
    background: #ffffff;
}

.signinpanel .btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: 1px solid #2c5aa0;
    border-radius: 6px;
    padding: 12px 20px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 8px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.signinpanel .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.signinpanel .btn:hover {
    background: linear-gradient(135deg, #357abd, #2c5aa0);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 4px 12px rgba(74, 144, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.signinpanel .btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 1px 4px rgba(74, 144, 226, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.signinpanel .btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.signinpanel form {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: #333333 !important;
}

.signinpanel form * {
    color: inherit !important;
}

@keyframes formEntrance {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(-30deg) translateY(30px);
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: perspective(800px) rotateX(0) translateY(0);
    }
}

@keyframes formGlow {
    0% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(26, 179, 148, 0.1);
    }

    50% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 20px 10px rgba(26, 179, 148, 0.15);
    }

    100% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(26, 179, 148, 0.1);
    }
}

.signinpanel form:hover {
    transform: none;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.8),
        inset -1px -1px 0 rgba(0, 0, 0, 0.1),
        1px 1px 3px rgba(0, 0, 0, 0.15);
}

.signinpanel form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 10%, transparent 10.01%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.signinpanel form:hover::before {
    transform: scale(1);
}

.signup-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
    padding: 20px 0;
    color: #333333;
    font-size: 14px;
    text-align: center;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.signup-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 10%, transparent 10.01%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.signup-footer:hover {
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.signup-footer:hover::before {
    transform: scale(1);
}

.signup-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(26, 179, 148, 0.5), rgba(255, 255, 255, 0.2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.signup-footer:hover::after {
    transform: scaleX(1);
}

@media screen and (max-width:768px) {

    .signinpanel,
    .signuppanel {
        margin: 5% auto 0;
        width: 90% !important;
        padding: 20px;
        border-radius: 15px;
        animation: mobileSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    @keyframes mobileSlideUp {
        0% {
            transform: translateY(20px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .signinpanel form {
        margin-top: 20px;
        padding: 30px;
        animation: mobileFormEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
    }

    @keyframes mobileFormEntrance {
        0% {
            opacity: 0;
            transform: perspective(800px) rotateX(-15deg) translateY(20px);
        }

        100% {
            opacity: 1;
            transform: perspective(800px) rotateX(0) translateY(0);
        }
    }

    .signup-footer,
    .signuppanel .form-control {
        margin-bottom: 10px;
    }

    .signup-footer {
        margin: 15px 0;
        padding: 15px 0;
        border-radius: 0 0 15px 15px;
        animation: mobileFooterFade 0.8s ease 0.5s both;
    }

    @keyframes mobileFooterFade {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .signup-footer .pull-left,
    .signup-footer .pull-right {
        float: none !important;
        text-align: center;
    }

    .signinpanel .signin-info ul {
        display: none;
    }
}

@media screen and (max-width:480px) {

    .signinpanel,
    .signuppanel {
        margin: 10% auto 0;
        width: 95% !important;
        padding: 15px;
        animation: mobileSlideUpSmall 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    @keyframes mobileSlideUpSmall {
        0% {
            transform: translateY(20px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .signinpanel form {
        padding: 20px;
        animation: mobileFormEntranceSmall 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
    }

    @keyframes mobileFormEntranceSmall {
        0% {
            opacity: 0;
            transform: perspective(800px) rotateX(-10deg) translateY(15px);
        }

        100% {
            opacity: 1;
            transform: perspective(800px) rotateX(0) translateY(0);
        }
    }

    .signinpanel .form-control {
        padding: 10px 12px;
        animation: mobileControlFade 0.8s ease 0.4s both;
    }

    @keyframes mobileControlFade {
        0% {
            opacity: 0;
            transform: translateY(5px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .signinpanel .btn {
        padding: 10px 15px;
        animation: mobileButtonFade 0.8s ease 0.5s both;
    }

    @keyframes mobileButtonFade {
        0% {
            opacity: 0;
            transform: translateY(5px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .signup-footer {
        font-size: 13px;
        padding: 10px 0;
        animation: mobileFooterFadeSmall 0.8s ease 0.6s both;
    }

    @keyframes mobileFooterFadeSmall {
        0% {
            opacity: 0;
            transform: translateY(5px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/*
登录界面check样式
*/
.checkbox-custom {
    position: relative;
    padding: 0 15px 0 25px;
    margin-bottom: 7px;
    display: inline-block;
}

/*
将初始的checkbox的样式改变
*/
.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    /*将初始的checkbox隐藏起来*/
    position: absolute;
    cursor: pointer;
    z-index: 2;
    margin: -6px 0 0 0;
    top: 50%;
    left: 3px;
}

/*
设计新的checkbox，位置
*/
.checkbox-custom label:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -9px;
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 2px;
    border: 2px solid #808080;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/*
点击初始的checkbox，将新的checkbox关联起来
*/
.checkbox-custom input[type="checkbox"]:checked+label:after {
    position: absolute;
    display: inline-block;
    font-family: 'FontAwesome';
    content: "\f00c";
    top: 42%;
    left: 2px;
    margin-top: -5px;
    font-size: 12px;
    line-height: 1;
    width: 16px;
    height: 16px;
    color: #0078d4;
    transition: all 0.2s ease;
}

@keyframes checkboxBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkbox-custom label:before {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.checkbox-custom:hover label:before {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(26, 179, 148, 0.2);
}

.checkbox-custom label {
    cursor: pointer;
    line-height: 1.2;
    font-weight: normal;
    /*改变了rememberme的字体*/
    margin-bottom: 0;
    text-align: left;
    color: #333333;
}

.form-control,
.form-control:focus,
.has-error .form-control:focus,
.has-success .form-control:focus,
.has-warning .form-control:focus,
.navbar-collapse,
.navbar-form,
.navbar-form-custom .form-control:focus,
.navbar-form-custom .form-control:hover,
.open .btn.dropdown-toggle,
.panel,
.popover,
.progress,
.progress-bar {
    box-shadow: none !important;
}

.form-control {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    height: 42px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1ab394 !important;
    box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.2) !important;
    background: rgba(255, 255, 255, 1);
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px);
}

body .layer-ext-moon-msg {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

body .layer-ext-moon-msg:hover {
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 16px 30px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== 移除科技背景动画效果 ===== */
.tech-background {
    display: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 80%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.particle:nth-child(6) {
    left: 90%;
    animation-delay: 5s;
    animation-duration: 16s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    height: 1px;
}

.line-1 {
    top: 20%;
    width: 300px;
    left: -300px;
    animation: lineMove1 8s infinite;
}

.line-2 {
    top: 60%;
    width: 200px;
    right: -200px;
    animation: lineMove2 10s infinite;
}

.line-3 {
    top: 80%;
    width: 400px;
    left: -400px;
    animation: lineMove3 12s infinite;
}

@keyframes lineMove1 {
    0% {
        left: -300px;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -300px;
    }
}

@keyframes lineMove2 {
    0% {
        right: -200px;
    }

    50% {
        right: 100%;
    }

    100% {
        right: -200px;
    }
}

@keyframes lineMove3 {
    0% {
        left: -400px;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -400px;
    }
}

/* ===== 政府头部区域 ===== */



.gov-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: emblemPulse 2s ease-in-out infinite;
}

@keyframes emblemPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    }
}

.gov-emblem i {
    font-size: 28px;
    color: white;
}

.system-title {
    text-align: center;
    flex: 1;
    margin: 0 30px;
}

.system-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.system-title .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.security-badge {
    display: flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    padding: 8px 15px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
}

.security-badge i {
    margin-right: 5px;
    font-size: 14px;
}

/* ===== 表单头部 ===== */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.login-title {
    font-size: 24px;
    color: #333333;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-title i {
    font-size: 26px;
    color: #0078d4;
}

.security-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.security-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.security-dot.active {
    background: #4caf50;
    box-shadow: none;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.security-text {
    font-size: 12px;
    color: #4caf50;
    font-weight: 500;
    margin-left: 5px;
}

/* ===== 增强输入框样式 ===== */
.input-group-enhanced {
    margin-bottom: 20px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    color: #64748b;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.input-wrapper .form-control {
    padding-left: 45px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(148, 163, 184, 0.3) !important;
    border-radius: 12px !important;
    height: 50px !important;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.input-wrapper .form-control:focus {
    border-color: #3b82f6 !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-2px);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.input-wrapper:focus-within .input-border {
    width: 100%;
}

/* ===== 验证码样式 ===== */
.captcha-wrapper {
    position: relative;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(148, 163, 184, 0.3);
    transition: all 0.3s ease;
}

.captcha-wrapper:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.captcha-refresh {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.imgcode {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.refresh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.captcha-refresh:hover .refresh-overlay {
    opacity: 1;
}

.refresh-overlay i {
    color: white;
    font-size: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== 增强复选框样式 ===== */
.checkbox-custom-enhanced {
    display: flex;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.checkbox-custom-enhanced input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkbox-custom-enhanced label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-custom-enhanced input[type="checkbox"]:checked+label .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.checkbox-custom-enhanced input[type="checkbox"]:checked+label .checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* ===== 增强登录按钮 ===== */
.btn-login-enhanced {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: 1px solid #2c5aa0;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow:
        0 4px 15px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login-enhanced:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #357abd, #2c5aa0);
    box-shadow:
        0 6px 20px rgba(74, 144, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-login-enhanced:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    box-shadow:
        0 2px 8px rgba(74, 144, 226, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-login-enhanced:active {
    transform: translateY(-1px);
}

.btn-login-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login-enhanced:hover::before {
    left: 100%;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-success-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-success-check i {
    font-size: 20px;
    color: white;
}

/* ===== 登录功能特性 ===== */
.login-features {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333 !important;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 10px;
    color: #333333 !important;
    font-size: 12px;
    transition: all 0.3s ease;
}

.feature-item span {
    color: #333333 !important;
}

.feature-item:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 18px;
    margin-bottom: 5px;
    color: #3b82f6;
}

/* ===== 增强页脚样式 ===== */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gov-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22c55e;
    font-weight: 600;
    font-size: 14px;
}

.gov-info i {
    font-size: 16px;
}

.copyright-info {
    color: #666666;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
}

.security-certifications {
    display: flex;
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666666;
    font-size: 12px;
    padding: 5px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.cert-item i {
    font-size: 14px;
    color: #3b82f6;
}

/* ===== 响应式优化 ===== */
@media screen and (max-width: 768px) {
    .gov-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .system-title {
        margin: 0;
    }

    .system-title h1 {
        font-size: 22px;
    }

    .login-features {
        flex-direction: column;
        gap: 15px;
    }

    .feature-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .feature-item i {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .security-certifications {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .cert-item {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .signinpanel {
        width: 95% !important;
        margin: 5% auto 0 !important;
    }

    .gov-header {
        padding: 15px;
    }

    .system-title h1 {
        font-size: 18px;
    }

    .system-title .subtitle {
        font-size: 12px;
    }

    .input-wrapper .form-control {
        height: 45px !important;
        font-size: 14px;
    }

    .btn-login-enhanced {
        height: 50px;
        font-size: 15px;
    }
}

/* ===== 加载状态动画 ===== */
.btn-login-enhanced.loading .btn-text {
    opacity: 0;
}

.btn-login-enhanced.loading .btn-loading {
    opacity: 1;
}

.btn-login-enhanced.success .btn-text,
.btn-login-enhanced.success .btn-loading {
    opacity: 0;
}

.btn-login-enhanced.success .btn-success-check {
    opacity: 1;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===== 高级视觉效果 ===== */

.signinpanel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    border-radius: 20px;
    z-index: -1;
}


/*
===== 政府头部区域 ===== */



.gov-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    animation: emblemPulse 2s ease-in-out infinite;
}

@keyframes emblemPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
    }
}

.gov-emblem i {
    font-size: 22px;
    color: white;
}

.system-title {
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.system-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.system-title .subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 3px 0 0 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.security-badge {
    display: flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 15px;
    padding: 6px 12px;
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
}

.security-badge i {
    margin-right: 4px;
    font-size: 12px;
}

/* ===== 表单头部 ===== */
.form-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.login-title {
    font-size: 20px;
    color: #333333;
    margin: 0 0 12px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-title i {
    font-size: 22px;
    color: #3b82f6;
}

.security-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.security-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.security-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.security-text {
    font-size: 11px;
    color: #4caf50;
    font-weight: 500;
    margin-left: 4px;
}

/* ===== 增强输入框样式 ===== */
.input-group-enhanced {
    margin-bottom: 18px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    color: #64748b;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.input-wrapper .form-control {
    padding-left: 45px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(148, 163, 184, 0.3) !important;
    border-radius: 10px !important;
    height: 45px !important;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.input-wrapper .form-control:focus {
    border-color: #3b82f6 !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-1px);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.input-wrapper:focus-within .input-border {
    width: 100%;
}

/* ===== 验证码样式 ===== */
.captcha-wrapper {
    position: relative;
    height: 45px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(148, 163, 184, 0.3);
    transition: all 0.3s ease;
}

.captcha-wrapper:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
}

.captcha-refresh {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.imgcode {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.refresh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.captcha-refresh:hover .refresh-overlay {
    opacity: 1;
}

.refresh-overlay i {
    color: white;
    font-size: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== 增强复选框样式 ===== */
.checkbox-custom-enhanced {
    display: flex;
    align-items: center;
    margin: 15px 0;
    position: relative;
}

.checkbox-custom-enhanced input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkbox-custom-enhanced label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #3b82f6;
    border-radius: 5px;
    margin-right: 8px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-custom-enhanced input[type="checkbox"]:checked+label .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.checkbox-custom-enhanced input[type="checkbox"]:checked+label .checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* ===== 增强登录按钮 ===== */
.btn-login-enhanced {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
}

.btn-login-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-login-enhanced:active {
    transform: translateY(-1px);
}

.btn-login-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login-enhanced:hover::before {
    left: 100%;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-success-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-success-check i {
    font-size: 18px;
    color: white;
}

/* ===== 登录功能特性 ===== */
.login-features {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    color: #3b82f6;
    transform: translateY(-1px);
}

.feature-item i {
    font-size: 16px;
    margin-bottom: 4px;
    color: #3b82f6;
}



@media screen and (max-width: 480px) {
    .signinpanel {
        width: 95% !important;
        margin: 2% auto 0 !important;
    }

    .gov-header {
        padding: 10px 15px;
    }

    .system-title h1 {
        font-size: 16px;
    }

    .input-wrapper .form-control {
        height: 42px !important;
        font-size: 14px;
    }

    .btn-login-enhanced {
        height: 45px;
        font-size: 14px;
    }
}

/* ===== 加载状态动画 ===== */
.btn-login-enhanced.loading .btn-text {
    opacity: 0;
}

.btn-login-enhanced.loading .btn-loading {
    opacity: 1;
}

.btn-login-enhanced.success .btn-text,
.btn-login-enhanced.success .btn-loading {
    opacity: 0;
}

.btn-login-enhanced.success .btn-success-check {
    opacity: 1;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}




/*
 ===== 科技背景动画效果 ===== */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 80%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.particle:nth-child(6) {
    left: 90%;
    animation-delay: 5s;
    animation-duration: 16s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    height: 1px;
}

.line-1 {
    top: 20%;
    width: 300px;
    left: -300px;
    animation: lineMove1 8s infinite;
}

.line-2 {
    top: 60%;
    width: 200px;
    right: -200px;
    animation: lineMove2 10s infinite;
}

.line-3 {
    top: 80%;
    width: 400px;
    left: -400px;
    animation: lineMove3 12s infinite;
}

@keyframes lineMove1 {
    0% {
        left: -300px;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -300px;
    }
}

@keyframes lineMove2 {
    0% {
        right: -200px;
    }

    50% {
        right: 100%;
    }

    100% {
        right: -200px;
    }
}

@keyframes lineMove3 {
    0% {
        left: -400px;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -400px;
    }
}