/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed; /* 固定背景 */
    background-size: cover; /* 确保背景覆盖整个视口 */
    background-position: center; /* 背景居中 */
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 登录界面 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 9999;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 90vw;
    position: relative;
    animation: loginFadeIn 0.6s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #333;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 22px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 主界面 */
.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.nav-brand i {
    margin-right: 10px;
    color: #667eea;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    padding: 8px 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff3742;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 250px;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 999;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
}

.menu-item.active {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
    color: #667eea;
}

.menu-item i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* 主内容区域 */
.main-content {
    margin-left: 250px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto; /* 允许垂直滚动 */
    max-height: calc(100vh - 70px); /* 限制最大高度 */
}

.content-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.section-header h2 {
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.section-header h2 i {
    color: #667eea;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 仪表盘 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.stat-icon {
    font-size: 40px;
    margin-right: 20px;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat-info p {
    font-size: 24px;
    font-weight: 600;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 只读输入框样式 */
.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.form-group input[readonly]:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 71, 87, 0.3);
}

/* 过滤器样式 */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 标签页样式 */
.management-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f1f3f4;
}

.tab-content {
    padding: 20px 0;
}

/* 消息样式 */
.message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    animation: messageSlideIn 0.4s ease-out;
    transform-origin: top center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.message.success {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.9) 0%, rgba(200, 230, 201, 0.9) 100%);
    color: #155724;
    border: 1px solid rgba(195, 230, 203, 0.3);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.message.error {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.9) 0%, rgba(245, 198, 203, 0.9) 100%);
    color: #721c24;
    border: 1px solid rgba(245, 198, 203, 0.3);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.message.info {
    background: linear-gradient(135deg, rgba(209, 236, 241, 0.9) 0%, rgba(190, 229, 235, 0.9) 100%);
    color: #0c5460;
    border: 1px solid rgba(190, 229, 235, 0.3);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 持久显示消息样式 - 居中布局 */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.message-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    flex: 1;
}

.message-time {
    font-size: 9px;
    color: #8e8e93;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
}

.message-status {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
}

.message-status::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.6;
    color: #8e8e93;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.clear-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.clear-btn:hover::before {
    width: 24px;
    height: 24px;
}

.clear-btn:hover {
    opacity: 1;
    color: #333;
    transform: scale(1.1);
}

.message-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin-top: 8px;
    font-size: 14px;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
    display: block;
    width: 100%;
    max-width: 100%;
}

.message-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.message-content:hover::before {
    height: 4px;
}

/* 成功消息的顶部装饰条 */
.message.success .message-content::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* 错误消息的顶部装饰条 */
.message.error .message-content::before {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

/* 成功消息的持久显示样式 */
.message.success .message-header {
    border-bottom-color: rgba(40, 167, 69, 0.15);
}

.message.success .message-status {
    color: #28a745;
}

.message.success .message-content {
    background: linear-gradient(135deg, #f8fff9 0%, #f0f9f4 100%);
    border: 1px solid #d4edda;
    color: #155724;
    position: relative;
}

.message.success .message-content::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.8;
}

/* 错误消息的持久显示样式 */
.message.error .message-header {
    border-bottom-color: rgba(220, 53, 69, 0.15);
}

.message.error .message-status {
    color: #dc3545;
}

.message.error .message-content {
    background: linear-gradient(135deg, #fff8f8 0%, #fef0f0 100%);
    border: 1px solid #f8d7da;
    color: #721c24;
    position: relative;
}

.message.error .message-content::after {
    content: '⚠';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.8;
}

/* 消息内容内的代码块样式 */
.message-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    color: #e83e8c;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.2s ease;
    text-align: left;
    display: inline-block;
}

.message-content code:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 消息内容内的链接样式 */
.message-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    padding: 1px 2px;
    border-radius: 3px;
    text-align: left;
}

.message-content a:hover {
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

/* 消息内容内的数字样式 */
.message-content .number {
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-align: left;
}

/* 消息内容内的粗体文本 */
.message-content strong {
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-align: left;
}

/* 消息内容内的状态指示器 */
.message-content .status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: #28a745;
    animation: statusPulse 2s infinite;
}

.message-content .status-indicator.error {
    background: #dc3545;
}

.message-content .status-indicator.warning {
    background: #ffc107;
}

/* 消息内容内的列表样式 */
.message-content ul, .message-content ol {
    margin: 8px 0;
    padding-left: 20px;
    text-align: left;
    width: 100%;
}

.message-content li {
    margin: 4px 0;
    line-height: 1.5;
}

/* 消息内容内的引用样式 */
.message-content blockquote {
    border-left: 4px solid #667eea;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #555;
    text-align: left;
    width: 100%;
}

/* 消息内容内的表格样式 */
.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.message-content th, .message-content td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.message-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.message-content tr:hover {
    background: #f8f9fa;
}

/* 消息内容内的分隔线 */
.message-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 12px 0;
    width: 100%;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .message {
        max-width: 100%;
        margin: 10px 5px;
    }
    
    .message-content {
        padding: 12px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .message-content code {
        font-size: 12px;
        padding: 1px 4px;
    }
    
    .message-content .number {
        padding: 1px 3px;
    }
    
    .message-content strong {
        padding: 1px 3px;
    }
    
    .message-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .message-time {
        font-size: 10px;
    }
    
    .message-status {
        font-size: 12px;
    }
    
    .clear-btn {
        padding: 4px 6px;
        font-size: 14px;
    }
    
    .message-content::after {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
    
    #send-msg {
        padding: 5px;
    }
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
}

.search-box select {
    width: 120px;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box select:hover {
    border-color: #667eea;
}

/* 问答结果样式 */
.qa-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.qa-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.qa-images img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.qa-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qa-category {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.qa-question {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.qa-answer {
    color: #666;
    line-height: 1.6;
}

/* ===== 现代化排行榜样式 ===== */

/* ===== 现代化排行榜样式 ===== */

/* 排行榜容器 - 玻璃拟态设计 */
.rankings-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
    margin-top: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

/* 排行榜头部 - 科技感渐变背景 */
.rankings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rankings-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.15)"/><circle cx="40" cy="70" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1.5" fill="rgba(255,255,255,0.25)"/><circle cx="10" cy="50" r="0.8" fill="rgba(255,255,255,0.12)"/><circle cx="70" cy="10" r="1.2" fill="rgba(255,255,255,0.18)"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.rankings-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1) 0%, rgba(0, 114, 255, 0.1) 100%);
    pointer-events: none;
}

.rankings-controls {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

/* 排行榜标题样式 */
.rankings-controls h2 {
    font-size: 36px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: 1px;
    animation: glow 3s ease-in-out infinite alternate;
}

.rankings-controls p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.rankings-controls i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* 排行榜统计信息 - 现代化玻璃拟态卡片 */
.ranking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.ranking-stats .stat-card {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ranking-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.ranking-stats .stat-card:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.ranking-stats .stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.ranking-stats .stat-card:hover .stat-icon {
    transform: scale(1.1);
    color: white;
}

.ranking-stats .stat-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
}

.ranking-stats .stat-content p {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* 时间筛选器 - 胶囊按钮风格 */
.time-filter {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.time-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.time-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.time-btn:hover::before {
    left: 100%;
}

.time-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.time-btn.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.time-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.time-btn:hover i {
    transform: scale(1.1);
}



/* 筛选条件区域 - 玻璃拟态卡片设计 */
.rankings-filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.rankings-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    pointer-events: none;
}

.filters-content {
    display: block;
    animation: slideDown 0.4s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.filter-group label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.filter-group label i {
    color: #667eea;
    font-size: 16px;
}

.filter-group input,
.filter-group select {
    padding: 14px 18px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #2d3748;
    font-weight: 500;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.filter-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.filters-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

/* 排行榜主体 - 现代化玻璃拟态设计 */
.rankings-body {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(240, 242, 245, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 0 0 24px 24px;
    position: relative;
}

.rankings-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(102,126,234,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
    opacity: 0.5;
}

/* 荣誉前三名 - 现代化玻璃拟态卡片设计 */
.top-three {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: end;
    position: relative;
    z-index: 1;
}

.top-three-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out;
}

.top-three-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.top-three-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.top-three-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.top-three-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 143, 0, 0.08) 100%);
    border-color: rgba(255, 193, 7, 0.3);
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 193, 7, 0.2);
}

.top-three-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.08) 0%, rgba(73, 80, 87, 0.08) 100%);
    border-color: rgba(108, 117, 125, 0.3);
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(108, 117, 125, 0.15);
}

.top-three-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.08) 0%, rgba(197, 48, 48, 0.08) 100%);
    border-color: rgba(229, 62, 62, 0.3);
    box-shadow: 0 10px 35px rgba(229, 62, 62, 0.15);
}

.top-three-item:nth-child(1):hover {
    transform: scale(1.08) translateY(-12px);
    box-shadow: 0 30px 70px rgba(255, 193, 7, 0.3);
}

.top-three-item:nth-child(2):hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow: 0 25px 60px rgba(108, 117, 125, 0.25);
}

.top-three-item:nth-child(3):hover {
    transform: scale(1.02) translateY(-12px);
    box-shadow: 0 20px 50px rgba(229, 62, 62, 0.25);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.top-medal {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.top-three-item:hover .top-medal {
    transform: scale(1.1);
}

.top-three-item:nth-child(1) .top-medal {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: white;
}

.top-three-item:nth-child(2) .top-medal {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.top-three-item:nth-child(3) .top-medal {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

.top-rank {
    font-size: 28px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.top-username {
    font-size: 20px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 20px;
}

.top-score {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.top-three-item:nth-child(1) .top-score {
    color: #ff8f00;
}

.top-three-item:nth-child(2) .top-score {
    color: #495057;
}

.top-three-item:nth-child(3) .top-score {
    color: #c53030;
}

.top-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.top-stat-item {
    background: rgba(102, 126, 234, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* 排行榜列表 - 现代化玻璃拟态设计 */
.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.rankings-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 24px;
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 前三名区域 - 现代化设计 */
.top-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.top-three-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInScale 0.8s ease-out;
}

.top-three-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.top-three-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 28px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-three-item:hover::after {
    opacity: 1;
}

.top-three-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

/* 前三名特殊样式 */
.top-three-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.top-three-item:nth-child(1)::before {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.top-three-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(169, 169, 169, 0.1) 100%);
    border-color: rgba(192, 192, 192, 0.3);
    box-shadow: 0 15px 40px rgba(192, 192, 192, 0.2);
}

.top-three-item:nth-child(2)::before {
    background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

.top-three-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(184, 115, 51, 0.1) 100%);
    border-color: rgba(205, 127, 50, 0.3);
    box-shadow: 0 15px 40px rgba(205, 127, 50, 0.2);
}

.top-three-item:nth-child(3)::before {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.6);
}

/* 前三名内容样式 */
.top-rank-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.top-three-item:nth-child(1) .top-rank-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
}

.top-three-item:nth-child(2) .top-rank-badge {
    background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
}

.top-three-item:nth-child(3) .top-rank-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
}

.top-rank-badge::before {
    content: '👑';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.top-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.top-username {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.top-score {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* 其他排名列表 */
.rankings-others {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 排名项目 - 现代卡片设计 */
.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: slideInRight 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.rank-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rank-item:hover::before {
    opacity: 1;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.rank-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 0 0 20px;
    transition: width 0.3s ease;
}

.rank-item:hover::after {
    width: 6px;
}

/* 排名徽章 */
.rank-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.rank-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.rank-item:hover .rank-badge {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 用户头像 */
.rank-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* 用户信息 */
.rank-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rank-username {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    position: relative;
    z-index: 1;
}

.rank-user-detail {
    font-size: 14px;
    color: #718096;
    position: relative;
    z-index: 1;
}

/* 积分显示 */
.rank-score {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* 我的排名特殊样式 */
.rank-item.my-rank {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.15);
}

.rank-item.my-rank::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 6px;
}

.rank-item.my-rank .rank-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 动画定义 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 空状态样式 */
.rankings-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.rankings-empty i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    opacity: 0.6;
}

.rankings-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.rankings-empty p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
}

/* 排行榜头部 - 现代化玻璃拟态设计 */
.rankings-header-row {
    display: grid;
    grid-template-columns: 60px 4fr repeat(6, 1.5fr) 120px;
    gap: 24px;
    align-items: center;
    padding: 28px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 24px;
    font-weight: 600;
    color: white;
    border: none;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.rankings-header-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.rankings-header-row::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="header-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23header-pattern)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
    opacity: 0.3;
}

.rank-header-position {
    text-align: center;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.rank-header-username {
    font-size: 18px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.rank-header-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    width: 100%;
    align-items: center;
    height: 100%;
    min-height: 0;
}

.rank-header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.rank-header-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.rank-header-stat .stat-label {
    font-weight: 700;
    font-size: 14px;
}

.rank-header-total {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

/* 排行榜项目 - 现代卡片设计 */
.rank-item {
    display: grid;
    grid-template-columns: 60px 4fr repeat(6, 1.5fr) 120px;
    gap: 24px;
    align-items: center;
    padding: 28px 35px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    animation: slideInRight 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
    cursor: pointer;
}

.rank-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rank-item:hover::before {
    opacity: 1;
}

.rank-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rank-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.rank-item:hover::before {
    width: 6px;
}

.rank-item.my-rank {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.15);
}

.rank-item.my-rank::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 6px;
}

.rank-position {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    margin: 0 auto;
    min-width: 60px;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.rank-position::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.rank-item:hover .rank-position {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.rank-item.my-rank .rank-position {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.rank-position::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.rank-item:hover .rank-position::after {
    opacity: 1;
    transform: rotate(45deg) translateX(100%);
}

.rank-username {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
    word-wrap: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    min-width: 0;
    flex-shrink: 0;
    flex-grow: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

.rank-username::after {
    content: '👤';
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.rank-item:hover .rank-username::after {
    opacity: 1;
    transform: scale(1.1);
}

.rank-item.my-rank .rank-username::after {
    content: '👑';
    font-size: 18px;
    opacity: 1;
}

.rank-username::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.rank-item:hover .rank-username::before {
    width: 100%;
}

.rank-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    width: 100%;
    align-items: center;
    height: 100%;
    min-height: 0;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(102, 126, 234, 0.06);
    border-radius: 12px;
    font-size: 15px;
    color: #667eea;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 60px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    border: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: visible;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    background: rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item .stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-item .stat-label {
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.stat-item[data-type="手机"] .stat-icon { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.stat-item[data-type="电脑"] .stat-icon { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.stat-item[data-type="耳机"] .stat-icon { background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%); }
.stat-item[data-type="平板"] .stat-icon { background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%); }
.stat-item[data-type="手表"] .stat-icon { background: linear-gradient(135deg, #e83e8c 0%, #c53030 100%); }
.stat-item[data-type="未知"] .stat-icon { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }
.stat-item[data-type="total"] .stat-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

/* 设备类型统计块内容横向显示 */
.stat-item .stat-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    width: 100%;
    justify-content: center;
}

.stat-item .stat-type {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.8;
}

.stat-zero {
    opacity: 0.4;
    background: rgba(102, 126, 234, 0.03) !important;
}

.stat-zero .stat-label {
    color: #999 !important;
}

.rank-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.rank-total-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rank-total-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.rank-total-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.rank-item:hover .rank-total-value::after {
    left: 100%;
}

.rank-item:hover .rank-total-value {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.rank-item.my-rank .rank-total-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 进度条显示与榜首差距 */
.rank-progress {
    width: 100%;
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1));
    border-radius: 2px;
    transition: width 1s ease-out;
    animation: progressFill 1.5s ease-out;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: var(--progress-width, 100%);
    }
}

/* 排名变化指示器 */
.rank-change {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: bounce 0.6s ease-out;
}

.rank-change.up {
    background: #28a745;
    color: white;
}

.rank-change.down {
    background: #dc3545;
    color: white;
}

.rank-change.stable {
    background: #6c757d;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 我的位置 */
.my-position {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    border: 2px solid #667eea;
    position: relative;
    display: none; /* 初始化隐藏 */
}

.my-position::before {
    content: '我的位置';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 排行榜空状态 */
.rankings-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.rankings-empty i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.rankings-empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
}

.rankings-empty p {
    font-size: 16px;
    color: #6c757d;
}

/* 排行榜动画效果 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 应用动画 */
.top-three-item {
    animation: scaleIn 0.8s ease-out;
    animation-fill-mode: both;
}

.top-three-item:nth-child(1) { animation-delay: 0.2s; }
.top-three-item:nth-child(2) { animation-delay: 0.4s; }
.top-three-item:nth-child(3) { animation-delay: 0.6s; }

.my-position .rank-item {
    animation: slideInLeft 0.6s ease-out;
    animation-delay: 0.2s;
}

/* 数字滚动动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-score,
.rank-total {
    animation: countUp 0.8s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

/* 奖牌光效 */
.top-medal {
    position: relative;
    overflow: hidden;
}

.top-medal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 - 其他组件 */
@media (max-width: 768px) {
    .rankings-header {
        padding: 20px;
    }
    
    .rank-type-selector {
        flex-direction: column;
    }
    
    .time-filter {
        justify-content: center;
    }
    
    .rank-search {
        max-width: 100%;
    }
    
    .ranking-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ranking-stats .stat-card {
        padding: 12px;
    }
    
    .ranking-stats .stat-icon {
        font-size: 20px;
    }
    
    .ranking-stats .stat-info h3 {
        font-size: 11px;
    }
    
    .ranking-stats .stat-info p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ranking-stats {
        grid-template-columns: 1fr;
    }
    
    .ranking-stats .stat-card {
        padding: 10px;
    }
    
    .ranking-stats .stat-icon {
        font-size: 18px;
    }
    
    .ranking-stats .stat-info p {
        font-size: 16px;
    }
}

/* Toast 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.toast-content i {
    font-size: 16px;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-info {
    border-left: 4px solid #667eea;
}

.toast-info .toast-content i {
    color: #667eea;
}

/* 排行榜项点击效果 */
.rank-item,
.top-three-item {
    cursor: pointer;
    user-select: none;
}

.rank-item:active,
.top-three-item:active {
    transform: scale(0.98);
}

/* 响应式Toast */
@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 模态框样式 */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.modal-content {
	background: #fff;
	border-radius: 12px;
	width: 90vw;
	max-width: 1100px;
	max-height: 80vh;
	overflow: auto;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e1e5e9;
}

.modal-body {
	padding: 16px;
}

.modal-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
}

.pagination {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	align-items: center;
}

.pagination button {
	padding: 6px 10px;
	border: 1px solid #e1e5e9;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.pagination .active {
	background: #667eea;
	color: #fff;
	border-color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .management-tabs {
        flex-direction: column;
    }
    
    .rank-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* 详情模态框筛选器样式优化 */
#detail-modal .rankings-filters {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

#detail-modal .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

#detail-modal .filter-group label {
    font-size: 13px;
    margin-bottom: 6px;
}

#detail-modal .filter-group input,
#detail-modal .filter-group select {
    padding: 10px 12px;
    font-size: 13px;
}

#detail-modal .filters-actions {
    justify-content: flex-start;
    gap: 10px;
}

#detail-modal .filters-actions button {
    padding: 10px 16px;
    font-size: 13px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 仪表盘详细统计区域 */
.dashboard-details {
    margin-top: 2rem;
}

.detail-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.detail-section h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3 i {
    color: #667eea;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section.half {
    margin-bottom: 0;
}

/* 图表容器 */
.chart-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.chart-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.chart-icon {
    font-size: 1.2rem;
}

.chart-name {
    font-weight: 500;
    color: #2c3e50;
}

.chart-bar {
    flex: 1;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.chart-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* 加载和错误状态 */
.chart-loading, .chart-empty, .chart-error {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.chart-loading {
    color: #667eea;
}

.chart-error {
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-item {
        gap: 0.5rem;
    }
    
    .chart-label {
        min-width: 60px;
    }
    
    .chart-name {
        font-size: 0.9rem;
    }
}

/* 滚动优化 */
html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* 主内容区域滚动优化 */
.main-content {
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(102, 126, 234, 0.6) rgba(255, 255, 255, 0.1); /* Firefox */
}

/* 侧边栏滚动优化 */
.sidebar {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(102, 126, 234, 0.6) rgba(255, 255, 255, 0.1); /* Firefox */
}

/* 排行榜结果区域滚动优化 */
.rankings-results {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(102, 126, 234, 0.6) rgba(255, 255, 255, 0.1); /* Firefox */
}

/* 触摸设备滚动优化 */
@media (hover: none) and (pointer: coarse) {
    .main-content,
    .sidebar,
    .rankings-results {
        -webkit-overflow-scrolling: touch; /* iOS滚动优化 */
        scroll-behavior: auto; /* 触摸设备禁用平滑滚动 */
    }
}

/* 确保内容区域在滚动时有足够的底部间距 */
.content-section:last-child {
    margin-bottom: 50px;
}

/* 滚动时的性能优化 */
.main-content,
.sidebar {
    will-change: scroll-position; /* 提示浏览器优化滚动 */
    transform: translateZ(0); /* 启用硬件加速 */
}

/* 登录界面响应式优化 */
@media (max-width: 480px) {
    .login-card {
        width: 90vw;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .login-header i {
        font-size: 50px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .input-group input {
        padding: 12px 12px 12px 45px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .login-btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* 登录界面固定定位优化 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* KPI信息说明样式 */
.kpi-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kpi-info p {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kpi-info p i {
    color: #667eea;
}

.kpi-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.kpi-info li {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    font-size: 0.9rem;
    color: #555;
}

.kpi-info li strong {
    color: #2c3e50;
}

/* 响应式KPI信息 */
@media (max-width: 768px) {
    .kpi-info ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .kpi-info li {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

/* 微信结果显示布局 - 紧凑显示，一行至少5个字段 */
.wechat-result {
    margin: 10px 0;
    width: 100%;
    max-width: none;
}

.wechat-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    width: 100%;
    max-width: none;
    overflow: hidden;
}

.wechat-item {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 6px 8px;
    position: relative;
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.15);
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 微信重要字段高亮样式 */
.wechat-item[data-field="型号"],
.wechat-item[data-field="IMEI"],
.wechat-item[data-field="IMEI2"],
.wechat-item[data-field="序列号"],
.wechat-item[data-field="容量"],
.wechat-item[data-field="颜色"],
.wechat-item[data-field="激活状态"],
.wechat-item[data-field="购买日期"],
.wechat-item[data-field="激活日期"],
.wechat-item[data-field="保修状态"],
.wechat-item[data-field="保修结束日期"],
.wechat-item[data-field="保修剩余"],
.wechat-item[data-field="是否延保"],
.wechat-item[data-field="是否官换机"],
.wechat-item[data-field="是否官翻机"],
.wechat-item[data-field="是否演示机"],
.wechat-item[data-field="是否资源机"],
.wechat-item[data-field="是否权益机"],
.wechat-item[data-field="已更换产品的序列号"],
.wechat-item[data-field="激活锁"],
.wechat-item[data-field="丢失模式"],
.wechat-item[data-field="ID黑白"],
.wechat-item[data-field="运营商"],
.wechat-item[data-field="网络锁"] {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 6px 8px;
    position: relative;
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.15);
    transition: all 0.2s ease;
}

.wechat-item[data-field="型号"],
.wechat-item[data-field="IMEI"],
.wechat-item[data-field="IMEI2"],
.wechat-item[data-field="序列号"] {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.wechat-item[data-field="激活状态"],
.wechat-item[data-field="保修状态"],
.wechat-item[data-field="激活锁"],
.wechat-item[data-field="丢失模式"],
.wechat-item[data-field="ID黑白"] {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #9c27b0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.2);
}

.wechat-item[data-field="是否延保"],
.wechat-item[data-field="是否官换机"],
.wechat-item[data-field="是否官翻机"],
.wechat-item[data-field="是否演示机"],
.wechat-item[data-field="是否资源机"],
.wechat-item[data-field="是否权益机"] {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.wechat-item[data-field="购买日期"],
.wechat-item[data-field="激活日期"],
.wechat-item[data-field="保修结束日期"],
.wechat-item[data-field="保修剩余"] {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.wechat-item[data-field="容量"],
.wechat-item[data-field="颜色"],
.wechat-item[data-field="运营商"],
.wechat-item[data-field="网络锁"] {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-color: #e91e63;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

/* 微信字段标签样式 - 紧凑显示 */
.wechat-label {
    font-weight: 600;
    font-size: 10px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    position: relative;
    line-height: 1.2;
}

/* 重要字段标签样式 */
.wechat-item[data-field="型号"] .wechat-label,
.wechat-item[data-field="IMEI"] .wechat-label,
.wechat-item[data-field="IMEI2"] .wechat-label,
.wechat-item[data-field="序列号"] .wechat-label,
.wechat-item[data-field="容量"] .wechat-label,
.wechat-item[data-field="颜色"] .wechat-label,
.wechat-item[data-field="激活状态"] .wechat-label,
.wechat-item[data-field="购买日期"] .wechat-label,
.wechat-item[data-field="激活日期"] .wechat-label,
.wechat-item[data-field="保修状态"] .wechat-label,
.wechat-item[data-field="保修结束日期"] .wechat-label,
.wechat-item[data-field="保修剩余"] .wechat-label,
.wechat-item[data-field="是否延保"] .wechat-label,
.wechat-item[data-field="是否官换机"] .wechat-label,
.wechat-item[data-field="是否官翻机"] .wechat-label,
.wechat-item[data-field="是否演示机"] .wechat-label,
.wechat-item[data-field="是否资源机"] .wechat-label,
.wechat-item[data-field="是否权益机"] .wechat-label,
.wechat-item[data-field="已更换产品的序列号"] .wechat-label,
.wechat-item[data-field="激活锁"] .wechat-label,
.wechat-item[data-field="丢失模式"] .wechat-label,
.wechat-item[data-field="ID黑白"] .wechat-label,
.wechat-item[data-field="运营商"] .wechat-label,
.wechat-item[data-field="网络锁"] .wechat-label {
    font-weight: 700;
    font-size: 10px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    position: relative;
    line-height: 1.2;
}

/* 微信字段值样式 - 紧凑显示 */
.wechat-value {
    font-weight: 500;
    font-size: 11px;
    color: #1a1a1a;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 重要字段值样式 */
.wechat-item[data-field="型号"] .wechat-value,
.wechat-item[data-field="IMEI"] .wechat-value,
.wechat-item[data-field="IMEI2"] .wechat-value,
.wechat-item[data-field="序列号"] .wechat-value,
.wechat-item[data-field="容量"] .wechat-value,
.wechat-item[data-field="颜色"] .wechat-value,
.wechat-item[data-field="激活状态"] .wechat-value,
.wechat-item[data-field="购买日期"] .wechat-value,
.wechat-item[data-field="激活日期"] .wechat-value,
.wechat-item[data-field="保修状态"] .wechat-value,
.wechat-item[data-field="保修结束日期"] .wechat-value,
.wechat-item[data-field="保修剩余"] .wechat-value,
.wechat-item[data-field="是否延保"] .wechat-value,
.wechat-item[data-field="是否官换机"] .wechat-value,
.wechat-item[data-field="是否官翻机"] .wechat-value,
.wechat-item[data-field="是否演示机"] .wechat-value,
.wechat-item[data-field="是否资源机"] .wechat-value,
.wechat-item[data-field="是否权益机"] .wechat-value,
.wechat-item[data-field="已更换产品的序列号"] .wechat-value,
.wechat-item[data-field="激活锁"] .wechat-value,
.wechat-item[data-field="丢失模式"] .wechat-value,
.wechat-item[data-field="ID黑白"] .wechat-value,
.wechat-item[data-field="运营商"] .wechat-value,
.wechat-item[data-field="网络锁"] .wechat-value {
    font-weight: 600;
    font-size: 11px;
    color: #1a1a1a;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 状态值颜色高亮 */
.wechat-value.status-positive {
    color: #28a745 !important;
    font-weight: 700 !important;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    font-size: 10px;
}

.wechat-value.status-negative {
    color: #dc3545 !important;
    font-weight: 700 !important;
    background: rgba(220, 53, 69, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    font-size: 10px;
}

/* 微信结果显示响应式设计 - 确保一行至少5个字段 */
@media (min-width: 1200px) {
    .wechat-fields {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .wechat-fields {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .wechat-fields {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .wechat-fields {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .wechat-fields {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .wechat-item {
        padding: 4px 6px;
        min-height: 40px;
    }
    
    .wechat-label {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .wechat-value {
        font-size: 10px;
    }
}

/* 隐藏微信结果显示区域的滚动条 */
.wechat-result {
    overflow: hidden;
}

.wechat-fields {
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.wechat-fields::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 确保微信结果显示区域不会出现滚动 */
#send-msg {
    overflow: hidden;
}

#send-msg .message-content {
    overflow: hidden;
}

/* 微信图片显示样式 - 紧凑显示 */
.wechat-image {
    margin-bottom: 10px;
    text-align: center;
}

.wechat-image img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 重要字段悬停效果 - 简化版本 */
.wechat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-width: 2px;
}

/* 重要字段标签前的图标 */
.wechat-item[data-field="型号"] .wechat-label::before,
.wechat-item[data-field="IMEI"] .wechat-label::before,
.wechat-item[data-field="IMEI2"] .wechat-label::before,
.wechat-item[data-field="序列号"] .wechat-label::before {
    content: '📱';
    margin-right: 4px;
    font-size: 10px;
}

.wechat-item[data-field="激活状态"] .wechat-label::before,
.wechat-item[data-field="激活锁"] .wechat-label::before,
.wechat-item[data-field="丢失模式"] .wechat-label::before,
.wechat-item[data-field="ID黑白"] .wechat-label::before {
    content: '🔒';
    margin-right: 4px;
    font-size: 10px;
}

.wechat-item[data-field="保修状态"] .wechat-label::before,
.wechat-item[data-field="保修结束日期"] .wechat-label::before,
.wechat-item[data-field="保修剩余"] .wechat-label::before,
.wechat-item[data-field="是否延保"] .wechat-label::before {
    content: '🛡️';
    margin-right: 4px;
    font-size: 10px;
}

.wechat-item[data-field="购买日期"] .wechat-label::before,
.wechat-item[data-field="激活日期"] .wechat-label::before {
    content: '📅';
    margin-right: 4px;
    font-size: 10px;
}

.wechat-item[data-field="容量"] .wechat-label::before,
.wechat-item[data-field="颜色"] .wechat-label::before {
    content: '🎨';
    margin-right: 4px;
    font-size: 10px;
}

.wechat-item[data-field="运营商"] .wechat-label::before,
.wechat-item[data-field="网络锁"] .wechat-label::before {
    content: '📶';
    margin-right: 4px;
    font-size: 10px;
}

.wechat-item[data-field="是否官换机"] .wechat-label::before,
.wechat-item[data-field="是否官翻机"] .wechat-label::before,
.wechat-item[data-field="是否演示机"] .wechat-label::before,
.wechat-item[data-field="是否资源机"] .wechat-label::before,
.wechat-item[data-field="是否权益机"] .wechat-label::before {
    content: '🏷️';
    margin-right: 4px;
    font-size: 10px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .wechat-item[data-field="型号"],
    .wechat-item[data-field="IMEI"],
    .wechat-item[data-field="IMEI2"],
    .wechat-item[data-field="序列号"],
    .wechat-item[data-field="容量"],
    .wechat-item[data-field="颜色"],
    .wechat-item[data-field="激活状态"],
    .wechat-item[data-field="购买日期"],
    .wechat-item[data-field="激活日期"],
    .wechat-item[data-field="保修状态"],
    .wechat-item[data-field="保修结束日期"],
    .wechat-item[data-field="保修剩余"],
    .wechat-item[data-field="是否延保"],
    .wechat-item[data-field="是否官换机"],
    .wechat-item[data-field="是否官翻机"],
    .wechat-item[data-field="是否演示机"],
    .wechat-item[data-field="是否资源机"],
    .wechat-item[data-field="是否权益机"],
    .wechat-item[data-field="已更换产品的序列号"],
    .wechat-item[data-field="激活锁"],
    .wechat-item[data-field="丢失模式"],
    .wechat-item[data-field="ID黑白"],
    .wechat-item[data-field="运营商"],
    .wechat-item[data-field="网络锁"] {
        padding: 6px 8px;
        margin-bottom: 8px;
    }
    
    .wechat-item[data-field="型号"] .wechat-label,
    .wechat-item[data-field="IMEI"] .wechat-label,
    .wechat-item[data-field="IMEI2"] .wechat-label,
    .wechat-item[data-field="序列号"] .wechat-label,
    .wechat-item[data-field="容量"] .wechat-label,
    .wechat-item[data-field="颜色"] .wechat-label,
    .wechat-item[data-field="激活状态"] .wechat-label,
    .wechat-item[data-field="购买日期"] .wechat-label,
    .wechat-item[data-field="激活日期"] .wechat-label,
    .wechat-item[data-field="保修状态"] .wechat-label,
    .wechat-item[data-field="保修结束日期"] .wechat-label,
    .wechat-item[data-field="保修剩余"] .wechat-label,
    .wechat-item[data-field="是否延保"] .wechat-label,
    .wechat-item[data-field="是否官换机"] .wechat-label,
    .wechat-item[data-field="是否官翻机"] .wechat-label,
    .wechat-item[data-field="是否演示机"] .wechat-label,
    .wechat-item[data-field="是否资源机"] .wechat-label,
    .wechat-item[data-field="是否权益机"] .wechat-label,
    .wechat-item[data-field="已更换产品的序列号"] .wechat-label,
    .wechat-item[data-field="激活锁"] .wechat-label,
    .wechat-item[data-field="丢失模式"] .wechat-label,
    .wechat-item[data-field="ID黑白"] .wechat-label,
    .wechat-item[data-field="运营商"] .wechat-label,
    .wechat-item[data-field="网络锁"] .wechat-label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .wechat-item[data-field="型号"] .wechat-value,
    .wechat-item[data-field="IMEI"] .wechat-value,
    .wechat-item[data-field="IMEI2"] .wechat-value,
    .wechat-item[data-field="序列号"] .wechat-value,
    .wechat-item[data-field="容量"] .wechat-value,
    .wechat-item[data-field="颜色"] .wechat-value,
    .wechat-item[data-field="激活状态"] .wechat-value,
    .wechat-item[data-field="购买日期"] .wechat-value,
    .wechat-item[data-field="激活日期"] .wechat-value,
    .wechat-item[data-field="保修状态"] .wechat-value,
    .wechat-item[data-field="保修结束日期"] .wechat-value,
    .wechat-item[data-field="保修剩余"] .wechat-value,
    .wechat-item[data-field="是否延保"] .wechat-value,
    .wechat-item[data-field="是否官换机"] .wechat-value,
    .wechat-item[data-field="是否官翻机"] .wechat-value,
    .wechat-item[data-field="是否演示机"] .wechat-value,
    .wechat-item[data-field="是否资源机"] .wechat-value,
    .wechat-item[data-field="是否权益机"] .wechat-value,
    .wechat-item[data-field="已更换产品的序列号"] .wechat-value,
    .wechat-item[data-field="激活锁"] .wechat-value,
    .wechat-item[data-field="丢失模式"] .wechat-value,
    .wechat-item[data-field="ID黑白"] .wechat-value,
    .wechat-item[data-field="运营商"] .wechat-value,
    .wechat-item[data-field="网络锁"] .wechat-value {
        font-size: 12px;
    }
}

/* 3023服务样式 - 原数据格式显示 */
.wechat-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-display {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    white-space: nowrap;
    height: 36px;
    line-height: 1;
}

.status-label {
    font-weight: bold;
    color: #495057;
    font-size: 14px;
    margin-right: 8px;
}

.status-value {
    font-weight: normal;
    color: #212529;
    font-size: 14px;
    padding: 2px 6px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #ced4da;
}

/* 3023状态高亮样式 */
.status-value.status-online {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    font-weight: bold;
}

.status-value.status-offline {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    font-weight: bold;
}

.status-value.status-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    font-weight: bold;
}

.status-value.status-loading {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
    font-weight: bold;
}

.wechat-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.wechat-form > * {
    margin: 0;
}

.wechat-select {
    padding: 8px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    color: #333;
    width: auto;
    min-width: 120px;
    max-width: 200px;
    height: 36px;
    line-height: 1;
}

.wechat-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.wechat-input {
    padding: 8px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    color: #333;
    width: auto;
    min-width: 200px;
    max-width: 300px;
    height: 36px;
    line-height: 1;
}

.wechat-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.wechat-input::placeholder {
    color: #6c757d;
}

.wechat-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: normal;
    border: 1px solid #007bff;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    height: 36px;
    line-height: 1;
}

.wechat-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 原数据格式显示样式 */
.wechat-result-original {
    margin-top: 15px;
}

.wechat-result-original pre {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #333;
    overflow-x: auto;
}

/* 历史记录卡片样式 */
.wechat-history-list .history-card {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wechat-history-list .history-card:hover {
    background: #e9ecef;
}

/* 响应式设计 - 原格式 */
@media (max-width: 768px) {
    .wechat-controls {
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .status-display {
        align-self: flex-start;
    }
    
    .wechat-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .wechat-select,
    .wechat-input {
        width: 100%;
        max-width: none;
    }
    
    .wechat-btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wechat-controls {
        padding: 8px;
    }
    
    .status-display {
        padding: 6px 10px;
    }
    
    .wechat-select,
    .wechat-input {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .wechat-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 响应式设计 - 原格式适配 */
@media (max-width: 768px) {
    .rankings-container {
        margin-top: 10px;
        border-radius: 8px;
    }

    .rankings-header {
        padding: 15px;
        min-height: auto;
    }

    .rankings-body {
        padding: 15px;
        border-radius: 0 0 8px 8px;
    }
    
    .top-three {
        display: block;
        margin-bottom: 20px;
    }
    
    .top-three-item {
        display: block;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        border: 1px solid #dee2e6;
    }
    
    .top-medal {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .top-rank {
        font-size: 16px;
        margin-bottom: 5px;
        display: block;
    }
    
    .top-username {
        font-size: 14px;
        margin-bottom: 10px;
        display: block;
    }
    
    .top-score {
        font-size: 18px;
        margin-bottom: 10px;
        display: block;
    }
    
    .rankings-list {
        padding: 15px;
        display: block;
        border-radius: 8px;
    }
    
    .rankings-header-row {
        display: block;
        padding: 10px;
        font-size: 12px;
        margin-bottom: 10px;
        border-radius: 4px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .rank-item {
        display: block;
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
    }
    
    .rank-position {
        display: inline-block;
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 10px;
    }

    .rank-username {
        font-size: 14px;
        display: inline-block;
        margin-right: 10px;
    }
    
    .rank-header-stats,
    .rank-stats {
        display: block;
        margin-top: 10px;
    }
    
    .rank-header-stat {
        display: inline-block;
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 3px;
        margin-right: 5px;
        margin-bottom: 5px;
        background: #e9ecef;
        border: 1px solid #ced4da;
    }
    
    .top-rank-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .top-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 8px;
        display: inline-block;
    }
    
    .top-username {
        font-size: 14px;
        margin-bottom: 5px;
        display: block;
    }
    
    .top-score {
        font-size: 16px;
        display: block;
    }
    
    .rank-item {
        padding: 10px;
        margin-bottom: 5px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
    }
    
    .rank-badge {
        width: 25px;
        height: 25px;
        font-size: 12px;
        display: inline-block;
        margin-right: 8px;
    }
    
    .rank-avatar {
        width: 25px;
        height: 25px;
        font-size: 12px;
        display: inline-block;
        margin-right: 8px;
    }
    
    .rank-username {
        font-size: 13px;
        display: inline-block;
        margin-right: 8px;
    }
    
    .rank-user-detail {
        font-size: 11px;
        display: block;
        margin-top: 5px;
    }
    
    .rank-score {
        font-size: 14px;
        display: inline-block;
        margin-left: auto;
    }
    
    .rank-header-stat {
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 3px;
        margin-right: 5px;
        margin-bottom: 5px;
        background: #e9ecef;
        border: 1px solid #ced4da;
        display: inline-block;
    }
    
    .rank-header-stat .stat-label {
        font-size: 11px;
    }
    
    .stat-item {
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 3px;
        margin-right: 5px;
        margin-bottom: 5px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        display: inline-block;
    }
    
    .stat-item .stat-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
        display: inline-block;
        margin-right: 3px;
    }
    
    .stat-item .stat-label {
        font-size: 11px;
        display: inline-block;
    }
    
    .rank-total-value {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 15px;
        display: inline-block;
        margin-left: auto;
    }
    
    .rank-position {
        font-size: 12px;
        width: 25px;
        height: 25px;
        display: inline-block;
        margin-right: 8px;
    }
    
    .rank-username {
        font-size: 13px;
        display: inline-block;
        margin-right: 8px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: normal;
        word-wrap: normal;
    }

    /* 统计卡片响应式 - 原格式 */
    .ranking-stats {
        display: block;
        margin-top: 15px;
        padding-top: 15px;
    }

    .ranking-stats .stat-card {
        display: block;
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 10px;
        border: 1px solid #dee2e6;
        background: #f8f9fa;
    }

    .ranking-stats .stat-icon {
        font-size: 16px;
        margin-bottom: 5px;
        display: inline-block;
        margin-right: 8px;
    }

    .ranking-stats .stat-content p {
        font-size: 14px;
        display: inline-block;
    }
}

@media (max-width: 600px) {
    .rankings-body {
        padding: 10px;
    }
    
    .top-three-item {
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    .top-medal {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .top-rank {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .top-username {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .top-score {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .rankings-list {
        padding: 10px;
    }
    
    .rankings-header-row {
        display: block;
        padding: 8px;
        font-size: 11px;
        margin-bottom: 8px;
        border-radius: 3px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .rank-item {
        display: block;
        padding: 8px;
        margin-bottom: 6px;
        border-radius: 3px;
        border: 1px solid #dee2e6;
    }
    
    .rank-header-stats,
    .rank-stats {
        display: block;
        margin-top: 8px;
    }
    
    .rank-header-stat {
        padding: 4px 6px;
        font-size: 10px;
        border-radius: 2px;
        margin-right: 4px;
        margin-bottom: 4px;
        background: #e9ecef;
        border: 1px solid #ced4da;
        display: inline-block;
    }
    
    .stat-item {
        padding: 4px 6px;
        font-size: 10px;
        border-radius: 2px;
        margin-right: 4px;
        margin-bottom: 4px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        display: inline-block;
    }
    
    .stat-item .stat-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
        display: inline-block;
        margin-right: 2px;
    }
    
    .stat-item .stat-label {
        font-size: 10px;
        display: inline-block;
    }
    
    .rank-total-value {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 10px;
        display: inline-block;
        margin-left: auto;
    }
    
    .rank-position {
        font-size: 11px;
        width: 20px;
        height: 20px;
        display: inline-block;
        margin-right: 6px;
    }
    
    .rank-username {
        font-size: 11px;
        display: inline-block;
        margin-right: 6px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: normal;
        word-wrap: normal;
    }
}

@media (max-width: 480px) {
    .rankings-body {
        padding: 8px;
    }
    
    .top-three-item {
        padding: 8px;
        border-radius: 3px;
        margin-bottom: 6px;
    }
    
    .top-medal {
        width: 25px;
        height: 25px;
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .top-rank {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .top-username {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .top-score {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .rankings-list {
        padding: 8px;
    }
    
    .rankings-header-row {
        display: block;
        padding: 6px;
        font-size: 10px;
        margin-bottom: 6px;
        border-radius: 2px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .rank-item {
        display: block;
        padding: 6px;
        margin-bottom: 4px;
        border-radius: 2px;
        border: 1px solid #dee2e6;
    }
    
    .rank-header-stats,
    .rank-stats {
        display: block;
        margin-top: 6px;
    }
    
    .rank-header-stat {
        padding: 3px 5px;
        font-size: 9px;
        border-radius: 2px;
        margin-right: 3px;
        margin-bottom: 3px;
        background: #e9ecef;
        border: 1px solid #ced4da;
        display: inline-block;
    }
    
    .stat-item {
        padding: 3px 5px;
        font-size: 9px;
        border-radius: 2px;
        margin-right: 3px;
        margin-bottom: 3px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        display: inline-block;
    }
    
    .stat-item .stat-icon {
        width: 12px;
        height: 12px;
        font-size: 8px;
        display: inline-block;
        margin-right: 2px;
    }
    
    .stat-item .stat-label {
        font-size: 9px;
        display: inline-block;
    }
    
    .rank-total-value {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 8px;
        display: inline-block;
        margin-left: auto;
    }
    
    .rank-position {
        font-size: 10px;
        width: 18px;
        height: 18px;
        display: inline-block;
        margin-right: 5px;
    }
    
    .rank-username {
        font-size: 10px;
        display: inline-block;
        margin-right: 5px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: normal;
        word-wrap: normal;
    }
}

/* 微信部分样式 - 原格式显示 */
#wechat .content-section {
    width: 100%;
    margin: 0;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

#wechat .dashboard-details {
    width: 100%;
    margin: 0;
}

#wechat .detail-section {
    width: 100%;
    margin: 0 0 15px 0;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #fff;
    padding: 15px;
}

#wechat .config-box {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    padding: 15px;
}

/* 微信结果显示区域 - 原格式 */
#wechat .wechat-result {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

#wechat .wechat-fields {
    width: 100%;
    display: block;
}

#wechat .wechat-fields > * {
    display: block;
    margin-bottom: 10px;
}

/* 微信历史记录区域 - 原格式 */
#wechat .wechat-history {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    padding: 15px;
}

#wechat .wechat-history-list {
    width: 100%;
    display: block;
}

#wechat .wechat-history-list > * {
    display: block;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    background: #f8f9fa;
}

/* 微信部分主内容区域 - 原格式 */
#wechat .main-content {
    margin-left: 200px;
    padding: 15px;
    width: calc(100% - 200px);
}

/* 微信部分内容区域 - 原格式 */
#wechat .content-section {
    width: 100%;
    margin: 0;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    box-shadow: none;
}

/* ===== 问答系统新增样式 ===== */

/* 问答系统标签页 */
.qa-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.qa-tabs .tab-btn {
    padding: 12px 20px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-tabs .tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.qa-tabs .tab-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* 问答系统标签页内容 */
.qa-tab-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.qa-tab-content.hidden {
    display: none;
}

/* 添加题目表单 */
.qa-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-section h3 {
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qa-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-form .form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.qa-form .form-group select,
.qa-form .form-group textarea {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.qa-form .form-group select:focus,
.qa-form .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.qa-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.qa-form .form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qa-form .form-group input[type="file"]:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

/* 图片预览 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview .preview-item {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.image-preview .preview-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.image-preview .preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease;
}

.image-preview .preview-item .remove-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 20px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions .btn-primary {
    background: #007bff;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 题目管理界面 */
.qa-management-container {
    max-width: 1200px;
    margin: 0 auto;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.management-header h3 {
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.management-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-controls input {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    transition: border-color 0.3s ease;
}

.search-controls input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 题目列表 */
.qa-list-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.qa-list {
    max-height: 600px;
    overflow-y: auto;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.qa-list-item {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    transition: background 0.3s ease;
}

.qa-list-item:hover {
    background: #f8f9fa;
}

.qa-list-item:last-child {
    border-bottom: none;
}

.qa-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.qa-item-info {
    flex: 1;
}

.qa-item-category {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.qa-item-question {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.qa-item-answer {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.qa-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.qa-item-actions .btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.qa-item-actions .btn-edit {
    background: #28a745;
    color: white;
}

.qa-item-actions .btn-edit:hover {
    background: #1e7e34;
}

.qa-item-actions .btn-delete {
    background: #dc3545;
    color: white;
}

.qa-item-actions .btn-delete:hover {
    background: #c82333;
}

.qa-item-images {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qa-item-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qa-item-images img:hover {
    transform: scale(1.1);
}

.qa-item-meta {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f4;
}

/* 空状态 */
.qa-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.qa-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.qa-empty h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qa-tabs {
        flex-direction: column;
    }
    
    .qa-tabs .tab-btn {
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .management-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .management-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-controls input {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .qa-item-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .qa-item-actions {
        align-self: flex-start;
    }
}

/* 文件导入样式 */
.qa-import-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.import-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.import-info {
    background: rgba(240, 248, 255, 0.8);
    border: 1px solid #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.import-info p {
    margin-bottom: 15px;
    color: #1976d2;
    font-weight: 500;
}

.import-info ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.import-info li {
    margin-bottom: 8px;
    color: #424242;
}

.json-example {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.json-example h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.json-example pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.import-form {
    margin-top: 25px;
}

.import-form .form-group {
    margin-bottom: 20px;
}

.import-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.import-form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.import-form input[type="file"]:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.import-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    background: #f9f9f9;
}

.import-form textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.import-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.import-progress {
    margin-top: 20px;
    padding: 20px;
    background: rgba(240, 248, 255, 0.8);
    border-radius: 10px;
    border: 1px solid #e3f2fd;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: #1976d2;
    font-weight: 500;
}


/* 答案样式 */
.qa-answer,
.qa-item-answer {
    color: #28a745 !important;
    font-weight: 500 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qa-import-container {
        padding: 15px;
    }
    
    .import-section {
        padding: 20px;
    }
    
    .import-actions {
        flex-direction: column;
    }
    
    .json-example pre {
        font-size: 11px;
        padding: 10px;
    }
}