@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---- 账本纸感配色 ---- */
  --bg: #EEF1ED;
  --surface: #FFFFFF;
  --ink: #1B2621;
  --ink-soft: #58655D;
  --line: #D8DED8;
  --line-strong: #B7C1B8;

  /* ---- 角色识别色(全站唯一的强调色来源) ---- */
  --role-admin: #2F4858;
  --role-submitter: #B8863B;
  --role-approver: #2F6F5E;
  --danger: #A23B2E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 3px;

  /* ---- 客户端App专用:马卡龙糖果色系 ---- */
  --pastel-mint: #D6F0E1;
  --pastel-mint-deep: #1F6B4A;
  --pastel-blue: #D8EAFB;
  --pastel-blue-deep: #1E5C8A;
  --app-bg: #F7F8F6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.mono { font-family: var(--font-mono); }

/* ============ 登录页 ============ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 1px 2px rgba(27,38,33,0.04);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--role-submitter) 0 33%, var(--role-approver) 33% 66%, var(--role-admin) 66% 100%);
}

.login-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.login-title {
  font-size: 26px;
  margin-bottom: 4px;
}

.login-sub {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--role-admin);
  box-shadow: 0 0 0 3px rgba(47,72,88,0.12);
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius);
}

.btn-primary {
  width: 100%;
  padding: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.btn-primary:hover { background: #0f1712; }

.error-box {
  background: #FBEAE7;
  border: 1px solid #E3B4AB;
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

.seed-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
  font-size: 11.5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  line-height: 1.8;
}

/* ============ 后台整体布局 ============ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* 左侧色带 —— 贯穿全站的"角色身份带",时刻提醒当前坐在哪个岗位上 */
.role-rail {
  width: 6px;
  flex-shrink: 0;
}
.role-rail.admin { background: var(--role-admin); }
.role-rail.submitter { background: var(--role-submitter); }
.role-rail.approver { background: var(--role-approver); }

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}

.brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 28px;
  width: fit-content;
}
.role-tag .dot { width: 6px; height: 6px; border-radius: 50%; }
.role-tag.admin { background: rgba(47,72,88,0.1); color: var(--role-admin); }
.role-tag.admin .dot { background: var(--role-admin); }
.role-tag.submitter { background: rgba(184,134,58,0.12); color: var(--role-submitter); }
.role-tag.submitter .dot { background: var(--role-submitter); }
.role-tag.approver { background: rgba(47,111,94,0.12); color: var(--role-approver); }
.role-tag.approver .dot { background: var(--role-approver); }

.nav-item {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 2px;
  cursor: pointer;
}
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.active { background: var(--ink); color: #fff; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.user-name { font-size: 13px; font-weight: 500; }
.logout-link {
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
}
.logout-link:hover { color: var(--danger); }

.main {
  flex: 1;
  padding: 32px 40px;
  max-width: 1100px;
}

.page-header {
  margin-bottom: 24px;
}
.page-title { font-size: 22px; margin-bottom: 4px; }
.page-sub { color: var(--ink-soft); font-size: 13px; }

/* ============ 统计卡片 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-label {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

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

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #FAFBF9;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFBF9; }
.amount { font-family: var(--font-mono); }

/* ---- 状态"印章"徽标:呼应公文审批的视觉隐喻 ---- */
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid currentColor;
  text-transform: uppercase;
}
.stamp.pending { color: var(--role-submitter); }
.stamp.approved { color: var(--role-approver); }
.stamp.rejected { color: var(--danger); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state .icon { font-size: 28px; margin-bottom: 10px; }

/* ============ 表单/弹窗 ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }

.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn-secondary {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13.5px;
  border-radius: var(--radius);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-approve {
  padding: 9px 16px;
  background: var(--role-approver);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.btn-reject {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(27,38,33,0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-title { font-size: 18px; margin-bottom: 18px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.detail-row .k { color: var(--ink-soft); }
.detail-row .v { font-family: var(--font-mono); text-align: right; }

.log-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.log-item:last-child { border-bottom: none; }
.log-meta { color: var(--ink-soft); font-family: var(--font-mono); font-size: 11px; }

.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 100;
  animation: slideIn 0.2s ease-out;
}
.toast.error { background: var(--danger); }
@keyframes slideIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.badge-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.badge-role.admin { background: rgba(47,72,88,0.1); color: var(--role-admin); }
.badge-role.submitter { background: rgba(184,134,58,0.12); color: var(--role-submitter); }
.badge-role.approver { background: rgba(47,111,94,0.12); color: var(--role-approver); }

.status-dot-disabled { color: var(--danger); }

/* ============ 客户端公开页面 ============ */
.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-topbar.cream-bg {
  background: #F6F1E4;
  border-bottom-color: #E5DCC5;
}
.public-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.public-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.public-topbar a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.public-topbar a:hover { color: var(--ink); }

.public-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 20px 80px;
}

.public-container {
  width: 100%;
  max-width: 640px;
}

.public-hero {
  margin-bottom: 32px;
}
.public-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--role-approver);
  margin-bottom: 10px;
}
.public-title {
  font-size: 30px;
  margin-bottom: 10px;
}
.public-sub {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 480px;
}

.step-badges {
  display: flex;
  gap: 8px;
  margin: 20px 0 0;
}
.step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.public-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.consent-row input { width: auto; margin-top: 2px; }

.success-panel {
  text-align: center;
  padding: 20px 10px;
}
.success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(47,111,94,0.12);
  color: var(--role-approver);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 18px;
}
.tracking-code-box {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.04em;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  margin: 18px 0;
  color: var(--ink);
}
.success-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.7;
}

.status-timeline {
  margin-top: 24px;
}
.timeline-step {
  display: flex;
  gap: 14px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px; top: 22px; bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.timeline-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--ink-soft);
}
.timeline-dot.done { border-color: var(--role-approver); background: var(--role-approver); color: #fff; }
.timeline-dot.rejected { border-color: var(--danger); background: var(--danger); color: #fff; }
.timeline-dot.active { border-color: var(--role-submitter); }
.timeline-label { font-size: 13.5px; font-weight: 500; }
.timeline-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ============ 客户端 App 主壳(移动端优先) ============ */
.mobile-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-header {
  padding: 22px 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.app-header .greeting {
  font-family: var(--font-display);
  font-size: 20px;
}
.app-header .sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.app-content {
  flex: 1;
  padding: 20px 16px 100px;
  overflow-y: auto;
}

.bottom-nav {
  position: sticky;
  bottom: 14px;
  left: 0; right: 0;
  width: calc(100% - 28px);
  margin: 0 14px;
  display: flex;
  background: var(--surface);
  border-radius: 40px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 10px 28px rgba(20,30,25,0.14);
  box-sizing: border-box;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-family: var(--font-body);
}
.nav-btn .icon-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: background 0.15s ease;
}
.nav-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.nav-btn.active { color: var(--ink); font-weight: 600; }
.nav-btn.active .icon-circle { background: var(--ink); color: #fff; }

.section-title {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 14px;
}

/* ---- 首页:马卡龙糖果色风格 ---- */
.lh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 20px;
}
.lh-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}
.lh-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,30,25,0.08);
}
.lh-icon-btn svg { width: 17px; height: 17px; }

.lh-estimate-label {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.lh-amount {
  text-align: center;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.lh-steps {
  text-align: center;
  font-size: 12.5px;
  color: var(--role-submitter);
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-cta {
  display: block;
  margin: 0 auto 26px;
  padding: 11px 32px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 24px;
}

/* ---- 首页:通栏统计大卡片(马卡龙配色,数字为真实平台数据) ---- */
.lh-trust-card {
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink);
}
.lh-trust-card.variant-1 { background: linear-gradient(135deg, var(--pastel-mint) 0%, #BFE6D2 100%); }
.lh-trust-card.variant-2 { background: linear-gradient(135deg, var(--pastel-blue) 0%, #BEDCF3 100%); }
.lh-trust-brand { font-family: var(--font-display); font-size: 14px; font-weight: 600; opacity: 0.75; margin-bottom: 8px; }
.lh-trust-stat { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.lh-trust-label { font-size: 11px; opacity: 0.65; margin-top: 2px; }
.lh-trust-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* ---- 首页:快捷入口图标网格 ---- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}
.quick-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.quick-item .icon-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--role-admin);
  display: flex; align-items: center; justify-content: center;
}
.quick-item .icon-circle svg { width: 18px; height: 18px; }
.quick-item span { font-size: 11px; color: var(--ink); text-align: center; }

.lh-footer-legal {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding: 18px 6px 6px;
}

.cta-card {
  background: linear-gradient(135deg, #1E2A22, #2F4858);
  color: #fff;
  border-radius: 8px;
  padding: 22px 20px;
  margin-bottom: 22px;
}
.cta-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}
.cta-card .title { font-family: var(--font-display); font-size: 19px; margin-bottom: 14px; }
.cta-card button {
  background: #fff;
  color: var(--ink);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 4px;
}

.mini-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.mini-list-item .l { font-size: 13.5px; }
.mini-list-item .l .amt { font-family: var(--font-mono); font-weight: 500; }
.mini-list-item .l .meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }

/* ---- 钱包:银行卡片(马卡龙糖果色) ---- */
.bank-card {
  border-radius: 14px;
  padding: 22px 22px 20px;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bank-card.status-approved { background: var(--pastel-mint); }
.bank-card.status-pending { background: #FBECD2; }
.bank-card.status-rejected { background: #EDE3E1; }
.bank-card::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.bank-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.bank-card .brand {
  font-family: var(--font-display);
  font-size: 14px;
  opacity: 0.75;
}
.bank-card .chip {
  width: 34px; height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
}
.bank-card .card-number {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  margin: 14px 0 4px;
  opacity: 0.85;
}
.bank-card .amount-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bank-card .amount { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.bank-card .amount-label { font-size: 10.5px; opacity: 0.7; margin-bottom: 3px; }
.bank-card .holder { font-size: 12px; opacity: 0.75; }
.bank-card .status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.6);
  padding: 3px 9px;
  border-radius: 20px;
}

.wallet-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* ---- 客服 ---- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 22px;
  text-align: center;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(47,111,94,0.1);
  color: var(--role-approver);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.service-icon svg { width: 26px; height: 26px; }
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 18px;
}
.service-hours {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---- 我的:马卡龙账户卡片头部 ---- */
.profile-hero {
  position: relative;
  background: var(--pastel-blue);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px 22px 20px;
  margin-bottom: 18px;
  overflow: hidden;
}
.profile-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  color: var(--pastel-blue-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-name { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pastel-blue-deep); opacity: 0.75; font-family: var(--font-mono); }
.profile-phone { font-size: 17px; font-weight: 600; font-family: var(--font-mono); margin-top: 2px; color: var(--ink); }

.profile-hero-divider { border-top: 1px solid rgba(255,255,255,0.5); padding-top: 16px; }
.profile-withdraw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.profile-withdraw-label { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pastel-blue-deep); opacity: 0.75; font-family: var(--font-mono); margin-bottom: 4px; }
.profile-withdraw-amount { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.profile-withdraw-row .chev { color: var(--pastel-blue-deep); font-size: 18px; }

.settings-list { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  cursor: pointer;
}
.settings-item:last-child { border-bottom: none; }
.settings-item .arrow { color: var(--ink-soft); }
.settings-item.danger { color: var(--danger); }

/* ============ KYC 資料頁 ============ */
.kyc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.kyc-back {
  background: none;
  border: none;
  font-size: 22px;
  width: 28px;
  color: var(--ink);
  text-align: left;
  padding: 0;
}
.kyc-title {
  font-family: var(--font-display);
  font-size: 16px;
}

.kyc-banner {
  background: #FDF3D9;
  color: #8A6716;
  font-size: 12.5px;
  padding: 12px 16px;
  margin: -20px -16px 18px;
}

.kyc-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}
.kyc-list-item .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--role-admin);
  flex-shrink: 0;
}
.kyc-list-item .icon svg { width: 17px; height: 17px; }
.kyc-list-item .label { flex: 1; font-size: 14px; }
.kyc-list-item .status {
  font-size: 11.5px;
  font-family: var(--font-mono);
}
.kyc-list-item .status.incomplete { color: var(--ink-soft); }
.kyc-list-item .status.complete { color: var(--role-approver); }
.kyc-list-item .chev { color: var(--ink-soft); font-size: 16px; }

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.upload-box {
  aspect-ratio: 4/3;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  cursor: pointer;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.upload-box.full { grid-column: 1 / -1; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box svg { width: 26px; height: 26px; }
.upload-box input { display: none; }

.upload-hint {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.signature-box {
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: #F2F2EE;
  touch-action: none;
  margin-bottom: 14px;
}

.kyc-submit-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.kyc-submit-bar button { width: 100%; padding: 13px; }

/* ============ 客户端登录/注册页(双Tab) ============ */
.auth-screen {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
}

.auth-tabbar {
  display: flex;
  flex-direction: column;
  background: #F6F1E4;
  padding: 28px 20px 18px;
  border-bottom: 1px solid #E5DCC5;
}
.auth-tabbar .tab-row { display: flex; }
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 17px;
  color: #B8A576;
  padding: 6px 0 10px;
  position: relative;
}
.auth-tab.active {
  color: #8A6716;
}
.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--surface);
}

.auth-body { padding: 28px 22px; }

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  margin-bottom: 4px;
}
.auth-field-icon { color: var(--ink-soft); display: flex; }
.auth-field-icon svg { width: 19px; height: 19px; }
.auth-prefix { color: var(--ink-soft); font-size: 14px; padding-right: 6px; border-right: 1px solid var(--line); }
.auth-field input {
  border: none;
  padding: 4px 0;
  flex: 1;
  font-size: 14.5px;
}
.auth-field input:focus { box-shadow: none; border: none; }

.auth-forgot { text-align: right; margin: 10px 0 26px; }
.auth-forgot a { font-size: 12.5px; color: var(--role-submitter); cursor: pointer; text-decoration: underline; }

.auth-btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #B8863B, #8A6716);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 12px;
}
.auth-btn-outline {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid #B8863B;
  color: #8A6716;
  font-size: 15px;
  border-radius: 6px;
}
.auth-skip { text-align: center; margin-top: 18px; }
.auth-skip a { font-size: 13px; color: var(--role-submitter); cursor: pointer; }

.auth-agree {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 8px 0 26px;
}
.auth-agree a { color: var(--role-submitter); cursor: pointer; }

/* ============ 錢包:帳戶餘額彙總區塊(馬卡龍配色) ============ */
.wallet-balance-card {
  background: var(--pastel-blue);
  color: var(--ink);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin: 8px 0 14px;
}
.wb-amount { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.wb-label { font-size: 11.5px; color: var(--pastel-blue-deep); opacity: 0.8; margin-top: 6px; }

.wb-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.wb-sub-label { font-size: 11px; color: var(--ink-soft); margin-bottom: 4px; }
.wb-sub-value { font-family: var(--font-mono); font-size: 15px; font-weight: 500; }

.mini-bank-card {
  background: var(--pastel-mint);
  color: var(--ink);
  border-radius: 12px;
  padding: 16px 18px;
}
.mini-bank-card .mono { color: var(--pastel-mint-deep); }

.withdrawal-reject-note {
  background: #FBEAE7;
  color: var(--danger);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  margin: -8px 0 10px;
}
