:root {
    --ink: #1f1614;
    --cream: #f7f1e8;
    --card: #fffdf9;
    --caramel: #c08b4e;
    --muted: #8c7c6b;
    --line: rgba(31, 22, 20, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

#app {
    min-height: 100vh;
    padding-bottom: 96px;
}

/* 头部 */
.hero {
    padding: 22px 20px 26px;
    border-radius: 0 0 22px 22px;
    background: var(--ink);
    background-image: radial-gradient(120% 90% at 100% 0%, rgba(192, 139, 78, 0.38), rgba(31, 22, 20, 0) 62%);
    color: #fffdf9;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 253, 249, 0.6);
}

.open {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 253, 249, 0.22);
    border-radius: 999px;
    font-size: 10px;
    color: rgba(255, 253, 249, 0.82);
}

.open i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7ac48b;
}

.hero h1 {
    margin: 16px 0 6px;
    font-size: 32px;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 253, 249, 0.55);
    letter-spacing: 0.5px;
}

/* 顶部切换 */
.seg {
    display: flex;
    gap: 22px;
    padding: 14px 20px 0;
    background: var(--cream);
}

.seg button {
    padding: 0 0 10px;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}

.seg button.on {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--caramel);
}

/* 分类 */
.cats {
    display: flex;
    gap: 22px;
    padding: 12px 20px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cats::-webkit-scrollbar {
    display: none;
}

.cat {
    flex: 0 0 auto;
    padding-bottom: 8px;
    font-size: 13px;
    color: var(--ink);
    opacity: 0.4;
    border-bottom: 2px solid transparent;
}

.cat small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
}

.cat.on {
    opacity: 1;
    border-bottom-color: var(--caramel);
}

/* 商品 */
.menu {
    padding: 6px 20px 20px;
}

.menu-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0 4px;
}

.menu-head h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
}

.menu-head span {
    font-size: 11px;
    color: #a8998a;
}

.item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.tag {
    padding: 1px 6px;
    border: 1px solid rgba(192, 139, 78, 0.5);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 400;
    color: #b07c3f;
}

.item-en {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a8998a;
}

.item-desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #7c6d5e;
}

.item-price {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
}

.item-price i {
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    margin-right: 2px;
}

.add {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: #fffdf9;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
}

.add.off {
    background: #d8cdbf;
}

/* 底部购物车 */
.bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 14px;
    border-radius: 28px;
    background: var(--ink);
    box-shadow: 0 12px 30px rgba(31, 22, 20, 0.3);
    color: #fffdf9;
    z-index: 30;
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: rgba(255, 253, 249, 0.78);
}

.badge {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--caramel);
    font-size: 11px;
    font-weight: 600;
    color: #fffdf9;
}

.bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-total {
    font-size: 17px;
    font-weight: 700;
}

.bar-go {
    padding: 10px 18px;
    border-radius: 22px;
    background: #fffdf9;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

/* 弹层 */
.mask {
    position: fixed;
    inset: 0;
    background: rgba(31, 22, 20, 0.45);
    z-index: 40;
}

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 20px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--card);
    transform: translateY(0);
    animation: up 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes up {
    from {
        transform: translateY(100%);
    }
}

.grip {
    width: 36px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 2px;
    background: #e6ddd0;
}

.sheet h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.sheet .en {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a8998a;
}

.opt {
    margin-top: 16px;
}

.opt-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip {
    padding: 8px 14px;
    border: 1px solid rgba(31, 22, 20, 0.14);
    border-radius: 999px;
    font-size: 13px;
    color: #4a3b31;
}

.chip.on {
    border-color: var(--ink);
    background: var(--ink);
    color: #fffdf9;
}

.chip em {
    font-style: normal;
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}

.sheet-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(31, 22, 20, 0.16);
    border-radius: 50%;
    font-size: 17px;
    color: var(--ink);
}

.step span {
    min-width: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.sheet-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fffdf9;
    font-size: 14px;
    font-weight: 600;
}

.sheet-add em {
    font-style: normal;
    color: #e0b884;
}

/* 结算 / 订单 */
.page {
    padding: 4px 20px 24px;
}

.card {
    margin-top: 14px;
    padding: 4px 16px 12px;
    border-radius: 16px;
    background: var(--card);
}

.card h4 {
    margin: 14px 0 6px;
    font-size: 13px;
    letter-spacing: 1px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.row-main {
    min-width: 0;
}

.row-name {
    font-size: 14px;
    font-weight: 600;
}

.row-opt {
    margin-top: 3px;
    font-size: 11px;
    color: #a8998a;
}

.row-price {
    margin-top: 4px;
    font-size: 12px;
    color: #7c6d5e;
}

.modes {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mode {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(31, 22, 20, 0.12);
    border-radius: 12px;
    text-align: left;
}

.mode b {
    display: block;
    font-size: 13px;
}

.mode small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: var(--muted);
}

.mode.on {
    border-color: var(--ink);
    background: var(--ink);
    color: #fffdf9;
}

.mode.on small {
    color: rgba(255, 253, 249, 0.55);
}

.field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.field label {
    flex: 0 0 56px;
    font-size: 12px;
    color: var(--muted);
}

.field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
    text-align: right;
}

.field input::placeholder {
    color: #c3b7a8;
}

.submit {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fffdf9;
    z-index: 30;
}

.submit b {
    font-size: 17px;
}

.submit span {
    font-size: 14px;
    font-weight: 600;
}

.submit.off {
    background: #b3a698;
}

.empty {
    padding: 80px 20px;
    text-align: center;
}

.empty b {
    font-size: 16px;
}

.empty p {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.done {
    padding: 34px 20px 20px;
    text-align: center;
}

.done .label {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--muted);
}

.done .no {
    margin-top: 8px;
    font-size: 54px;
    font-weight: 700;
    letter-spacing: 4px;
}

.done .state {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(192, 139, 78, 0.14);
    color: #a9752f;
    font-size: 11px;
}

.done p {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}

.ghost {
    display: inline-block;
    margin: 18px 6px 0;
    padding: 11px 22px;
    border: 1px solid rgba(31, 22, 20, 0.16);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink);
}

.ord {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--card);
}

.ord-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ord-no {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.chip-state {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
}

.s-wait {
    background: rgba(192, 139, 78, 0.14);
    color: #a9752f;
}

.s-ready {
    background: rgba(76, 140, 90, 0.14);
    color: #3f7d4d;
}

.s-done {
    background: rgba(31, 22, 20, 0.07);
    color: #7c6d5e;
}

.s-off {
    background: rgba(31, 22, 20, 0.05);
    color: #b3a698;
}

.ord-mid {
    margin-top: 8px;
    font-size: 13px;
    color: #3b2d25;
}

.ord-bot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: #a8998a;
}

.ord-bot b {
    font-size: 15px;
    color: var(--ink);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 110px;
    transform: translateX(-50%);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(31, 22, 20, 0.92);
    color: #fffdf9;
    font-size: 12px;
    z-index: 90;
    animation: fade 0.2s;
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

/* 多门店 */
.hero-switch {
    margin-top: 14px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 253, 249, 0.24);
    border-radius: 999px;
    color: rgba(255, 253, 249, 0.8);
    font-size: 12px;
}

.store-list {
    display: grid;
    gap: 12px;
    padding-top: 16px;
}

.store-card {
    display: block;
    padding: 18px;
    border-radius: 16px;
    background: var(--card);
    text-align: left;
    box-shadow: 0 6px 20px rgba(31, 22, 20, 0.05);
}

.store-card b {
    font-size: 17px;
    letter-spacing: 0.5px;
}

.store-tenant {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(192, 139, 78, 0.14);
    color: #a9752f;
    font-size: 10px;
}

.store-meta {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

