
/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
}

/* ===== 无障碍标签（视觉隐藏） ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 页面背景 ===== */
body {
    background: url(../jiaoshiimg/bg04.jpg) no-repeat center center fixed;
    height: auto;
    transform-origin: center top 0px;
    background-size: cover;
    background-position: center center;
}

/* ===== 主容器（花边装饰） ===== */
.main {
    height: auto;
    background-size: 100% 100%;
    margin: auto;
    margin-top: 10%;
    background-image: url(../jiaoshiimg/huabian.png);
    background-repeat: no-repeat;
    background-size: 73% 100%;
    background-position: 50% 40%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 中心区域（保留原有面板样式） ===== */
.main .center {
    width: 35%;
    height: 32em;
    padding: 5.5% 0% 0% 0%;
    background-image: url(../jiaoshiimg/center.png);
    background-size: 170% 180%;
    background-position: 53% 49%;
    opacity: 1;
    margin: auto;
    font-size: 14px;
    color: #cccccc;
}

/* ===== 输入框（科技感增强） ===== */
input {
    width: 45%;
    height: 3em;
    background-color: rgba(224, 227, 232, 0.11);
    margin-left: 23%;
    border-radius: 5px;
    opacity: 1;
    outline-style: none;
    border: 1px solid rgba(239, 239, 239, 0.15);
    font-size: 1em;
    color: #bdc0b8;
    font-family: "微软雅黑";
    padding-left: 40px;
    margin-top: 4%;
    transition: all 0.3s ease;
}
input:focus {
    background-color: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.15), 0 0 20px rgba(0, 210, 255, 0.25);
    opacity: 1;
    color: #e0e0e0;
}
input::placeholder {
    color: rgba(189, 192, 184, 0.5);
    transition: color 0.3s;
}
input:focus::placeholder {
    color: rgba(0, 210, 255, 0.4);
}

/* ===== 验证码行容器（与密码框同宽同位置对齐） ===== */
.captcha-row {
    width: 45%;
    margin-left: 23%;
    margin-top: 4%;
    display: flex;
    align-items: center;
    gap: 1%;
}
/* 验证码输入框（flex内自动填充剩余空间） */
#surePwd {
    flex: 1;
    margin: 0;
    width: auto;
}
/* 验证码图片（固定宽度，不缩放） */
.captcha-img {
    height: 3em;
    width: 120px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid rgba(239, 239, 239, 0.15);
    object-fit: cover;
    transition: all 0.3s ease;
}
.captcha-img:hover {
    border-color: rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    transform: scale(1.02);
}

/* ===== 提交按钮（科技感渐变+流光） ===== */
#submit {
    width: 51.2%;
    height: 3em;
    font-size: 1em;
    background: linear-gradient(135deg, #00859f 0%, #00b4d8 50%, #00859f 100%);
    background-size: 200% 100%;
    font-weight: bolder;
    font-family: "微软雅黑";
    opacity: 1;
    margin-left: 22.9%;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
#submit:hover {
    background-position: 100% 0;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.5);
    transform: translateY(-1px);
}
#submit:active {
    background: linear-gradient(135deg, #005f70 0%, #00859f 100%);
    top: 1px;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
    transform: translateY(0);
}
/* 按钮流光效果 */
#submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}
#submit:hover::before {
    left: 100%;
}

/* ===== 字体图标（聚焦联动变色） ===== */
.Cone {
    color: #adadad;
    position: absolute;
    margin-left: 8.3%;
    margin-top: 2%;
    height: 50px;
    font-size: 1.35em;
    transition: all 0.3s ease;
    z-index: 2;
}

/* ===== 错误提示（height:0+overflow:visible，文字溢出显示但不占高度，不挤压下方内容） ===== */
.error-tip,
#user_pass,
#pwd_pass,
#surePwd_pass {
    display: none;
    font-size: 13px;
    width: 45%;
    height: 0;
    overflow: visible;
    text-align: center;
    line-height: 1.8em;
    margin-left: 23%;
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

/* ===== 响应式：1366px ===== */
@media screen and (max-width: 1366px) {
    .main .center {
        width: 44%;
        height: 34em;
        padding: 6% 0% 0% 0%;
        background-image: url(../jiaoshiimg/center.png);
        background-size: 170% 150%;
        background-position: 53% 56%;
        opacity: 1;
        margin: auto;
        font-size: 14px;
        color: #cccccc;
    }
    .Cone {
        color: #999999;
        position: absolute;
        margin-left: 10.7%;
        margin-top: 2.5%;
        height: 50px;
        font-size: 1.2em;
    }
    input {
        width: 43%;
        height: 2.7em;
        background-color: rgba(224, 227, 232, 0.11);
        margin-left: 23.6%;
        border-radius: 5px;
        opacity: 1;
        outline-style: none;
        border: 1px solid rgba(239, 239, 239, 0.15);
        font-size: 1em;
        color: #bdc0b8;
        font-family: "微软雅黑";
        padding-left: 37px;
        margin-top: 4%;
    }
    .captcha-row {
        width: 43%;
        margin-left: 23.6%;
    }
    .error-tip,
    #user_pass,
    #pwd_pass,
    #surePwd_pass {
        width: 43%;
        margin-left: 23.6%;
    }
    #submit {
        width: 49.5%;
        height: 3em;
        font-size: 1em;
        background: linear-gradient(135deg, #00859f 0%, #00b4d8 50%, #00859f 100%);
        background-size: 200% 100%;
        font-weight: bolder;
        font-family: "微软雅黑";
        opacity: 1;
        margin-left: 23.4%;
    }
}

/* ===== 响应式：1280px ===== */
@media screen and (max-width: 1280px) {
    .main {
        height: auto;
        background-size: 100% 100%;
        margin: auto;
        margin-top: 15%;
    }
    .main .center {
        width: 50%;
        height: 32em;
        padding: 6% 0% 0% 0%;
        background-image: url(../jiaoshiimg/center.png);
        background-size: 170% 150%;
        background-position: 53% 56%;
        opacity: 1;
        margin: auto;
        font-size: 14px;
        color: #cccccc;
    }
    #submit {
        width: 49%;
        height: 3em;
        font-size: 1em;
        background: linear-gradient(135deg, #00859f 0%, #00b4d8 50%, #00859f 100%);
        background-size: 200% 100%;
        font-weight: bolder;
        font-family: "微软雅黑";
        opacity: 1;
        margin-left: 23.6%;
    }
    input {
        width: 43%;
        height: 3em;
        background-color: rgba(224, 227, 232, 0.11);
        margin-left: 23.6%;
        border-radius: 5px;
        opacity: 1;
        outline-style: none;
        border: 1px solid rgba(239, 239, 239, 0.15);
        font-size: 1em;
        color: #bdc0b8;
        font-family: "微软雅黑";
        padding-left: 37px;
        margin-top: 4%;
    }
    .captcha-row {
        width: 43%;
        margin-left: 23.6%;
    }
    .Cone {
        color: #999999;
        position: absolute;
        margin-left: 12.1%;
        margin-top: 3%;
        height: 50px;
        font-size: 1.2em;
    }
    .error-tip,
    #user_pass,
    #pwd_pass,
    #surePwd_pass {
        width: 43%;
        margin-left: 23.6%;
    }
}

/* ===== 响应式：980px ===== */
@media screen and (max-width: 980px) {
    .main {
        height: auto;
        background-size: 100% 100%;
        margin: auto;
        margin-top: 20%;
    }
    .main .center {
        width: 50%;
        height: 32em;
        padding: 7% 0% 0% 0%;
        background-image: url(../jiaoshiimg/center.png);
        background-size: 180% 160%;
        background-position: 53% 56%;
        opacity: 1;
        margin: auto;
        font-size: 14px;
        color: #cccccc;
    }
    input {
        width: 40%;
        height: 2.7em;
        background-color: rgba(224, 227, 232, 0.11);
        margin-left: 23.8%;
        border-radius: 5px;
        opacity: 1;
        outline-style: none;
        border: 1px solid rgba(239, 239, 239, 0.15);
        font-size: 1em;
        color: #bdc0b8;
        font-family: "微软雅黑";
        padding-left: 37px;
        margin-top: 5.5%;
    }
    .captcha-row {
        width: 40%;
        margin-left: 23.8%;
    }
    #submit {
        width: 48.4%;
        height: 3em;
        font-size: 1em;
        background: linear-gradient(135deg, #00859f 0%, #00b4d8 50%, #00859f 100%);
        background-size: 200% 100%;
        font-weight: bolder;
        font-family: "微软雅黑";
        opacity: 1;
        margin-left: 23.2%;
    }
    .Cone {
        color: #999999;
        position: absolute;
        margin-left: 12.4%;
        margin-top: 4%;
        height: 50px;
        font-size: 1.1em;
    }
    .error-tip,
    #user_pass,
    #pwd_pass,
    #surePwd_pass {
        width: 40%;
        margin-left: 23.8%;
    }
}

/* ===== 响应式：800px ===== */
@media screen and (max-width: 800px) {
    .main {
        height: auto;
        background-size: 100% 100%;
        margin: auto;
        margin-top: 25%;
    }
    .main .center {
        width: 55%;
        height: 30em;
        padding: 7% 0% 0% 0%;
        background-image: url(../jiaoshiimg/center.png);
        background-size: 180% 160%;
        background-position: 53% 56%;
        opacity: 1;
        margin-top: 20%;
        font-size: 14px;
        color: #cccccc;
    }
    input {
        width: 40%;
        height: 2.5em;
        background-color: rgba(224, 227, 232, 0.11);
        margin-left: 23.8%;
        border-radius: 5px;
        opacity: 1;
        outline-style: none;
        border: 1px solid rgba(239, 239, 239, 0.15);
        font-size: 1em;
        color: #bdc0b8;
        font-family: "微软雅黑";
        padding-left: 37px;
        margin-top: 5.7%;
    }
    .captcha-row {
        width: 40%;
        margin-left: 23.8%;
    }
    .error-tip,
    #user_pass,
    #pwd_pass,
    #surePwd_pass {
        width: 40%;
        margin-left: 23.8%;
    }
    .Cone {
        color: #999999;
        position: absolute;
        margin-left: 13.4%;
        margin-top: 4%;
        height: 50px;
        font-size: 1.1em;
    }
    #submit {
        width: 49%;
        height: 3em;
        font-size: 1em;
        background: linear-gradient(135deg, #00859f 0%, #00b4d8 50%, #00859f 100%);
        background-size: 200% 100%;
        font-weight: bolder;
        font-family: "微软雅黑";
        opacity: 1;
        margin-left: 23.4%;
    }
}

/* ===== 响应式：700px ===== */
@media screen and (max-width: 700px) {
    .main {
        height: auto;
        background-size: 100% 100%;
        margin: auto;
        margin-top: 29%;
    }
    .main .center {
        width: 60%;
        height: 30em;
        padding: 7% 0% 0% 0%;
        background-image: url(../jiaoshiimg/center.png);
        background-size: 180% 160%;
        background-position: 53% 56%;
        opacity: 1;
        margin-top: 20%;
        font-size: 14px;
        color: #cccccc;
    }
    input {
        width: 45%;
        height: 2.5em;
        background-color: rgba(224, 227, 232, 0.11);
        margin-left: 21.4%;
        border-radius: 5px;
        opacity: 1;
        outline-style: none;
        border: 1px solid rgba(239, 239, 239, 0.15);
        font-size: 1em;
        color: #bdc0b8;
        font-family: "微软雅黑";
        padding-left: 37px;
        margin-top: 5.7%;
    }
    .captcha-row {
        width: 45%;
        margin-left: 21.4%;
    }
    #submit {
        width: 52%;
        height: 2.5em;
        font-size: 1em;
        background: linear-gradient(135deg, #00859f 0%, #00b4d8 50%, #00859f 100%);
        background-size: 200% 100%;
        font-weight: bolder;
        font-family: "微软雅黑";
        opacity: 1;
        margin-left: 23.4%;
    }
    .Cone {
        color: #999999;
        position: absolute;
        margin-left: 13.4%;
        margin-top: 4.8%;
        height: 50px;
        font-size: 1.1em;
    }
    .error-tip,
    #user_pass,
    #pwd_pass,
    #surePwd_pass {
        width: 45%;
        margin-left: 21.4%;
    }
}

/* ===== 响应式：360px ===== */
@media screen and (max-width: 360px) {
    .main {
        height: auto;
        background-size: 100% 100%;
        margin: auto;
        margin-top: 35%;
    }
    .main .center {
        width: 80%;
        height: 26em;
        padding: 19% 0% 0% 0%;
        background-image: url(../jiaoshiimg/center.png);
        background-size: 180% 160%;
        background-position: 53% 56%;
        opacity: 1;
        margin-top: 20%;
        font-size: 14px;
        color: #cccccc;
    }
    input {
        width: 45%;
        height: 2em;
        background-color: rgba(224, 227, 232, 0.11);
        margin-left: 21.4%;
        border-radius: 5px;
        opacity: 1;
        outline-style: none;
        border: 1px solid rgba(239, 239, 239, 0.15);
        font-size: 1em;
        color: #bdc0b8;
        font-family: "微软雅黑";
        padding-left: 37px;
        margin-top: 5.7%;
    }
    .captcha-row {
        width: 45%;
        margin-left: 21.4%;
    }
    .captcha-img {
        width: 90px;
    }
    #submit {
        width: 58%;
        height: 2em;
        font-size: 1em;
        background: linear-gradient(135deg, #00859f 0%, #00b4d8 50%, #00859f 100%);
        background-size: 200% 100%;
        font-weight: bolder;
        font-family: "微软雅黑";
        opacity: 1;
        margin-left: 21.4%;
    }
    .Cone {
        color: #999999;
        position: absolute;
        margin-left: 19%;
        margin-top: 6.8%;
        height: 50px;
        font-size: 1.1em;
    }
    .error-tip,
    #user_pass,
    #pwd_pass,
    #surePwd_pass {
        width: 45%;
        margin-left: 21.4%;
    }
}
