* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.controls {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.search-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-group input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn, .refresh-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    height: fit-content;
}

.search-btn {
    background: #667eea;
    color: white;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.refresh-btn {
    background: #28a745;
    color: white;
}

.refresh-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.filter-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: #667eea;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #667eea;
    font-size: 1.1rem;
    position: relative;
    z-index: 10;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.server-list {
    display: grid;
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
    min-height: 200px; /* 设置最小高度避免布局跳动 */
}

/* 自定义滚动条样式 */
.server-list::-webkit-scrollbar {
    width: 8px;
}

.server-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.server-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.server-list::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.server-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-left: 3px solid #667eea;
    cursor: pointer;
}

.server-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    padding-right: 60px; /* 为收藏按钮留出空间 */
}

.server-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.server-status {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-online {
    background: #d4edda;
    color: #155724;
}

.status-full {
    background: #f8d7da;
    color: #721c24;
}

.status-empty {
    background: #fff3cd;
    color: #856404;
}

.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 0;
}

.info-item i {
    color: #667eea;
    width: 12px;
    font-size: 0.8rem;
}

.info-label {
    font-weight: 500;
    color: #555;
    font-size: 0.8rem;
}

.info-value {
    color: #333;
    font-size: 0.8rem;
}

.server-tags {
    margin-top: 6px;
}

.server-tags h4 {
    margin-bottom: 3px;
    color: #555;
    font-size: 0.75rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
    border: 1px solid #e9ecef;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 12px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.page-btn:hover, .page-btn.active {
    background: #667eea;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* 错误提示样式 */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.error-toast.warning {
    background: #ffc107;
    color: #856404;
}

.error-toast.info {
    background: #17a2b8;
    color: white;
}

.error-toast.success {
    background: #28a745;
    color: white;
}

.error-toast .error-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-toast .error-message {
    font-weight: 500;
    margin: 0;
}

.error-toast .error-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.error-toast .retry-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.error-toast .retry-btn:hover {
    background: rgba(255,255,255,0.3);
}

.error-toast .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
}

.error-toast .close-btn:hover {
    opacity: 1;
}

/* 收藏按钮样式 */
.favorite-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
    padding: 5px;
}

.favorite-btn:hover {
    color: #ffc107;
}

.favorite-btn.favorited {
    color: #ffc107;
}

.favorite-btn.favorited:hover {
    color: #dc3545;
}

.server-card .favorite-btn {
    position: absolute;
    top: 20px;
    right: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

.server-card:hover .favorite-btn {
    opacity: 1;
}

/* 收藏页面样式 */
.favorites-section {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.favorites-header h3 {
    color: #333;
    margin: 0;
}

.favorites-count {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.favorites-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

.favorites-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 重试按钮样式 */
.retry-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.retry-btn-large {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.retry-btn-large:hover {
    background: #0056b3;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.detail-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-value {
    color: #333;
    font-size: 0.95rem;
}

.connect-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.connect-command {
    background: #2d3748;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 10px 0;
    position: relative;
    word-break: break-all;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #5a6fd8;
}

.copy-btn.copied {
    background: #28a745;
}

.tags-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-detail {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .search-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .search-group {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
    
    .search-group label {
        text-align: center;
        margin-bottom: 8px;
    }
    
    .search-group input,
    .search-group select {
        width: 100%;
        text-align: center;
    }
    
    .search-btn, .refresh-btn {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    /* 按钮容器居中 */
    .search-section > button {
        margin: 10px auto !important;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
    
    .filter-group label {
        text-align: center;
        margin-bottom: 8px;
    }
    
    .filter-group select {
        width: 100%;
        text-align: center;
    }
    
    .server-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .server-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载进度条样式 */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    z-index: 9999;
    transition: width 0.3s ease;
}

.loading-bar.active {
    width: 90%;
}

.loading-text {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10000;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.loading-text.active {
    display: block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* 功能介绍样式 */
.help-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.help-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.help-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-section li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.help-section li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
}

.help-section ol {
    margin-left: 20px;
    margin-top: 8px;
}

.help-section ol li {
    padding-left: 0;
}

.help-section ol li:before {
    display: none;
}

.help-footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-top: 20px;
}

.help-footer p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 功能介绍按钮样式 */
#helpBtn:hover {
    background: #138496 !important;
    transform: translateY(-2px);
}

/* 性能优化样式 */
.server-list {
    contain: layout style paint;
    will-change: transform;
}

.server-card {
    contain: layout style paint;
    transform: translateZ(0);
}

/* 虚拟滚动容器 */
.virtual-scroll-container {
    height: 600px;
    overflow-y: auto;
    position: relative;
}

.virtual-scroll-content {
    position: relative;
}

.virtual-scroll-item {
    position: absolute;
    width: 100%;
    left: 0;
}

/* 性能监控面板 */
.performance-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    display: none;
}

.performance-panel.show {
    display: block;
}

.performance-metric {
    margin: 2px 0;
}

/* 加载优化 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* GPU加速 */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 批量加载进度指示器 */
.batch-loading-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    animation: pulse 2s infinite;
}

.batch-loading-indicator.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* 内存使用优化 */
.memory-optimized {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

/* 滚动性能优化 */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 暗黑模式样式 */
.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-theme .container {
    color: #ecf0f1;
}

.dark-theme .controls {
    background: #34495e;
    color: #ecf0f1;
}

.dark-theme .server-card {
    background: #2c3e50;
    color: #ecf0f1;
    border-left-color: #3498db;
}

.dark-theme .server-card:hover {
    background: #34495e;
}

.dark-theme .modal-content {
    background: #2c3e50;
    color: #ecf0f1;
}

.dark-theme .stats {
    background: rgba(52, 73, 94, 0.9);
}

.dark-theme .stat-card {
    background: #34495e;
    color: #ecf0f1;
}

.dark-theme input, 
.dark-theme select {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a6741;
}

.dark-theme input:focus,
.dark-theme select:focus {
    border-color: #3498db;
}

/* 历史记录样式 */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.dark-theme .history-item {
    border-bottom-color: #4a6741;
}

.dark-theme .history-item:hover {
    background-color: #34495e;
}

.history-info {
    flex: 1;
}

.history-info strong {
    display: block;
    margin-bottom: 4px;
}

.history-meta {
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 10px;
}

.history-time {
    color: #6c757d;
    font-size: 0.8em;
}

.dark-theme .history-meta,
.dark-theme .history-time {
    color: #bdc3c7;
}

.history-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-remove:hover {
    background: #c82333;
}

.history-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* 延迟测试样式 */
.latency-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 5px;
}

.latency-excellent {
    background: #28a745;
    color: white;
}

.latency-good {
    background: #ffc107;
    color: #212529;
}

.latency-poor {
    background: #dc3545;
    color: white;
}

.latency-unknown {
    background: #6c757d;
    color: white;
}

/* 键盘快捷键提示 */
.keyboard-shortcuts {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    display: none;
}

.keyboard-shortcuts.show {
    display: block;
}

.shortcut-item {
    margin: 2px 0;
}

.shortcut-key {
    background: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    margin-right: 8px;
}

/* 进化功能样式 */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.analytics-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: white;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.analytics-card i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.analytics-card h3 {
    font-size: 24px;
    margin: 10px 0 5px 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.filter-section-advanced {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.filter-section-advanced h4 {
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 2px solid #6610f2;
    padding-bottom: 5px;
}

.export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.export-option {
    text-align: center;
    padding: 20px;
    border: 2px dashed #fd7e14;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.export-option:hover {
    border-color: #e83e8c;
    background: #fff5f8;
}

.export-option i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.recommendation-card {
    padding: 15px;
    border: 1px solid #e83e8c;
    border-radius: 8px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #fdf2f8);
    transition: transform 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.2);
}

.recommendation-card h4 {
    color: #e83e8c;
    margin-bottom: 8px;
}

.platform-distribution {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.progress-bar {
    width: 100px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-right: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 暗黑模式下的进化功能样式 */
.dark-theme .filter-section-advanced {
    background: #34495e;
    border-color: #4a6741;
    color: #ecf0f1;
}

.dark-theme .filter-section-advanced h4 {
    color: #ecf0f1;
    border-bottom-color: #8e44ad;
}

.dark-theme .export-option {
    border-color: #fd7e14;
    background: #2c3e50;
    color: #ecf0f1;
}

.dark-theme .export-option:hover {
    background: #34495e;
}

.dark-theme .recommendation-card {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-color: #e83e8c;
    color: #ecf0f1;
}

.dark-theme .platform-distribution {
    background: #34495e;
    color: #ecf0f1;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
    }
    
    .filter-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .server-card .favorite-btn {
        top: 5px;
        right: 5px;
        font-size: 1rem;
    }
    
    .history-actions {
        flex-direction: column;
    }
    
    .filter-grid,
    .export-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}