:root {
  --bg: #f4f5fa;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 550;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, 0.9);
}
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #fecaca; background: var(--danger-soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }

.link-btn {
  border: 0; background: none; color: var(--muted); font: inherit;
  cursor: pointer; padding: 0;
}
.link-btn:hover { color: var(--danger); }

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 20px; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-dot { color: var(--brand); }
.brand.big { font-size: 26px; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.topnav a.ghost-link { color: var(--brand); }

/* ---------- 首页 ---------- */
.hero {
  margin: 28px 0 8px;
  padding: 44px 40px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(900px 300px at 85% -10%, rgba(6, 182, 212, 0.55), transparent 60%),
    radial-gradient(700px 320px at 10% 120%, rgba(129, 140, 248, 0.5), transparent 60%),
    linear-gradient(135deg, #1e1b4b, #312e81 55%, #4338ca);
  box-shadow: var(--shadow);
}
.hero .pill {
  display: inline-block;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; letter-spacing: -0.03em; }
.hero p { margin-top: 12px; color: rgba(255, 255, 255, 0.78); max-width: 620px; }
.hero-meta { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta div { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.hero-meta strong { display: block; font-size: 20px; color: #fff; font-weight: 650; }

.section { margin: 34px 0 60px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 19px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.stock { font-size: 12px; color: var(--muted); }
.stock.ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-right: 5px; vertical-align: 1px; }
.stock.out { color: var(--danger); }
.product h3 { font-size: 16px; }
.product .desc {
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.shop-line { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.shop-line::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }

.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.price { color: var(--brand); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.price span { font-size: 13px; margin-right: 1px; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.skeleton { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; }

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 6px; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]), select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}
textarea { min-height: 90px; resize: vertical; font-family: inherit; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 10px; }
.notice { background: var(--ok-soft); border: 1px solid #bbf7d0; color: var(--ok); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-top: 12px; }

/* ---------- 弹层 ---------- */
/* 用 margin:auto 居中 + 容器滚动：
   内容比屏幕矮时居中；内容超高时可以滚动，顶部不会被裁剪（手机 / 125% 缩放都适用） */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 50;
}
.modal-card {
  position: relative;
  width: min(440px, 100%);
  margin: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35);
  animation: pop 0.16s ease-out;
}
.modal-card.wide { width: min(760px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(0.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: 0; border-radius: 8px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #e2e8f0; color: var(--ink); }
.modal h3 { font-size: 18px; padding-right: 30px; }
.modal-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }

.buy-price { margin: 14px 0 18px; color: var(--muted); font-size: 13px; }
.buy-price strong { color: var(--brand); font-size: 20px; margin-left: 4px; }
.buy-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-top: 1px dashed var(--line); margin-bottom: 16px;
  font-size: 14px; color: var(--muted);
}
.buy-total strong { color: var(--ink); font-size: 20px; }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 34px; height: 34px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 9px; font-size: 17px; cursor: pointer; color: var(--ink-2);
}
.stepper button:hover { background: #f8fafc; }
.stepper input { text-align: center; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 100;
  animation: pop 0.16s ease-out;
}
.toast.error { background: var(--danger); }

/* ---------- 订单页 ---------- */
.page-wrap { max-width: 760px; margin: 36px auto 80px; }
.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.page-card + .page-card { margin-top: 18px; }
.page-title { font-size: 22px; margin-bottom: 6px; }
.lookup-form { display: grid; grid-template-columns: 1.3fr 1.3fr auto; gap: 10px; margin-top: 18px; }
@media (max-width: 640px) { .lookup-form { grid-template-columns: 1fr; } }

.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink-2);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 0; }
.kv dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.kv dd { margin: 0; font-weight: 550; }
.kv dd.mono { font-weight: 500; }

.keys-block { margin-top: 22px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.keys-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.key-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.key-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}

/* ---------- 支付页 ---------- */
.centered { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pay-card {
  width: min(400px, 100%);
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 30px;
  box-shadow: var(--shadow);
}
.pay-brand { font-size: 12.5px; font-weight: 650; color: var(--warn); background: var(--warn-soft); display: inline-block; padding: 4px 10px; border-radius: 999px; }
.pay-amount { text-align: center; margin: 26px 0; }
.pay-amount span { font-size: 18px; color: var(--muted); margin-right: 2px; }
.pay-amount strong { font-size: 40px; letter-spacing: -0.03em; font-weight: 700; }
.pay-card .kv { background: #f8fafc; border-radius: 12px; padding: 14px; margin-bottom: 22px; }

/* ---------- 后台 ---------- */
.admin-body { background: #f7f8fc; }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background:
  radial-gradient(700px 300px at 20% 0%, #e0e7ff, transparent 60%),
  radial-gradient(700px 300px at 90% 100%, #cffafe, transparent 60%),
  #f7f8fc; }
.login-card {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.login-card h2 { font-size: 18px; margin: 14px 0 22px; }
.login-card .brand { display: inline-block; }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar {
  background: #0f172a;
  color: #cbd5e1;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand { color: #fff; padding-left: 8px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  text-align: left;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #e2e8f0; }
.nav-item.active { background: rgba(99, 102, 241, 0.22); color: #e0e7ff; font-weight: 600; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 0 8px; }
.sidebar-foot .link-btn { color: #94a3b8; }
.sidebar-foot .link-btn:hover { color: #fca5a5; }

.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin-top h1 { font-size: 22px; }
.view { display: flex; flex-direction: column; gap: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat span { font-size: 12.5px; color: var(--muted); }
.stat strong { font-size: 24px; letter-spacing: -0.02em; }
.stat small { font-size: 12px; color: var(--muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { font-size: 15px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 46px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #818cf8, #4f46e5); min-height: 3px; }
.chart .bar.zero { background: #e2e8f0; }
.chart .bar-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart .bar-value { font-size: 11px; color: var(--ink-2); }

.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfe; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
td .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
td.email-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.toolbar .spacer { flex: 1; }

.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-size: 13px; color: var(--muted); }

.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--warn-soft); border: 1px solid #fde68a; border-radius: 9px; font-size: 13.5px; }
.alert-row.ok { background: var(--ok-soft); border-color: #bbf7d0; }

.confirm-layer { z-index: 70; }
.confirm-card { width: min(400px, 100%); }
.confirm-text { margin: 2px 0 18px; font-size: 14.5px; line-height: 1.7; }
.confirm-input { width: 100%; margin-bottom: 18px; }

.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.modal-form .full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.key-import { display: flex; flex-direction: column; gap: 10px; }
.key-import textarea { min-height: 120px; font-family: var(--mono); font-size: 12.5px; }
.key-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 14px; gap: 14px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; }
  .sidebar-foot { margin: 0 0 0 auto; }
  .sidebar .brand { padding: 0; }
  .admin-main { padding: 20px 16px 50px; }
  .modal-form { grid-template-columns: 1fr; }
}

/* ---------- 买家账号 ---------- */
.user-nav { display: inline-flex; align-items: center; gap: 12px; }
.user-nav .link-btn { font-size: 14px; color: var(--ink-2); }
.user-nav .link-btn:hover { color: var(--danger); }

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth-card .brand { display: inline-block; }
.tabs { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; margin: 20px 0 22px; }
.tab {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}
.tab.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.order-item:hover { text-decoration: none; border-color: #c7d2fe; box-shadow: var(--shadow-sm); }
.order-item-title { font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.order-item-side { display: flex; align-items: center; gap: 12px; }
.order-item-side strong { font-size: 15px; }

@media (max-width: 560px) {
  .order-item { flex-direction: column; align-items: flex-start; }
  .order-item-side { width: 100%; justify-content: space-between; }
}

/* ---------- 移动端 / 窄窗口适配 ---------- */
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .hero { padding: 30px 22px; border-radius: 18px; }
  .modal { padding: 12px; }
  .modal-card { padding: 20px 18px; border-radius: 16px; }
  .modal-card.wide { width: 100%; }
  /* iOS 输入框小于 16px 时聚焦会自动放大页面 */
  input, select, textarea { font-size: 16px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat strong { font-size: 20px; }
  .admin-top h1 { font-size: 19px; }
  .admin-main { padding: 18px 14px 46px; }
  .page-wrap { margin: 18px auto 60px; }
  .page-card { padding: 20px 18px; }
  .toolbar input, .toolbar select { min-width: 0; flex: 1; }
  .chart { gap: 6px; height: 130px; }
  .chart .bar-label { font-size: 10px; }
  .modal-actions .btn { flex: 1; }
}

/* 商品详情 / 店铺分享页 */
.product h3 a,
.shop-line a { color: inherit; text-decoration: none; }
.product h3 a:hover { color: var(--brand); }
.shop-line a:hover { color: var(--brand); text-decoration: underline; }
.product-detail { max-width: 620px; }
.product-detail .desc {
  display: block;
  -webkit-line-clamp: unset;
  min-height: 0;
  line-height: 1.7;
}
.product-detail h3 { font-size: 20px; }
.share-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.share-row .ghost-link { font-size: 13px; }

/* 弹窗进出动画：淡入 + 上浮回弹，避免生硬 */
@keyframes kw-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kw-modal-in {
  0% { opacity: 0; transform: translateY(26px) scale(0.94); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.modal:not([hidden]) { animation: kw-overlay-in 0.22s ease-out both; }
.modal:not([hidden]) .modal-card { animation: kw-modal-in 0.36s cubic-bezier(0.2, 0.9, 0.25, 1.1) both; }

/* 店铺升级：强制设置店铺ID 弹窗 */
.lock-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
#slugLock .modal-card h3 { padding-right: 0; }
#slugLock .modal-card { width: min(460px, 100%); }
#slugLock input { font-size: 16px; letter-spacing: 0.04em; }
