:root {
  --bg: #F9F9FD;
  --surface: #FFFFFF;
  --surface-soft: #F9F9FD;
  --fg: #2C2C2C;
  --muted: #888888;
  --border: #E5E5E5;
  --accent: #563003;
  --accent-deep: #563003;
  --success: #6F8B5E;
  --warn: #B65A2E;
  --danger: #B15A4A;
  --shadow-soft: 0 1px 6px rgba(44, 44, 44, 0.05);
  --font-display: 'Source Han Sans SC', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Source Han Sans SC', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Source Han Sans SC', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-soft);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.phone {
  max-width: 375px;
  color: var(--fg);
}

.nav .title,
.page-title,
.section-title,
.panel-title,
.cert-title,
h1,
h2 {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: 0;
}

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

.muted,
.hint,
.desc,
.meta,
.caption {
  color: var(--muted);
}

.panel,
.card,
.search-card,
.warranty-card,
.repair-card,
.product-summary,
.product,
.order-card,
.item-card,
.record-card,
.summary-card,
.summary,
.condition-card,
.holder-card,
.transfer-card,
.certificate-wrap,
.certificate-image,
.form-card,
.section-card {
  border: 0;
  box-shadow: var(--shadow-soft);
}

.section-title::after,
.panel-title::after {
  background: var(--accent);
}

.button,
.bar-action,
.submit,
.primary,
.search-button,
.confirm-button,
.bind-button,
.modal-confirm,
.dialog-action.primary,
.sheet-item,
.wechat,
.clear,
.filter-chip,
.tab,
.action-btn,
.primary-button {
  border-radius: 6px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.button.primary,
.bar-action,
.submit,
.search-button,
.confirm-button,
.bind-button,
.modal-confirm,
.dialog-action.primary,
.primary:not(a.entry-link),
.action-btn.primary,
.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button:active,
.bar-action:active,
.submit:active,
.search-button:active,
.confirm-button:active,
.bind-button:active,
.modal-confirm:active,
.primary:active,
.dialog-action:active,
.sheet-item:active,
.wechat:active,
.clear:active,
.filter-chip:active,
.tab:active,
.action-btn:active,
.primary-button:active {
  transform: translateY(1px);
}

.button[disabled],
button[disabled],
.is-disabled,
.disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

input,
textarea,
select {
  color: var(--fg);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(86, 48, 3, 0.14);
}

input::placeholder,
textarea::placeholder {
  color: #A8A09A;
}

.field.is-error input,
.field.is-error textarea,
input.is-error,
textarea.is-error {
  border-color: var(--danger) !important;
}

.error-tip {
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
}

.toast {
  background: rgba(44, 44, 44, 0.86) !important;
  color: #fff !important;
  border-radius: 6px !important;
  box-shadow: var(--shadow-soft) !important;
}

.modal-mask,
.modal-layer,
.sheet-layer,
.sheet-backdrop {
  background: rgba(44, 44, 44, 0.42) !important;
  backdrop-filter: none !important;
}

.modal,
.plan-dialog,
.confirm-dialog,
.sheet {
  border-color: var(--border);
  box-shadow: 0 1px 6px rgba(44, 44, 44, 0.08);
}

.bottom-bar,
.footer {
  border-top-color: var(--border);
  box-shadow: 0 -1px 6px rgba(44, 44, 44, 0.04);
}

.status,
.status-pill,
.tag,
.badge {
  border-color: rgba(86, 48, 3, 0.34);
}

.price,
.amount,
.total,
.fee-row strong {
  color: var(--accent-deep);
  font-weight: 700;
}

.soldout,
.badge.soldout {
  background: rgba(44, 44, 44, 0.58);
  border-color: transparent;
  color: #fff;
}

.product-name,
.name,
.item-title,
.record-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

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

.skeleton {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 55%, #fff);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  animation: jemper-shimmer 1.4s infinite;
}

@keyframes jemper-shimmer {
  to {
    transform: translateX(100%);
  }
}
