/* ============================================================
   Ladder · 设计系统
   浅色纸感 + 石墨黑 + 单一青绿强调色
   ============================================================ */

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #fbfbf9;
  --ink: #101214;
  --ink-2: #3d4249;
  --muted: #6b7178;
  --faint: #9aa0a7;
  --line: #e5e5df;
  --line-2: #efefea;
  --accent: #0f7a63;
  --accent-soft: #e8f4f0;
  --warn: #a15c07;
  --warn-soft: #fdf3e3;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --ok: #0f7a63;
  --ok-soft: #e8f4f0;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 20, 0.04), 0 1px 1px rgba(16, 18, 20, 0.02);
  --shadow: 0 1px 2px rgba(16, 18, 20, 0.04), 0 8px 24px -12px rgba(16, 18, 20, 0.14);
  --shadow-lg: 0 1px 2px rgba(16, 18, 20, 0.04), 0 24px 60px -24px rgba(16, 18, 20, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

p {
  margin: 0;
}

/* ---------------- 布局骨架 ---------------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.main {
  min-height: calc(100vh - var(--header-h) - 160px);
}

.main--default {
  padding-bottom: 72px;
}

.main--narrow .wrap,
.main--narrow > .wrap {
  max-width: 760px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-size: 17px;
  flex: none;
}

.brand__mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px 4px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff 0 2px, transparent 2px 4px, #fff 4px 6px, transparent 6px 8px, #fff 8px 9px);
  opacity: 0.95;
}

.brand__mark--sm {
  width: 14px;
  height: 14px;
  border-radius: 5px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.topnav__link {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.topnav__link:hover {
  color: var(--ink);
  background: rgba(16, 18, 20, 0.05);
}

.topnav__link.is-active {
  color: var(--ink);
  background: rgba(16, 18, 20, 0.06);
  font-weight: 560;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.avatar:hover {
  transform: translateY(-1px);
}

/* ---------------- 按钮 ---------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 560;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(16, 18, 20, 0.5);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--sm {
  height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
}

.btn--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn--outline {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  border-color: var(--line);
}

.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
}

.btn--danger {
  --btn-bg: var(--surface);
  --btn-fg: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 30%, var(--line));
}

.btn--text {
  --btn-bg: transparent;
  --btn-fg: var(--muted);
  height: auto;
  padding: 4px 0;
  font-size: 13.5px;
}

.btn--text:hover {
  color: var(--ink);
  box-shadow: none;
  transform: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------- 卡片 / 区块 ---------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card--pad {
  padding: 22px;
}

.card--flat {
  box-shadow: none;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section-head {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-display {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 680;
}

.h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.03em;
}

.h2 {
  font-size: 21px;
}

.h3 {
  font-size: 17px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 徽标 ---------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.7;
  white-space: nowrap;
  background: rgba(16, 18, 20, 0.06);
  color: var(--ink-2);
}

.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge--bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.badge--mute {
  background: rgba(16, 18, 20, 0.05);
  color: var(--muted);
}

/* ---------------- 首页 Hero ---------------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -20%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(15, 122, 99, 0.09), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero__copy {
  max-width: 560px;
}

.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 6px;
  height: 36%;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero__sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
}

.hero__cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 26px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta svg {
  color: var(--accent);
}

/* Hero 右侧的“交付单”视觉 */
.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: rotate(-1.2deg);
}

.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ticket__title {
  font-weight: 620;
  font-size: 15px;
}

.ticket__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}

.ticket__row span:first-child {
  color: var(--muted);
}

.ticket__row span:last-child {
  font-weight: 560;
}

.ticket__stamp {
  margin-top: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 10px 14px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------- 商品卡 ---------------- */

.grid-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
}

.pcard__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pcard__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.pcard__name {
  font-size: 18px;
  font-weight: 620;
}

.pcard__tag {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.pcard__price {
  margin: 16px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pcard__price b {
  font-size: 40px;
  letter-spacing: -0.04em;
  font-weight: 650;
  line-height: 1;
}

.pcard__price span {
  color: var(--muted);
  font-size: 14px;
}

.pcard__list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 9px;
  flex: 1;
}

.pcard__list li {
  display: flex;
  gap: 9px;
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.55;
}

.pcard__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* ---------------- 步骤 ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 16.5px;
}

.step p {
  color: var(--muted);
  font-size: 13.8px;
}

/* ---------------- FAQ ---------------- */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 0;
  font-size: 15.5px;
  font-weight: 560;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq__q::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex: none;
}

.faq__item.is-open .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  display: none;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 72ch;
}

.faq__item.is-open .faq__a {
  display: block;
}

/* ---------------- 表单 ---------------- */

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field > label,
.label {
  font-size: 13px;
  font-weight: 560;
  color: var(--ink-2);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 15px;
}

.textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.form-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  cursor: pointer;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}

.check input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}

.check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 提示条 ---------------- */

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.flash--ok {
  background: var(--ok-soft);
  color: color-mix(in srgb, var(--ok) 85%, #000);
  border-color: color-mix(in srgb, var(--ok) 18%, transparent);
}

.flash--err {
  background: var(--bad-soft);
  color: color-mix(in srgb, var(--bad) 88%, #000);
  border-color: color-mix(in srgb, var(--bad) 18%, transparent);
}

.flash--info {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line);
}

.notice-bar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 9px 0;
}

.notice-bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
}

/* ---------------- 应用内 ---------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 24px;
  flex-wrap: wrap;
}

.page-head__title {
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.page-head__sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.stat__label {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat__value {
  font-size: 24px;
  font-weight: 640;
  letter-spacing: -0.03em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* 服务卡 */
.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.svc:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--line));
}

.svc__main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.svc__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}

.svc__name {
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.svc__meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.svc__meta b {
  color: var(--ink-2);
  font-weight: 560;
}

.svc__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 表格 */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
  min-width: 640px;
}

.tbl th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl tr:hover td {
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.tbl .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
}

.empty__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--faint);
}

/* 列表行 */
.rows {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.row-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  transition: background 0.12s ease;
}

.row-item:last-child {
  border-bottom: 0;
}

.row-item:hover {
  background: var(--surface-2);
}

.row-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex: none;
  color: var(--ink-2);
}

.row-item__body {
  flex: 1;
  min-width: 0;
}

.row-item__title {
  font-weight: 550;
  font-size: 14.5px;
}

.row-item__sub {
  color: var(--muted);
  font-size: 12.8px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-item__side {
  flex: none;
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
}

.unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* 通知未读 */
.row-item.is-unread .row-item__title {
  font-weight: 620;
}

/* ---------------- 后台 ---------------- */

.admin-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0 72px;
}

.adminside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}

.adminside__group {
  margin-bottom: 22px;
}

.adminside__label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 12px;
  margin-bottom: 8px;
}

.adminside a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2px;
}

.adminside a:hover {
  background: rgba(16, 18, 20, 0.04);
  color: var(--ink);
}

.adminside a.is-active {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 560;
  box-shadow: var(--shadow-sm);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.kpi__label {
  font-size: 12.5px;
  color: var(--muted);
}

.kpi__value {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.kpi__hint {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.panel__title {
  font-weight: 600;
  font-size: 15px;
}

.panel__body {
  padding: 20px;
}

.panel__body--flush {
  padding: 0;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form .input {
  height: 38px;
  width: auto;
  min-width: 160px;
}

.inline-form .select {
  height: 38px;
  width: auto;
}

/* ---------------- 页脚 ---------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.footer__links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
}

.footer__links a:hover {
  color: var(--ink);
}

.footer__note {
  width: 100%;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.7;
  max-width: 70ch;
}

/* ---------------- 移动端底部导航 ---------------- */

.tabbar {
  display: none;
}

/* ---------------- 登录页 ---------------- */

.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.auth-head {
  text-align: center;
  margin-bottom: 26px;
}

.auth-head h1 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.auth-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
}

.auth-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 18px;
}

.auth-foot a {
  color: var(--ink);
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 结账 ---------------- */

.checkout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 36px 0 72px;
  align-items: start;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
}

.summary__row > span {
  flex: none;
  white-space: nowrap;
}

.summary__row b {
  color: var(--ink);
  font-weight: 560;
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.summary__total span {
  font-size: 14px;
  color: var(--muted);
}

.summary__total b {
  font-size: 30px;
  letter-spacing: -0.04em;
  font-weight: 650;
}

/* 订单状态时间线 */
.timeline {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
}

.timeline__item.is-done::before {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline__title {
  font-size: 14px;
  font-weight: 560;
}

.timeline__time {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* 订单号复制 */
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}

.copy:hover {
  color: var(--accent);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding: 44px 0 20px;
  }
  .ticket {
    transform: none;
    max-width: 420px;
  }
  .checkout {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
    order: 0;
  }
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .adminside {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .adminside__group {
    display: flex;
    gap: 6px;
    margin: 0;
  }
  .adminside__label {
    display: none;
  }
  .adminside a {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: var(--surface);
    margin: 0;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
  }
  .wrap {
    padding: 0 18px;
  }
  .topnav {
    display: none;
  }
  body.is-app .main {
    padding-bottom: 92px;
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    font-size: 10.5px;
    color: var(--faint);
    border-radius: 10px;
  }
  .tabbar__item.is-active {
    color: var(--ink);
  }
  .tabbar__item.is-active svg {
    color: var(--ink);
  }
  .grid-products {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
  .stat__value {
    font-size: 19px;
  }
  .stat__label {
    font-size: 11.5px;
  }
  .svc {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .svc__actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line-2);
    padding-top: 14px;
  }
  .svc__actions .btn {
    flex: 1;
  }
  .section {
    padding: 44px 0;
  }
  .hero__meta {
    gap: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi {
    padding: 14px;
  }
  .kpi__value {
    font-size: 21px;
  }
  .page-head {
    padding: 26px 0 18px;
  }
  .page-head__title {
    font-size: 22px;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .table-wrap {
    border-radius: 14px;
  }
  .panel__body {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .hero__cta .btn {
    width: 100%;
  }
}

/* 打印/无障碍 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- 通用两栏（移动端自动堆叠） ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
