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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    height: 100vh;
    padding: 20px 0 40px 0;
    margin: 0;
    font-size: 13px;
    overflow: hidden;
    box-sizing: border-box;
}

.app-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    height: calc(100vh - 60px);
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    min-height: 60px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

.language-switch {
    flex-shrink: 0;
}

.language-switch button {
    background-color: #007bff;
    color: white;
    border: none;
    outline: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    box-shadow: none;
}

.language-switch button:focus {
    outline: none;
    box-shadow: none;
}

.language-switch button:hover {
    background-color: #0056b3;
}

.user-info {
    color: #6c757d;
    font-size: 14px;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    flex-shrink: 0;
}

.container {
    display: flex;
    flex: 1;
    margin: 20px 30px 10px 30px;
    gap: 20px;
    overflow: hidden;
}

.sidebar {
    width: 340px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 10;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    font-weight: 600;
    text-align: left;
}

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

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group-half {
    flex: 1;
}

.form-group label,
.form-group-half label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
    font-size: 12px;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group-half input,
.form-group-half select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
    transition: all 0.3s ease;
    text-align: left;
}

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

.radio-group {
    display: flex;
    gap: 25px;
    margin-bottom: 18px;
    justify-content: flex-start;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #444;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
}

.btn-search {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

.btn-search:hover {
    background-color: #0056b3;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3e6ea;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    overflow: visible;
    text-align: center;
    z-index: 100;
}

/* 紧凑模式 - 低屏幕高度时使用 */
.user-profile.compact {
    padding: 8px 12px;
    gap: 8px;
    flex-direction: row;
    align-items: center;
    bottom: 15px;
}

/* 小圆球模式 - 极低屏幕高度时使用 */
.user-profile.mini-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    gap: 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    bottom: 20px;
    right: 20px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.user-profile.mini-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* mini-ball模式下的头像包装器 */
.user-profile.mini-ball .avatar-wrapper {
    gap: 2px;
}

/* mini-ball模式下隐藏横幅 */
.user-profile.mini-ball .golden-banner {
    display: none;
}

/* 小圆球内的头像 */
.user-profile.mini-ball .avatar {
    width: 40px;
    height: 40px;
    border: none;
    box-shadow: none;
}

/* 隐藏小圆球模式下的其他元素 */
.user-profile.mini-ball .user-info {
    display: none;
}

/* 弹出模式 */
.user-profile.mini-ball.expanded {
    width: auto;
    height: auto;
    border-radius: 16px;
    padding: 15px;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3e6ea;
    min-width: 200px;
    max-width: 250px;
    bottom: 80px;
    right: 20px;
    animation: popIn 0.3s ease-out;
}

.user-profile.mini-ball.expanded .user-info {
    display: block;
}

/* mini-ball展开模式下显示横幅 */
.user-profile.mini-ball.expanded .golden-banner {
    display: block;
    padding: 2px 8px;
    border-radius: 6px;
    animation: bounceUpDown 2.5s ease-in-out infinite;
}

.user-profile.mini-ball.expanded .banner-text {
    font-size: 12px;
    letter-spacing: 0.3px;
}

.user-profile.mini-ball.expanded .avatar {
    width: 45px;
    height: 45px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.user-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-profile:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.user-profile:hover::before {
    opacity: 1;
}

/* 头像包装器 */
.avatar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 朴素横幅 */
.golden-banner {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    padding: 2px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: bounceUpDown 2s ease-in-out infinite;
}

.golden-banner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    border-radius: 13px;
    z-index: -1;
    opacity: 0.8;
}

.banner-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    display: block;
    position: relative;
    z-index: 2;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

@keyframes bounceUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-6px);
    }
    75% {
        transform: translateY(-3px);
    }
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

/* 紧凑模式下的头像包装器 */
.user-profile.compact .avatar-wrapper {
    gap: 4px;
}

/* 紧凑模式下的横幅 */
.user-profile.compact .golden-banner {
    padding: 2px 8px;
    border-radius: 8px;
    animation: bounceUpDown 2.2s ease-in-out infinite;
}

.user-profile.compact .banner-text {
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* 紧凑模式下的头像 */
.user-profile.compact .avatar {
    width: 40px;
    height: 40px;
}

.user-profile:hover .avatar {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

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

.user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.username {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
    margin-bottom: 2px;
}

/* 紧凑模式下的用户名 */
.user-profile.compact .username {
    font-size: 13px;
    margin-bottom: 2px;
}

/* 紧凑模式下的用户信息容器 */
.user-profile.compact .user-info {
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.user-desc {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* 紧凑模式下的用户描述 - 隐藏 */
.user-profile.compact .user-desc {
    display: none;
}

.user-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #28a745;
    font-size: 11px;
    font-weight: 600;
}

/* 紧凑模式下的用户状态 */
.user-profile.compact .user-status {
    font-size: 10px;
    gap: 4px;
    justify-content: flex-start;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    animation: pulse 2s infinite;
}

/* 紧凑模式下的状态点 */
.user-profile.compact .status-dot {
    width: 6px;
    height: 6px;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 休息状态样式 */
.user-profile.sleeping .avatar {
    position: relative;
}

.user-profile.sleeping .avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(108, 117, 125, 0.6);
    border-radius: 50%;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* 休息和离线状态的通用样式 */
.user-profile.sleeping .status-dot,
.user-profile.offline .status-dot {
    background-color: #6c757d !important;
    animation: none;
}

/* 离线状态样式 */
.user-profile.offline .username,
.user-profile.offline .user-desc,
.user-profile.offline .user-status {
    color: #6c757d !important;
}

/* ZZZ 打呼样式 */
.sleep-zzz {
    position: absolute;
    top: 8px;
    left: 170px;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 9999;
}

.user-profile.sleeping .sleep-zzz,
.user-profile.offline .sleep-zzz {
    display: flex;
}

.sleep-zzz span {
    color: #87CEEB;
    font-size: 14px;
    font-weight: bold;
    line-height: 0.7;
    animation: sleepFloat 2.5s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.sleep-zzz span:nth-child(1) {
    animation-delay: 0s;
    font-size: 10px;
}

.sleep-zzz span:nth-child(2) {
    animation-delay: 0.4s;
    font-size: 12px;
}

.sleep-zzz span:nth-child(3) {
    animation-delay: 0.8s;
    font-size: 16px;
}

@keyframes sleepFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(-5deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-6px) scale(1.05) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-12px) scale(1.1) rotate(5deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-6px) scale(1.05) rotate(0deg);
        opacity: 0.7;
    }
}

/* 紧凑模式下的ZZZ位置调整 */
.user-profile.compact.sleeping .sleep-zzz,
.user-profile.compact.offline .sleep-zzz {
    top: -5px;
    left: 35px;
}

/* 小圆球模式下的ZZZ位置调整 */
.user-profile.mini-ball.sleeping .sleep-zzz,
.user-profile.mini-ball.offline .sleep-zzz {
    top: -10px;
    left: 35px;
}

/* 小圆球扩展模式下的ZZZ位置调整 */
.user-profile.mini-ball.expanded.sleeping .sleep-zzz,
.user-profile.mini-ball.expanded.offline .sleep-zzz {
    top: 5px;
    left: 140px;
}

/* 小圆球模式ZZZ字体大小 */
.user-profile.mini-ball.sleeping .sleep-zzz span:nth-child(1),
.user-profile.mini-ball.offline .sleep-zzz span:nth-child(1) { font-size: 8px; }
.user-profile.mini-ball.sleeping .sleep-zzz span:nth-child(2),
.user-profile.mini-ball.offline .sleep-zzz span:nth-child(2) { font-size: 10px; }
.user-profile.mini-ball.sleeping .sleep-zzz span:nth-child(3),
.user-profile.mini-ball.offline .sleep-zzz span:nth-child(3) { font-size: 12px; }

/* 紧凑模式ZZZ字体大小 */
.user-profile.compact.sleeping .sleep-zzz span:nth-child(1),
.user-profile.compact.offline .sleep-zzz span:nth-child(1) { font-size: 9px; }
.user-profile.compact.sleeping .sleep-zzz span:nth-child(2),
.user-profile.compact.offline .sleep-zzz span:nth-child(2) { font-size: 11px; }
.user-profile.compact.sleeping .sleep-zzz span:nth-child(3),
.user-profile.compact.offline .sleep-zzz span:nth-child(3) { font-size: 13px; }

.user-profile:hover .username {
    color: #007bff;
}

.user-profile:hover .user-desc {
    color: #495057;
}

.main-content {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative; /* 为加载覆盖层提供定位基准 */
}

.notice-bar {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 8px 30px;
    margin: 10px 30px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease-out;
    flex-shrink: 0;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.notice-icon {
    font-size: 16px;
}

.notice-text {
    color: #1976d2;
    font-size: 12px;
    font-weight: 500;
}

.notice-close {
    background: none;
    border: none;
    color: #1976d2;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notice-close:hover {
    background-color: rgba(25, 118, 210, 0.1);
}

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

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.table-header h3 {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    text-align: left;
}

.record-count {
    color: #6c757d;
    font-size: 12px;
    background-color: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    font-size: 12px;
    flex-shrink: 0;
    word-break: break-all;
    white-space: pre-line;
}

.data-table td {
    padding: 8px 5px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: top;
    flex-shrink: 0;
    word-break: break-all;
    white-space: pre-line;
}

.bank-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.level-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0; /* 确保溢出隐藏生效 */
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-available {
    color: #4caf50;
    font-weight: bold;
}

.status-debit {
    color: #2196f3;
}

.status-credit {
    color: #ff9800;
}

.schema-visa {
    color: #1a1f71;
    font-weight: 600;
}

.schema-mastercard {
    color: #eb001b;
    font-weight: 600;
}

.schema-amex {
    color: #006fcf;
    font-weight: 600;
}

.schema-discover {
    color: #ff6000;
    font-weight: 600;
}

.schema-jcb {
    color: #0e4c96;
    font-weight: 600;
}

.level-classic {
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    border: 1px solid #bbdefb;
}

.level-standard {
    background-color: #f3e5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #7b1fa2;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    border: 1px solid #e1bee7;
}

.level-world {
    background-color: #fff3e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #f57c00;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    border: 1px solid #ffcc02;
}

/* ==================== 5级等级颜色样式系统 ==================== */

/* 等级样式通用属性 */
[class*="level-"] {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 🟢 一级：基础卡 / 入门级卡（Basic Level）- 绿色系 */
.level-basic,
.level-standard,
.level-classic,
.level-electron,
.level-atm-card,
.level-student,
.level-debit,
.level-prepaid,
.level-traditional,
.level-credit,
.level-discover,
.level-personal {
    background-color: #e8f5e8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    border: 1px solid #a5d6a7;
}

/* 🔵 二级：中端卡 / 常规信用卡（Mid Tier）- 蓝色系 */
.level-gold,
.level-gold-digital,
.level-gold-business,
.level-silver,
.level-prepaid-gold,
.level-business,
.level-traditional-rewards,
.level-enhanced,
.level-professional {
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    border: 1px solid #90caf9;
}

/* ⚪ 三级：高端卡 / 白金卡（High Tier）- 高级银灰色系 */
.level-platinum,
.level-business-platinum,
.level-platinum-rewards,
.level-platinum-digital,
.level-platinum-salary,
.level-prepaid-platinum,
.level-credit-platinum,
.level-discover-platinum,
.level-personal-platinum,
.level-business-enhanced,
.level-gold-enhanced,
.level-platinum-enhanced,
.level-credit-enhanced,
.level-discover-enhanced,
.level-personal-enhanced,
.level-b2b,
.level-purchasing-with-fleet {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #343a40;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    border: 1px solid #ced4da;
    box-shadow: 0 1px 3px rgba(52, 58, 64, 0.15);
}

/* 🟣 四级：超高端卡 / 无限卡（Premium Tier）- 高级紫色系 */
.level-signature,
.level-infinite,
.level-business-infinite,
.level-infinite-privilege,
.level-signature-preferred,
.level-world,
.level-credit-signature,
.level-discover-signature,
.level-personal-signature {
    background: linear-gradient(24deg, #f3e5f5 0%, #e1bee7 50%, #f3e5f5 100%);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #6a1b9a;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    border: 1px solid #ab47bc;
    box-shadow: 0 2px 4px rgba(106, 27, 154, 0.2);
    position: relative;
    overflow: hidden;
    animation: purpleGlow 2s ease-in-out infinite alternate;
}

.level-signature::before,
.level-infinite::before,
.level-business-infinite::before,
.level-infinite-privilege::before,
.level-signature-preferred::before,
.level-world::before,
.level-credit-signature::before,
.level-discover-signature::before,
.level-personal-signature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(171, 71, 188, 0.3), transparent);
    animation: purpleShimmer 3s linear infinite;
    pointer-events: none;
}

/* 🟡 五级：顶级卡 / 尊贵卡（Elite Tier）- 尊贵金色系 */
.level-world-elite,
.level-world-elite-business,
.level-world-elite-flex,
.level-centurion,
.level-uhnw,
.level-ultra-high-net-worth {
    background: linear-gradient(24deg, #fff8e1 0%, #ffecb3 30%, #ffd54f 50%, #ffecb3 70%, #fff8e1 100%);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #e65100;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    border: 2px solid #ff8f00;
    box-shadow: 0 3px 6px rgba(230, 81, 0, 0.25), 0 1px 3px rgba(255, 143, 0, 0.3);
    text-shadow: 0 1px 2px rgba(230, 81, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: goldGlow 1.5s ease-in-out infinite alternate, goldPulse 3s ease-in-out infinite;
}

.level-world-elite::before,
.level-world-elite-business::before,
.level-world-elite-flex::before,
.level-centurion::before,
.level-uhnw::before,
.level-ultra-high-net-worth::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    animation: goldShimmer 2s linear infinite;
    pointer-events: none;
}

.level-world-elite::after,
.level-world-elite-business::after,
.level-world-elite-flex::after,
.level-centurion::after,
.level-uhnw::after,
.level-ultra-high-net-worth::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: goldSparkle 4s ease-in-out infinite;
    pointer-events: none;
}

/* 未知等级 - 默认灰色 */
.level-unknown {
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #757575;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

.table-container {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.table-header-wrapper {
    flex-shrink: 0;
}

.table-body-wrapper {
    flex: 1;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.scrollable-tbody tr {
    display: table-row;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 可搜索下拉框样式 */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
    transition: all 0.3s ease;
    text-align: left;
    cursor: pointer;
}

.searchable-select input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
    cursor: text;
}

.clear-button {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
    z-index: 2;
    line-height: 1;
    width: 18px;
    height: 18px;
    text-align: center;
    background-color: transparent;
}

.clear-button:hover {
    color: #666;
    background-color: #f0f0f0;
}

.clear-button.show {
    display: block;
}

/* 带清除按钮的选择框样式 */
.select-with-clear {
    position: relative;
    width: 100%;
}

.select-with-clear select {
    width: 100%;
    padding-right: 35px; /* 为清除按钮留出空间 */
}

.clear-button-select {
    position: absolute;
    right: 25px; /* 避开下拉箭头 */
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
    z-index: 2;
    line-height: 1;
    width: 18px;
    height: 18px;
    text-align: center;
    background-color: transparent;
}

.clear-button-select:hover {
    color: #666;
    background-color: #f0f0f0;
}

.clear-button-select.show {
    display: block;
}

.dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 10px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.searchable-select.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.searchable-select.active .dropdown-list {
    display: block;
}

.dropdown-option {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    text-align: left;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f8f9fa;
}

.dropdown-option.selected {
    background-color: #007bff;
    color: white;
}

.dropdown-option.selected:hover {
    background-color: #0056b3;
}

.dropdown-option.highlighted {
    background-color: #e3f2fd;
}

.no-results {
    padding: 8px 12px;
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.dropdown-option.loading {
    padding: 8px 12px;
    font-size: 12px;
    color: #007bff;
    text-align: center;
    cursor: default;
    font-style: italic;
}

.dropdown-option.loading:hover {
    background-color: transparent;
}

.dropdown-option.error {
    padding: 8px 12px;
    font-size: 12px;
    color: #dc3545;
    text-align: center;
    cursor: pointer;
    font-style: italic;
}

.dropdown-option.error:hover {
    background-color: #f8d7da;
}

/* 滚动条样式 */
.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 8px;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 
------------------------------------------------
    布林布林动画效果 - Bling Bling Animations
------------------------------------------------
*/

/* 紫色发光动画 */
@keyframes purpleGlow {
    0% {
        box-shadow: 0 2px 4px rgba(106, 27, 154, 0.2), 0 0 5px rgba(171, 71, 188, 0.2);
    }
    100% {
        box-shadow: 0 2px 8px rgba(106, 27, 154, 0.4), 0 0 15px rgba(171, 71, 188, 0.4);
    }
}

/* 紫色流光动画 */
@keyframes purpleShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

/* 金色发光动画 */
@keyframes goldGlow {
    0% {
        box-shadow: 0 3px 6px rgba(230, 81, 0, 0.25), 0 1px 3px rgba(255, 143, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.2);
    }
    100% {
        box-shadow: 0 3px 12px rgba(230, 81, 0, 0.4), 0 1px 6px rgba(255, 143, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.4);
    }
}

/* 金色脉冲动画 */
@keyframes goldPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* 金色流光动画 */
@keyframes goldShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* 金色闪烁动画 */
@keyframes goldSparkle {
    0%, 100% {
        opacity: 0;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        opacity: 0;
    }
    75% {
        opacity: 0.5;
    }
}

.loading-text {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
    text-align: center;
}

/* 当全局高度小于800px时，sidebar可以滚动 */
@media (max-height: 800px) {
    /* 减少body的padding */
    body {
        padding: 10px 0 20px 0;
    }
    
    /* 调整app-wrapper的高度计算 */
    .app-wrapper {
        height: calc(100vh - 30px);
    }
    
    /* 减少header的padding */
    .header {
        padding: 10px 20px;
        min-height: 50px;
    }
    
    /* 减少header标题的字体大小 */
    .header h1 {
        font-size: 20px;
    }
    
    /* 减少container的margin */
    .container {
        margin: 10px 20px 5px 20px;
        gap: 15px;
    }
    
    /* 减少sidebar的padding */
    .sidebar {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 15px;
    }
    
    /* 减少sidebar标题的间距 */
    .sidebar h2 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    /* 减少表单组的间距 */
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-row {
        margin-bottom: 12px;
        gap: 15px;
    }
    
    /* 减少表单元素的padding */
    .form-group input,
    .form-group select,
    .form-group-half input,
    .form-group-half select {
        padding: 6px 10px;
    }
    
    /* 减少标签的下边距 */
    .form-group label,
    .form-group-half label {
        margin-bottom: 4px;
    }
    
    /* 减少按钮的padding */
    .btn-search {
        padding: 8px;
        font-size: 12px;
    }
    
    /* 优化通知栏样式 */
    .notice-bar {
        padding: 6px 20px;
        margin: 8px 20px 0 20px;
    }
    
    .notice-content {
        gap: 6px;
    }
    
    .notice-icon {
        font-size: 14px;
    }
    
    .notice-text {
        font-size: 11px;
    }
    
    .notice-close {
        font-size: 16px;
        width: 18px;
        height: 18px;
    }
    
    /* 自定义滚动条样式 */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

/* 针对极小屏幕高度（小于600px）的进一步优化 */
@media (max-height: 600px) {
    /* 进一步减少body的padding */
    body {
        padding: 5px 0 10px 0;
    }
    
    /* 进一步调整app-wrapper的高度计算 */
    .app-wrapper {
        height: calc(100vh - 15px);
    }
    
    /* 进一步减少header的padding */
    .header {
        padding: 8px 15px;
        min-height: 40px;
    }
    
    /* 进一步减少header标题的字体大小 */
    .header h1 {
        font-size: 18px;
    }
    
    /* 进一步减少container的margin */
    .container {
        margin: 8px 15px 3px 15px;
        gap: 10px;
    }
    
    /* 进一步减少sidebar的padding和间距 */
    .sidebar {
        max-height: calc(100vh - 70px);
        padding: 10px;
    }
    
    /* 进一步减少sidebar标题的间距 */
    .sidebar h2 {
        font-size: 14px;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }
    
    /* 进一步减少表单组的间距 */
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-row {
        margin-bottom: 8px;
        gap: 10px;
    }
    
    /* 进一步减少表单元素的padding */
    .form-group input,
    .form-group select,
    .form-group-half input,
    .form-group-half select {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    /* 进一步减少标签的下边距和字体大小 */
    .form-group label,
    .form-group-half label {
        margin-bottom: 3px;
        font-size: 11px;
    }
    
    /* 进一步减少按钮的padding */
    .btn-search {
        padding: 6px;
        font-size: 11px;
    }
    
    /* 优化用户档案部分的间距 */
    .user-profile {
        margin-top: 10px;
        padding: 10px;
    }
    
    /* 减少用户信息的字体大小 */
    .user-info {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* 减少语言切换按钮的padding */
    .language-switch button {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* 进一步优化通知栏样式 */
    .notice-bar {
        padding: 4px 15px;
        margin: 5px 15px 0 15px;
        border-radius: 4px;
    }
    
    .notice-content {
        gap: 5px;
    }
    
    .notice-icon {
        font-size: 12px;
    }
    
    .notice-text {
        font-size: 10px;
        font-weight: 400;
    }
    
    .notice-close {
        font-size: 14px;
        width: 16px;
        height: 16px;
    }
}