/* 味型查询工具样式 */

.flavor-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* 固定在顶部的区域 */
.fixed-section {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    border-bottom: 1px solid #eee;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* 味型标签内容区域 */
.flavor-content {
    padding: 16px;
}

/* 输入框和说明区域 */
.input-group,
.label-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

#flavorDesc {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    line-height: 1.5;
}

/* 分类标题 */
h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 可折叠标题 */
.toggle-title {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
}

.toggle-title::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.toggle-title.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

/* 标签容器 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* 可折叠标签容器 */
.collapse-tags {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapse-tags.collapsed {
    max-height: 0;
    padding: 0 10px;
    margin-bottom: 0;
}

/* 味型标签 */
.flavor-tag {
    padding: 8px 15px;
    background-color: transparent;
    color: #333;
    border: 2px solid #4CAF50;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.flavor-tag:hover {
    background-color: #e8f5e9;
    transform: translateY(-2px);
}

.flavor-tag.active {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 响应式设计 */
@media (max-width: 375px) {
    .flavor-container {
        padding: 12px;
    }
    
    .flavor-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    h3 {
        font-size: 15px;
    }
}