* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #f9f9f9;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 480px;
    margin-bottom: 40px;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.logo-container {
    text-align: center;
    margin-bottom: 36px;
}

.logo-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eaeaea;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 36px;
    border: 2px solid #eaeaea;
}

.site-name {
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.site-subtitle {
    font-size: 14px;
    color: #666666;
    font-weight: 400;
}

.exchange-desc {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 20px;
    margin-top: 28px;
    margin-bottom: 0;
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    border: 1px solid #f0f0f0;
}

.form-control {
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #111111;
}

.form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-control::placeholder {
    color: #999999;
}

.btn-primary {
    background-color: #000000;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* ######################################## */
/* ######## 官方QQ群按钮 - 强制修复 ######## */
/* ######################################## */
.qq-group-btn {
    /* 关键：固定定位 */
    position: fixed !important;
    top: 20px !important; /* 距离顶部距离 */
    right: 0 !important; /* 紧贴右侧，0留白 */
    left: auto !important; /* 强制重置 left */
    
    /* 样式 */
    z-index: 99999 !important;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px 0 0 8px !important; /* 左侧圆角，右侧直角 */
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    
    /* 阴影 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* 悬浮动画 */
.qq-group-btn:hover {
    background: #222222 !important;
    transform: translateX(-6px) !important; /* 向左滑出动画 */
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
.btn-outline-primary {
    border: 1px solid #e0e0e0;
    color: #333333;
    border-radius: 16px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #ffffff;
}

.btn-outline-primary:hover {
    background-color: #f8f8f8;
    border-color: #d0d0d0;
    color: #000000;
}

.btn-group-custom {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-group-custom .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #888888;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

.copyright a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.copyright a:hover {
    color: #000000;
    text-decoration: underline;
}

.custom-modal {
    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: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999999;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #000000;
    background-color: #f8f8f8;
}

.modal-body {
    margin-bottom: 24px;
    color: #555555;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    padding: 8px 20px;
    border-radius: 12px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background-color: #222222;
}

@media (max-width: 576px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .logo-img, .logo-placeholder {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    
    .site-name {
        font-size: 22px;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .btn-group-custom .btn {
        font-size: 14px;
        padding: 14px 12px;
    }
}
