* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.main-container {
    max-width: 1280px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.left-panel {
    flex: 1;
    min-width: 260px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.right-panel {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}
.logo-icon {
    font-size: 64px;
    margin-bottom: 8px;
}
.system-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.system-subtitle {
    font-size: 15px;
    opacity: 0.85;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
.feature-card {
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 20px 16px;
    backdrop-filter: blur(2px);
    transition: 0.2s;
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-desc {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.tab-header {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 1px solid #eef2f6;
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #6c7a8e;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}
.tab-btn.active {
    color: #2a5298;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2a5298;
    border-radius: 2px;
}
.form-container {
    display: none;
}
.form-container.active {
    display: block;
}
.form-item {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #cfdee9;
    border-radius: 16px;
    background: #fff;
    transition: 0.2s;
    outline: none;
}
.form-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42,82,152,0.1);
}
.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s;
}
.submit-btn:active {
    transform: scale(0.97);
}
.error-tip {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 12px;
    display: none;
    text-align: center;
    background: #fff5f5;
    padding: 8px;
    border-radius: 12px;
}

.mobile-qr-btn-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30,60,114,0.9);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.qr-panel-fixed {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 220px;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 999;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}
.qr-panel-fixed.open {
    display: flex;
}
.qr-canvas {
    width: 160px;
    height: 160px;
    border-radius: 16px;
}
.qr-desc {
    font-size: 12px;
    color: #2d3748;
    text-align: center;
}
.qr-url {
    font-size: 11px;
    color: #2a5298;
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 20px;
    word-break: break-all;
    text-align: center;
}
/* 忘记密码链接样式 */
.forgot-pwd-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #2a5298;
    cursor: pointer;
    text-decoration: underline;
}
/* 右下角固定按钮容器 */
.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}
.action-btn {
    background: rgba(30,60,114,0.9);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.action-btn:hover {
    transform: scale(1.02);
}
#miniprogramBtn {
    background: #1a73e8;
}
/* 自定义模态框样式 */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.custom-modal-content {
    background: white;
    border-radius: 12px;
    width: 280px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.custom-modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1e3c72;
}
.custom-modal-body {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}
.custom-modal-btn {
    background: #2a5298;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.custom-modal-btn:hover {
    background: #1e3c72;
}

/* 小程序二维码模态框样式 */
custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.custom-modal-content {
    background: white;
    border-radius: 16px;
    width: 280px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.custom-modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1e3c72;
}
.custom-modal-body {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}
.custom-modal-btn {
    background: #2a5298;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.custom-modal-btn:hover {
    background: #1e3c72;
}
.qr-img {
    width: 200px;
    height: 200px;
    margin: 10px auto;
    display: block;
}
@media (max-width: 768px) {
    body {
        padding: 0;
        background: white;
    }
    .main-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .left-panel {
        padding: 24px 20px;
        text-align: center;
    }
    .right-panel {
        padding: 32px 24px;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 24px;
    }
    .feature-card {
        padding: 16px 12px;
    }
    .feature-icon {
        font-size: 32px;
    }
    .feature-title {
        font-size: 16px;
    }
    .feature-desc {
        font-size: 12px;
    }
    .system-title {
        font-size: 24px;
    }
    .tab-btn {
        font-size: 18px;
        padding: 12px 0;
    }
    .form-input {
        padding: 14px;
        font-size: 16px;
    }
    .submit-btn {
        padding: 14px;
        font-size: 18px;
    }
}