/* ============================================================
   山海味道 · 午餐点餐 — 视觉系统
   世界：红白搪瓷招牌 + 大排档塑封画单菜单
   奶白塑封纸面 / 朱砂红印章墨 / 账本划线 / 小票锯齿边
   ============================================================ */

:root {
    --paper:      #f6f0e2;
    --paper-hi:   #fffdf5;
    --ink:        #2c2519;
    --ink-soft:   #776a52;
    --red:        #c0392b;
    --red-deep:   #a5281b;
    --red-dark:   #7d1d12;
    --green:      #2e6b4f;
    --gold:       #a8792a;
    --line:       #e4d9bf;
    --line-soft:  #efe7d2;
    --radius:     14px;
    --sheet-max:  600px;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --song: "Songti SC", "STSong", "STZhongsong", "SimSun", serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--red-dark);
    background-image:
        radial-gradient(120% 90% at 50% 0%, rgba(255, 196, 150, .14), transparent 60%),
        linear-gradient(#8d2417, #6f190e);
    background-attachment: fixed;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.55;
}

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 16px; } /* 16px 防 iOS 聚焦放大 */

/* ---------- 菜单大 sheet（塑封菜单本体） ---------- */
.sheet-page {
    max-width: var(--sheet-max);
    margin: 0 auto;
    background: var(--paper);
    background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0) 120px);
    min-height: 100vh;
    box-shadow: 0 24px 60px rgba(40, 8, 4, .45);
    padding-bottom: 120px; /* 给购物车条让位 */
}
@media (min-width: 640px) {
    .sheet-page { margin: 28px auto; border-radius: 18px; min-height: calc(100vh - 56px); overflow: hidden; }
}

/* ---------- 搪瓷招牌 ---------- */
.signboard {
    position: relative;
    background: linear-gradient(180deg, #cf4433 0%, var(--red) 45%, var(--red-deep) 100%);
    color: #fff;
    text-align: center;
    padding: 30px 20px 26px;
    overflow: hidden;
}
/* 搪瓷高光 */
.signboard::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 34%);
    pointer-events: none;
}
/* 搪瓷白描边 + 四角铆钉 */
.signboard::before {
    content: "";
    position: absolute; inset: 8px;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 12px;
    pointer-events: none;
}
.signboard .rivet {
    position: absolute; width: 7px; height: 7px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #d8c9a8 70%, #a08c62);
    box-shadow: 0 1px 2px rgba(0,0,0,.4);
    z-index: 1;
}
.signboard .rivet.tl { top: 14px; left: 14px; }
.signboard .rivet.tr { top: 14px; right: 14px; }
.signboard .rivet.bl { bottom: 14px; left: 14px; }
.signboard .rivet.br { bottom: 14px; right: 14px; }

.signboard h1 {
    position: relative; z-index: 1;
    font-size: clamp(23px, 7.2vw, 32px);
    font-weight: 900;
    letter-spacing: .14em;
    text-indent: .14em; /* 抵消末字间距，视觉居中 */
    white-space: nowrap;
    text-shadow: 0 2px 0 rgba(90, 15, 8, .55);
}
.signboard .sign-sub {
    position: relative; z-index: 1;
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: .42em;
    text-indent: .42em;
    color: #ffe9c9;
    font-weight: 600;
}
.signboard .sign-date {
    position: relative; z-index: 1;
    display: inline-block;
    margin-top: 14px;
    padding: 4px 16px;
    background: var(--paper-hi);
    color: var(--red-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(80, 12, 6, .35);
}

/* ---------- 公告条（档口喊话） ---------- */
.notice-bar {
    display: flex; align-items: center; gap: 10px;
    background: #f3e3c0;
    border-bottom: 1px solid var(--line);
    padding: 10px 18px;
    font-size: 13px;
    color: #7a5a1c;
    font-weight: 600;
}
.notice-bar svg { flex: none; }

/* ---------- 分类锚点导航 ---------- */
.catnav {
    position: sticky; top: 0; z-index: 20;
    display: flex; gap: 4px;
    background: rgba(246, 240, 226, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
    flex: none;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 14px; font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .2s, background .2s;
}
.catnav a.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 3px 8px rgba(165, 40, 27, .35);
}

/* ---------- 分类标题 ---------- */
.cat-title {
    display: flex; align-items: center; gap: 10px;
    margin: 30px 18px 6px;
}
.cat-title h2 {
    font-family: var(--song);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--red-deep);
}
.cat-title::before {
    content: "";
    width: 10px; height: 10px;
    background: var(--red);
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--red);
    margin-right: 4px;
}
.cat-title::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--line);
}

/* ---------- 菜品行（画单） ---------- */
.dish {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px dashed var(--line);
    background: transparent;
    transition: background .25s;
}
.dish.in-cart { background: rgba(192, 57, 43, .05); }

.dish .thumb {
    position: relative;
    flex: none;
    width: 84px; height: 84px;
    border-radius: 10px;
    overflow: hidden;
    background: #ede4cd;
    box-shadow: inset 0 0 0 1px rgba(120, 96, 60, .18), 0 2px 6px rgba(90, 60, 20, .12);
}
.dish .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.dish .thumb .ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-family: var(--song);
    font-size: 38px;
    font-weight: 700;
    color: rgba(165, 40, 27, .32);
    user-select: none;
}
/* 售罄灰化 + 印章 */
.dish.soldout .thumb img, .dish.soldout .thumb .ph { filter: grayscale(1); opacity: .55; }
.dish.soldout .d-name, .dish.soldout .d-desc { color: #a99f8a; }
.dish.soldout .d-price { color: #a99f8a; }
.stamp-out {
    position: absolute; top: 16px; right: 18px;
    font-family: var(--song);
    font-size: 15px; font-weight: 700;
    color: #8f8570;
    border: 2px solid #8f8570;
    border-radius: 6px;
    padding: 2px 8px;
    transform: rotate(-10deg);
    letter-spacing: .2em;
    opacity: .8;
    background: rgba(246, 240, 226, .7);
}

.dish .d-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.dish .d-top { display: flex; align-items: baseline; gap: 8px; }
.dish .d-name { font-size: 17px; font-weight: 700; }
/* 招牌红印章 */
.seal-hot {
    flex: none;
    font-family: var(--song);
    font-size: 11px;
    color: var(--red);
    border: 1.5px solid var(--red);
    border-radius: 4px;
    padding: 0 4px;
    line-height: 1.5;
    transform: rotate(-4deg);
    opacity: .9;
}
.dish .d-desc { margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }

.dish .d-bottom {
    margin-top: auto;
    padding-top: 8px;
    display: flex; align-items: center; gap: 10px;
}
.d-price {
    font-size: 20px; font-weight: 800;
    color: var(--red-deep);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.d-price i { font-style: normal; font-size: 13px; font-weight: 700; margin-right: 1px; }
.d-price.free { color: var(--green); font-size: 16px; font-family: var(--song); letter-spacing: .1em; }
.d-left { font-size: 11.5px; color: var(--gold); font-weight: 600; }

/* ---------- 加减步进器（朱笔圈） ---------- */
.stepper { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.stepper button {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--red);
    background: transparent;
    color: var(--red);
    font-size: 19px; font-weight: 700;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: transform .12s, background .15s, color .15s;
}
.stepper button:active { transform: scale(.88); }
.stepper .plus { background: var(--red); color: #fff; box-shadow: 0 3px 7px rgba(165,40,27,.3); }
.stepper .minus, .stepper .qty { display: none; }
.stepper.has .minus, .stepper.has .qty { display: flex; }
.stepper .qty {
    min-width: 30px;
    align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ---------- 底部购物车条（搪瓷红 pill） ---------- */
.cartbar {
    position: fixed;
    left: 50%; bottom: 18px;
    transform: translateX(-50%);
    z-index: 40;
    width: min(calc(100% - 32px), var(--sheet-max));
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, #cf4433, var(--red-deep));
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    color: #fff;
    box-shadow: 0 10px 26px rgba(90, 15, 8, .5), inset 0 1px 0 rgba(255,255,255,.3);
    animation: cart-pop .35s cubic-bezier(.16, 1, .3, 1);
}
@keyframes cart-pop {
    from { transform: translate(-50%, 70px); opacity: 0; }
    to   { transform: translate(-50%, 0);    opacity: 1; }
}
.cartbar[hidden] { display: none; }
.cartbar .sum { font-size: 14px; font-weight: 600; color: #ffd9c4; display: flex; align-items: center; gap: 8px; }
.cartbar .sum b { font-size: 21px; color: #fff; font-variant-numeric: tabular-nums; }
.cartbar .sum .badge {
    min-width: 24px; height: 24px;
    border-radius: 999px;
    background: var(--paper-hi);
    color: var(--red-deep);
    font-size: 13px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 6px;
}
.cartbar #goOrder {
    border: none;
    background: var(--paper-hi);
    color: var(--red-deep);
    font-size: 15px; font-weight: 800;
    letter-spacing: .1em;
    padding: 12px 26px;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(80, 12, 6, .35);
    transition: transform .12s;
}
.cartbar #goOrder:active { transform: scale(.94); }

/* ---------- 弹层通用 ---------- */
.modal {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(43, 16, 8, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.modal[hidden] { display: none; }
.modal.center-m { justify-content: center; padding: 24px; }

/* ---------- 小票（订单确认 / 成功单） ---------- */
.ticket {
    width: min(100%, var(--sheet-max));
    max-height: 88vh;
    overflow-y: auto;
    background: var(--paper-hi);
    padding: 22px 22px 26px;
    filter: drop-shadow(0 -8px 24px rgba(40, 8, 4, .35));
    animation: sheet-up .32s cubic-bezier(.2, .9, .3, 1);
}
@keyframes sheet-up {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
/* 锯齿撕口条（放在小票上下，独立元素避免被 overflow 裁切） */
.t-teeth {
    width: min(100%, var(--sheet-max));
    height: 10px;
    flex: none;
    background:
        linear-gradient(45deg, transparent 33.333%, var(--paper-hi) 33.333%, var(--paper-hi) 66.667%, transparent 66.667%),
        linear-gradient(-45deg, transparent 33.333%, var(--paper-hi) 33.333%, var(--paper-hi) 66.667%, transparent 66.667%);
    background-size: 16px 20px;
    background-position: 0 -10px;
}
.t-teeth.bottom { transform: rotate(180deg); }
.modal.center-m .t-teeth { width: min(100%, 420px); }

.modal.center-m .ticket { border-radius: 4px; width: min(100%, 420px); max-height: 84vh; }

.ticket .t-head { text-align: center; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.ticket .t-head .t-shop {
    font-family: var(--song);
    font-size: 21px; font-weight: 700;
    letter-spacing: .3em; text-indent: .3em;
    color: var(--ink);
}
.ticket .t-head .t-sub { margin-top: 3px; font-size: 11px; letter-spacing: .35em; text-indent: .35em; color: var(--ink-soft); }

/* 小票明细行：名称 ······ 金额 */
.t-lines { padding: 14px 2px; border-bottom: 2px dashed var(--line); }
.t-line { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; font-size: 14.5px; }
.t-line .t-name { font-weight: 600; }
.t-line .t-qty { color: var(--ink-soft); font-size: 13px; }
.t-line .t-dots { flex: 1; border-bottom: 2px dotted #d8cbab; transform: translateY(-4px); min-width: 20px; }
.t-line .t-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.t-total {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 14px 2px;
    font-size: 15px; font-weight: 700;
}
.t-total b { font-size: 26px; color: var(--red-deep); font-variant-numeric: tabular-nums; }

/* 表单 */
.t-form label {
    display: block;
    margin-top: 12px;
    font-size: 12.5px; font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: .08em;
}
.t-form input, .t-form textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 13px;
    background: #fbf7ec;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    resize: none;
}
.t-form input:focus, .t-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .14);
}
.t-form input::placeholder, .t-form textarea::placeholder { color: #b3a88d; }
.t-form .req { color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chip {
    border: 1px solid #d9b8ae;
    background: #fdf3ee;
    color: var(--red-deep);
    font-size: 12.5px; font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    transition: background .15s, transform .12s;
}
.chip:active { transform: scale(.93); background: #f5ddd3; }

.form-err {
    display: none;
    margin-top: 12px;
    padding: 9px 12px;
    background: #fbeae5;
    border: 1px dashed var(--red);
    border-radius: 8px;
    color: var(--red-deep);
    font-size: 13px; font-weight: 600;
}
.form-err.show { display: block; }

/* 按钮 */
.t-btns { display: flex; gap: 10px; margin-top: 18px; }
.btn {
    border: none;
    border-radius: 10px;
    font-size: 15px; font-weight: 800;
    letter-spacing: .15em; text-indent: .15em;
    padding: 14px 0;
    transition: transform .12s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    flex: 1;
    background: linear-gradient(180deg, #cf4433, var(--red-deep));
    color: #fff;
    box-shadow: 0 5px 14px rgba(165, 40, 27, .35), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary[disabled] { opacity: .6; box-shadow: none; }
.btn-ghost {
    flex: none;
    padding: 14px 22px;
    background: transparent;
    border: 1.5px solid #cdbf9f;
    color: var(--ink-soft);
}

/* 成功单 */
.done-body { text-align: center; padding: 18px 6px 6px; position: relative; }
.done-body .t-no {
    font-family: var(--song);
    font-size: 15px; color: var(--ink-soft);
    margin-bottom: 4px;
}
.done-body .t-no b { font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.done-body .t-amount { font-size: 15px; font-weight: 700; }
.done-body .t-amount b { font-size: 24px; color: var(--red-deep); }
.done-body .t-pay {
    margin-top: 12px;
    font-size: 12.5px; color: var(--ink-soft);
    line-height: 1.8;
}
/* “已接单”朱文印章 */
.seal-done {
    position: absolute;
    top: 8px; right: 6px;
    font-family: var(--song);
    font-size: 17px; font-weight: 700;
    color: var(--red);
    border: 3px double var(--red);
    border-radius: 8px;
    padding: 4px 9px;
    transform: rotate(-14deg);
    letter-spacing: .15em;
    opacity: .88;
    mix-blend-mode: multiply;
    animation: seal-stamp .4s cubic-bezier(.16, 1, .3, 1) .15s both;
}
@keyframes seal-stamp {
    from { transform: rotate(-14deg) scale(2.2); opacity: 0; }
    to   { transform: rotate(-14deg) scale(1);   opacity: .88; }
}

/* ---------- 后台 admin ---------- */
.admin-page { max-width: 720px; margin: 0 auto; min-height: 100vh; background: var(--paper); box-shadow: 0 24px 60px rgba(40,8,4,.45); }
.admin-head {
    background: linear-gradient(180deg, #cf4433, var(--red-deep));
    color: #fff;
    padding: 18px 20px 0;
}
.admin-head h1 { font-size: 19px; font-weight: 800; letter-spacing: .1em; display: flex; justify-content: space-between; align-items: center; }
.admin-head h1 a { color: #ffd9c4; font-size: 12px; font-weight: 600; text-decoration: none; }
.admin-tabs { display: flex; gap: 2px; margin-top: 14px; }
.admin-tabs a {
    padding: 9px 18px;
    color: #f3c9b8;
    text-decoration: none;
    font-size: 14px; font-weight: 700;
    border-radius: 9px 9px 0 0;
}
.admin-tabs a.on { background: var(--paper); color: var(--red-deep); }
.admin-body { padding: 18px 16px 60px; }

.login-wrap { max-width: 360px; margin: 12vh auto; background: var(--paper-hi); border-radius: var(--radius); padding: 34px 26px; box-shadow: 0 18px 44px rgba(40,8,4,.4); }
.login-wrap h1 { font-family: var(--song); text-align: center; font-size: 22px; letter-spacing: .2em; color: var(--red-deep); margin-bottom: 20px; }

.flash { padding: 10px 14px; border-radius: 9px; background: #e8f2ea; border: 1px solid #bcd8c2; color: var(--green); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.flash.err { background: #fbeae5; border-color: #e5b3a6; color: var(--red-deep); }

.order-card {
    background: var(--paper-hi);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(90, 60, 20, .07);
}
.order-card .o-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-card .o-id { font-weight: 800; font-variant-numeric: tabular-nums; }
.order-card .o-time { font-size: 12px; color: var(--ink-soft); }
.order-card .o-total { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--red-deep); }
.o-status { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.o-status.new  { background: #fbeae5; color: var(--red-deep); border: 1px solid #e5b3a6; }
.o-status.sent { background: #fdf3dc; color: var(--gold); border: 1px solid #e8d3a3; }
.o-status.done { background: #eef0ea; color: #8a927f; border: 1px solid #d5dccb; }
.order-card .o-items { margin-top: 8px; font-size: 14px; line-height: 1.9; }
.order-card .o-addr { margin-top: 8px; padding: 8px 10px; background: #fbf7ec; border-radius: 8px; font-size: 13.5px; line-height: 1.7; }
.order-card .o-addr a { color: var(--red-deep); font-weight: 700; text-decoration: none; }
.order-card .o-ops { display: flex; gap: 8px; margin-top: 10px; }
.order-card .o-ops button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    font-size: 12.5px; font-weight: 700;
    padding: 6px 14px;
    color: var(--ink-soft);
}
.order-card .o-ops button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.order-card .o-ops button.danger { color: #b04a3a; }

.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a-table th { text-align: left; font-size: 12px; color: var(--ink-soft); padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.a-table td { padding: 8px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.a-table input[type=text], .a-table input[type=number] {
    width: 100%; padding: 6px 8px;
    border: 1px solid var(--line); border-radius: 7px;
    background: #fff; font-size: 14px;
}
.a-table input[type=number] { width: 64px; }
.a-btn {
    border: none; border-radius: 7px;
    padding: 6px 12px;
    font-size: 12.5px; font-weight: 700;
    background: var(--red); color: #fff;
    white-space: nowrap;
}
.a-btn.grey { background: #d9d2bf; color: #6b6152; }
.a-btn.line { background: #fff; color: var(--red-deep); border: 1px solid #d9b8ae; }
.a-add {
    background: var(--paper-hi);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}
.a-add h3 { font-size: 14px; margin-bottom: 10px; color: var(--red-deep); }
.a-add .row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.a-add input, .a-add select {
    padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; font-size: 14px;
}
.a-add input[name=name] { flex: 2; min-width: 130px; }
.a-add input[name=price] { width: 80px; }
.a-add input[name=stock] { width: 90px; }
.dish-card {
    background: var(--paper-hi);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(90, 60, 20, .07);
}
.dish-card .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
.dish-card .row:first-child { margin-top: 0; }
.dish-card input[type=text] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.dish-card input[type=number] { width: 70px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.dish-card select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.dish-card input[type=file] { font-size: 12px; max-width: 190px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; border-radius: 999px; background: #d5ccb6; transition: .2s; }
.switch .sl::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .sl { background: var(--green); }
.switch input:checked + .sl::before { transform: translateX(18px); }
.addr-list { display: flex; flex-wrap: wrap; gap: 8px; }
.addr-list .addr-item {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--paper-hi); border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13.5px;
}
.addr-item button { border: none; background: none; color: #b04a3a; font-size: 15px; padding: 0 4px; }
.muted { color: var(--ink-soft); font-size: 12.5px; }
.section-gap { margin-top: 26px; }

/* ---------- 动效收敛 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
