/* 滚动动画 */
@keyframes slowDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}
.food-scroll {
    animation: slowDown 0.3s ease-out forwards;
}
.food-scroll.slow {
    animation-duration: 0.8s;
}

/* 主容器 */
.food-picker {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* 标题 */
.picker-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
}
.food-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 卡片主体 */
.food-card {
    max-width: 720px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 分类筛选 */
.food-tab-wrap {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.food-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    transition: border 0.2s;
    font-size: 14px;
    color: #555;
}
.food-tab:hover {
    border-color: #ff7f50;
}
.food-tab input {
    accent-color: #ff7f50;
}

/* 滚动展示区 */
.food-show {
    padding: 48px 24px;
    text-align: center;
    position: relative;
}
.food-box {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#foodRoll {
    font-size: 22px;
    font-weight: 500;
    color: #333;
}
.food-border {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 2px dashed rgba(255,127,80,0.3);
    border-radius: 12px;
    pointer-events: none;
}

/* 按钮区 */
.food-btn-wrap {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}
.food-btn {
    background: #ff7f50;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.food-btn:hover {
    background: #ff6347;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.food-btn:active {
    transform: scale(0.96);
}

/* 历史记录 */
.history-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.history-title {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.history-title i {
    color: #ff7f50;
    margin-right: 6px;
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.history-item {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}
.history-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.history-check {
    width: 22px;
    height: 22px;
    background: rgba(255,127,80,0.1);
    color: #ff7f50;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 8px;
}
.history-time {
    font-size: 12px;
    color: #999;
}