* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2980b9, #2c3e50);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 550px;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 25px;
    text-align: center;
}

.card-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h1 i {
    margin-right: 15px;
    font-size: 32px;
    color: #3498db;
}

/* Tab 样式 */
.tab-container {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
}

.tab i {
    margin-right: 8px;
}

.tab.active {
    color: #2980b9;
    border-bottom-color: #2980b9;
    background: white;
}

.tab-pane {
    display: none;
    padding: 25px;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.input-group label i {
    margin-right: 10px;
    color: #3498db;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.input-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    outline: none;
    background: #fff;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-group button {
    width: 120px;
    padding: 14px 10px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.captcha-group button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn {
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn i {
    margin-right: 12px;
}

.btn-reset-pwd {
    background: linear-gradient(to right, #2980b9, #3498db);
}

.btn-restore {
    background: linear-gradient(to right, #27ae60, #2ecc71);
}

.result {
    margin: 20px 25px 25px 25px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #27ae60;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #e74c3c;
}

.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #3498db;
}

.info {
    background-color: #fff8e1;
    color: #5d4037;
    border-left: 5px solid #ffc107;
}

.result h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.result h3 i {
    margin-right: 12px;
}

.result p {
    line-height: 1.6;
    margin: 10px 0;
    font-size: 16px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.05);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.info-item {
    text-align: center;
    flex: 1;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.info-value {
    font-weight: 700;
    color: #495057;
    font-size: 16px;
    margin-top: 5px;
}

.footer {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 微信支付二维码弹窗样式 ===== */
.wxpay-modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.wxpay-modal {
    background: #fff;
    border-radius: 16px;
    width: 360px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.wxpay-modal-header {
    background: linear-gradient(to right, #07c160, #06ad56);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wxpay-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wxpay-modal-header h3 i {
    font-size: 22px;
}

.wxpay-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wxpay-modal-close:hover {
    opacity: 1;
}

.wxpay-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.wxpay-qrcode {
    width: 250px;
    height: 250px;
    margin: 0 auto 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.wxpay-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wxpay-tip {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 8px 0;
}

.wxpay-order {
    font-size: 12px;
    color: #999;
    margin: 8px 0;
    word-break: break-all;
}

.wxpay-status {
    font-size: 14px;
    color: #07c160;
    margin: 10px 0;
}

.wxpay-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.wxpay-modal-footer .btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    display: inline-block;
    box-shadow: none;
    margin-top: 0;
}

.wxpay-modal-footer .btn-cancel:hover {
    background: #e0e0e0;
    transform: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .card-header h1 {
        font-size: 24px;
    }
    
    .captcha-group {
        flex-direction: column;
    }
    
    .captcha-group button {
        width: 100%;
    }
    
    .tab {
        font-size: 14px;
    }
}
