/* anydoor.css - 任意门导航系统样式 */
.anydoor-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 900;
}

.anydoor-btn {
    padding: 10px 20px;
    background: linear-gradient(90deg, #20a53a, #3a86ff);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(32, 165, 58, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.anydoor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(32, 165, 58, 0.4);
}

/* 任意门模态框 */
.anydoor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: anydoor-fadeIn 0.3s ease;
    cursor: pointer;
}

.anydoor-modal-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: anydoor-slideUp 0.4s ease;
    position: relative;
    cursor: default;
}

.anydoor-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

.anydoor-close:hover {
    color: #e74c3c;
}

.anydoor-title {
    color: #20a53a;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.anydoor-subtitle {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.anydoor-input-group {
    margin-bottom: 20px;
}

.anydoor-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.anydoor-input:focus {
    outline: none;
    border-color: #20a53a;
}

.anydoor-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    min-height: 20px;
    text-align: left;
    padding-left: 5px;
}

.anydoor-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.anydoor-confirm, .anydoor-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.anydoor-confirm {
    background: linear-gradient(90deg, #20a53a, #3a86ff);
    color: white;
}

.anydoor-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(32, 165, 58, 0.3);
}

.anydoor-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.anydoor-cancel:hover {
    background: #e9ecef;
}

.anydoor-hint {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.anydoor-hint p {
    color: #7f8c8d;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#destinationList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.destination-tag {
    background: #e8f5e9;
    color: #20a53a;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #c8e6c9;
}

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

@keyframes anydoor-slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .anydoor-nav {
        top: 15px;
        left: 15px;
    }
    
    .anydoor-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .anydoor-modal-content {
        padding: 20px;
    }
    
    .anydoor-actions {
        flex-direction: column;
    }
}