﻿.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    width: 420px;
    max-width: 92%;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { 
        transform: translateY(30px) scale(0.98); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    padding: 8px;
    margin: 0 16px;
    margin-top: 16px;
    background: #f5f7fa;
    border-radius: 10px;
}

.modal-tabs .tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-tabs .tab-btn.active {
    background: #fff;
    color: #0066cc;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.modal-body {
    padding: 24px;
    padding-top: 16px;
}

.form-content {
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
    padding-left: 4px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e5eb;
    border-radius: 12px;
    font-size: 15px;
    background: #fafbfc;
    color: #333;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
    box-shadow: 
        0 0 0 3px rgba(0, 102, 204, 0.08),
        0 2px 8px rgba(0, 102, 204, 0.12);
}

.form-input::placeholder {
    color: #999;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.form-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0066cc;
    cursor: pointer;
}

.forgot-password {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
    background: linear-gradient(135deg, #0066cc 0%, #8ec7eb 100%);
}

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

.verify-code-group {
    display: flex;
    gap: 10px;
}

.verify-input {
    flex: 1;
}

.btn-verify-code {
    flex-shrink: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
}

.btn-verify-code:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.4);
}

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

.form-back {
    text-align: center;
    margin-top: 16px;
}

.form-back a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
}

.form-back a:hover {
    text-decoration: underline;
}

.form-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
    background: linear-gradient(90deg, #ddd, transparent);
}

.form-divider span {
    display: inline-block;
    padding: 0 16px;
    color: #999;
    font-size: 12px;
    background: #fff;
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 16px;
}

.btn-qq-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #12b7f5 0%, #0d8bd9 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(18, 183, 245, 0.35);
}

.btn-qq-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(18, 183, 245, 0.45);
}

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

.qq-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.qq-text {
    font-size: 14px;
    font-weight: 500;
}

.invite-code-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.invite-input {
    flex: 1;
}

.btn-buy-invite {
    flex-shrink: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
}

.btn-buy-invite:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.4);
}

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

.invite-modal-container {
    background: #fff;
    border-radius: 12px;
    width: 360px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.invite-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #4f4235, #2e271e);
}

.invite-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.invite-modal-body {
    padding: 20px 24px;
}

.invite-notice {
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    font-size: 14px;
    color: #7c755e;
    line-height: 1.6;
    text-align: center;
}
.invite-notice b{color: #ff6600;}

.invite-price {
    margin-bottom: 14px;
    text-align: center;
}

.price-label {
    font-size: 16px;
    color: #666;
}

.price-value {
    font-size: 28px;
    font-weight: bold;
    color: #ff6600;
}

.contact-note {
    text-align: center;
    color: #ff6600;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.invite-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-label {
    font-size: 14px;
    color: #666;
}

.contact-qq {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.btn-copy-qq {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #12b7f5 0%, #0d8bd9 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(18, 183, 245, 0.3);
}

.btn-copy-qq:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(18, 183, 245, 0.4);
    background: linear-gradient(135deg, #49cfff 0%, #8ec7eb 100%);
}

.invite-qq-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #12b7f5 0%, #0d8bd9 100%);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(18, 183, 245, 0.35);
}

.invite-qq-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(18, 183, 245, 0.45);
    background: linear-gradient(135deg, #49cfff 0%, #8ec7eb 100%);
}

.qrcode-section {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    border-radius: 12px;
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qrcode-box {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-width: 6px;
    border-style: solid;
}

.qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qrcode-wechat {
    border-color: #07c160;
}

.qrcode-alipay {
    border-color: #1677ff;
}

.qrcode-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.pay-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.invite-qq-link .qq-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}