/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /*background-color: #f5f5f5;*/
    color: #333;
    background: linear-gradient(135deg, #1a2a6c, #622548, #92212f);
}

/* 头部样式 */
.header-container {
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 99999999;
    background: linear-gradient(90deg, #1a2a6c, #622548, #92212f);
    box-shadow: 0 1px 2px 0px rgb(3 3 3);
}

.header_box {
    margin: 0 auto;
    padding-top: 10px;
}

.logo1 {
    width: 100px;
    height: auto;
}

.logo2 {
    width: auto;
    height: 22px;
}

.subtitle {
    font-size: 11px;
    color: #ffbb0b;
    font-style: italic;
    letter-spacing: 1px;
}

/* 餐桌样式 */
.table-box {
    border-radius: 8px;
    transition: all .3s;
    cursor: pointer;
}

.table-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.table-free {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4f2f8 100%);
    border-left: 4px solid #16b777;
    background: #16b7778c;
}

.table-busy {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%);
    border-left: 4px solid #ff5722;
    background: #ff57228c;
}

.table-reserved {
    background: linear-gradient(135deg, #f5f9ff 0%, #e6f0ff 100%);
    border-left: 4px solid #1e9fff;
    background: #1e9fff8c;
}

.table-header {
    padding: 8px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-body {
    padding: 8px;
    text-align: center;
}

.capacity {
    font-size: 12px;
}

.table-status {
    font-size: 12px;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.status-free {
    background: #16b777;
    color: white;
}

.status-busy {
    background: #ff5722;
    color: white;
}

.status-reserved {
    background: #1e9fff;
    color: white;
}

.table-info {
    font-size: 12px;
    color: #f2f2f2;
    margin-top: 5px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #ff5722;
}

.outdoor-section {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
}

.category-title {
    background: #f2f2f2;
}

/* layui兼容样式 */
.layui-fixbar li {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 16px !important;
}

/* === order.html中的样式开始 === */



/* 桌台信息样式 */
.layui-elem-quote {
    margin: 10px 0;
    background-color: #fff;
    border-left-color: #52c41a;
    padding: 5px 10px;
    font-size: 14px;
}

/* 菜品分类样式 */
.category-card {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-title {
    background-color: #f8f8f8;
    color: #333;
    font-weight: 600;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/*.dish-list {*/
/*    padding: 10px 5px;*/
/*}*/
.layui-card-body, .layui-card-header{
    padding: 8px;
}

/* 菜品项样式 */
.dish-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.dish-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dish-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.dish-name {
    font-size: 13px;
    color: #333;
    /*margin: 0 0 5px 0;*/
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dish_name_box{position:relative;}
.dish_name_p {
    position: absolute;
    top: 0;
    right: 0;
    background: #0000006b;
    padding: 0 5px;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
}
.dish-price {
    color: #ff4d4f;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: right;
}

.dish-description {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 数量控制样式 */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.minus, .plus {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.quantity-num {
    width: 30px;
    text-align: center;
    margin: 0 5px;
    color: #333;
}

/* 购物车相关样式 */
.cart-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    transition: transform 0.3s ease-out;
}

/* 购物车底部栏样式 */
.cart-panel {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-count {
    color: #ff4d4f;
    font-weight: bold;
    font-size: 16px;
}

.cart-total {
    color: #ff4d4f;
    font-weight: bold;
    font-size: 18px;
}

.order-btn {
    background-color: #52c41a;
    border-color: #52c41a;
    padding: 0 20px;
    height: 40px;
    font-size: 16px;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.order-btn:hover {
    background-color: #4cae1a;
}

/* 购物车图标和数量提示 */
.cart-icon {
    position: relative;
    margin-right: 10px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 展开的购物车列表 */
.cart-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.cart-items.expanded {
    max-height: 400px; /* 展开时的最大高度 */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    border-radius: 20px 20px 0 0;
}

.cart-items-header {
    padding: 10px 15px;
    font-weight: bold;
    /*border-bottom: 1px solid #eee;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0 10px;
}

.cart-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 12px;
    color: #888;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.cart-item-quantity {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: #888;
    margin-left: 10px;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: #ff4d4f;
}

/* 展开/收起箭头 */
.cart-toggle {
    margin-left: 10px;
    transition: transform 0.3s;
}

.cart-toggle.rotate {
    transform: rotate(180deg);
}

/* 推荐标签 */
.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
    animation: tagFloat 3s ease-in-out infinite;
}
/* 悬停时暂停动画 */
.tag:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
/* 新品标签动画 - 脉冲效果 */
.tag.new {
    background-color: #ff0000;
    animation: tagPulse 2s infinite;
}

/* 推荐标签动画 - 摇摆效果 */
.tag.recommend {
    background-color: #faad14;
    animation: tagSwing 2s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes tagFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* 脉冲动画 */
@keyframes tagPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* 摇摆动画 */
@keyframes tagSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.tag.recommend {
    background-color: #faad14;
}


.tag.new {
    background-color: #ff0000;

}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 0;
    color: #888;
}

.empty-state i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #ddd;
}

/* 遮罩层 */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 98;
    display: none;
}

.cart-backdrop.show {
    display: block;
}

.edit_table,.edit_dish{padding: 20px;}

.layui-table-tool{background: #fff;}

#layui-layer2 .layui-layer-content{height: auto!important;}
/* === order.html中的样式结束 === */