:root {
    --jp-wood: #b89578;
    --jp-light-wood: #e8d9c7;
    --jp-paper: #fffaf3;
    --jp-black: #3a3a3a;
    --jp-red: #c85a5a;
    --jp-gray: #777777;
    --jp-white: #ffffff;
    --sakura: #ffd6e0;
    --milk-yellow: #fff6e0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--jp-paper);
    color: var(--jp-black);
    font-family: "思源黑体", "微软雅黑", sans-serif;
    padding-bottom: 80px;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 70 Q35 62,70 70 T140 70' stroke='%23e8d9c7' fill='none' opacity='0.2'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='30' font-size='20' opacity='0.08' fill='%23c85a5a'%3E🌸%3C/text%3E%3Ctext x='40' y='60' font-size='16' opacity='0.07' fill='%23b89578'%3E🐱%3C/text%3E%3C/svg%3E");
}
header {
    background: var(--jp-white);
    border-bottom: 1px solid var(--jp-light-wood);
    padding: 16px 18px;
    box-shadow: 0 3px 8px rgba(184, 149, 120, 0.1);
    position: sticky;
    top: 0;
    z-index: 99;
    border-radius: 0 0 16px 16px;
}
.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-title {
    font-size: 24px;
    color: var(--jp-wood);
    letter-spacing: 2px;
}
.app-title::before{
    content:"🐶 ";
}
.btn-jp-solid {
    background: var(--jp-wood);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    transition: 0.2s;
}
.btn-jp-solid:active {
    background: #9c7b63;
    transform: scale(0.96);
}
.btn-jp-outline {
    border: 1px solid var(--jp-wood);
    color: var(--jp-wood);
    background: transparent;
    padding: 7px 14px;
    border-radius: 24px;
    font-size: 14px;
    transition: 0.2s;
}
.btn-jp-outline:active {
    background: var(--jp-light-wood);
    color: white;
}
.category-top {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 18px 16px;
    scrollbar-width: none;
}
.category-top::-webkit-scrollbar {
    display: none;
}
.cate-item {
    white-space: nowrap;
    padding: 8px 18px;
    border: 1px solid var(--jp-light-wood);
    border-radius: 30px;
    background: #fff;
    font-size: 14px;
}
.cate-item.active {
    background: var(--jp-wood);
    color: white;
    border-color: var(--jp-wood);
}
.food-wrap {
    padding: 0 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.food-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(184, 149, 120, 0.08);
    position: relative;
}
.food-card::after{
    content:"🐱";
    position:absolute;
    top:6px;
    right:8px;
    font-size:18px;
    opacity:0.3;
}
.food-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.food-info {
    padding: 12px;
}
.food-name {
    font-size: 16px;
    font-weight: 500;
}
.food-subcate {
    font-size: 12px;
    color: var(--jp-gray);
    margin: 4px 0;
}
.food-desc {
    font-size: 12px;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}
.food-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top:8px;
}
.food-price {
    color: var(--jp-red);
    font-weight: bold;
    font-size:17px;
}
.add-cart-btn {
    font-size:12px;
    padding:4px 10px;
}
.cart-fixed {
    position: fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#fff;
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding:14px 20px;
    border-top:1px solid var(--jp-light-wood);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.cart-num-text {
    color:var(--jp-gray);
}
.total-price-text {
    color:var(--jp-red);
    font-size:17px;
    font-weight:bold;
}
.pop-mask {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:999;
    padding:15px;
}
.pop-box {
    width:100%;
    max-width:520px;
    background:var(--jp-paper);
    border-radius:20px;
    max-height:80vh;
    overflow-y:auto;
    padding:24px;
    border:1px solid var(--jp-light-wood);
}
.cart-item-line {
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px dashed #ddd;
}
.admin-container {
    padding:18px;
}
.form-card {
    background:#fff;
    padding:24px;
    border-radius:18px;
    border:1px solid var(--jp-light-wood);
    margin-bottom:22px;
    box-shadow: 0 3px 10px rgba(184,149,120,0.06);
}
.form-item {
    margin-bottom:16px;
}
.form-item label {
    display:block;
    margin-bottom:6px;
    font-size:14px;
}
.form-item input, .form-item textarea, .form-item select {
    width:100%;
    border:1px solid #ddd;
    padding:10px 12px;
    border-radius:12px;
    font-size:14px;
}
.img-preview-box img {
    max-width:160px;
    max-height:130px;
    margin-top:8px;
    border-radius:10px;
}
.table-item {
    background:#fff;
    padding:14px;
    border-radius:12px;
    border-bottom:1px solid #eee;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}
.operate-btn-group button {
    font-size:12px;
    padding:5px 9px;
    margin-left:6px;
    border-radius:20px;
}
.hide {
    display:none !important;
}
.d-flex{display:flex;}
.gap-3{gap:14px;}
.flex-1{flex:1;}
.w-100{width:100%;border-radius:24px;}
.mb-3{margin-bottom:18px;}
.mt-4{margin-top:18px;}
.ml-3{margin-left:12px;}
