button, a, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.btn, .btn:focus, .btn:active, .btn:hover {
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.main-container {
    position: relative;
    right: 50px;
}

.login-container {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.logged-container {
    display: none;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
}

.btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    font-size: 11px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    width: 75px;
    height: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.login-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.2);
}

.register-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.register-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(231, 76, 60, 0.2);
}

.member-center-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.member-center-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.btn i {
    font-size: 11px !important;
    width: 11px;
    height: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn span {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(155, 89, 182, 0.2);
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 75px;
}

.user-info i {
    font-size: 12px;
}

.user-name {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #3498db;
    width: 16px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f9f9f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.form-control-icon {
    position: absolute;
    left: 15px;
    top: 39px;
    color: #777;
}

.verify-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-group input {
    flex: 1;
    padding-left: 40px;
    max-width: 140px;
}

.verify-img {
    width: 120px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    object-fit: cover;
}

.verify-img:hover {
    transform: scale(1.05);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    display: none;
}

.message.success {
    background-color: #e7f7ed;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.qq-login {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.qq-login p {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

.qq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #12b7f5;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.qq-btn:hover {
    background-color: #0f9bd7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(18, 183, 245, 0.3);
}

@media (max-width: 768px) {
    .logged-container {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    .user-info {
        order: 1;
    }
    .member-center-btn, .logout-btn {
        order: 2;
    }
}

@media (max-width: 480px) {
    body {
        justify-content: center;
        padding-right: 20px;
    }
    .main-container {
        right: 0;
    }
    .login-container, .logged-container {
        justify-content: center;
    }
    .modal-content {
        width: 95%;
    }
    .verify-group {
        flex-direction: column;
    }
    .verify-img {
        align-self: flex-start;
    }
    .logged-container {
        align-items: center;
    }
    .btn {
        width: 65px;
        height: 28px;
        font-size: 10px;
        border-radius: 12px;
    }
    .btn i {
        font-size: 10px !important;
        width: 10px;
        height: 10px;
    }
    .user-info {
        height: 28px;
        font-size: 10px;
        padding: 0 10px;
        min-width: 65px;
    }
}

.loginjs5-header { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.loginjs5-header a { text-decoration: none; }
.loginjs5-btn { height: 28px; padding: 0 16px; border: none; border-radius: 14px; cursor: pointer; font-size: 12px; font-weight: 500; line-height: 28px; transition: all 0.25s; display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.loginjs5-btn::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.1) 100%); opacity: 0; transition: opacity 0.25s; }
.loginjs5-btn:hover::before { opacity: 1; }
.loginjs5-login-btn { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: #fff; box-shadow: 0 2px 6px rgba(52,152,219,0.3); }
.loginjs5-login-btn:hover { box-shadow: 0 4px 10px rgba(52,152,219,0.4); transform: translateY(-1px); }
.loginjs5-login-btn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(52,152,219,0.2); }
.loginjs5-register-btn { background: #fff; color: #3498db; border: 1px solid #3498db; box-shadow: 0 2px 6px rgba(52,152,219,0.15); }
.loginjs5-register-btn:hover { background: #f0f7ff; box-shadow: 0 4px 10px rgba(52,152,219,0.25); transform: translateY(-1px); }
.loginjs5-register-btn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(52,152,219,0.1); }
.loginjs5-logged { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12px; color: #333; }
.loginjs5-logged b { font-weight: 600; color: #3498db; }
.loginjs5-logged-btn { text-decoration: none; padding: 4px 12px; border-radius: 10px; font-size: 11px; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; line-height: 1.4; }
.loginjs5-logged-cp { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: #fff; box-shadow: 0 1px 4px rgba(52,152,219,0.25); }
.loginjs5-logged-cp:hover { transform: translateY(-0.5px); box-shadow: 0 2px 6px rgba(52,152,219,0.35); }
.loginjs5-logged-logout { background: transparent; color: #666; border: 1px solid #ddd; }
.loginjs5-logged-logout:hover { color: #e74c3c; border-color: #e74c3c; background: #fef5f5; }
.loginjs5-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; display: none; opacity: 0; transition: opacity 0.3s; }
.loginjs5-overlay.active { display: block; opacity: 1; }
.loginjs5-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background: #fff; border-radius: 12px; width: 340px; z-index: 10000; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: none; opacity: 0; transition: all 0.3s; overflow: hidden; }
.loginjs5-modal.show { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loginjs5-modal-header { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.loginjs5-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.loginjs5-modal-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: rgba(255,255,255,0.8); cursor: pointer; text-decoration: none; border-radius: 50%; transition: all 0.25s; }
.loginjs5-modal-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.loginjs5-modal-body { padding: 18px 20px 20px; }
.loginjs5-form-group { margin-bottom: 12px; display: flex; align-items: center; }
.loginjs5-form-label { font-size: 13px; color: #555; font-weight: 500; width: 60px; flex-shrink: 0; text-align: right; padding-right: 10px; white-space: nowrap; }
.loginjs5-password-label { letter-spacing: 6px; }
.loginjs5-form-input { width: 100%; max-width: 220px; height: 36px; padding: 0 12px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none; transition: all 0.25s; background: #fafafa; box-sizing: border-box; }
.loginjs5-password-wrap { position: relative; flex: 1; max-width: 220px; }
.loginjs5-password-wrap .loginjs5-form-input { padding-right: 38px; width: 100%; }
.loginjs5-eye-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 16px; color: #999; cursor: pointer; transition: color 0.25s; z-index: 1; }
.loginjs5-eye-toggle:hover { color: #3498db; }
.loginjs5-form-input:hover { border-color: #ccc; background: #fff; }
.loginjs5-form-input:focus { border-color: #3498db; box-shadow: 0 0 0 3px rgba(52,152,219,0.1); background: #fff; }
.loginjs5-form-input::placeholder { color: #bbb; }
.loginjs5-vcode-row { display: flex; gap: 8px; align-items: center; flex: 1; max-width: 220px; }
.loginjs5-vcode-row .loginjs5-vcode-input { flex: 1; max-width: 90px; min-width: 70px; height: 36px; }
.loginjs5-vcode-img { width: 100px; height: 36px; border: 1.5px solid #e0e0e0; border-radius: 8px; cursor: pointer; display: inline-block; vertical-align: middle; object-fit: cover; flex-shrink: 0; }
#loginjs5-vcode { display: flex; align-items: center; justify-content: center; min-width: 100px; flex-shrink: 0; }
.loginjs5-form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.loginjs5-form-options label { display: flex; align-items: center; cursor: pointer; font-size: 12px; color: #666; font-weight: normal; position: relative; padding-left: 22px; }
.loginjs5-form-options label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 1.5px solid #ddd; border-radius: 3px; transition: all 0.25s; }
.loginjs5-form-options input[type="checkbox"] { display: none; }
.loginjs5-form-options input[type="checkbox"]:checked + label::before { background: #3498db; border-color: #3498db; }
.loginjs5-form-options input[type="checkbox"]:checked + label::after { content: "✓"; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 10px; font-weight: 700; }
.loginjs5-form-options a { font-size: 12px; color: #3498db; text-decoration: none; }
.loginjs5-form-options a:hover { text-decoration: underline; }
.loginjs5-form-btn { width: 70%; height: 42px; background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 3px 10px rgba(52,152,219,0.3); display: block; margin: 0 auto; }
.loginjs5-form-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(52,152,219,0.4); }
.loginjs5-form-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(52,152,219,0.25); }
.loginjs5-links { text-align: center; margin-top: 14px; font-size: 12px; color: #999; }
.loginjs5-links a { color: #3498db; text-decoration: none; font-weight: 500; }
.loginjs5-links a:hover { text-decoration: underline; }
