/* ==========================================================
   云学资料库 · 分站卡密中心  —— 国潮风 9:16
   宣纸米色 + 深青 + 朱红 + 水墨山水 + 印章圆标
   ========================================================== */
:root {
  --paper: #f6f1e3;
  --paper-deep: #efe7d2;
  --card: #fdfaf2;
  --border: #e6dcc2;
  --red: #a8322a;
  --red-deep: #8f2b20;
  --red-grad: linear-gradient(135deg, #b13a2c 0%, #9c2b20 100%);
  --teal: #2f5d4e;
  --teal-deep: #274d40;
  --ink: #3b3226;
  --ink-2: #6b6253;
  --gray: #8b8272;
  --tan: #9a7a3f;
  --tan-bg: #f0e5c9;
  --green: #2e7d4f;
  --gold: #a97b2e;
  --serif: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "SimSun", "Noto Serif SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--serif);
  background: #2e2a22;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.hide { display: none !important; }

/* 舞台：手机宽度居中（桌面预览呈现 9:16 竖屏比例） */
#stage {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow-x: hidden;
}
@media (min-width: 520px) {
  #stage {
    min-height: 0;
    height: calc(100vw * 16 / 9);
    max-height: 96dvh;
    margin: 2dvh auto;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    overflow: hidden;
  }
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ================= 通用按钮 ================= */
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 12px;
  background: var(--red-grad);
  color: #fdf6e9;
  font-size: 19px;
  letter-spacing: 10px;
  text-indent: 10px;
  font-family: var(--serif);
  box-shadow: 0 6px 16px rgba(156, 43, 32, .32), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; }

/* ==========================================================
   登录页
   ========================================================== */
#view-login { min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 520px) { #view-login { min-height: 0; height: 100%; } }

.login-hero {
  position: relative;
  height: 42dvh;
  min-height: 300px;
  overflow: hidden;
}
@media (min-width: 520px) { .login-hero { height: 40%; min-height: 0; } }

.hero-mountain { position: absolute; left: 0; bottom: 8%; width: 100%; height: 62%; }
.hero-sun {
  position: absolute; top: 9%; right: 12%;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #d9705a 0%, #c04a35 55%, #a8322a 100%);
  box-shadow: 0 0 34px rgba(192, 74, 53, .45);
  opacity: .92;
}
.hero-sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 62% 60%, rgba(246,241,227,.28) 0 18%, transparent 40%);
}
.hero-crane { position: absolute; top: 46%; left: 15%; width: 62px; transform: rotate(-8deg); }
.hero-temple { position: absolute; bottom: 22%; right: 7%; width: 58px; opacity: .9; }

.login-brand-wrap { position: absolute; top: 7%; left: 0; right: 0; text-align: center; }
.login-logo { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(60,50,30,.14)); }
.login-brand {
  margin-top: 4px;
  font-size: 30px; font-weight: 700; color: #22302a;
  letter-spacing: 6px; text-indent: 6px;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.hero-ribbon { position: absolute; left: 0; bottom: -2px; width: 100%; height: 74px; }

.login-card {
  position: relative; z-index: 2;
  margin: -34px 16px 0;
  background: linear-gradient(180deg, #fefcf6 0%, #faf5e8 100%);
  border: 1px solid rgba(230, 220, 194, .9);
  border-radius: 18px;
  padding: 26px 22px 24px;
  box-shadow: 0 10px 30px rgba(90, 74, 40, .14);
}
.login-title {
  text-align: center;
  font-size: 27px; font-weight: 700; color: var(--ink);
  letter-spacing: 5px; text-indent: 5px;
}
.login-welcome {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 20px;
  color: #7a6f58; font-size: 14px; letter-spacing: 2px;
}
.login-welcome i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #cfc3a4); }
.login-welcome i:last-child { background: linear-gradient(90deg, #cfc3a4, transparent); }

.field {
  display: block;
  background: #fbf7ec;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px 9px;
  margin-bottom: 14px;
}
.field:focus-within { border-color: #cfae86; box-shadow: 0 0 0 3px rgba(190,160,110,.12); }
.field-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.f-ico { width: 18px; height: 18px; color: #55483a; }
.eye { margin-left: auto; background: none; border: none; color: #6f6450; padding: 2px; }
.eye svg { width: 20px; height: 20px; }
.field input {
  width: 100%;
  border: none; outline: none; background: transparent;
  margin-top: 5px;
  font-size: 15px; color: var(--ink);
  height: 22px; line-height: 22px;
}
.field input::placeholder { color: #b0a68d; }

.login-err { min-height: 20px; margin-top: 8px; text-align: center; color: var(--red); font-size: 13px; }

.login-foot { margin: auto 0 22px; padding-top: 26px; text-align: center; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 12px; color: #7a6f58; font-size: 14px; letter-spacing: 3px; }
.foot-brand i { width: 26px; height: 1px; background: #c6b995; }
.foot-sub { margin-top: 6px; color: #a2977c; font-size: 12px; letter-spacing: 2px; }

/* ==========================================================
   主框架
   ========================================================== */
#app { display: flex; flex-direction: column; min-height: 100dvh; }
@media (min-width: 520px) { #app { min-height: 0; height: 100%; } }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px;
  background: rgba(246, 241, 227, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(214, 202, 168, .55);
}
.topbar-logo { width: 30px; height: 30px; object-fit: contain; }
.topbar-name { font-size: 18px; font-weight: 700; letter-spacing: 3px; color: #22302a; }

#pages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 520px) { #pages { overflow-y: auto; } }
.page { padding-bottom: 86px; min-height: 100%; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  background: rgba(250, 246, 235, .97);
  border-top: 1px solid rgba(214, 202, 168, .7);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 7px;
  background: none; border: none;
  color: #6f6553; font-size: 12.5px; letter-spacing: 1px;
}
.tab .t-ico { width: 24px; height: 24px; }
.tab.active { color: var(--red); }
.tab.active span { font-weight: 700; }

/* ==========================================================
   首页
   ========================================================== */
.banner {
  position: relative;
  margin: 12px 14px 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3eee0 0%, #ece5d0 100%);
  border: 1px solid rgba(214, 202, 168, .7);
  padding: 26px 16px 20px;
  text-align: center;
}
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-sun {
  position: absolute; top: 12px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #d9705a 0%, #c04a35 55%, #a8322a 100%);
  opacity: .9;
}
.banner-title {
  position: relative;
  font-size: 40px; font-weight: 700; color: var(--red-deep);
  letter-spacing: 4px; text-indent: 4px;
  text-shadow: 0 2px 0 rgba(255,255,255,.5);
}
.banner-brush {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  padding: 5px 26px;
  background: var(--red-grad);
  color: #fdf3e3;
  font-size: 16px; letter-spacing: 5px; text-indent: 5px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(156, 43, 32, .3);
  clip-path: polygon(2% 12%, 98% 0%, 100% 62%, 97% 100%, 3% 92%, 0% 45%);
}
.banner-sub { position: relative; margin-top: 10px; color: #7a6f58; font-size: 12.5px; letter-spacing: 3px; }

.sec-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 24px 0 14px;
  font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: 4px; text-indent: 4px;
}
.sec-title i { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #b7a87f); }
.sec-title i:last-child { background: linear-gradient(90deg, #b7a87f, transparent); }
.sec-title b { color: var(--red); font-size: 13px; font-weight: 400; }

.chips { display: flex; gap: 9px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #faf5e7;
  color: #6f6553; font-size: 14px; letter-spacing: 1px;
  font-family: var(--serif);
}
.chip.active { background: var(--red-grad); border-color: transparent; color: #fdf3e3; font-weight: 700; box-shadow: 0 4px 10px rgba(156,43,32,.28); }

.goods { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.goods-empty { text-align: center; color: var(--gray); padding: 40px 0; font-size: 14px; letter-spacing: 2px; }

.goods-card {
  display: flex; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 4px 14px rgba(120, 100, 60, .07);
}
.goods-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.goods-name { font-size: 17.5px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.goods-desc { margin-top: 4px; font-size: 12.5px; color: var(--gray); letter-spacing: 1px; }
.goods-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.goods-price { color: var(--red-deep); line-height: 1; }
.goods-price em { font-style: normal; font-size: 15px; margin-right: 1px; }
.goods-price b { font-size: 30px; font-weight: 700; font-family: var(--serif); }
.goods-price .strike { font-size: 12px; color: #b3a88e; text-decoration: line-through; margin-left: 6px; }
.goods-price .tag-partner {
  display: inline-block; vertical-align: 4px; margin-left: 6px;
  padding: 2px 7px; border-radius: 4px;
  background: linear-gradient(135deg, #b7352c, #8f231c);
  color: #f9efdc; font-size: 10.5px; letter-spacing: 1px; line-height: 1.3;
}
.btn-buy {
  padding: 8px 17px;
  border: none; border-radius: 999px;
  background: var(--red-grad);
  color: #fdf3e3; font-size: 14.5px; letter-spacing: 1px;
  font-family: var(--serif); font-weight: 700;
  box-shadow: 0 4px 10px rgba(156, 43, 32, .28);
}
.btn-buy:active { transform: scale(.97); }

/* 印章圆标 */
.seal {
  position: relative;
  flex-shrink: 0;
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fdf6e9;
  font-size: 21px; font-weight: 700; letter-spacing: 0;
  writing-mode: vertical-rl; text-orientation: upright;
  background: radial-gradient(circle at 32% 28%, #c4543f 0%, #a8322a 58%, #8f2b20 100%);
  box-shadow: inset 0 0 0 2.5px rgba(253, 246, 233, .85), inset 0 0 0 5px rgba(143, 43, 32, .9), 0 4px 10px rgba(143, 43, 32, .3);
}
.seal.teal {
  background: radial-gradient(circle at 32% 28%, #46796a 0%, #2f5d4e 58%, #274d40 100%);
  box-shadow: inset 0 0 0 2.5px rgba(253, 246, 233, .85), inset 0 0 0 5px rgba(35, 72, 60, .9), 0 4px 10px rgba(39, 77, 64, .3);
}
.seal::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: radial-gradient(circle at 68% 74%, rgba(255,255,255,.14) 0 22%, transparent 45%);
}
.seal.sm { width: 58px; height: 58px; font-size: 19px; }
.seal.thumb { width: 58px; height: 58px; font-size: 19px; }

/* 自动发货角标 */
.tag-auto {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 6px 6px 6px 0;
  background: var(--tan-bg);
  color: var(--tan);
  font-size: 11.5px; letter-spacing: 1px;
  white-space: nowrap;
}

/* ==========================================================
   订单页
   ========================================================== */
.page-head { position: relative; padding: 18px 16px 14px; text-align: center; overflow: hidden; }
.ph-bg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.page-head-sun {
  position: absolute; top: 14px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #d9705a 0%, #c04a35 55%, #a8322a 100%);
  opacity: .85;
}
.page-title { position: relative; font-size: 26px; font-weight: 700; letter-spacing: 5px; text-indent: 5px; color: var(--ink); }
.page-sub { position: relative; margin-top: 7px; color: #7a6f58; font-size: 12.5px; letter-spacing: 2px; }

.search {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 14px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
}
.search-ico { width: 18px; height: 18px; color: #9a8f74; flex-shrink: 0; }
.search input { flex: 1; border: none; outline: none; background: transparent; font-size: 14.5px; color: var(--ink); }
.search input::placeholder { color: #b0a68d; }

.otabs { display: flex; padding: 12px 8px 0; border-bottom: 1px solid rgba(214, 202, 168, .5); }
.otab {
  flex: 1;
  position: relative;
  padding: 8px 0 10px;
  background: none; border: none;
  font-size: 15.5px; letter-spacing: 1px;
  color: #6f6553; font-family: var(--serif);
}
.otab.active { color: var(--red); font-weight: 700; }
.otab.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 4px; width: 30px; height: 3px; border-radius: 3px;
  background: var(--red);
}

.orders { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.orders-empty { text-align: center; color: var(--gray); padding: 46px 0; font-size: 14px; letter-spacing: 2px; }

.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: 0 4px 14px rgba(120, 100, 60, .07);
}
.oc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.oc-no { font-size: 14px; font-weight: 700; color: var(--ink); word-break: break-all; }
.oc-status { flex-shrink: 0; font-size: 14px; font-weight: 700; }
.oc-status.st-created { color: #c07b2e; }
.oc-status.st-paid { color: var(--green); }
.oc-status.st-finished { color: var(--teal); }
.oc-time { margin-top: 4px; font-size: 12.5px; color: var(--gray); }
.oc-div { height: 1px; background: rgba(214, 202, 168, .55); margin: 11px 0; }
.oc-prod { display: flex; gap: 12px; align-items: center; }
.oc-prod-info { flex: 1; min-width: 0; }
.oc-prod-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.oc-prod-price { margin-top: 5px; color: var(--red-deep); }
.oc-prod-price em { font-style: normal; font-size: 13px; }
.oc-prod-price b { font-size: 22px; font-weight: 700; }
.oc-count { margin-top: 3px; font-size: 12.5px; color: var(--gray); }

/* 卡密信息折叠块 */
.cards-box {
  margin-top: 11px;
  background: #f7f0dd;
  border: 1px solid #e9dfc4;
  border-radius: 12px;
  padding: 11px 12px;
}
.cards-box-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  cursor: pointer;
}
.cards-toggle { width: 17px; height: 17px; color: #7a6f58; transition: transform .2s; }
.cards-box.collapsed .cards-toggle { transform: rotate(180deg); }
.cards-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cards-box.collapsed .cards-list, .cards-box.collapsed .cards-all { display: none; }
.code-row {
  display: flex; align-items: center; gap: 8px;
  background: #fdf9ef;
  border: 1px solid #e7dcbc;
  border-radius: 9px;
  padding: 9px 11px;
}
.code-text { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; letter-spacing: .6px; color: #4a4030; word-break: break-all; font-family: "SFMono-Regular", Menlo, Consolas, var(--serif); }
.code-copy {
  flex-shrink: 0;
  padding: 4px 12px;
  border: 1.4px solid var(--red);
  border-radius: 8px;
  background: #fdf6ec;
  color: var(--red);
  font-size: 13px; letter-spacing: 1px; font-family: var(--serif);
}
.code-copy:active { background: #f7e5dd; }
.cards-all {
  margin-top: 10px; width: 100%;
  padding: 10px 0;
  border: none; border-radius: 10px;
  background: var(--red-grad);
  color: #fdf3e3; font-size: 15.5px; font-weight: 700; letter-spacing: 3px; text-indent: 3px;
  font-family: var(--serif);
  box-shadow: 0 4px 10px rgba(156, 43, 32, .26);
}
.card-used { color: #a09579; text-decoration: line-through; }
.oc-pay {
  margin-top: 11px; width: 100%;
  padding: 10px 0;
  border: none; border-radius: 10px;
  background: var(--red-grad);
  color: #fdf3e3; font-size: 15.5px; font-weight: 700; letter-spacing: 3px; text-indent: 3px;
  font-family: var(--serif);
}

/* ==========================================================
   我的
   ========================================================== */
.me-head { padding-bottom: 20px; }
.ph-pine { position: absolute; right: 8px; bottom: -4px; width: 96px; opacity: .9; }

.profile-card {
  display: flex; align-items: center; gap: 13px;
  margin: 0 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 14px;
  box-shadow: 0 4px 14px rgba(120, 100, 60, .07);
  cursor: pointer;
}
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(90,74,40,.18); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 700; color: var(--ink); }
.profile-tag {
  display: inline-block; margin-top: 5px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--red-grad);
  color: #fdf3e3; font-size: 12.5px; letter-spacing: 2px;
}
.profile-tag.partner { background: linear-gradient(135deg, #b8892f 0%, #96690f 100%); box-shadow: 0 3px 8px rgba(150,105,15,.28); }
.profile-site { margin-top: 5px; font-size: 12px; color: var(--gray); letter-spacing: .5px; }

.panel {
  margin: 12px 14px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(120, 100, 60, .07);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-head > span { font-size: 17.5px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.panel-head a { display: flex; align-items: center; gap: 2px; color: var(--gray); font-size: 13px; text-decoration: none; cursor: pointer; }
.chev-s { width: 14px; height: 14px; }

.ogrid { display: flex; margin-top: 14px; }
.ogrid-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: none;
  color: #55483a; font-size: 12.5px; letter-spacing: .5px;
  font-family: var(--serif);
  position: relative;
}
.ogrid-item .g-ico { width: 25px; height: 25px; }
.ogrid-item .g-badge {
  position: absolute; top: -7px; right: 14%;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff; font-size: 10.5px; line-height: 17px; text-align: center;
}

.logout-mini {
  flex-shrink: 0;
  margin-left: auto;
  padding: 7px 14px;
  background: rgba(168, 50, 42, .07);
  border: 1px solid rgba(168, 50, 42, .35);
  border-radius: 999px;
  color: var(--red);
  font-size: 13px; letter-spacing: 2px; text-indent: 2px;
  font-family: var(--serif); font-weight: 700;
}
.me-foot { padding: 26px 0 10px; text-align: center; }

/* 扫码支付弹窗 */
.pay-qr {
  width: 168px; height: 168px; margin: 6px auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px;
}
.pay-qr img { width: 100%; height: 100%; }
.pay-qr-tip { text-align: center; font-size: 13.5px; color: var(--gray); letter-spacing: 1px; line-height: 1.7; }
.pay-qr-tip span { font-size: 12.5px; color: #b3a88e; }
.pay-qr-link { color: var(--red); font-size: 13px; }

/* ==========================================================
   购买面板 / 模态 / Toast
   ========================================================== */
.mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(30, 24, 14, .55);
  display: flex; align-items: center; justify-content: center;
  max-width: 480px; margin: 0 auto;
}
.sheet {
  position: fixed; z-index: 95;
  left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px;
  background: #fdfaf2;
  border-radius: 20px 20px 0 0;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,.25);
}
.sheet-bar { width: 40px; height: 4px; border-radius: 4px; background: #d9cfb2; margin: 0 auto 14px; }
.sheet-head { text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 3px; text-indent: 3px; }
.sheet-prod { display: flex; align-items: center; gap: 13px; margin-top: 16px; }
.sheet-prod-info { flex: 1; }
.sheet-prod-name { font-size: 17px; font-weight: 700; }
.sheet-price { margin-top: 6px; color: var(--red-deep); }
.sheet-price em { font-style: normal; font-size: 14px; }
.sheet-price b { font-size: 26px; font-weight: 700; }
.partner-flag {
  margin-left: 8px; padding: 2px 8px;
  border-radius: 999px;
  background: #f4e8cf; color: var(--gold);
  font-size: 11px; letter-spacing: 1px;
}
.sheet-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 15px; color: #55483a; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button {
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #f7f2e2; color: #55483a;
  font-size: 17px; line-height: 1;
}
.stepper button:disabled { opacity: .4; }
.stepper b { min-width: 40px; text-align: center; font-size: 16px; }
.total-row { font-size: 16px; }
.sheet-total { color: var(--red-deep); }
.sheet-total em { font-style: normal; font-size: 15px; }
.sheet-total b { font-size: 26px; font-weight: 700; }
.sheet-pay { margin-top: 18px; letter-spacing: 4px; text-indent: 4px; font-size: 17px; }
.sheet-tip { margin-top: 11px; text-align: center; color: var(--gray); font-size: 12px; letter-spacing: 1px; }

.modal-card {
  width: min(84vw, 360px);
  background: #fdfaf2;
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  text-align: center;
}
.modal-title { font-size: 19px; font-weight: 700; letter-spacing: 3px; text-indent: 3px; }
.modal-body { margin-top: 14px; font-size: 14.5px; color: #6f6553; line-height: 1.9; letter-spacing: .5px; }
.modal-body .kv { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px dashed #e2d8ba; color: var(--ink); }
.modal-btn {
  margin-top: 20px;
  width: 100%; padding: 10px 0;
  border: none; border-radius: 10px;
  background: var(--red-grad);
  color: #fdf3e3; font-size: 15.5px; letter-spacing: 4px; text-indent: 4px;
  font-family: var(--serif); font-weight: 700;
}

#toast {
  position: fixed; z-index: 120;
  left: 50%; top: 16%;
  transform: translateX(-50%);
  max-width: 78vw;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(40, 33, 20, .9);
  color: #f6efdd;
  font-size: 14px; letter-spacing: 1px;
  text-align: center;
  animation: toastIn .22s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==========================================================
   客服浮窗（右下角） + 主站客服二维码弹窗
   ========================================================== */
.fab-service {
  position: absolute; right: 14px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: var(--red-grad);
  color: #fdf3e3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(156, 43, 32, .38), inset 0 1px 0 rgba(255,255,255,.2);
}
.fab-service:active { transform: scale(.94); }
.fab-service svg { width: 24px; height: 24px; }

.svc-qr {
  display: block;
  width: 216px; height: 216px;
  object-fit: contain;
  margin: 8px auto 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.svc-fallback { padding: 22px 0 10px; color: var(--gray); font-size: 14px; letter-spacing: 1px; }
.svc-tip { margin-top: 12px; font-size: 12.5px; color: var(--gray); letter-spacing: 1px; line-height: 1.9; }
