.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.menu-title {
    font-size: 26px;
    color: #333;
    margin: 0;
}

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

.menu-item-wrapper-inner {
    display: flex;
    align-items: stretch;
}

.menu-item-wrapper {
    margin-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.menu-item-wrapper:last-child {
    border-bottom: none;
}

.left-column {
    flex: 1;
    min-width: 0;
}

.right-column {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 20px;
    width: 400px;
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.video-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-title {
    color: #333;
    line-height: 1.3;
}

/* 视频播放器内部的video元素 */
.video-player-container video,
.video-player-container iframe,
.video-player-container .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

/* 确保Video.js播放器和控制条正确显示 */
.video-player-container .video-js {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.video-player-container .vjs-control-bar {
    z-index: 10 !important;
}

.video-player-container .vjs-big-play-button {
    z-index: 10 !important;
}

/* 大播放按钮在播放时隐藏 */
.video-player-container .vjs-has-started .vjs-big-play-button {
    display: none !important;
}

/* 大播放按钮在暂停时显示 */
.video-player-container .vjs-paused .vjs-big-play-button {
    display: flex !important;
    visibility: visible !important;
}

/* 确保所有控制按钮可见 */
.video-player-container .vjs-control {
    display: block !important;
    visibility: visible !important;
}

.video-player-container .vjs-play-control,
.video-player-container .vjs-volume-panel,
.video-player-container .vjs-current-time,
.video-player-container .vjs-time-control,
.video-player-container .vjs-duration,
.video-player-container .vjs-progress-control,
.video-player-container .vjs-remaining-time,
.video-player-container .vjs-fullscreen-control {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    vertical-align: middle !important;
}

/* 确保进度条正确显示在控制条中 */
.video-player-container .vjs-progress-control {
    flex: 1 !important;
    position: relative !important;
    height: 30px !important;
    width: auto !important;
    min-width: 0 !important;
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
}

.video-player-container .vjs-progress-holder {
    position: relative !important;
    height: 5px !important;
    margin: 0 10px !important;
    flex: 1 !important;
}

/* 控制条布局优化 */
.video-player-container .vjs-control-bar {
    align-items: center !important;
    height: 40px !important;
    padding: 0 10px !important;
}

.video-player-container .vjs-play-control {
    order: 1 !important;
}

.video-player-container .vjs-current-time {
    order: 2 !important;
    margin: 0 5px !important;
}

.video-player-container .vjs-time-divider {
    order: 4 !important;
    margin: 0 5px !important;
}

.video-player-container .vjs-duration {
    order: 5 !important;
    margin: 0 5px !important;
}

.video-player-container .vjs-volume-panel {
    order: 6 !important;
}

.video-player-container .vjs-fullscreen-control {
    order: 7 !important;
}

.video-actions {
    margin: 0;
    padding: 0;
}

.section-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
    padding-bottom: 4px;
    border-bottom: 2px solid #ff9d00;
    display: inline-block;
}

.ingredients-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ingredient-category {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ingredient-category h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #ff9d00;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 8px;
    padding-left: 0;
}

.ingredient-name {
    color: #333;
    padding-left: 0;
}

.ingredient-quantity {
    color: #666;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

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

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

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

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

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

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

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

/* 加入菜篮按钮样式 */
.btn-add-basket {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    width: auto;
    min-width: 120px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.btn-add-basket:hover {
    background: linear-gradient(135deg, #218838, #1c7d50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

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

.btn-add-basket.added {
    background: linear-gradient(135deg, #155724, #117a8b);
    cursor: default;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.3);
    border: 2px solid #155724;
}

.btn-add-basket.added:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 87, 36, 0.4);
}

.btn-add-basket:disabled {
    background: linear-gradient(135deg, #ccc, #bbb);
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.empty-menu {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-menu h2 {
    margin-bottom: 16px;
    color: #999;
}

/* 左栏视频操作按钮横向排列 */
.video-actions .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    justify-content: space-around;
}

.video-actions .action-btn {
    flex: none;
    min-width: 120px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .right-column {
        width: auto;
        position: static;
        border-left: none;
        padding-left: 24px;
    }
    
    .menu-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .menu-actions {
        justify-content: center;
    }
    
    .recipe-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-actions .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-actions .action-btn {
        flex: none;
        width: 100%;
        min-width: auto;
    }
}

/* 美味完成弹窗样式 */
.delicious-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.delicious-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

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

.delicious-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.delicious-modal-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.delicious-modal-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.delicious-modal-remember {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    -webkit-user-select: none;
    user-select: none;
}

.remember-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-checkbox:hover .checkbox-custom {
    border-color: #ff9d00;
}

.remember-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: #ff9d00;
    border-color: #ff9d00;
}

.remember-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    line-height: 1.5;
}

.delicious-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delicious-modal-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.delicious-modal-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.delicious-modal-btn-secondary:hover {
    background: #e0e0e0;
}

.delicious-modal-btn-primary {
    background: linear-gradient(135deg, #ff9d00, #ff6b00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 157, 0, 0.3);
}

.delicious-modal-btn-primary:hover {
    background: linear-gradient(135deg, #ff8800, #ff5500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 157, 0, 0.4);
}

.delicious-modal-btn:active {
    transform: translateY(0);
}
.btn-clear-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    min-width: 120px;
}



.btn-clear-menu:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-clear-menu:hover i {
    transform: translateY(-2px) scale(1.1);
}

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

.btn-clear-menu:disabled {
    background: linear-gradient(135deg, #ccc, #bbb);
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* 视频缩略图样式 */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f5f5f5;
    margin-bottom: 10px;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-wrapper:hover .video-thumbnail {
    transform: scale(1.05);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail-wrapper:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    font-size: 64px;
    color: #fff;
    margin-bottom: 10px;
}

.thumbnail-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}
