:root {
    --lacquer: #3a1008;        /* 漆木深褐 */
    --cinnabar: #a5251a;       /* 朱砂红 */
    --cinnabar-deep: #7c170e;
    --gold: #c99a3f;           /* 鎏金 */
    --gold-light: #ecd39a;
    --silk: #f3ead8;           /* 绢帛底色 */
    --paper: #fbf5e6;          /* 宣纸 */
    --ink: #3d2b1c;            /* 墨色文字 */
    --ink-sub: #8d7c66;
    --kai: "STKaiti", "KaiTi", "STSong", "SimSun", "Songti SC", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--ink); min-height: 100vh; padding-bottom: calc(env(safe-area-inset-bottom) + 86px); position: relative; }
img { display: block; }

/* ===== 全屏古画背景（缓慢呼吸缩放） ===== */
body::before { content: ''; position: fixed; inset: -30px; background: url('/static/index/images/scene-ancient.jpg') center 35% / cover no-repeat; animation: kenburns 26s ease-in-out infinite alternate; z-index: -2; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
body::after { content: ''; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(58,16,8,.38) 0%, rgba(243,234,216,.28) 26%, rgba(243,234,216,.62) 62%, rgba(239,229,208,.94) 100%); z-index: -1; }

/* ===== 牌匾头部 ===== */
.plaque-wrap { padding: 26px 0 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.plaque { width: 240px; background: linear-gradient(180deg, #c0392b 0%, #8c1a10 100%); border-radius: 10px; padding: 14px 18px 12px; position: relative; box-shadow: 0 12px 26px rgba(30,8,3,.5), inset 0 1px 0 rgba(236,211,154,.3); animation: plaqueDrop .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes plaqueDrop { from { transform: translateY(-60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.plaque::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid var(--gold); border-radius: 7px; pointer-events: none; }
.plaque::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(236,211,154,.06) 0 3px, transparent 3px 12px); border-radius: 10px; pointer-events: none; }
.plaque h1 { font-family: var(--kai); font-size: 30px; font-weight: 700; color: #ffe9b8; letter-spacing: 6px; text-align: center; text-shadow: 0 2px 6px rgba(60,10,4,.55), 0 0 12px rgba(236,211,154,.25); }
.plaque .p-sub { font-family: var(--kai); display: block; text-align: center; font-size: 11px; color: var(--gold-light); letter-spacing: 4px; margin-top: 6px; }
.nail { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold) 70%); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.nail.tl { left: 9px; top: 9px; } .nail.tr { right: 9px; top: 9px; }
.nail.bl { left: 9px; bottom: 9px; } .nail.br { right: 9px; bottom: 9px; }

/* 悬挂绳 */
.rope { width: 1.5px; height: 26px; background: linear-gradient(180deg, rgba(236,211,154,.0), rgba(236,211,154,.8)); }
.slogan-scroll { margin-top: 16px; font-family: var(--kai); font-size: 13px; color: #fff; letter-spacing: 4px; background: rgba(58,16,8,.55); border: 1px solid rgba(236,211,154,.45); padding: 6px 18px; border-radius: 20px; backdrop-filter: blur(2px); }

/* 竖排题字：两列（右列先读），仅文字 */
.side-inscription { position: absolute; right: 14px; top: 24px; display: flex; flex-direction: row-reverse; gap: 9px; z-index: 2; }
.side-inscription span { writing-mode: vertical-rl; font-family: var(--kai); font-size: 12.5px; letter-spacing: 6px; color: rgba(255,255,255,.92); text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.side-inscription::before { content: ''; position: absolute; right: -8px; top: -16px; width: 1px; height: 16px; background: linear-gradient(180deg, transparent, rgba(236,211,154,.9)); }
.side-inscription::after { content: none; }

/* ===== 市井告示（后台轮播，无数据时隐藏） ===== */
.notice-wrap { margin: 20px 16px 0; display: none; }
.notice-wrap.show { display: block; }
.notice-board { background: rgba(45,12,5,.6); border: 1px solid rgba(236,211,154,.4); border-radius: 12px; padding: 8px; backdrop-filter: blur(2px); }
.notice-swiper { height: 118px; border-radius: 8px; overflow: hidden; }
.notice-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.notice-title { font-family: var(--kai); font-size: 12px; color: var(--gold-light); letter-spacing: 3px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 4px; }
.notice-title::before, .notice-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(236,211,154,.55)); }
.notice-title::after { background: linear-gradient(90deg, rgba(236,211,154,.55), transparent); }
.notice-swiper .swiper-pagination-bullet { background: var(--gold-light); opacity: .45; }
.notice-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* ===== 卷轴主卡 ===== */
.content { padding: 22px 16px 0; position: relative; z-index: 2; }
.scroll-card { position: relative; margin: 0 auto; max-width: 420px; }
.roller { height: 18px; background: linear-gradient(180deg, #5d2a12 0%, #3a1008 55%, #24170e 100%); border-radius: 9px; position: relative; box-shadow: 0 4px 10px rgba(30,8,3,.4); }
.roller::before, .roller::after { content: ''; position: absolute; top: -5px; width: 26px; height: 28px; border-radius: 13px; background: linear-gradient(180deg, #7c3a1a 0%, #3a1008 100%); box-shadow: inset 0 2px 3px rgba(236,211,154,.35), 0 3px 8px rgba(30,8,3,.45); }
.roller::before { left: -14px; }
.roller::after { right: -14px; }
.paper { background: var(--paper); background-image: radial-gradient(circle at 20% 10%, rgba(201,154,63,.05), transparent 40%), radial-gradient(circle at 85% 90%, rgba(165,37,26,.04), transparent 45%); box-shadow: 0 10px 30px rgba(30,8,3,.28); padding: 26px 20px 22px; position: relative; border-left: 1px solid rgba(201,154,63,.35); border-right: 1px solid rgba(201,154,63,.35); }

/* 印章（盖戳动效） */
.seal-stamp { position: absolute; right: 14px; top: 12px; width: 58px; height: 58px; border: 3px solid rgba(165,37,26,.85); border-radius: 9px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 5px; transform: rotate(-10deg); animation: stampIn .45s cubic-bezier(.2,1.6,.4,1) .8s both; pointer-events: none; }
@keyframes stampIn { from { transform: rotate(-10deg) scale(2.4); opacity: 0; } to { transform: rotate(-10deg) scale(1); opacity: 1; } }
.seal-stamp span { font-family: var(--kai); font-size: 19px; font-weight: 700; color: rgba(165,37,26,.85); line-height: 1; }
.seal-stamp::after { content: ''; position: absolute; inset: -7px; border: 1px solid rgba(165,37,26,.25); border-radius: 12px; }

/* 提货表单 */
.pickup-label { font-family: var(--kai); font-size: 17px; font-weight: 700; letter-spacing: 2px; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.pickup-label small { font-size: 11px; color: var(--ink-sub); font-family: -apple-system, 'PingFang SC', sans-serif; letter-spacing: 0; }
.code-entry { display: flex; gap: 10px; margin-top: 14px; }
.code-entry input { flex: 1; min-width: 0; height: 54px; background: #fffdf6; border: 1.5px solid #e3d3ae; border-radius: 4px; padding: 0 14px; font-size: 17px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ink); outline: none; box-shadow: inset 0 2px 6px rgba(93,42,18,.06); }
.code-entry input:focus { border-color: var(--cinnabar); box-shadow: inset 0 2px 6px rgba(93,42,18,.06), 0 0 0 3px rgba(165,37,26,.08); }
.code-entry input::placeholder { letter-spacing: 0; font-weight: 400; font-size: 13px; color: #b3a288; }
.token-btn { flex: 0 0 108px; height: 54px; border: 2px solid var(--gold); outline: 2px solid var(--cinnabar); outline-offset: -6px; border-radius: 6px; color: #fff; font-family: var(--kai); font-size: 17px; font-weight: 700; letter-spacing: 3px; background: linear-gradient(180deg, #b8301f 0%, var(--cinnabar-deep) 100%); box-shadow: 0 6px 14px rgba(124,23,14,.4); position: relative; }
.token-btn:active { transform: scale(.97); }

.entry-tip { font-size: 11px; color: var(--ink-sub); margin-top: 12px; display: flex; align-items: center; gap: 5px; }

/* 古风流程：壹贰叁 */
.flow-tips { display: flex; align-items: center; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(201,154,63,.5); }
.flow-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow-item i { font-family: var(--kai); font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--silk); border: 1.5px solid var(--cinnabar); color: var(--cinnabar); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-item span { font-family: var(--kai); font-size: 13px; color: #6d5b44; letter-spacing: 1px; }
.flow-line { width: 30px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,154,63,.7), transparent); margin: 0 8px 18px; }

/* 云纹分隔 */
.cloud-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 4px; }
.cloud-divider i { flex: 0 0 96px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,154,63,.85)); }
.cloud-divider i:last-child { background: linear-gradient(90deg, rgba(201,154,63,.85), transparent); }
.cloud-divider b { width: 7px; height: 7px; background: linear-gradient(135deg, #d9b15e, #b8892f); transform: rotate(45deg); box-shadow: 0 0 5px rgba(201,154,63,.5); }

/* 服务保障（古风词条） */
.service-bar { display: flex; justify-content: space-around; padding: 12px 0 4px; }
.service-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.service-item i { font-style: normal; font-family: var(--kai); width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #c8442a, var(--cinnabar-deep)); color: var(--gold-light); font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(124,23,14,.35), inset 0 1px 0 rgba(236,211,154,.4); border: 1px solid rgba(236,211,154,.55); }
.service-item span { font-family: var(--kai); font-size: 13px; color: #6d5b44; letter-spacing: 2px; }

.brand-footer { text-align: center; padding: 26px 0 8px; }
.brand-footer .f1 { font-family: var(--kai); font-size: 12.5px; color: #6d5b44; letter-spacing: 3px; }
.brand-footer .f2 { font-size: 10.5px; color: #a08e73; margin-top: 5px; letter-spacing: 1px; }
.brand-footer .f-addr { margin-top: 10px; font-size: 11px; color: #8a7758; display: flex; align-items: center; justify-content: center; gap: 4px; letter-spacing: .5px; line-height: 1.5; }
.brand-footer .f-addr svg { flex-shrink: 0; margin-top: 1px; }
.brand-footer .f3 { margin-top: 8px; font-size: 12px; color: #6d5b44; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.brand-footer .f3 b { color: var(--cinnabar); font-size: 13px; letter-spacing: .5px; }

/* ===== 底部客服 ===== */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(239,229,208,0), rgba(239,229,208,.9) 45%); z-index: 20; display: flex; justify-content: center; }
.call-entry { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 26px; border-radius: 6px; border: 1px solid rgba(236,211,154,.7); outline: 2px solid rgba(165,37,26,.75); outline-offset: -6px; background: linear-gradient(180deg, #b8301f 0%, var(--cinnabar-deep) 100%); color: #fff; font-family: var(--kai); font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: 1px; box-shadow: 0 6px 16px rgba(124,23,14,.35); }
.call-entry:active { transform: scale(.98); }
.call-entry svg { width: 15px; height: 15px; flex-shrink: 0; }
.call-entry span { font-size: 12px; opacity: .85; font-weight: 500; }

/* ===== 提货弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(30,10,4,.55); z-index: 100; display: none; align-items: flex-end; }
.modal-mask.show { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; max-height: 88vh; background: var(--silk); border-radius: 20px 20px 0 0; border-top: 3px solid var(--cinnabar); display: flex; flex-direction: column; animation: slideUp .26s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-head { padding: 16px 18px 10px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-radius: 20px 20px 0 0; border-bottom: 1px solid rgba(201,154,63,.4); }
.sheet-head h3 { font-family: var(--kai); font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.sheet-close { width: 28px; height: 28px; border-radius: 50%; background: var(--silk); color: var(--ink-sub); font-size: 16px; border: 1px solid rgba(201,154,63,.5); display: flex; align-items: center; justify-content: center; }

.steps { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px 12px; background: var(--paper); }
.steps .dot { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #b3a288; font-family: var(--kai); }
.steps .dot i { width: 20px; height: 20px; border-radius: 50%; background: var(--silk); border: 1px solid #d8c8a4; color: #b3a288; font-style: normal; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.steps .dot.active { color: var(--cinnabar); font-weight: 700; }
.steps .dot.active i { background: var(--cinnabar); border-color: var(--cinnabar); color: var(--gold-light); }
.steps .line { width: 18px; height: 1px; background: rgba(201,154,63,.5); }

.sheet-body { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; flex: 1; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn .2s; }

.field { background: var(--paper); border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid rgba(201,154,63,.4); }
.field label { display: block; font-size: 12px; color: var(--ink-sub); margin-bottom: 6px; }
.field .required { color: var(--cinnabar); }
.field input, .field textarea, .field select { width: 100%; border: none; outline: none; font-size: 15px; color: var(--ink); background: transparent; font-family: inherit; }
.field textarea { resize: none; height: 62px; line-height: 1.5; }
.field select { appearance: none; }

.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; background: #fffdf6; border: 1.5px solid #e3d3ae; border-radius: 4px; padding: 12px 14px; font-size: 16px; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; }
.code-row button { flex: 0 0 92px; border: none; border-radius: 4px; background: linear-gradient(180deg, #b8301f, var(--cinnabar-deep)); color: #fff; font-family: var(--kai); font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.code-row button:disabled { opacity: .6; }

/* 提货方式选择 */
.delivery-toggle { display: flex; gap: 10px; margin-bottom: 12px; }
.delivery-opt { flex: 1; background: var(--paper); border: 1.5px solid rgba(201,154,63,.4); border-radius: 6px; padding: 12px 10px; text-align: center; font-family: var(--kai); cursor: pointer; transition: all .15s; position: relative; }
.delivery-opt .o-name { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.delivery-opt .o-desc { font-size: 10.5px; color: var(--ink-sub); margin-top: 4px; letter-spacing: .5px; }
.delivery-opt.active { border-color: var(--cinnabar); background: #fdf3ec; box-shadow: 0 3px 10px rgba(165,37,26,.14); }
.delivery-opt.active .o-name { color: var(--cinnabar); }
.delivery-opt.active::after { content: '✓'; position: absolute; right: 7px; top: 5px; font-size: 10px; color: var(--cinnabar); font-weight: 700; }
.store-card { display: none; background: #fdf6e9; border: 1.5px solid rgba(201,154,63,.55); border-radius: 6px; padding: 13px 14px; margin-bottom: 12px; }
.store-card.show { display: block; animation: fadeIn .2s; }
.store-card .s-row { display: flex; gap: 7px; font-size: 12px; color: #6d5b44; line-height: 1.6; align-items: flex-start; }
.store-card .s-row + .s-row { margin-top: 5px; }
.store-card .s-row svg { flex-shrink: 0; margin-top: 3px; }
.store-card .s-row b { color: var(--cinnabar); }
.mail-only { display: none !important; }

.code-tip { font-size: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 6px; display: none; line-height: 1.5; }
.code-tip.error { display: block; background: #fbe9e6; color: #8c1a10; border: 1px solid rgba(165,37,26,.25); }
.code-tip.success { display: block; background: #eef4e6; color: #4a6b2a; border: 1px solid rgba(106,142,60,.3); }

.combo-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(201,154,63,.4); }
.combo-item:last-child { border-bottom: none; }
.combo-item .thumb { width: 62px; height: 62px; border-radius: 6px; object-fit: cover; background: var(--silk); border: 1px solid rgba(201,154,63,.4); flex-shrink: 0; }
.combo-item .meta { flex: 1; min-width: 0; }
.combo-item .name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-item .limit { font-size: 11px; color: var(--ink-sub); margin-top: 4px; }
.combo-item .price { flex-shrink: 0; text-align: right; font-family: var(--kai); }
.combo-item .price .unit { font-size: 10.5px; color: var(--ink-sub); letter-spacing: .5px; }
.combo-item .price .sub { font-size: 16px; font-weight: 700; color: var(--cinnabar); }
.combo-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1.5px solid rgba(201,154,63,.55); }
.combo-total span { font-family: var(--kai); font-size: 13px; color: var(--ink-sub); letter-spacing: 2px; }
.combo-total b { font-family: var(--kai); font-size: 20px; color: var(--cinnabar); }
.combo-total b small { font-size: 12px; }

.panel-title { font-family: var(--kai); font-size: 14px; font-weight: 700; color: var(--ink); margin: 2px 2px 8px; letter-spacing: 1px; }
.panel-sub { font-size: 12px; color: var(--ink-sub); margin: 0 2px 10px; }

.action-btn { width: 100%; height: 48px; border: 1px solid rgba(236,211,154,.7); outline: 2px solid rgba(165,37,26,.75); outline-offset: -6px; border-radius: 6px; color: #fff; font-family: var(--kai); font-size: 16px; font-weight: 700; letter-spacing: 3px; background: linear-gradient(180deg, #b8301f 0%, var(--cinnabar-deep) 100%); box-shadow: 0 6px 16px rgba(124,23,14,.32); margin-top: 6px; }
.action-btn:disabled { opacity: .6; box-shadow: none; }
.action-btn.ghost { background: var(--paper); color: #6d5b44; border: 1px solid rgba(201,154,63,.5); outline: none; box-shadow: none; }

.region-row { display: flex; gap: 8px; }
.region-row select { flex: 1; background: #fffdf6; border: 1px solid #e3d3ae; border-radius: 4px; padding: 11px 10px; font-size: 14px; color: var(--ink); }
.region-row select:disabled { color: #b3a288; }

.success-box { text-align: center; padding: 18px 6px 8px; }
.success-box .ico { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #6a8e3c, #43601d); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 4px 10px rgba(67,96,29,.35); }
.success-box h4 { font-family: var(--kai); font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: 2px; }
.success-box p { font-size: 13px; color: var(--ink-sub); line-height: 1.6; }
.success-box .order-no { display: inline-block; margin-top: 10px; padding: 7px 14px; background: #fffdf6; border: 1px dashed rgba(201,154,63,.7); border-radius: 4px; font-size: 12px; color: #6d5b44; letter-spacing: .5px; }
.success-actions { display: flex; gap: 10px; margin-top: 18px; }
.success-actions a { flex: 1; height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--kai); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-decoration: none; }
.success-actions .primary { background: linear-gradient(180deg, #b8301f, var(--cinnabar-deep)); color: #fff; border: 1px solid rgba(236,211,154,.6); }
.success-actions .plain { background: var(--paper); color: #6d5b44; border: 1px solid rgba(201,154,63,.5); }

.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(45,12,5,.88); color: var(--gold-light); font-size: 13px; padding: 10px 18px; border-radius: 6px; border: 1px solid rgba(236,211,154,.4); z-index: 999; display: none; max-width: 78%; text-align: center; line-height: 1.5; }
.toast.show { display: block; animation: fadeIn .18s; }
