/* ==========================================================================
   bid.imwsl.com · shared design system
   Load AFTER nav.css. Tokens + reusable components for every page.
   ========================================================================== */

/* 跨页面导航过渡（Chrome 126+ 支持 same-origin MPA），其它浏览器无回退成本 */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}
::view-transition-old(root) { animation-name: gg-vt-out; }
::view-transition-new(root) { animation-name: gg-vt-in; }
@keyframes gg-vt-out { to { opacity: 0; } }
@keyframes gg-vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

:root {
  --brand: #07C160;
  --brand-dark: #05a852;
  --brand-tint: #E8FBF1;
  --lime: #E5FF74;
  --ink: #0A0A0A;
  --ink-2: #333;
  --ink-3: #6B7280;
  --ink-4: #9CA3AF;
  --line: #E5E7EB;
  --line-2: #F1F1F1;
  --bg: #FFFFFF;
  --bg-2: #F7F8F7;
  --danger: #D93737;
  --warn: #F5A623;
  --shadow-brutal: 4px 4px 0 var(--ink);
  --shadow-brutal-lg: 6px 6px 0 var(--ink);
}

/* ---------- reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) {
  .container, .container-sm, .container-md { padding: 0 16px; }
}

/* ---------- section ---------- */
section.sec { padding: 72px 0; }
section.sec-sm { padding: 48px 0; }
@media (max-width: 640px) {
  section.sec { padding: 48px 0; }
  section.sec-sm { padding: 32px 0; }
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 900; }
h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; }
h3 { font-size: 20px; font-weight: 800; }
h4 { font-size: 16px; font-weight: 700; }
p.lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
p { line-height: 1.7; color: var(--ink-2); }
@media (max-width: 640px) { p.lead { font-size: 16px; } }

.eyebrow { display: inline-block; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; padding: 6px 12px; border-radius: 6px; text-transform: uppercase; }
.eyebrow.brand { background: var(--brand-tint); color: var(--brand-dark); }
.eyebrow.lime { background: var(--lime); color: var(--ink); }
.eyebrow.line { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 4px 10px; }

.hl { background: var(--lime); padding: 0 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 4px; }
.text-muted { color: var(--ink-3); }
.text-brand { color: var(--brand); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  border: 2px solid transparent; transition: transform .1s, background .15s, border-color .15s, color .15s;
  font-size: 15px; white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- section header ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head .h { flex: 1; min-width: 280px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--ink-3); font-size: 15px; }

/* ---------- hero shell ---------- */
.hero { padding: 64px 0 40px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; background: #fff; color: var(--ink); cursor: pointer; font-family: inherit; }
.chip.active, .chip:hover { background: var(--ink); color: #fff; }
.chip-tint { border-color: var(--line); background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.chip-tint:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- cards ---------- */
.card { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-brutal); }
.card-plain { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card-tint { background: var(--bg-2); border-radius: 16px; padding: 24px; }
.card-hoverable { transition: transform .15s, box-shadow .15s; }
.card-hoverable:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-brutal-lg); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { border: 2px solid var(--ink); border-radius: 16px; padding: 22px; background: #fff; position: relative; }
.step .n { font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px; color: var(--brand); }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ---------- CTA band ---------- */
.band { background: var(--brand); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; margin: 32px 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 40%), radial-gradient(circle at 80% 80%, rgba(0,0,0,.15), transparent 40%); pointer-events: none; }
.band > * { position: relative; }
.band h2 { color: #fff; margin-bottom: 12px; }
.band p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 24px; }
.band .btn { background: #fff; color: var(--ink); }
.band .btn:hover { background: var(--ink); color: #fff; }
.band-dark { background: var(--ink); }
.band-dark .btn { background: var(--brand); color: #fff; }
.band-dark .btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 640px) {
  .band { padding: 40px 22px; border-radius: 20px; }
  .band p { font-size: 15px; }
}

/* ---------- form controls ---------- */
.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field label .opt { color: var(--ink-4); font-weight: 400; margin-left: 4px; }
.input, .textarea, .select {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px;
  color: var(--ink); background: #fff; font-family: inherit; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(7,193,96,.12); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field-err { color: var(--danger); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.field-hint { color: var(--ink-3); font-size: 12px; margin-top: 6px; line-height: 1.5; }

/* iOS Safari 对 font-size < 16px 的输入框会在聚焦时自动放大页面且不会复位，
   移动端统一提到 16px。桌面维持 15px 不变。 */
@media (max-width: 640px) {
  .input, .textarea, .select { font-size: 16px; }
}

/* ---------- tags / badges ---------- */
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); }
.tag.dark { background: var(--ink); color: #fff; }
.tag.warn { background: #FFF3D9; color: var(--warn); }
.tag.danger { background: #FEE7E7; color: var(--danger); }
.tag.line { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- footer ---------- */
footer.site-foot { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 32px; }
footer.site-foot .foot-g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 640px) { footer.site-foot .foot-g { grid-template-columns: 1fr 1fr; } }
footer.site-foot .foot-brand { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
footer.site-foot .foot-brand .g { color: var(--brand); }
footer.site-foot .foot-desc { font-size: 13px; line-height: 1.6; max-width: 260px; }
footer.site-foot .foot-col h4 { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
footer.site-foot .foot-col a { display: block; font-size: 14px; padding: 4px 0; color: rgba(255,255,255,.6); }
footer.site-foot .foot-col a:hover { color: #fff; }
footer.site-foot .foot-b { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 12px; }
footer.site-foot .foot-b a { color: rgba(255,255,255,.5); margin-left: 12px; }
footer.site-foot .foot-b a:hover { color: #fff; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 9999; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.25);
  animation: toast-in .2s ease;
}
.toast.success { background: var(--brand); }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- utils ---------- */
.stack-1 > * + * { margin-top: 8px; }
.stack-2 > * + * { margin-top: 16px; }
.stack-3 > * + * { margin-top: 24px; }
.stack-4 > * + * { margin-top: 32px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .row-2, .row-3, .row-4 { grid-template-columns: 1fr; } }

.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }

/* Print / long-form pages */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 20px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; margin-bottom: 12px; font-size: 15px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--brand); padding: 6px 16px; margin: 20px 0; background: var(--brand-tint); border-radius: 0 8px 8px 0; }

/* ==========================================================================
   竞拍站专属组件（倒计时 / 场次卡 / 状态标 / 排期表）
   ========================================================================== */

/* ---------- 倒计时 ---------- */
.countdown { display: flex; gap: 10px; align-items: stretch; }
.cd-cell {
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 12px 6px; min-width: 72px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-cell .v { font-size: 32px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.cd-cell .k { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 6px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.countdown.urgent .cd-cell { background: var(--danger); }
.countdown.urgent .cd-cell .k { color: rgba(255,255,255,.75); }
@media (max-width: 480px) {
  .countdown { gap: 8px; }
  .cd-cell { min-width: 0; flex: 1; padding: 10px 4px; }
  .cd-cell .v { font-size: 26px; }
}

/* ---------- 场次卡（首页主角） ---------- */
.auction-card {
  background: #fff; border: 2px solid var(--ink); border-radius: 24px;
  box-shadow: var(--shadow-brutal-lg); overflow: hidden;
}
.auction-card__head {
  background: var(--ink); color: #fff; padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.auction-card__head h3 { color: #fff; font-size: 18px; margin: 0; }
.auction-card__head .sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
.auction-card__body { padding: 26px; }
@media (max-width: 640px) {
  .auction-card__head { padding: 16px 18px; }
  .auction-card__body { padding: 20px 18px; }
}

.auction-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 560px) { .auction-meta { grid-template-columns: 1fr 1fr; } }
.auction-meta .m { background: var(--bg-2); border-radius: 14px; padding: 14px 16px; }
.auction-meta .m .k { font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.auction-meta .m .v { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.auction-meta .m .v small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.auction-meta .m.hi { background: var(--brand-tint); }
.auction-meta .m.hi .v { color: var(--brand-dark); }

/* ---------- 阶段徽标 ----------
   .phase--* 与 .bstat--* 都是 auction.js 里拼字符串生成的（'phase phase--' + p），
   在 HTML 里搜不到字面量，别当死代码删。 */
.phase {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.phase--live      { background: #E8FBF1; color: #05a852; }
.phase--live::before { animation: phase-pulse 1.4s ease-in-out infinite; }
.phase--scheduled { background: #FFF3D9; color: #a97400; }
.phase--ended     { background: #F1F1F1; color: #6B7280; }
.phase--settled   { background: #0A0A0A; color: var(--lime); }
.phase--cancelled { background: #FEE7E7; color: var(--danger); }
@keyframes phase-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .phase--live::before { animation: none; } }

/* ---------- 出价单状态标 ---------- */
.bstat { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.bstat--pending   { background: #FFF3D9; color: #a97400; }
.bstat--paid      { background: var(--brand-tint); color: var(--brand-dark); }
.bstat--won       { background: var(--ink); color: var(--lime); }
.bstat--refunding { background: #EEF2FF; color: #4338CA; }
.bstat--refunded  { background: #F1F1F1; color: var(--ink-3); }
.bstat--cancelled { background: #FEE7E7; color: var(--danger); }

/* ---------- 排期表 ---------- */
.slot-list { display: grid; gap: 12px; }
.slot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; background: #fff;
  transition: border-color .15s, transform .15s;
}
.slot:hover { border-color: var(--ink); transform: translateX(2px); }
.slot--live { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7,193,96,.12); }
.slot__date { font-size: 17px; font-weight: 900; letter-spacing: -0.01em; min-width: 120px; }
.slot__date small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.slot__mid { flex: 1; min-width: 180px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.slot__mid b { color: var(--ink); }
.slot__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media (max-width: 560px) {
  .slot { padding: 14px; gap: 10px; }
  .slot__right { width: 100%; margin-left: 0; justify-content: space-between; }
}

/* ---------- 醒目提示条 ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: 12px; padding: 12px 16px;
  font-size: 14px; line-height: 1.65; font-weight: 600;
}
.notice .ico { flex-shrink: 0; font-size: 16px; line-height: 1.5; }
.notice--warn   { background: #FFF3D9; border: 2px solid var(--warn); color: #7a5c0a; }
.notice--warn strong { color: #5c4405; }
.notice--info   { background: var(--brand-tint); border: 2px solid var(--brand); color: #05733a; }
.notice--danger { background: #FEE7E7; border: 2px solid var(--danger); color: #8c1c1c; }
.notice--plain  { background: var(--bg-2); border: 2px solid var(--line); color: var(--ink-2); }
@media (max-width: 640px) { .notice { font-size: 13px; padding: 11px 14px; } }

/* ---------- 定义列表（订单/出价详情） ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 14px; }
.dl dt { color: var(--ink-3); font-weight: 600; }
.dl dd { color: var(--ink); font-weight: 700; margin: 0; word-break: break-all; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

/* ---------- 单号 ---------- */
.orderid { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: 0.02em; }

/* ---------- 加载 / 空态 ---------- */
.loading, .empty { text-align: center; padding: 48px 20px; color: var(--ink-3); font-size: 14px; }
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ==========================================================================
   自定义确认 / 提示弹窗（替代浏览器原生 confirm / alert）
   由 auction.js 的 auc.confirm() / auc.alert() 驱动，全站共用一份样式。
   ========================================================================== */
.sd {
  border: 2px solid var(--ink); border-radius: 20px; padding: 0;
  max-width: 440px; width: calc(100vw - 32px);
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff; color: var(--ink);
  font-family: inherit;
}
.sd::backdrop { background: rgba(10,10,10,.45); backdrop-filter: blur(2px); }
.sd[open] { animation: sd-in .16s cubic-bezier(.2,.9,.3,1); }
@keyframes sd-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .sd[open] { animation: none; } }

.sd__head { display: flex; gap: 14px; align-items: flex-start; padding: 26px 26px 0; }
.sd__ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--brand-tint);
}
.sd--danger  .sd__ico { background: #FEE7E7; }
.sd--warn    .sd__ico { background: #FFF3D9; }
.sd--success .sd__ico { background: var(--brand-tint); }
.sd__title { font-size: 19px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.3; padding-top: 7px; }

.sd__body { padding: 14px 26px 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.sd__body p { margin: 0 0 10px; color: inherit; font-size: inherit; line-height: inherit; }
.sd__body p:last-child { margin-bottom: 0; }
.sd__body b { color: var(--ink); font-weight: 800; }
.sd__body ul { list-style: none; margin: 12px 0; padding: 0; }
.sd__body li { position: relative; padding-left: 18px; margin-bottom: 7px; font-size: 14px; }
.sd__body li::before { content: "·"; position: absolute; left: 4px; font-weight: 900; color: var(--ink-4); }
.sd__body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0 4px; font-size: 14px; }
.sd__body dt { color: var(--ink-3); font-weight: 600; }
.sd__body dd { margin: 0; font-weight: 700; word-break: break-all; }
.sd__note {
  margin-top: 14px; background: var(--bg-2); border-radius: 10px;
  padding: 10px 13px; font-size: 12.5px; line-height: 1.65; color: var(--ink-3);
}
.sd--danger .sd__note { background: #FEE7E7; color: #8c1c1c; }

.sd__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 22px 26px 24px; }
.sd__btn {
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  transition: transform .1s, background .15s, color .15s, border-color .15s;
}
.sd__btn:active { transform: translateY(1px); }
.sd__btn:focus-visible { outline: 3px solid rgba(7,193,96,.4); outline-offset: 2px; }
.sd__btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.sd__btn--ghost:hover { border-color: var(--ink); }
.sd__btn--go { background: var(--ink); color: #fff; border-color: var(--ink); }
.sd__btn--go:hover { background: #222; }
.sd--danger .sd__btn--go { background: var(--danger); border-color: var(--danger); }
.sd--danger .sd__btn--go:hover { background: #b32c2c; }
.sd--success .sd__btn--go { background: var(--brand); border-color: var(--brand); }
.sd--success .sd__btn--go:hover { background: var(--brand-dark); }

/* 手机上贴底显示，拇指够得着 */
@media (max-width: 560px) {
  .sd { max-width: none; width: 100%; margin: 0; position: fixed; inset: auto 0 0 0;
        border-width: 2px 0 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 28px rgba(0,0,0,.25); }
  .sd[open] { animation: sd-up .18s cubic-bezier(.2,.9,.3,1); }
  @keyframes sd-up { from { transform: translateY(100%); } }
  .sd__head { padding: 22px 20px 0; }
  .sd__body { padding: 12px 20px 0; }
  .sd__foot { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
  .sd__btn { width: 100%; padding: 14px 20px; }
}
