
/* 角色选择相关样式 */
.role-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

.role-select-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.role-select-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.role-select-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.role-select-info {
    color: white;
    margin-bottom: 15px;
}

.role-select-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.role-name {
    font-size: 16px !important;
    font-weight: bold;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.role-server {
    color: #f0f0f0 !important;
    font-size: 13px !important;
}

.role-device {
    color: #e0e0e0 !important;
    font-size: 12px !important;
    opacity: 0.9;
}

.select-role-btn {
    width: 100%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.select-role-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.select-role-btn:active {
    transform: scale(0.95);
}

/* 角色选择提示样式 */
.role-select-tip {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 10px 0 20px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .role-select-list {
        grid-template-columns: 1fr;
        gap: 10px;
        max-height: 300px;
    }
    
    .role-select-item {
        padding: 15px;
    }
    
    .role-name {
        font-size: 15px !important;
    }
    
    .role-server {
        font-size: 12px !important;
    }
    
    .role-device {
        font-size: 11px !important;
    }
}

/* 加载状态样式 */
.role-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.role-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无角色数据样式 */
.no-role-box {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff7b7b 0%, #ff6b9d 100%);
    color: white;
    border-radius: 12px;
    margin: 20px 0;
}

.no-role-box p {
    margin: 10px 0;
    font-size: 16px;
}

.no-role-box p:first-child {
    font-size: 18px;
    font-weight: bold;
}

/* 游戏信息样式优化 */
.game-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.game-info p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 500;
}

.game-info strong {
    font-weight: 700;
}
