/* 创鑫店小二线上版 · 官网 / 控制台 / 管理后台 */
:root {
  --ink: #0d3b3f;
  --ink-2: #14494d;
  --teal: #0f9d8a;
  --teal-dark: #0a7a6b;
  --teal-soft: #e6f8f3;
  --mint: #f2fbf8;
  --coral: #ff8b72;
  --amber: #e0922a;
  --danger: #d95750;
  --ok: #0e8f6f;
  --bg: #f5faf9;
  --card: #ffffff;
  --line: #dcebe7;
  --line-2: #c9e2dc;
  --muted: #5f8280;
  --text: #17393c;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(13, 59, 63, .06);
  --shadow: 0 12px 34px rgba(13, 59, 63, .10);
  --shadow-lg: 0 26px 70px rgba(13, 59, 63, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.65;
  background:
    radial-gradient(900px 420px at 8% -6%, rgba(127, 216, 196, .35), transparent 62%),
    radial-gradient(760px 380px at 100% 4%, rgba(255, 180, 162, .22), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; }
.hidden { display: none !important; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }
.nowrap { white-space: nowrap; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2) blur(12px);
  background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(145deg, #14b8a0, #0a7a6b); color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(15, 157, 138, .32);
}
.brand small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: .6px; }
.top-nav { display: flex; gap: 6px; margin-left: 14px; }
.top-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.top-nav a:hover { background: var(--teal-soft); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--teal-soft); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; border: 1px solid var(--line-2); }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.dropdown { position: absolute; right: 22px; top: 62px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 190px; z-index: 60; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px;
  border: 0; background: none; color: var(--ink); font-size: 14px; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--teal-soft); text-decoration: none; }
.dropdown .split { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; transition: .16s;
  background: #fff; color: var(--ink); border-color: var(--line-2); text-decoration: none;
  min-height: 42px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(145deg, #12a791, #0a7a6b); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 157, 138, .28); }
.btn.primary:hover { box-shadow: 0 12px 26px rgba(15, 157, 138, .36); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--teal-soft); }
.btn.soft { background: var(--teal-soft); color: var(--teal-dark); border-color: transparent; }
.btn.danger { background: #fff0ee; color: var(--danger); border-color: #f3cdc9; }
.btn.warn { background: #fff7ea; color: #a86a12; border-color: #f0dcbb; }
.btn.sm { padding: 6px 12px; font-size: 13px; min-height: 34px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { border: 0; background: none; color: var(--teal-dark); font-weight: 600; cursor: pointer; padding: 0; font-size: 13.5px; }

/* ---------------- forms ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px;
  font-family: inherit; font-size: 14.5px; color: var(--text); background: #fff; outline: none;
  transition: .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 157, 138, .13); }
textarea { resize: vertical; min-height: 92px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.err { color: var(--danger); font-size: 13px; min-height: 20px; font-weight: 600; }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------------- cards & layout ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 800; color: var(--ink); font-size: 16px; margin-bottom: 16px; }
.card-title .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 26px 0 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 25px; letter-spacing: .3px; color: var(--ink); }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; margin: 0 0 8px; color: var(--ink); letter-spacing: .3px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------------- hero ---------------- */
.hero { padding: 70px 0 48px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--teal-dark);
  box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.16; margin: 18px 0 14px; color: var(--ink); letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-lead { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-meta b { color: var(--ink); font-size: 18px; display: block; }
.hero-visual { position: relative; min-height: 380px; }
.mock-window { position: absolute; inset: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.2deg); }
.mock-bar { height: 38px; background: linear-gradient(90deg, #0d3b3f, #12565a); display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #7fd8c4; display: block; opacity: .8; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; height: calc(100% - 38px); }
.mock-side { background: #f0fbf7; padding: 12px 10px; border-right: 1px solid var(--line); }
.mock-side span { display: block; height: 10px; border-radius: 5px; background: #d3ece5; margin-bottom: 9px; }
.mock-side span:first-child { background: #0f9d8a; width: 80%; }
.mock-main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.mock-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpi div { background: #f4fbf9; border: 1px solid var(--line); border-radius: 10px; height: 54px; position: relative; overflow: hidden; }
.mock-kpi div::after { content: ""; position: absolute; left: 9px; right: 34%; bottom: 9px; height: 7px; border-radius: 4px; background: #bfe8dd; }
.mock-chart { background: #f4fbf9; border: 1px solid var(--line); border-radius: 12px; height: 130px; position: relative; }
.mock-chart::after { content: ""; position: absolute; inset: 16px; background:
  linear-gradient(115deg, transparent 48%, #0f9d8a 49%, #0f9d8a 51%, transparent 52%) no-repeat,
  linear-gradient(65deg, transparent 48%, #7fd8c4 49%, #7fd8c4 51%, transparent 52%) no-repeat;
  opacity: .5; }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink); z-index: 2; }
.float-chip small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.float-chip.c1 { left: -18px; top: 60px; animation: float 5s ease-in-out infinite; }
.float-chip.c2 { right: -14px; bottom: 54px; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------------- feature cards ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: .18s; box-shadow: var(--shadow-sm); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }
.feature.span2 { grid-column: span 2; }

/* ---------------- pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: .18s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.best { border: 2px solid var(--teal); box-shadow: 0 18px 46px rgba(15, 157, 138, .18); }
.plan .tagbar { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 12px; font-weight: 700;
  white-space: nowrap; }
.plan h3 { margin: 4px 0 4px; font-size: 20px; color: var(--ink); }
.plan .sub { color: var(--muted); font-size: 13px; min-height: 40px; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -1px; margin: 6px 0 0; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; font-size: 13.5px; }
.plan ul li { display: flex; gap: 8px; align-items: flex-start; color: #2b5356; }
.plan ul li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.plan ul li.no { color: #9bb3b0; }
.plan ul li.no::before { content: "—"; color: #c3d5d2; }
.plan .btn { margin-top: auto; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #f8fdfb; }
table.data td { padding: 11px 12px; border-bottom: 1px solid #edf5f3; vertical-align: middle; white-space: nowrap; }
table.data td .small { white-space: normal; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #f8fdfb; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.green { background: #e4f7ee; color: #0b7a58; }
.tag.blue { background: #e8f4fb; color: #176d99; }
.tag.orange { background: #fff3e4; color: #a86712; }
.tag.red { background: #ffefed; color: #b6403a; }
.tag.gray { background: #eef5f4; color: #5f8280; }
.tag.teal { background: var(--teal-soft); color: var(--teal-dark); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------------- stats ---------------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 25px; font-weight: 800; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .foot { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.accent { background: linear-gradient(145deg, #0f9d8a, #0a7266); color: #eafff9; border-color: transparent; }
.stat.accent .value, .stat.accent .label, .stat.accent .foot { color: #fff; }
.stat.accent .foot { opacity: .8; }

/* ---------------- tabs ---------------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------- admin shell ---------------- */
.shell { display: grid; grid-template-columns: 218px 1fr; gap: 20px; align-items: start; }
.shell-nav { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; box-shadow: var(--shadow-sm); }
.shell-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.shell-nav a:hover { background: var(--teal-soft); text-decoration: none; }
.shell-nav a.active { background: var(--ink); color: #fff; }
.shell-body { min-width: 0; }

/* ---------------- console subnav ---------------- */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin: 18px 0 20px; }
.subnav a { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.subnav a:hover { background: var(--teal-soft); text-decoration: none; }
.subnav a.active { background: var(--ink); color: #fff; }

/* ---------------- progress ---------------- */
.bar { height: 8px; border-radius: 999px; background: #e9f2f0; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #12a791, #7fd8c4); }
.usage { display: grid; gap: 14px; }
.usage-row { display: grid; gap: 5px; }
.usage-row .top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.usage-row .top b { color: var(--ink); }

/* ---------------- empty & alerts ---------------- */
.empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 13.5px; }
.alert { border-radius: 13px; padding: 13px 16px; font-size: 13.5px; line-height: 1.8; margin-bottom: 16px; }
.alert.warn { background: #fff7ea; border: 1px solid #f0dcbb; color: #8a5a12; }
.alert.info { background: var(--teal-soft); border: 1px solid #c9ebe3; color: var(--teal-dark); }
.alert.danger { background: #fff0ee; border: 1px solid #f3cdc9; color: #a33a34; }

/* ---------------- modal / toast ---------------- */
.mask { position: fixed; inset: 0; background: rgba(8, 38, 41, .45); z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 18px; }
.modal { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(560px, 100%);
  max-height: 90vh; overflow-y: auto; padding: 26px; position: relative; }
.modal.wide { width: min(880px, 100%); }
.modal h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.modal .x { position: absolute; right: 16px; top: 14px; border: 0; background: none; font-size: 24px;
  color: var(--muted); cursor: pointer; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); background: var(--ink);
  color: #fff; padding: 11px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 300;
  box-shadow: var(--shadow); max-width: 92vw; text-align: center; }
.toast.err { background: #b6403a; }

/* ---------------- auth ---------------- */
.auth { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow); padding: 30px 30px 26px; }
.auth-card h1 { margin: 0 0 4px; font-size: 23px; color: var(--ink); }
.auth-card .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.auth-card .btn.block { margin-top: 6px; padding: 12px; font-size: 15px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------------- qr pay ---------------- */
.pay-box { display: grid; gap: 14px; text-align: center; }
.qr-holder { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  display: grid; place-items: center; width: 236px; margin: 0 auto; }
.qr-holder svg, .qr-holder img { width: 100%; height: auto; display: block; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.pay-steps { text-align: left; font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0; padding-left: 20px; }

/* ---------------- footer ---------------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #fff; padding: 34px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: 13.5px; color: var(--ink); margin: 0 0 10px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 13px; margin: 0 0 7px; line-height: 1.8; }
.copyright { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; color: var(--muted); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- chart ---------------- */
.chart { display: flex; align-items: flex-end; gap: 7px; height: 150px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.chart .col i { display: block; background: linear-gradient(180deg, #14b8a0, #8fe0cd); border-radius: 5px 5px 2px 2px; }
.chart .col span { font-size: 9.5px; color: #8fa9a6; text-align: center; white-space: nowrap; }
.chart .col em { font-style: normal; font-size: 10px; color: var(--teal-dark); text-align: center; font-weight: 700; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 320px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan .sub { min-height: 0; }
  .shell { grid-template-columns: 1fr; }
  .shell-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .shell-nav a { white-space: nowrap; padding: 8px 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top-nav { display: none; }
  .header-in { height: 60px; gap: 6px; }
  .brand { font-size: 15px; white-space: nowrap; }
  .brand .brand-name { white-space: nowrap; }
  .hide-mobile { display: none !important; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 7px 11px; font-size: 13px; min-height: 36px; }
  .user-chip { padding: 4px 8px 4px 4px; max-width: 170px; }
  .user-chip > span:last-child { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .subnav { flex-wrap: wrap; overflow: visible; }
  .subnav a { padding: 7px 12px; }
  .brand small { display: none; }
  .wrap { padding: 0 15px; }
  .section { padding: 44px 0; }
  .hero { padding: 36px 0 24px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 14.5px; }
  .hero-visual { min-height: 270px; }
  .feature-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature.span2 { grid-column: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .value { font-size: 21px; }
  .card { padding: 16px; border-radius: 15px; }
  .page-head { margin: 18px 0 14px; }
  .page-head h1 { font-size: 21px; }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { border-radius: 18px; padding: 20px 16px; }
  .toast { bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .copyright { flex-direction: column; }
  .pay-amount { font-size: 28px; }
  .qr-holder { width: min(220px, 74vw); }
  .card-title { font-size: 15px; }
  input, select, textarea { font-size: 16px; } /* 防 iOS 缩放 */
  .btn { padding: 10px 16px; }
}


@media (max-width: 430px) {
  .brand .brand-name { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .header-actions .btn.soft { padding: 7px 10px; }
}
