﻿body { background: #002b4d; font-family: 'Arial','Microsoft Yahei'; }
.header-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}
.header-buttons a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}
.header-buttons a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.header-buttons img {
    width: 20px;
    height: 20px;
}
p { margin: 0; color: #fff; line-height: 30px; text-align: center; font-size: 18px; }
h1 { margin: 0 0 20px 0; color: #fff; text-align: center; font-size: 32px; font-weight: normal; }
.lose-en { font-size: 14px; }
.lose-main { 
    background: url("images/bg.png") 0 0 no-repeat; 
    background-size: 100%; 
    min-height: 800px;
    padding-bottom: 200px; /* 为页脚腾出空间 */
}
.lose-box { 
    width: 900px; 
    min-height: 350px; 
    position: absolute; 
    left: 50%; 
    top: 45%; /* 稍微上移，为页脚腾出空间 */
    margin: -225px 0 0 -450px; 
}

/* 登录和注册页面保持原有宽度 */
.login-page .lose-box,
.register-page .lose-box {
    width: 440px;
    margin-left: -220px;
}
.lose-box > img:first-child { 
    display: block; 
    margin: 0 auto 50px auto; 
    max-width: 100%; 
}
.form-group {
    margin-bottom: 20px;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
}
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-group input {
    flex: 1; /* 恢复为与其他输入框相同的宽度 */
    min-width: 0; /* 允许输入框缩小 */
}
#captcha-image {
    width: 120px; /* 增加图片宽度 */
    height: 42px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: contain; /* 改为 contain 避免裁剪 */
    background-color: rgba(255, 255, 255, 0.1); /* 添加背景色使图片更清晰 */
    flex-shrink: 0; /* 防止图片被压缩 */
}
.submit-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.text-link {
    color: #fff;
    text-decoration: underline;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    display: inline;
}
.text-link:hover {
    color: rgba(255, 255, 255, 0.8);
}
.action-btn {
    width: 218px;
    height: 50px;
    display: block;
    margin: 50px auto 0 auto;
    border: solid 1px #fff;
    border-radius: 3px;
    text-align: center;
    line-height: 50px;
    color: #fff;
    text-decoration: none;
    transition: all ease-out .4s;
}
.action-btn:hover {
    background: #fff;
    color: #004f67;
    border-color: transparent;
}

/* Toast 通知样式 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    pointer-events: none;
}

.toast {
    padding: 15px 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.toast.error {
    background: #dc3545;
    border-left: 4px solid #bd2130;
}

.toast.info {
    background: #17a2b8;
    border-left: 4px solid #117a8b;
}

.toast.warning {
    background: #ffc107;
    color: #212529;
    border-left: 4px solid #d39e00;
}

.toast .close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.toast .close-btn:hover {
    opacity: 1;
}

/* 特性介绍块样式 */
.features-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: nowrap;
}

.feature-box {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-box h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lose-box {
        width: 95%;
        margin-left: -47.5%;
    }
    
    .features-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-box {
        min-width: 100%;
    }
}

/* 页脚样式 */
.site-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

.site-footer .footer-links {
    margin-top: 20px;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 响应式页脚 */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 30px;
    }
    
    .site-footer p {
        font-size: 14px;
    }
    
    .site-footer .footer-links a {
        display: block;
        margin: 5px 0;
    }
    
    .site-footer .footer-links a::before {
        content: "• ";
    }
    
    .site-footer .footer-links a:first-child::before {
        content: "";
    }
}
