@charset "UTF-8";
/* 全局重置 - 修复手机端显示问题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
}
html, body {
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* 修复手机端高度问题 */
}
html {
    height: -webkit-fill-available;
}
/* 登录容器 - 修复手机显示不全 */
.login-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding: 70px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Logo区域 - 安全锁 */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}
.security-logo {
    width: 100px;
    height: 100px;
    background-color: #e8f7ef;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-title {
    font-size: 32px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.app-subtitle {
    font-size: 16px;
    color: #888888;
}
/* 错误提示 */
.error-tip {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}
/* 表单区域 */
.login-form {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.input-wrapper {
    position: relative;
    margin-bottom: 22px;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
}
.input-wrapper input {
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    color: #333;
    padding-right: 50px;
}
.input-wrapper input::placeholder {
    color: #b2b2b2;
}
.input-wrapper:focus-within {
    border-bottom-color: #07C160;
}
/* 眼睛图标 - 用SVG确保显示正确 */
.toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.eye-svg {
    transition: opacity 0.2s;
}
.eye-svg.eye-closed {
    opacity: 0.7;
}
.eye-svg.eye-open path:first-child {
    opacity: 1;
}
/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #09bb07 0%, #07C160 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.25);
}
.login-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}
.login-btn:disabled {
    background: #9be3b8;
    cursor: not-allowed;
    box-shadow: none;
}
/* 底部链接：联系站长 + 密码提示 */
.bottom-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}
.link-item {
    color: #07C160;
    text-decoration: none;
    padding: 0 12px;
    cursor: pointer;
}
.link-item:active {
    opacity: 0.7;
}
.link-divider {
    color: #ddd;
}
/* 底部提示 - 往上提，减少间距 */
.bottom-tip {
    margin-top: 32px;
    font-size: 13px;
    color: #b0b0b0;
    text-align: center;
}
/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
}
.modal-content {
    width: 100%;
    max-width: 320px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}
.modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.modal-close:active {
    color: #666;
}
.modal-body {
    padding: 20px;
}
.contact-item {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.contact-item:last-child {
    margin-bottom: 0;
}
.contact-icon {
    margin-right: 8px;
    font-style: normal;
}
.contact-label {
    color: #999;
    margin-right: 4px;
}
.contact-tip {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
    font-size: 13px;
    color: #888;
}
.hint-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.hint-item .default-pwd {
    color: #07C160;
    font-size: 16px;
    font-family: monospace;
}
.hint-text {
    font-size: 13px;
    color: #888;
    padding-left: 4px;
}
.modal-footer {
    padding: 0 20px 20px;
}
.modal-btn {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 6px;
    background-color: #07C160;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.modal-btn:active {
    opacity: 0.8;
}

/* ==================== 响应式适配 ==================== */
/* 手机端适配（媒体查询兜底） */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 60px 30px 30px;
    }
    .security-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    .security-logo svg {
        width: 60px;
        height: 60px;
    }
    .app-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .app-subtitle {
        font-size: 15px;
    }
    .logo-section {
        margin-bottom: 40px;
    }
    .input-wrapper input {
        height: 48px;
        font-size: 16px;
    }
    .login-btn {
        height: 46px;
        font-size: 16px;
    }
    .bottom-tip {
        margin-top: 28px;
    }
}
/* 小屏手机适配 */
@media screen and (max-width: 375px) {
    .login-container {
        padding: 50px 24px 24px;
    }
    .app-title {
        font-size: 26px;
    }
    .security-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 18px;
    }
    .security-logo svg {
        width: 54px;
        height: 54px;
    }
    .logo-section {
        margin-bottom: 35px;
    }
}
/* 超小屏手机适配 */
@media screen and (max-width: 320px) {
    .login-container {
        padding: 40px 20px 20px;
    }
    .bottom-links {
        font-size: 13px;
    }
    .link-item {
        padding: 0 8px;
    }
}
/* 鸿蒙系统/国产浏览器特殊兼容 */
@media screen and (max-width: 480px) {
    html {
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
    }
    body {
        min-height: 100vh;
        min-height: -moz-available;
        min-height: -webkit-fill-available;
    }
    .login-container {
        min-height: 100vh;
        min-height: -moz-available;
        min-height: -webkit-fill-available;
    }
}
/* 电脑端适配 */
@media screen and (min-width: 769px) {
    body {
        align-items: center;
        background-color: #f7f7f7;
        padding: 40px 20px;
    }
    .login-container {
        background-color: #ffffff;
        border-radius: 16px;
        min-height: auto;
        padding: 50px 50px 40px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }
    .bottom-tip {
        margin-top: 30px;
    }
}
/* 横屏适配 */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .login-container {
        padding: 30px 40px 20px;
    }
    .logo-section {
        margin-bottom: 25px;
    }
    .security-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    .security-logo svg {
        width: 44px;
        height: 44px;
    }
    .app-title {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .app-subtitle {
        font-size: 14px;
    }
    .input-wrapper {
        margin-bottom: 16px;
    }
    .input-wrapper input {
        height: 44px;
    }
}
