/* ============================================================
   VxSense 首页样式
   ============================================================ */

body {
    display: flex;
    flex-direction: column;  /* 改为垂直排列 */
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #0a0e17;
    font-family: 'Arial', sans-serif;
}

/* ========== 水波纹动画 ========== */
.ripple {
    position: relative;
    width: 45vw;
    height: 45vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10%;
    height: 10%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2.5s infinite ease-out;
    z-index: 0;
}

@keyframes ripple {
    0% {
        width: 10%;
        height: 10%;
        opacity: 0.9;
    }
    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
    }
}

/* ========== 文字容器 ========== */
.text-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.center-text {
    color: #fff;
    font-size: 4vw;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(14, 252, 255, 0.6);
    margin: 0;
    line-height: 1.2;
}

.sub-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3vw;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-top: 3rem;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(14, 252, 255, 0.3);
    background: linear-gradient(135deg, #a0e9ff, #0efcff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 100%;
}

/* ========== 页脚版权 ========== */
.footer-copyright {
    position: absolute;
    bottom: 2vh;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 15;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.footer-copyright a {
    color: rgba(14, 252, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-copyright a:hover {
    color: #0efcff;
    text-decoration: underline;
}

/* ========== 导航栏 ========== */
.navbar-custom {
    background-color: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 0px solid rgba(14, 252, 255, 0.2);
}

.navbar-brand i {
    transition: transform 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(15deg);
}

/* ========== 语言切换按钮 ========== */
.lang-switch {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(14, 252, 255, 0.3);
    transition: all 0.3s;
    font-size: 0.85rem;
    background: transparent;
    margin-left: 10px;
}

.lang-switch:hover {
    border-color: #0efcff;
    color: #fff;
    background: rgba(14, 252, 255, 0.1);
}

.lang-switch .active-lang {
    color: #0efcff;
    font-weight: 600;
}

/* ========== 通用模态框覆盖层 ========== */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

/* ========== 微信弹窗 ========== */
.custom-modal-dialog {
    width: 300px;
    height: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(14, 252, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-image-container {
    width: 100%;
    height: 340px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(14, 252, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.modal-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #e9ecef;
}

.modal-text-bottom {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    color: #0a0e17;
    letter-spacing: 0.08em;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.modal-text-bottom i {
    margin-right: 6px;
    color: #09bb07;
    font-size: 1.2rem;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ========== 登录弹窗 ========== */
.login-modal-dialog {
    width: 300px;
    height: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(14, 252, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    padding: 25px 20px;
    box-sizing: border-box;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a0e17;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 0.05em;
}

.input-group-custom {
    margin-bottom: 20px;
    width: 100%;
}

.input-group-custom label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.input-group-custom input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #f8fafc;
}

.input-group-custom input:focus {
    border-color: #0efcff;
    box-shadow: 0 0 0 3px rgba(14, 252, 255, 0.2);
    background: #ffffff;
}

.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0a0e17, #1a2332);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(14, 252, 255, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #1a2332, #0a0e17);
    box-shadow: 0 6px 16px rgba(14, 252, 255, 0.25);
    border-color: #0efcff;
    color: #fff;
}

.form-footer-text {
    text-align: center;
    margin-top: 18px;
    font-size: 0.7rem;
    color: #718096;
}

/* ========== 加载动画 ========== */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0efcff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .ripple {
        width: 70vw;
        height: 70vw;
    }
    .center-text {
        font-size: 8vw;
    }
    .sub-text {
        font-size: 2.5vw;
        letter-spacing: 0.2em;
    }
    .custom-modal-dialog,
    .login-modal-dialog {
        width: 280px;
        height: 380px;
    }
    .lang-switch {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}