/* 宽高比下拉菜单样式 */
.ratio-group {
    position: relative;
}

.aspect-ratio-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f5f7fa;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aspect-ratio-btn:hover {
    background-color: #edf2f7;
}

.aspect-ratio-btn i:last-child {
    margin-left: 6px;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.aspect-ratio-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 160px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    padding: 6px 0;
    border: 1px solid #e4e7eb;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.ratio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ratio-option:hover {
    background-color: #f5f7fa;
}

.ratio-option.active {
    background-color: #f0f9ff;
    color: #4f46e5;
    font-weight: 500;
}

.ratio-option i {
    font-size: 1.1em;
    width: 16px;
    text-align: center;
    color: inherit;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .aspect-ratio-btn {
        padding: 0.75rem 1.25rem;
        font-size: 13px;
    }
    
    .aspect-ratio-dropdown {
        width: 140px;
    }
    
    .ratio-option {
        padding: 8px 12px;
    }
}
