﻿/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 变量定义 - 便于主题定制和维护 */
:root {
    --primary-color: #060688;
    --secondary-color: #DBDFE2;
    --text-color: #000000;
    --text-light: #666666;
    --white: #ffffff;
    --error-color: #dc3545;
    --border-color: #a49485;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* 全局样式 */
body {
    min-height: 100vh;
    width: 100%;
    background-color: var(--white);
    font-family: Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 登录页面特定样式 */
.login-page {
    background-color: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 表单控件样式 */
.form-control {
    height: 50px;
    font-size: 16px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(6, 6, 136, 0.25);
}

.form-control-feedback {
    height: 50px;
    line-height: 50px;
}

/* 按钮样式 */
.btn-vistra {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color var(--transition-speed), background-color var(--transition-speed), border-color var(--transition-speed);
    cursor: pointer;
}

.btn-vistra:hover,
.btn-vistra:focus {
    color: var(--white);
    background-color: #050570;
    border-color: #040463;
    text-decoration: none;
}

.btn-vistra:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(6, 6, 136, 0.5);
}

/* 头部样式 */
.header {
    width: 100%;
    height: 90px;
    z-index: 5;
    background-color: var(--white);
    padding: 0;
    position: relative;
    text-align: left;
    box-shadow: 0 0.125rem 0.125rem 0 rgba(85, 107, 130, 0.1), inset 0 -0.0625rem 0 0 rgba(85, 107, 130, 0.2);
}

.header_context {
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 650px;
    margin: auto;
    padding: 20px 20px 10px 38px;
}

/* 页面内部样式 */
#page-inner {
    position: fixed;
    top: 78px;
    z-index: 5;
    width: 100%;
    background-color: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

/* 内容区域样式 */
.context {
    max-width: 1200px;
    width: 100%;
    min-height: calc(100vh - 195px); /* 减去头部和底部高度 */
    margin: 0 auto;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* 左侧内容区域 */
.context_left {
    flex: 1;
    min-width: 300px;
    height: 100%;
    margin-right: 5px;
    background-color: var(--white);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.context_left_image {
    width: 100%;
    max-width: 500px;
    height: auto;
    padding: 20px;
}

/* 登录框样式 */
.login-box {
    flex: 1;
    max-width: 500px;
    min-width: 350px;
    font-size: 16px;
    margin: 20px auto;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 2rem;
}

.login-logo {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* 页脚样式 */
.footer {
    height: 100px;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer_comtext {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5px;
}

.footer_comtext ul {
    height: 50px;
    font-size: 12px;
    font-family: Arial;
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer_comtext ul li {
    margin: 10px;
}

.footer_comtext ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed);
}

.footer_comtext ul li a:hover {
    color: var(--primary-color);
}

/* 错误提示样式 */
.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
}

/* 加载中样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 动画效果 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 10px 0;
    }
    
    .header_context {
        padding: 10px 20px;
        justify-content: center;
    }
    
    .context {
        flex-direction: column;
        padding: 20px;
    }
    
    .context_left {
        margin-right: 0;
        margin-bottom: 20px;
        min-height: 200px;
    }
    
    .login-box {
        width: 100%;
        max-width: none;
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    .footer {
        height: auto;
        padding: 20px 0;
    }
    
    .footer_comtext ul {
        height: auto;
    }
    
    .footer_comtext ul li {
        margin: 5px 10px;
    }
}

@media (max-width: 576px) {
    .login-box {
        padding: 1.5rem;
        min-width: auto;
    }
    
    .form-control {
        height: 45px;
        font-size: 14px;
    }
    
    .btn-vistra {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}