body {
    background-image:
        linear-gradient(rgba(210, 210, 210, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 210, 210, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}


.loading {
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 5;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #666;
    animation: spinner 0.8s linear infinite;
    z-index: 10;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-tabs {
    --x-bg-opacity: 1;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: .25rem;
    gap: .25rem;
    font-weight: 500;
    border-radius: .5rem;
    font-size: .875rem;
    background-color: rgba(var(--x-light-rgb), var(--x-bg-opacity));
}

.button-tabs a {
    padding: .25rem 1.5rem;
    border-radius: .5rem;
    color: var(--x-secondary-color) !important;
}

.button-tabs a.active,
.button-tabs a:hover {
    --x-bg-opacity: 1;
    background-color: rgba(var(--x-white-rgb), var(--x-bg-opacity));
    box-shadow: 0 1px 1px 0 rgba(10, 22, 70, .1), 0 0 1px 0 rgba(10, 22, 70, .06);
}

.fixed-table-toolbar {
    /* display: flex;
    align-items: center; */
    padding: 0 1rem;
    /* overflow-x: auto; */
    /* gap: .5rem; */
}

.bootstrap-table .fixed-table-toolbar .columns-right {
    margin-left: auto;
}

.bootstrap-table .fixed-table-container .table tfoot th .th-inner,
.bootstrap-table .fixed-table-container .table thead th .th-inner {
    font-weight: 600;
    padding: .75rem 1rem;
}

.fixed-table-pagination {
    padding: 0 1rem;
}

/* QQ扫码登录页面样式 */
.login-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape1 {
    width: 300px;
    height: 300px;
    background: rgba(66, 133, 244, 0.3);
    top: -150px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.shape2 {
    width: 250px;
    height: 250px;
    background: rgba(52, 168, 83, 0.3);
    bottom: -100px;
    left: -50px;
    animation: float2 9s ease-in-out infinite;
}

.shape3 {
    width: 200px;
    height: 200px;
    background: rgba(234, 67, 53, 0.3);
    bottom: 20%;
    right: 20%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 10px) rotate(5deg); }
}

.login-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.login-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.btn-back {
    position: absolute;
    top: 15px;
    left: 15px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: #333;
}

.qr-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.qr-box img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.qr-refresh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    color: white;
}

.qr-box:hover .qr-refresh-overlay {
    opacity: 1;
}

.qr-refresh-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.qr-refresh-text {
    font-size: 0.9rem;
}

.qr-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #4285F4, transparent);
    box-shadow: 0 0 8px #4285F4;
    animation: scan 4s linear infinite; /* 从2s改为4s，减慢动画速度 */
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.qr-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #555;
}

.status-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #4285F4;
}

.status-text {
    font-size: 0.9rem;
}

.loading-dots {
    animation: dots 1.5s infinite;
    display: inline-block;
    min-width: 20px;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-qq, .btn-confirm {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-qq {
    background: #12B7F5;
    color: white;
}

.btn-qq:hover {
    background: #0FA5DF;
    transform: translateY(-2px);
}

.btn-confirm {
    background: #34A853;
    color: white;
}

.btn-confirm:hover {
    background: #2D9549;
    transform: translateY(-2px);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-link {
    color: #4285F4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #2B68CA;
    text-decoration: underline;
}

.footer-divider {
    color: #ccc;
    margin: 0 8px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .qr-container {
        width: 180px;
        height: 180px;
    }
    
    .login-card {
        margin: 0 15px;
    }
}

/* 修复动画效果 */
#loginload {
    display: inline-block;
}

/* 确保二维码图片正确显示 */
#qrcodeimg {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

/* 已登录提示样式 */
#login[data-lock="true"] {
    background: rgba(52, 168, 83, 0.1);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 额外动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    animation: fadeIn 0.5s ease-out forwards;
}

@media (min-width: 576px) {
    .announcement-modal-dialog .modal-content {
        min-height: min(680px, calc(100vh - 4rem));
    }

    .announcement-modal-dialog .modal-body {
        min-height: 0;
    }
}
