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

.text-warning {
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: bold;
}



.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

h1 {
    color: #333;
}

h2 {
    color: #333;
}

h3 {
    color: #333;
}

/* 用户信息按钮样式 */
.username-btn {
    background-color: #4f46e5;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.username-btn:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* 下拉箭头基础样式 */
.dropdown-arrow {
    color: white;
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.username-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 用户菜单样式 */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown.hidden {
    display: none;
}

.username-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* VIP标题样式 - 光扫过效果 */

/* 通用光扫过动画 */
@keyframes lightSweep {
    0% {
        background-position: -100% center;
    }
    100% {
        background-position: 100% center;
    }
}

/* VIP等级1标题样式 - 浅金色 */
.user-info-item .level-1 {
    color: #6d6d6d;
    font-weight: bold;
    position: relative;
    display: inline-block;
    /* 光扫过效果 */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.6),
        transparent
    );
    background-size: 200% 100%;
    animation: lightSweep 3s ease-in-out infinite;
    text-shadow: 0 0 2px rgba(212, 175, 55, 0.8);
}

/* VIP等级2标题样式 - 较浅金色 */
.user-info-item .level-2 {
    color: #6d6d6d;
    font-weight: bold;
    position: relative;
    display: inline-block;
    /* 光扫过效果 */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(218, 165, 32, 0.7),
        transparent
    );
    background-size: 200% 100%;
    animation: lightSweep 2.8s ease-in-out infinite;
    text-shadow: 0 0 3px rgba(218, 165, 32, 0.9);
}

/* VIP等级3标题样式 - 中等金色 */
.user-info-item .level-3 {
    color: #6d6d6d;
    font-weight: bold;
    position: relative;
    display: inline-block;
    /* 光扫过效果 */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(184, 134, 11, 0.75),
        transparent
    );
    background-size: 200% 100%;
    animation: lightSweep 2.6s ease-in-out infinite;
    text-shadow: 0 0 3px rgba(184, 134, 11, 0.9);
}

/* VIP等级4标题样式 - 较深金色 */
.user-info-item .level-4 {
    color: #6d6d6d;
    font-weight: bold;
    position: relative;
    display: inline-block;
    /* 光扫过效果 */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(205, 133, 63, 0.8),
        transparent
    );
    background-size: 200% 100%;
    animation: lightSweep 2.4s ease-in-out infinite;
    text-shadow: 0 0 4px rgba(205, 133, 63, 0.9);
}

/* VIP等级5标题样式 - 深金色 */
.user-info-item .level-5 {
    color: #6d6d6d;
    font-weight: bold;
    position: relative;
    display: inline-block;
    /* 光扫过效果 */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(210, 180, 140, 0.85),
        transparent
    );
    background-size: 200% 100%;
    animation: lightSweep 2.2s ease-in-out infinite;
    text-shadow: 0 0 4px rgba(210, 180, 140, 0.9);
}

/* VIP等级6标题样式 - 亮金色 */
.user-info-item .level-6 {
    color: #6d6d6d;
    font-weight: bold;
    position: relative;
    display: inline-block;
    /* 光扫过效果 */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.9),
        transparent
    );
    background-size: 200% 100%;
    animation: lightSweep 2s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.9);
}

/* 超核玩家尊贵样式，VIP等级7+ - 璀璨金色 */
.user-info-item .level-7 {
    /* 璀璨金色文字 */
    color: #fff8dc;
    font-weight: bold;
    text-shadow: 
        0 0 5px rgba(255, 237, 78, 1),
        0 0 10px rgba(255, 215, 0, 0.9),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    /* 文字发光效果 */
    position: relative;
    display: inline-block;
    /* 璀璨金色光扫过效果 */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 237, 78, 0.9),
        rgba(255, 215, 0, 1),
        rgba(255, 237, 78, 0.9),
        transparent
    );
    background-size: 200% 100%;
    animation: lightSweep 1.8s ease-in-out infinite;
    /* 金色边框效果 */
    border: 1px solid rgba(255, 215, 0, 0.9);
    padding: 0 6px;
    border-radius: 6px;
}


.vip-badge.icon {
    position: absolute!important;
    left: -8px;
    top: -8px;
    width: 18px;
    height: 18px;
    background: url(/images/vipicon.png) no-repeat;
    z-index: 1001;
    background-size: 120px 18px;
}

/* VIP等级样式 - 1-6级对应不同的背景图片位置 */
.vip-badge.vip-1 {
    background-position: 0 0;
}

.vip-badge.vip-2 {
    background-position: -20px 0;
}

.vip-badge.vip-3 {
    background-position: -40px 0;
}

.vip-badge.vip-4 {
    background-position: -60px 0;
}

.vip-badge.vip-5 {
    background-position: -80px 0;
}

.vip-badge.vip-6 {
    background-position: -100px 0;
}

.user-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    text-decoration: none;
    display: block;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
}

.user-menu-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 8px 0;
}

.user-info-section {
    padding: 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.user-info-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.user-info-label {
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    margin-right: 5px;
}

.user-info-item span:not(.user-info-label):not(.vip-text-wrap) {
    flex-grow: 1;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* VIP等级文本和图标容器样式 */
.vip-text-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    /* 移除 flex-grow: 1，让容器根据内容自适应宽度 */
    /* flex-grow: 1; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 为绝对定位的徽章留出空间 */
    position: relative;
    padding-left: 24px;
}

/* VIP等级图标样式调整 */
.vip-text-wrap .vip-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

/* VIP等级文本样式 - 长度根据内容自适应 */
.vip-text-wrap .level-1,
.vip-text-wrap .level-2,
.vip-text-wrap .level-3,
.vip-text-wrap .level-4,
.vip-text-wrap .level-5,
.vip-text-wrap .level-6,
.vip-text-wrap .level-7 {
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 确保元素能够根据内容调整宽度 */
    display: inline-block;
    /* 移除固定宽度限制，让文本根据内容自适应 */
    max-width: none;
}

/* 用户信息按钮样式 */
.username-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 250px;
    overflow: hidden;
}

.username-btn span:first-child {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 加载动画样式 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 弹窗样式 */
#cf-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cf-modal {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cf-modal.cf-alert-modal {
    max-width: 480px;
    min-width: 300px;
}

.cf-modal.cf-confirm-modal {
    max-width: 480px;
    min-width: 300px;
}

.cf-modal.cf-form-modal {
    max-width: 640px;
    min-width: 300px;
    max-height: 85vh;
    overflow-y: auto;
}

.cf-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
}

.cf-modal-content {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.7;
    font-size: 16px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-modal-message {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.7;
    font-size: 16px;
    text-align: center;
}

.cf-modal-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cf-modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cf-modal-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf-modal-btn.cf-confirm-btn,
.cf-modal-btn.cf-submit-btn {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.cf-modal-btn.cf-confirm-btn:hover,
.cf-modal-btn.cf-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.cf-modal-btn.cf-cancel-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.cf-modal-btn.cf-cancel-btn:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.cf-modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tooltip 样式 */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    max-width: 250px;
    word-wrap: break-word;
    line-height: 1.4;
}

.tooltip::after {
    content: '';
    position: absolute;
    border-width: 6px;
    border-style: solid;
    border-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.8);
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip.top::after {
    top: auto;
    bottom: -12px;
    border-bottom-color: transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.tooltip.left::after {
    left: auto;
    right: 10px;
    transform: none;
    top: 50%;
    transform: translateY(-50%);
    border-bottom-color: transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
    border-top-color: transparent;
}

.tooltip.right::after {
    left: 10px;
    transform: translateY(-50%);
    border-bottom-color: transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    border-top-color: transparent;
}

/* 禁用按钮样式 */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

button:disabled:hover {
    background-color: inherit;
    color: inherit;
    box-shadow: none;
    transform: none;
}

.cf-modal-form-container {
    margin-bottom: 24px;
}

.cf-modal-form {
    width: 100%;
}

/* 表单样式 */
.cf-modal-form .form-group {
    margin-bottom: 20px;
}

.cf-modal-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cf-modal-form .form-row .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.cf-modal-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.cf-modal-form input,
.cf-modal-form select,
.cf-modal-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.cf-modal-form input:focus,
.cf-modal-form select:focus,
.cf-modal-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.cf-modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* 滚动条样式 */
.cf-modal::-webkit-scrollbar {
    width: 8px;
}

.cf-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cf-modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.cf-modal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 弹窗动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 备案信息容器样式 */
.footer-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
}

/* 备案链接样式统一 */
.footer-content a {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* 备案图标样式 */
.footer-content img {
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
}

/* 备案文本样式 */
.footer-content span,
.footer-content a {
    vertical-align: middle;
    line-height: 1;
}

/* PC端备案信息行内样式 */
footer [style*="text-align: center"] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

footer [style*="text-align: center"] a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

footer [style*="text-align: center"] img {
    margin-right: 5px;
    vertical-align: middle;
}

footer [style*="text-align: center"] span,
footer [style*="text-align: center"] a {
    vertical-align: middle;
    line-height: 1;
}