/* 厨房出品模块的CSS样式 */
/* 所有CSS类名和选择器，都要加文件名前缀 "menuOutput_" */

/* 主页面CSS样式 - 合并自home.css */
/* 所有CSS类名和选择器，都要加文件名前缀 "home_" */

/* 全局样式重置 */
.home_body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5; /* 浅灰底色 */
    min-height: 100vh;
    color: #333;
}

/* 主容器样式 */
.home_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px; /* 减小两侧空间 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px; /* 为底部固定的输入栏留出空间 */
}

/* 日期显示样式 */
.home_date-display {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 8px 15px; /* 减小两侧内边距 */
    margin-bottom: 2px; /* 最小间距 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home_date-display #home_current-date {
    font-size: 20px; /* 字号减小一号 */
    font-weight: bold;
    color: #4a5568;
    text-align: center;
}

/* 母菜单容器样式 */
.home_parent-menu-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px; /* 圆角改小 */
    padding: 5px; /* 边柜间距更细 */
    margin-bottom: 2px; /* 最小间距 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 母菜单箭头按钮组件样式 */
.home_parent-menu-arrows {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.home_parent-menu-arrow {
    background: #28a745; /* 绿色 */
    color: white; /* 白符号 */
    border: none;
    border-radius: 0; /* 移除默认圆角 */
    width: 24px; /* 1.5字宽 */
    height: 36px; /* 上下各减2px，从40px改为36px */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 箭头按钮组件中的箭头样式 */
.home_parent-menu-arrows .home_parent-menu-arrow {
    border-radius: 0;
}

/* 左箭头：只有左边有圆角 */
.home_parent-menu-arrows .home_parent-menu-arrow-left {
    border-radius: 8px 0 0 8px;
}

/* 右箭头：只有右边有圆角 */
.home_parent-menu-arrows .home_parent-menu-arrow-right {
    border-radius: 0 8px 8px 0;
}

.home_parent-menu-arrow:hover {
    background: #218838; /* 深绿色 */
}

.home_parent-menu-scroll-container {
    flex: 1;
    overflow: hidden;
    margin: 0 0; /* 移除左右间距 */
}

.home_parent-menu-scroll {
    display: flex;
    transition: transform 0.3s ease;
}

.home_parent-menu {
    display: flex;
    gap: 10px;
}

.home_parent-menu-item {
    padding: 6px 24px; /* 上下各减2px，从8px改为6px */
    background: #f7fafc;
    border: 1px solid #28a745; /* 边框减到最细 */
    border-radius: 4px; /* 圆角改小 */
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal; /* 未选中字体不要加粗 */
    color: #4a5568;
    white-space: nowrap;
}

.home_parent-menu-item:hover {
    background: #edf2f7;
    border-color: #218838; /* 深绿色边框 */
}

.home_parent-menu-item.home_active {
    background: #8dd19d; /* 修改为#8dd19d */
    color: #000000;
    border-color: #8dd19d;
    box-shadow: 0 4px 15px rgba(141, 209, 157, 0.3);
    font-weight: bold; /* 选中时字体加粗 */
}

/* 子菜单容器样式 */
.home_child-menu-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px; /* 圆角改小 */
    padding: 5px; /* 边柜间距更细 */
    margin-bottom: 10px; /* 减小底部间距 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home_child-menu-scroll-container {
    flex: 1;
    overflow: hidden;
    margin: 0 0; /* 移除左右间距 */
}

.home_child-menu-scroll {
    display: flex;
    transition: transform 0.3s ease;
}

.home_child-menu {
    display: flex;
    flex-shrink: 0;
    width: 100%; /* 改为100%宽度 */
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    padding: 1px;
}

.home_child-menu-item {
    flex-shrink: 0;
    padding: 6px 16px; /* 减小上下内边距 */
    background-color: #f0f0f0;
    border: 1px solid #ffd700; /* 浅黄边框 */
    border-radius: 6px; /* 四周小圆角 */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    min-width: 80px; /* 4个汉字宽度 */
    text-align: center;
    z-index: 10; /* 确保子菜单项在正确层级 */
    position: relative; /* 为z-index生效 */
}

.home_child-menu-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.home_child-menu-item.home_active {
    background-color: #abf6bd;
    color: #000000;
    border-color: #84e0b8;
    box-shadow: 0 2px 8px rgba(132, 224, 184, 0.3);
    font-weight: bold;
}

/* 子菜单箭头按钮 */
.home_child-menu-arrow {
    background-color: #28a745; /* 绿色 */
    color: white; /* 白符号 */
    border: 1px solid #218838;
    border-radius: 0; /* 移除默认圆角 */
    width: 24px; /* 1.5字宽 */
    height: 32px; /* 修改高度为32px */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

/* 子菜单左箭头：只有左边有圆角 */
#home_child-menu-left {
    border-radius: 8px 0 0 8px;
}

/* 子菜单右箭头：只有右边有圆角 */
#home_child-menu-right {
    border-radius: 0 8px 8px 0;
}

.home_child-menu-arrow:hover {
    background-color: #218838; /* 深绿色 */
    border-color: #1e7e34;
}

.home_child-menu-arrow-left {
    margin-right: 0; /* 移除右边距 */
}

.home_child-menu-arrow-right {
    margin-left: 0; /* 移除左边距 */
}

/* 导航BLOCK样式 */
.home_navigation-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home_navigation-block .home_date-display {
    margin-bottom: 0;
    border-radius: 10px;
}

.home_navigation-block .home_parent-menu-container {
    margin-bottom: 0;
    border-radius: 10px;
}

.home_navigation-block .home_child-menu-container {
    margin-bottom: 0;
    border-radius: 10px;
}

/* 交互区样式 */
.home_result-space {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 8px; /* 减小内边距 */
    margin-bottom: 10px; /* 减小底部间距 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
    min-height: 300px;
}

.home_initial-message {
    text-align: center;
    color: #a0aec0;
    font-size: 18px;
    font-style: italic;
}

.home_result-space h3 {
    color: #4a5568;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 10px;
}

/* 输入条样式 */
.home_input-bar {
    display: flex;
    justify-content: space-between; /* 输入框在左，按钮在右 */
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    z-index: 1000;
}

.home_input-bar #home_command-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
}

.home_input-bar #home_command-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.home_input-bar #home_send-button {
    padding: 12px 15px;
    background: #28a745; /* 绿色 */
    color: white; /* 白字 */
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 90px; /* 3个汉字宽 */
    min-width: 90px;
    flex-shrink: 0;
}

.home_input-bar #home_send-button:hover {
    background: #218838; /* 深绿色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* 动画效果 */
@keyframes home_fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.home_result-space > * {
    animation: home_fadeIn 0.5s ease;
}

/* 圆形按钮样式 */
.home_todo-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.home_todo-button:hover {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

/* 隐藏类 */
.home_hidden {
    display: none !important;
}



/* 输入示例区域样式 */
.menuOutput_input-example {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.menuOutput_input-example p {
    margin: 4px 0;
    line-height: 1.4;
}

.menuOutput_input-example p:first-child {
    margin-bottom: 8px;
}

/* 结果容器样式 */
#kitout_resultBlock {
    padding: 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 1px !important; /* 将上外边距调整到最小 */
}

/* 错误信息样式 */
.menuOutput_error {
    text-align: center;
    color: #dc3545;
    font-size: 16px;
    font-weight: 500;
    padding: 20px;
}

/* 分词标签容器样式 - 厨房出品模块专用 */
.menuOutput_tokenized-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* 分词标签样式 - 厨房出品模块专用 */
.menuOutput_token-tag {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    min-width: 60px;
    text-align: center;
    display: block !important;
    background-color: #f8f9fa;
    border: 1px solid #dc3545;
    color: #000000;
}

.menuOutput_token-tag-matched {
    background-color: #fff5f5;
    border: 2px solid #dc3545;
    color: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    min-width: 60px;
    text-align: center;
    display: block !important;
}

.menuOutput_token-tag-matched:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.menuOutput_token-tag-unmatched {
    background-color: #f8f9fa;
    border: 1px solid #dc3545;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    min-width: 60px;
    text-align: center;
    display: block !important;
}

.menuOutput_token-tag-unmatched:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.menuOutput_token-tag-new {
    background-color: #f0fff4;
    border: 2px solid #28a745;
    color: #155724;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    min-width: 60px;
    text-align: center;
    display: block !important;
}

.menuOutput_token-tag-new:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.menuOutput_token-tag-valid {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    min-width: 60px;
    text-align: center;
    display: block !important;
}

.menuOutput_token-tag-valid:hover {
    background-color: #ffc107;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}



/* 菜品列表框样式 - 厨房出品模块专用 */
.menuOutput_dish-list {
    position: absolute;
    left: 0;
    min-width: 200px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.menuOutput_dish-list-header {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.menuOutput_dish-list-items {
    padding: 8px 0;
}

.menuOutput_dish-list-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menuOutput_dish-list-item:hover {
    background-color: #f8f9fa;
}

.menuOutput_dish-list-current {
    background-color: #e3f2fd;
    color: #1976d2;
}

.menuOutput_dish-list-check {
    color: #28a745;
    font-weight: bold;
}

.menuOutput_dish-list-loading {
    padding: 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.menuOutput_dish-list-error {
    padding: 16px;
    text-align: center;
    color: #dc3545;
    font-weight: 500;
}


/* 未分类分区样式 */
.menuOutput_uncategorized-header {
    background-color: #e3f2fd !important;
    border: 1px solid #90caf9 !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    color: #1565c0 !important;
}

/* 餐段分区样式 */
.menuOutput_meal-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fafafa;
}

/* 餐段标题样式 */
.menuOutput_meal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

/* 早餐标题特殊样式 */
.menuOutput_breakfast-header {
    color: #E91E63;
    border-bottom-color: #E91E63;
}

/* 中餐标题特殊样式 */
.menuOutput_lunch-header {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

/* 晚餐标题特殊样式 */
.menuOutput_dinner-header {
    color: #FF9800;
    border-bottom-color: #FF9800;
}

/* 标题区域样式 */
.menuOutput_header-section {
    margin-bottom: 1px !important; /* 将底部间距调整到最小 */
}

.menuOutput_date-info {
    margin-bottom: 1px !important; /* 将日期信息底部间距调整到最小 */
}

/* 模式切换按钮样式 */
.menuOutput_mode-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 0;
}

.menuOutput_mode-btn {
    padding: 6px 16px;
    border: 2px solid #007bff;
    border-radius: 20px;
    background: white;
    color: #007bff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.menuOutput_mode-btn:hover {
    background: #e3f2fd;
    transform: translateY(-1px);
}

.menuOutput_mode-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.menuOutput_mode-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 输入示例区域样式 */
.menuOutput_input-example {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.menuOutput_input-example p {
    margin: 4px 0;
    line-height: 1.4;
}

.menuOutput_input-example p:first-child {
    margin-bottom: 8px;
}

/* 日期选择器区域样式 */
.menuOutput_date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.menuOutput_date-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    background: white;
    transition: all 0.2s ease;
    min-height: 32px;
}

.menuOutput_date-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.menuOutput_confirm-btn {
    padding: 6px 12px;
    background: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 32px;
}

.menuOutput_confirm-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* 出品信息显示区域样式 */
.menuOutput_output-info {
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    border: none;
}

.menuOutput_output-display {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    padding: 8px 0;
}

/* 出品信息区域样式 */
.menuOutput_outputs-container {
    min-height: 200px;
}

.menuOutput_no-data {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    padding: 40px 20px;
}

.menuOutput_outputs-list {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.menuOutput_outputs-title {
    margin: 0;
    padding: 16px;
    background: #f8f9fa;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
}

.menuOutput_outputs-grid {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.menuOutput_output-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.menuOutput_output-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menuOutput_output-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.menuOutput_output-quantity {
    font-size: 14px;
    color: #6c757d;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.menuOutput_output-status {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.menuOutput_output-status.completed {
    background: #d4edda;
    color: #155724;
}

.menuOutput_output-status.in-progress {
    background: #fff3cd;
    color: #856404;
}


/* 厨房出品浮动按钮组样式 */
.menuOutput_button-group,
#kitout_buttonGroup {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.9); /* 浅灰色半透明背景 */
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(224, 224, 224, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 厨房出品浮动按钮样式 */
.kitout_icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9); /* 透明背景 */
    color: #333 !important;
    border: 1px solid #e0e0e0; /* 浅边框 */
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.kitout_icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.kitout_icon-btn:active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(0.95);
}

/* 浮动按钮样式 - 统一选中和未选中状态 */

/* 未选中状态 - 以HTML拖动样式为基础 */
.kitout_icon-btn[data-action="选菜"],
.kitout_icon-btn[data-action="拖动"],
.kitout_icon-btn[data-action="删除"] {
    background-color: rgba(255, 255, 255, 0.9) !important; /* 白色背景 */
    color: #333 !important; /* 黑色文字 */
    border: 1px solid #e0e0e0 !important; /* 浅灰色边框 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* 未选中状态悬停效果 */
.kitout_icon-btn[data-action="选菜"]:hover,
.kitout_icon-btn[data-action="拖动"]:hover,
.kitout_icon-btn[data-action="删除"]:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: #dc3545 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* 选中状态 - 以选菜样式为基础 */
.kitout_icon-btn[data-action="选菜"].active,
.kitout_icon-btn[data-action="拖动"].active,
.kitout_icon-btn[data-action="删除"].active,
.kitout_icon-btn[data-action="保存"].active {
    background-color: transparent !important; /* 透明背景 */
    color: #dc3545 !important; /* 红色文字 */
    border: 2px solid #dc3545 !important; /* 红色边框 */
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3) !important; /* 红色阴影 */
}

/* 选中状态悬停效果 */
.kitout_icon-btn[data-action="选菜"].active:hover,
.kitout_icon-btn[data-action="拖动"].active:hover,
.kitout_icon-btn[data-action="删除"].active:hover,
.kitout_icon-btn[data-action="保存"].active:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 2px solid #c82333 !important;
}

/* 厨房出品模态框样式 */
.menuOutput_modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.menuOutput_modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.menuOutput_modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.menuOutput_modal-close:hover {
    color: #000;
}

.menuOutput_modal-buttons {
    margin-top: 20px;
    text-align: right;
}

.menuOutput_modal-button {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    margin-left: 10px;
}

.menuOutput_modal-cancel {
    background-color: #f1f1f1;
    color: #333;
}

.menuOutput_modal-confirm {
    background-color: #dc3545; /* 红色 */
    color: white;
}

.menuOutput_modal-cancel:hover {
    background-color: #ddd;
}

.menuOutput_modal-confirm:hover {
    background-color: #c82333; /* 深红色 */
}

/* 保存按钮保存中状态样式 */
.kitout_icon-btn.kitout_saving {
    background-color: #6c757d !important;
    color: white !important;
    border-color: #5a6268 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.kitout_icon-btn.kitout_saving:hover {
    background-color: #6c757d !important;
    border-color: #5a6268 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 保存按钮成功状态样式 */
.kitout_icon-btn.kitout_saved {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #1e7e34 !important;
}

.kitout_icon-btn.kitout_saved:hover {
    background-color: #218838 !important;
    border-color: #1c7430 !important;
}

/* 保存按钮错误状态样式 */
.kitout_icon-btn.kitout_error {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #c82333 !important;
}

.kitout_icon-btn.kitout_error:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* 保存按钮错误状态样式 */
.menuOutput_save-error {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    animation: kitout_errorPulse 0.5s ease-in-out;
}

@keyframes kitout_errorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 删除操作专用样式 */

/* 删除模式激活时的菜品样式 */
.p2kitout_clickable-dish {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.p2kitout_clickable-dish:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    border: 2px solid #dc3545;
}

.p2kitout_clickable-dish.p2kitout_selected {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* 删除模式提示信息 */
.p2kitout_hint {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #856404;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    animation: p2kitout_hintFadeIn 0.3s ease;
}

@keyframes p2kitout_hintFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 删除确认模态框 */
.p2kitout_modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: p2kitout_modalFadeIn 0.3s ease;
}

.p2kitout_modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: p2kitout_modalScaleIn 0.3s ease;
}

@keyframes p2kitout_modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes p2kitout_modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.p2kitout_modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #dc3545;
}

.p2kitout_modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.p2kitout_modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.p2kitout_modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.p2kitout_modal-btn.p2kitout_confirm {
    background: #dc3545;
    color: white;
}

.p2kitout_modal-btn.p2kitout_confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.p2kitout_modal-btn.p2kitout_cancel {
    background: #6c757d;
    color: white;
}

.p2kitout_modal-btn.p2kitout_cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 删除动画效果 */
.p2kitout_deleting {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.3s ease !important;
}

/* 删除按钮状态指示器 */
.p2kitout_btn-active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
    transform: scale(1.05);
}

.p2kitout_btn-active:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    transform: scale(1.08);
}

/* 删除成功消息样式 */
.p2kitout_success-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    animation: p2kitout_successFadeIn 0.3s ease;
}

@keyframes p2kitout_successFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== 删除操作专用样式 ===== */

/* 删除模式激活时的菜品样式 */
.p2kitout_clickable-dish {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.p2kitout_clickable-dish:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

.p2kitout_clickable-dish:active {
    transform: scale(0.98) !important;
}

/* 删除模式提示信息 */
.p2kitout_hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    animation: p2kitout_hintFadeIn 0.3s ease;
}

@keyframes p2kitout_hintFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 删除确认模态框 */
.p2kitout_modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: p2kitout_modalFadeIn 0.3s ease;
}

@keyframes p2kitout_modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.p2kitout_modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: p2kitout_modalSlideIn 0.3s ease;
}

@keyframes p2kitout_modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.p2kitout_modal-content h3 {
    margin: 0 0 16px 0;
    color: #dc3545;
    font-size: 18px;
    font-weight: 600;
}

.p2kitout_modal-content p {
    margin: 0 0 24px 0;
    color: #666;
    line-height: 1.5;
}

.p2kitout_modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.p2kitout_btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.p2kitout_btn-cancel {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.p2kitout_btn-cancel:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.p2kitout_btn-confirm {
    background: #dc3545;
    color: white;
}

.p2kitout_btn-confirm:hover {
    background: #c82333;
}

/* 删除动画效果 */
.p2kitout_deleting {
    animation: p2kitout_deleteAnimation 0.3s ease forwards !important;
}

@keyframes p2kitout_deleteAnimation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
        display: none;
    }
}

/* 删除按钮状态指示器 */
.p2kitout_btn-active {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #c82333 !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4) !important;
    animation: p2kitout_pulse 2s infinite !important;
}

@keyframes p2kitout_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}