/**
 * 内容方向弹窗样式优化
 */

/* 提示区域 */
.direction-tip {
    margin-bottom: 16px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff9e6, #ffe5f3);
    border-radius: 6px;
    border-left: 3px solid #e91e63;
    text-align: left;
}

.tip-title {
    font-size: 13px;
    color: #c2185b;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: left;
}

.tip-text {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* 区块标题 */
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* 快捷选择区域 */
.direction-select-area {
    margin-bottom: 16px;
}

.categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direction-category {
    background: #fafafa;
    padding: 10px;
    border-radius: 6px;
}

.direction-category .category-title {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 4px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-direction-btn {
    padding: 6px 12px;
    background: white;
    color: #e91e63;
    border: 1.5px solid #ffc0cb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-direction-btn:hover {
    background: #ffe5f0;
    border-color: #e91e63;
    transform: translateY(-1px);
}

.quick-direction-btn.selected {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.quick-direction-btn:active {
    transform: translateY(0);
}

/* 自定义输入区域 */
.custom-input-area {
    margin-bottom: 16px;
}

.custom-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.custom-input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* 按钮区域 */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-cancel, .btn-confirm {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-confirm {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.btn-confirm:hover {
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* 手机端优化 */
@media (max-width: 768px) {
    .direction-tip {
        padding: 8px 10px;
    }
    
    .tip-title {
        font-size: 12px;
    }
    
    .tip-text {
        font-size: 11px;
    }
    
    .direction-category {
        padding: 8px;
    }
    
    .direction-category .category-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .category-buttons {
        gap: 5px;
    }
    
    .quick-direction-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .custom-input {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 70px;
    }
    
    .btn-cancel, .btn-confirm {
        padding: 7px 16px;
        font-size: 12px;
    }
    
    /* 确保弹窗内容可以滚动 */
    .modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
