/* ============================================================
   校企就业直通项目 · 线上签约 H5
   风格：简约商务 / 蓝白正式签约系统
   ============================================================ */

:root {
  /* 主题色 */
  --brand: #1e6fff;
  --brand-deep: #155ad6;
  --brand-light: #e8f1ff;
  --brand-lighter: #f3f8ff;
  --brand-grad: linear-gradient(135deg, #1e6fff 0%, #2b86ff 100%);

  /* 中性色 */
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #e8edf4;
  --line-strong: #d6deea;

  --ink-1: #0f1f3d;
  --ink-2: #2b3a55;
  --ink-3: #6b7a93;
  --ink-4: #9aa7bd;

  /* 功能色 */
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;

  --shadow-sm: 0 1px 3px rgba(15, 31, 61, 0.06);
  --shadow: 0 6px 20px rgba(15, 31, 61, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 31, 61, 0.14);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-1);
  background: linear-gradient(180deg, #eef3fb 0%, #f6f9fd 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   App Shell
   ============================================================ */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(15, 31, 61, 0.08);
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  z-index: 1;
}

.page.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

/* 三页统一：背景图 + 半透明遮罩 */
.page-form,
.page-sign,
.page-success {
  background: #f4f7fb;
  position: absolute;
  inset: 0;
}
.page-form::before,
.page-sign::before,
.page-success::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../背景图1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.page-form::after,
.page-sign::after,
.page-success::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 0;
  pointer-events: none;
}
.page-form > *,
.page-sign > *,
.page-success > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Header
   ============================================================ */
.page-header {
  flex: 0 0 auto;
  padding: calc(16px + var(--safe-top)) 18px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-left: 0;
  padding-bottom: 10px;
}

.brand-section-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-1);
  white-space: nowrap;
}

.brand-logo-left {
  grid-column: 1;
  justify-self: start;
}
.brand-logo.brand-logo-left {
  height: 68px;
  max-width: 240px;
  margin-left: -6px;
}

.brand-name-right {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  margin: 0;
  white-space: nowrap;
  padding-bottom: 0;
  line-height: 1;
}
.brand-name.brand-name-right {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.brand {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.brand-spacer {
  grid-column: 3;
}

.brand-logo {
  flex: 0 0 auto;
  height: 44px;
  width: auto;
  max-width: 140px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-3);
}

.nav-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s;
}
.nav-back:active { background: var(--brand-light); }

.nav-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  white-space: nowrap;
}

.nav-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   Page Body
   ============================================================ */
.page-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}

.section-no {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-1);
}

.section-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* ============================================================
   Form
   ============================================================ */
.form-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-l);
  padding: 6px 18px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.form-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.form-row:last-of-type { border-bottom: none; }

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.3px;
}

.form-row label em {
  color: var(--danger);
  font-style: normal;
  margin-left: 2px;
}

.form-row input,
.form-row select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink-1);
  background: var(--brand-lighter);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  outline: none;
  transition: all 0.2s;
}

.form-row input::placeholder { color: var(--ink-4); }

.form-row input:focus,
.form-row select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
}

.form-row input:disabled,
.form-row select:disabled {
  background: #f3f5f9;
  color: var(--ink-4);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%236b7a93' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-tip {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--brand-lighter);
  border-radius: var(--radius-s);
  text-align: center;
  transition: all 0.25s;
}

.form-tip.ok {
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
}

/* 隐私协议勾选行 */
.form-agree {
  margin-top: 14px;
  padding: 2px 4px;
}

.form-agree .agree-line { justify-content: flex-start; }

.form-agree .check-text {
  font-size: 12px;
  color: var(--ink-3);
}

.privacy-link {
  color: var(--brand);
  font-weight: 600;
}

/* 隐私协议弹窗正文 */
.privacy-sheet { width: min(92vw, 420px); }

.privacy-body {
  max-height: 52vh;
  overflow-y: auto;
  padding: 4px 2px 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.privacy-body p { margin: 8px 0; }

.privacy-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 16px 0 4px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 18px;
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(30, 111, 255, 0.32);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(30, 111, 255, 0.28); }

.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:active { background: var(--brand-light); }

.btn:disabled {
  background: #cdd6e4 !important;
  color: #fff !important;
  border-color: #cdd6e4 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   Footer
   ============================================================ */
.page-footer {
  flex: 0 0 auto;
  padding: 14px 18px calc(14px + var(--safe-bottom));
  font-size: 13.5px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.addr-icon {
  display: inline-flex;
  color: var(--brand);
  margin-top: 1px;
}
.addr-icon svg { width: 16px; height: 16px; }

/* ============================================================
   Page 2 - Sign
   ============================================================ */
.sign-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 32px;
}

.read-block {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-l);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.read-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.read-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.read-tag-amber { color: #b45309; background: #fef3c7; }
.read-tag-green { color: #047857; background: #d1fae5; }

.read-status {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
}
.read-status.done { color: var(--success); font-weight: 600; }

.read-scroll {
  position: relative;
  height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-behavior: smooth;
}

.read-inner {
  padding: 14px 14px 28px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.read-inner h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
  text-align: center;
  letter-spacing: 0.5px;
}

.read-inner h4 {
  margin: 14px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-deep);
}

.read-inner p {
  margin: 6px 0;
  text-indent: 2em;
}

.read-inner p.muted { color: var(--ink-3); text-indent: 0; font-size: 12px; }

.read-inner .bold { font-weight: 700; color: var(--ink-1); }

.read-end {
  margin-top: 18px !important;
  text-align: center !important;
  text-indent: 0 !important;
  font-size: 12px !important;
  color: var(--ink-4) !important;
  letter-spacing: 1px;
}

.read-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-4);
  background: linear-gradient(180deg, rgba(244, 247, 251, 0) 0%, #f4f7fb 60%);
  pointer-events: none;
  letter-spacing: 0.5px;
}
.read-hint.hide { opacity: 0; }

/* 复选框 */
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--brand-lighter);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  border: 1px dashed transparent;
}

.check-line.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f5f9;
}

.check-line.active {
  border-color: var(--brand);
  background: var(--brand-light);
}

.check-line input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1.8px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.check-line.active .check-box { border-color: var(--brand); }

.check-line input:checked + .check-box {
  background: var(--brand);
  border-color: var(--brand);
}

.check-line input:checked + .check-box::after {
  content: "";
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.check-line.disabled .check-box { background: #eef2f7; }

.check-text {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

/* ============================================================
   确认声明
   ============================================================ */
.confirm-block {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-l);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  animation: fadeUp 0.4s ease;
}

.confirm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.copy-btn {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-light);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.copy-btn:active { opacity: 0.7; }

.confirm-tip {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.confirm-tip strong { color: var(--brand-deep); }

.declare-source {
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--brand-lighter);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}

.declare-input {
  width: 100%;
  padding: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-1);
  background: var(--brand-lighter);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: none;
  outline: none;
  transition: all 0.2s;
}
.declare-input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
}

.declare-feedback {
  margin-top: 8px;
  font-size: 12px;
  min-height: 16px;
}
.declare-feedback.ok { color: var(--success); font-weight: 600; }
.declare-feedback.err { color: var(--danger); }

/* ============================================================
   Action Block
   ============================================================ */
.action-block {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-l);
  padding: 16px 14px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  animation: fadeUp 0.4s ease;
}

.sign-preview {
  width: 100%;
  height: 110px;
  margin-bottom: 4px;
  background: var(--brand-lighter);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sign-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sign-empty {
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.5px;
}

/* ============================================================
   Page 3 - Success
   ============================================================ */
.page-success {
  /* 背景由统一规则处理 */
}

.success-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px calc(40px + var(--safe-bottom));
  text-align: center;
}

.success-mark {
  margin-bottom: 24px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: 1px;
}

.success-desc {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}

.success-info {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-l);
  padding: 6px 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  text-align: left;
}

.info-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.info-line:last-child { border-bottom: none; }
.info-line span:first-child { color: var(--ink-3); }
.info-line span:last-child { color: var(--ink-1); font-weight: 600; }

.success-body .btn-block { margin-top: 0; }
.success-body .btn-block + .btn-block { margin-top: 12px; }

/* ============================================================
   Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 45, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.25s ease;
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(20px + var(--safe-bottom));
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-1);
}

.sheet-close {
  width: 30px;
  height: 30px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  border-radius: 50%;
  background: var(--bg);
}
.sheet-close:active { background: var(--line); }

.sheet-tip {
  margin: 14px 0 12px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* ============================================================
   Signature
   ============================================================ */
.sign-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background: #fff;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  overflow: hidden;
}

.tianzi-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  pointer-events: none;
}

.tianzi-cell {
  position: relative;
  border-right: 1px dashed #c9d6ea;
  border-bottom: 1px dashed #c9d6ea;
}
.tianzi-cell:nth-child(2n) { border-right: none; }
.tianzi-cell:nth-child(n+3) { border-bottom: none; }

.tianzi-cell::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dde6f3;
  transform: translate(-50%, -50%);
}

#sign-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.sheet-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.sheet-actions .btn { flex: 1; margin-top: 0; }

/* ============================================================
   Pay Sheet
   ============================================================ */
.pay-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}
.pay-amount-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.pay-amount-num {
  font-size: 14px;
  color: var(--ink-1);
}
.pay-amount-num strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
}

.pay-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s;
}
.pay-item:last-child { border-bottom: none; }
.pay-item:active { background: var(--brand-lighter); }

.pay-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.pay-icon-qr { color: var(--brand); background: var(--brand-light); }
.pay-icon-wechat { color: #07c160; background: #e6f7ee; }
.pay-icon-alipay { color: #1677ff; background: #e8f3ff; }

.pay-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pay-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-1);
}
.pay-desc {
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 2px;
}

.pay-arrow {
  font-size: 20px;
  color: var(--ink-4);
}

.pay-safe {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--ink-4);
  text-align: center;
}

/* ============================================================
   QR Sheet
   ============================================================ */
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 16px;
}

.qr-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  background: #fff;
  border: 8px solid var(--ink-1);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 0;
  box-shadow: var(--shadow);
}

.qr-img span {
  background: transparent;
}
.qr-img span.on { background: var(--ink-1); }

.qr-tip {
  margin: 16px 0 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.qr-amount {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.qr-sheet .btn-block { margin-top: 14px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  max-width: 80%;
  padding: 12px 20px;
  font-size: 13px;
  color: #fff;
  background: rgba(11, 23, 45, 0.88);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  line-height: 1.5;
  animation: toastIn 0.25s ease;
}
.toast[hidden] { display: none; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 滚动条美化 */
.read-scroll::-webkit-scrollbar,
.page-body::-webkit-scrollbar,
.modal-sheet::-webkit-scrollbar {
  width: 3px;
}
.read-scroll::-webkit-scrollbar-thumb,
.page-body::-webkit-scrollbar-thumb,
.modal-sheet::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}
