/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    min-height: 100vh;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 通用隐藏滚动条类 */
.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #30363d;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* 用户认证相关样式 */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-welcome {
    color: #333;
    font-weight: 500;
    margin-right: 10px;
}

.logout-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* 认证表单样式 */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 防止背景滚动 */
body.modal-open {
    overflow: hidden;
}

.auth-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    max-width: 450px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    box-sizing: border-box;
}

.auth-form-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-form-close:hover {
    background: #f5f5f5;
    color: #333;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.form-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.form-actions button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-actions button[type="button"] {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.form-actions button[type="button"]:hover {
    background: #e9ecef;
    color: #495057;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .auth-modal-overlay {
        padding: 10px;
    }
    
    .auth-form {
        min-width: 280px;
        padding: 25px 20px;
        margin: 0;
    }
    
    .auth-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions button {
        width: 100%;
        padding: 14px;
    }
    
    .nav-auth {
        gap: 10px;
    }
    
    .auth-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #58a6ff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #58a6ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #58a6ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(13, 17, 23, 0.8), rgba(22, 27, 34, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230d1117" width="1200" height="600"/><circle fill="%2358a6ff" cx="200" cy="150" r="3"/><circle fill="%2358a6ff" cx="800" cy="300" r="2"/><circle fill="%2358a6ff" cx="1000" cy="100" r="4"/><circle fill="%2358a6ff" cx="400" cy="400" r="2"/><circle fill="%2358a6ff" cx="600" cy="200" r="3"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e0e0e0;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(135deg, #58a6ff 0%, #7c3aed 25%, #f59e0b 50%, #10b981 75%, #58a6ff 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease-in-out infinite, textGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(88, 166, 255, 0.3);
    filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.4));
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #58a6ff;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}


/* 服务器列表区域 */
.servers-section {
    background: #0d1117;
    padding: 60px 0;
    min-height: 100vh;
}

.servers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.connection-status {
    display: flex;
    gap: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator i {
    font-size: 0.8rem;
}

.status-indicator.connected i {
    color: #28a745;
}

.status-indicator.disconnected i {
    color: #dc3545;
}

.status-indicator.connecting i {
    color: #ffc107;
    animation: pulse 1.5s infinite;
}

.servers-header h2 {
    font-size: 2.5rem;
    color: #e0e0e0;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #e0e0e0;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #58a6ff;
    color: white;
    border-color: #58a6ff;
}

.view-btn:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.view-btn.active:hover {
    background: #4a9eff;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.servers-grid.list-view {
    grid-template-columns: 1fr;
}

/* 服务器卡片 */
.server-card {
    background: #161b22;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #30363d;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: #58a6ff;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #58a6ff, #7c3aed);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.server-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-online {
    color: #28a745;
}

.status-offline {
    color: #dc3545;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #dc3545;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
    50% {
        background-position: 100% 100%;
        transform: scale(1);
    }
    75% {
        background-position: 0% 100%;
        transform: scale(1.02);
    }
    100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.4)) drop-shadow(0 0 40px rgba(118, 75, 162, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(240, 147, 251, 0.6)) drop-shadow(0 0 60px rgba(245, 87, 108, 0.4));
    }
}

.server-info {
    margin-bottom: 20px;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.server-info-label {
    color: #8b949e;
    font-weight: 500;
}

.server-info-value {
    color: #e0e0e0;
    font-weight: 600;
}

/* 地图预览图片样式 */
.map-preview-image {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #30363d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-preview-image:hover {
    border-color: #58a6ff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.map-fallback {
    color: #8b949e;
    font-style: italic;
    font-size: 0.9rem;
}

/* 地图预览模态框样式 */
.map-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.map-preview-modal {
    background: #161b22;
    border-radius: 15px;
    border: 1px solid #30363d;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.map-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #30363d;
    background: #0d1117;
}

.map-preview-header h3 {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
}

.map-preview-content {
    padding: 20px;
    text-align: center;
}

.map-preview-large {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    border: 2px solid #30363d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.map-preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #8b949e;
}

.map-preview-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.map-preview-error p {
    font-size: 1.1rem;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 难度等级样式 */
.server-info-value {
    position: relative;
}

.server-info-value[data-difficulty="Tier 1"] {
    color: #28a745;
    font-weight: 700;
}

.server-info-value[data-difficulty="Tier 2"] {
    color: #17a2b8;
    font-weight: 700;
}

.server-info-value[data-difficulty="Tier 3"] {
    color: #ffc107;
    font-weight: 700;
}

.server-info-value[data-difficulty="Tier 4"] {
    color: #fd7e14;
    font-weight: 700;
}

.server-info-value[data-difficulty="Tier 5"] {
    color: #dc3545;
    font-weight: 700;
}

.server-info-value[data-difficulty="Tier 6"] {
    color: #6f42c1;
    font-weight: 700;
}

.server-info-value[data-difficulty="Tier 7"] {
    color: #e83e8c;
    font-weight: 700;
}

.server-players {
    background: #21262d;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #30363d;
}

.players-bar {
    background: #30363d;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.players-fill {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #7c3aed);
    transition: width 0.3s ease;
}

.players-text {
    text-align: center;
    font-weight: 600;
    color: #e0e0e0;
}

.server-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #58a6ff;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #4a9eff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #21262d;
    color: #e0e0e0;
    border: 1px solid #30363d;
}

.btn-secondary:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.btn-favorite {
    background: #21262d;
    color: #8b949e;
    border: 2px solid #30363d;
    padding: 8px 12px;
}

.btn-favorite:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.btn-favorite.favorited {
    background: #58a6ff;
    color: white;
    border-color: #58a6ff;
}

/* 提交服务器区域 */
.submit-section {
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.submit-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.submit-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.submit-btn {
    background: white;
    color: #58a6ff;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 页脚 */
.footer {
    background: #0d1117;
    color: #e0e0e0;
    padding: 60px 0 20px;
    border-top: 1px solid #30363d;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #58a6ff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #58a6ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #30363d;
    color: #8b949e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        font-weight: 900;
        letter-spacing: 2px;
        text-transform: uppercase;
        background: linear-gradient(135deg, #58a6ff 0%, #7c3aed 25%, #f59e0b 50%, #10b981 75%, #58a6ff 100%);
        background-size: 400% 400%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradientFlow 4s ease-in-out infinite, textGlow 2s ease-in-out infinite alternate;
        text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
        filter: drop-shadow(0 0 15px rgba(88, 166, 255, 0.4));
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .search-bar {
        flex-direction: column;
    }

    .filter-controls {
        flex-direction: column;
        align-items: center;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .servers-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .server-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        font-weight: 900;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        background: linear-gradient(135deg, #58a6ff 0%, #7c3aed 25%, #f59e0b 50%, #10b981 75%, #58a6ff 100%);
        background-size: 400% 400%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradientFlow 4s ease-in-out infinite, textGlow 2s ease-in-out infinite alternate;
        text-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
        filter: drop-shadow(0 0 10px rgba(88, 166, 255, 0.4));
    }

    .server-card {
        padding: 20px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

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

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.8;
}

/* 服务器详情页面 */
.server-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.server-details-modal {
    background: #161b22;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #30363d;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.server-details-modal::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.server-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #30363d;
    background: linear-gradient(90deg, #58a6ff, #7c3aed);
    border-radius: 15px 15px 0 0;
}

.server-details-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.server-details-content {
    padding: 30px;
}

.server-status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #21262d;
    border-radius: 10px;
    border: 1px solid #30363d;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-indicator.online {
    color: #28a745;
}

.status-indicator.offline {
    color: #dc3545;
}

.server-ip-section {
    flex: 1;
    margin-left: 30px;
}

.server-ip-section label {
    display: block;
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-ip {
    background: #0d1117;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #30363d;
    color: #e0e0e0;
    font-family: monospace;
    font-size: 1rem;
    flex: 1;
}

.copy-btn {
    background: #58a6ff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #4a9eff;
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    color: #8b949e;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item .info-value {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
}

/* 玩家列表样式 */
.players-section {
    margin-bottom: 30px;
}

.players-section h3 {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #21262d;
    border-radius: 10px;
    border: 1px solid #30363d;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.players-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #0d1117;
    border-radius: 6px;
    border: 1px solid #30363d;
    transition: background 0.3s ease;
}

.player-item:hover {
    background: #161b22;
}

.player-item i {
    color: #58a6ff;
    font-size: 0.9rem;
}

.player-name {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.difficulty-section {
    margin-bottom: 30px;
}

.difficulty-section h3 {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.difficulty-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #21262d;
    border-radius: 10px;
    border: 1px solid #30363d;
}

.difficulty-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.difficulty-label {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
}

.difficulty-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.official-badge {
    background: #58a6ff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.player-badge {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.final-score-badge {
    background: #7c3aed;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty-voting {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vote-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.5s ease;
}

.vote-btn:hover::before {
    left: 100%;
}

.vote-btn.up {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.vote-btn.up:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border-color: #059669;
}

.vote-btn.up:active {
    transform: translateY(0) scale(0.98);
}

.vote-btn.down {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #dc3545;
}

.vote-btn.down:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    border-color: #c82333;
}

.vote-btn.down:active {
    transform: translateY(0) scale(0.98);
}

.vote-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.vote-btn:hover i {
    transform: scale(1.1);
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.vote-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 已投票状态样式 */
.vote-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.vote-btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.vote-btn.voted {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border-color: #28a745 !important;
    color: white !important;
    animation: voteSuccess 0.6s ease;
}

.vote-btn.voted:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
    border-color: #20c997 !important;
}

/* 投票成功动画 */
.vote-btn.voted {
    animation: voteSuccess 0.6s ease;
}

@keyframes voteSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 投票按钮脉冲效果 */
.vote-btn.up:hover {
    animation: pulseGreen 1.5s infinite;
}

.vote-btn.down:hover {
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5); }
}

@keyframes pulseRed {
    0%, 100% { box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(220, 53, 69, 0.5); }
}

/* 投票计数动画 */
.vote-count {
    display: inline-block;
    transition: all 0.3s ease;
}

.vote-btn:hover .vote-count {
    transform: scale(1.1);
    font-weight: 700;
}

.vote-text {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.vote-btn:hover .vote-text {
    opacity: 1;
    transform: scale(1.05);
}

.server-description {
    margin-bottom: 30px;
}

.server-description h3 {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.server-description p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 10px;
}

.server-actions-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.server-actions-section .btn {
    flex: 1;
    min-width: 150px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .server-details-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .server-details-header {
        padding: 20px;
    }
    
    .server-details-header h2 {
        font-size: 1.5rem;
    }
    
    .server-details-content {
        padding: 20px;
    }
    
    .server-status-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .server-ip-section {
        margin-left: 0;
        width: 100%;
    }
    
    .ip-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .server-info-grid {
        grid-template-columns: 1fr;
    }
    
    .difficulty-grid {
        grid-template-columns: 1fr;
    }
    
    .players-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        max-height: 200px;
    }
    
    .difficulty-grid {
        grid-template-columns: 1fr;
    }
    
    .difficulty-badges {
        flex-direction: column;
        gap: 5px;
    }
    
    .difficulty-voting {
        flex-direction: column;
    }
    
    .vote-btn {
        flex: none;
    }
}
