
/* ========== CSS Variables ========== */
:root {
  --bg: #F4FBFA;
  --card: #FFFFFF;
  --primary: #2D8C87;
  --primary-light: #DDF3F7;
  --primary-dark: #1F6B67;
  --text: #153A3C;
  --text-secondary: #6A8183;
  --accent: #F3A94B;
  --danger: #E8734A;
  --success: #4CAF7D;
  --border: #E2EFEE;
  --disabled: #C8D6D5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(45,140,135,0.08);
  --shadow-lg: 0 8px 30px rgba(45,140,135,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }

html, body {
  font-family: var(--font);
  background: #E8F0EF;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 10px 20px 10px;
  position: relative;
}
.page-header.has-back {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  color: #fff; font-size: 18px;
  flex-shrink: 0;
}
.page-header h1 {
  font-size: 18px;
  font-weight: 600;
}
.page-header .subtitle {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Page container */
.page {
  display: none;
  padding-bottom: 40px;
  min-height: calc(100vh - 80px);
  flex-direction: column;
}
.page.active { display: flex; }

/* ========== Login Page ========== */
.login-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 20px 28px 20px;
  text-align: center;
  color: #fff;
  border-radius: 0 0 32px 32px;
}
.login-hero .logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.login-hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.login-hero p { font-size: 14px; opacity: 0.85; line-height: 1.6; }

.login-form {
  padding: 32px 24px;
  flex: 1;
}
.input-group {
  margin-bottom: 18px;
}
.input-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color 0.2s;
}
.input-wrap:focus-within {
  border-color: var(--primary);
}
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font);
}
.input-wrap input::placeholder { color: #B0C4C3; }
.input-wrap .code-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
  font-family: var(--font);
}
.input-wrap .code-btn:disabled {
  color: var(--disabled);
  cursor: not-allowed;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-family: var(--font);
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: var(--disabled);
  cursor: not-allowed;
}
.btn-outline {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  margin-top: 12px;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.agreement input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.agreement a { color: var(--primary); text-decoration: none; }

/* ========== ID Verify Page ========== */
.verify-card {
  margin: 20px 20px 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.verify-icon {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
}
.verify-card h2 {
  text-align: center;
  font-size: 19px;
  margin-bottom: 8px;
}
.verify-card p {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ========== Fail Page ========== */
.fail-card {
  margin: 40px 24px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.fail-icon {
  width: 80px; height: 80px;
  background: #FDE8E0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
}
.fail-card h2 { font-size: 20px; margin-bottom: 12px; color: var(--danger); }
.fail-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.fail-tip {
  background: #FFF8F0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.7;
}
.fail-tip strong { color: var(--text); }

/* ========== Blood Collection Method Page ========== */
.method-list {
  padding: 20px;
}
.method-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.method-card:active { transform: scale(0.99); }
.method-card.selected { border-color: var(--primary); background: #F0FAF9; }
.method-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* 采血点卡片 */
.spot-card.selected {
  border-color: var(--primary);
  background: #F0FAF9;
}
.spot-radio {
  transition: all .15s;
  color: transparent;
  font-size: 12px;
  flex-shrink: 0;
}
.spot-card.selected .spot-radio {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.method-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.method-icon.active { background: var(--primary-light); }
.method-icon.grey { background: #EEF2F2; }
.method-info { flex: 1; }
.method-info h3 { font-size: 16px; margin-bottom: 4px; }
.method-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.method-badge {
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.method-badge.grey { background: var(--disabled); }

/* ========== Form Page ========== */
.form-section {
  margin: 16px 16px 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-section-title {
  padding: 14px 18px 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title::before {
  content: '';
  width: 4px; height: 16px;
  background: var(--primary);
  border-radius: 2px;
}
.form-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.form-row .label {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  min-width: 80px;
  font-weight: 500;
}
.form-row .label .required { color: var(--danger); margin-right: 2px; }
.form-row .value {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  text-align: right;
}
.form-row .value.locked { color: var(--text-secondary); }
.form-row .value input, .form-row .value select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  text-align: right;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  padding: 0;
}
.form-row .value input:disabled { color: var(--text-secondary); }
.form-row .value input::placeholder { color: #B0C4C3; }
.form-row .lock-icon { color: var(--text-secondary); font-size: 14px; }
.form-row textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  resize: none;
  text-align: right;
  min-height: 24px;
}

.gender-group {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.gender-btn {
  padding: 6px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text-secondary);
}
.gender-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.checkbox-row input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
.checkbox-row a { color: var(--primary); text-decoration: none; }

.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.doc-link:active { background: #F8FBFB; }
.doc-link .doc-name { display: flex; align-items: center; gap: 8px; }
.doc-link .doc-name .icon { font-size: 18px; }
.doc-link .arrow { color: var(--text-secondary); }

.submit-area {
  padding: 24px 16px 10px;
}

/* Date/time picker row */
.time-row {
  flex-direction: column;
  align-items: stretch;
}
.time-row .label { min-width: auto; margin-bottom: 8px; }
.time-row .time-inputs {
  display: flex;
  gap: 10px;
}
.time-row .time-inputs input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  text-align: left;
  outline: none;
}
.time-row .time-inputs input:focus { border-color: var(--primary); }
.time-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ========== Progress Page ========== */
.progress-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 10px 22px 30px;
  color: #fff;
  border-radius: 0 0 24px 24px;
}
.progress-banner .status-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.progress-banner .status-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.progress-banner .status-desc {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.5;
}

/* Timeline */
.timeline-card {
  margin: -18px 16px 8px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-step {
  position: relative;
  padding-bottom: 22px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step .dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  z-index: 1;
}
.timeline-step.done .dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.timeline-step.current .dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-light);
}
.timeline-step .step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.timeline-step.done .step-title { color: var(--success); }
.timeline-step.current .step-title { color: var(--primary); }
.timeline-step.pending .step-title { color: var(--text-secondary); }
.timeline-step .step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.timeline-step .step-time {
  font-size: 11px;
  color: #B0C4C3;
  margin-top: 4px;
}

/* Info card in progress */
.info-card {
  margin: 8px 16px 8px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.info-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #F2F7F7;
}
.info-row:last-child { border-bottom: none; }
.info-row .info-label { color: var(--text-secondary); }
.info-row .info-value { color: var(--text); font-weight: 500; text-align: right; }
.info-row .info-value a { color: var(--primary); text-decoration: none; }

/* Logistics tracking */
.logistics-box {
  background: #F8FBFB;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 10px;
}
.logistics-company {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.logistics-no {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: monospace;
}
.logistics-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}

/* QR code area */
.qr-section {
  text-align: center;
  padding: 10px 0;
}
.qr-placeholder {
  width: 160px; height: 160px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-secondary);
  gap: 8px;
}
.qr-placeholder .qr-icon { font-size: 48px; }
.qr-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.qr-tip strong { color: var(--primary); }

/* Report view */
.report-card {
  margin: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.report-icon {
  width: 72px; height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
}
.report-card h3 { font-size: 17px; margin-bottom: 8px; }
.report-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

/* Cancel / customer service */
.cancel-area {
  padding: 8px 16px;
}
.cancel-btn {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
}

/* Bottom action for progress states */
.bottom-action {
  margin-top: auto;
  padding: 16px;
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}
.modal-icon.wechat { background: #E8F8F0; }
.modal h3 { font-size: 17px; margin-bottom: 10px; }
.modal p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }
.modal .wechat-id {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  padding: 12px;
  background: var(--primary-light);
  border-radius: 10px;
  margin: 14px 0;
  font-family: monospace;
}
.modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.modal .modal-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  border: none;
}
.btn-cancel-modal {
  background: #F0F3F3;
  color: var(--text-secondary);
}
.btn-confirm-modal {
  background: var(--primary);
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 200;
  display: none;
  white-space: nowrap;
}
.toast.show { display: block; }

/* Footer */
.page-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #B0C4C3;
}

/* Success check animation */
@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.check-anim {
  animation: checkmark 0.4s ease-out;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* Print */
@media print {
  body { background: #fff; padding: 0; }
  .bottom-action, .cancel-area, .submit-area { display: none !important; }
  .page { display: flex !important; page-break-after: always; min-height: auto; }
}

/* ===== 页面内容超出提示箭头 ===== */
.scroll-hint {
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 124, 107, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  user-select: none;
  display: none;
  align-items: center;
  justify-content: center;
  animation: scroll-hint-bounce 1.2s ease-in-out infinite;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #fff;
  margin-top: 2px; /* 视觉重心补偿：下三角重心偏上，下移 2px 视觉居中 */
}
.scroll-hint:hover { background: rgba(14, 124, 107, 1); }
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(-50%) translateY(0); opacity: 1; }
  50% { transform: translateY(-50%) translateY(5px); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}

/* ===== 顺丰物流轨迹查询 ===== */
/* 物流内容（直接铺在 info-card 内，不套内衬背景，保持扁平） */
.logistics-box { margin-top: 10px; }
/* 物流公司头部 */
.lg-header { display: flex; align-items: center; gap: 8px; }
.lg-logo {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,124,107,0.1); color: var(--primary);
  font-size: 15px; font-weight: 700; flex: none;
}
.lg-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.lg-time { font-size: 11px; color: var(--text-secondary); margin-left: auto; }
/* 运单号行 */
.lg-no {
  display: flex; align-items: center; justify-content: space-between;
  background: #F7F9F8; border: 1px solid #EDF1EF; border-radius: 8px;
  padding: 7px 10px; margin-top: 8px; font-size: 13px; color: var(--text-primary);
}
.lg-no b { letter-spacing: 0.5px; font-weight: 600; }
.lg-copy {
  border: 1px solid rgba(14,124,107,0.28); background: rgba(14,124,107,0.1); color: var(--primary);
  font-size: 12px; cursor: pointer; padding: 5px 12px; min-width: 54px;
  font-family: var(--font); border-radius: 15px; transition: background 0.2s;
  text-align: center; line-height: 1.4;
}
.lg-copy:hover { background: rgba(14,124,107,0.2); }
.lg-copy.copied { background: rgba(14,124,107,0.2); }
/* 查看轨迹按钮 */
.btn-track {
  display: block; width: 100%;
  margin-top: 10px; padding: 9px 0;
  font-size: 13px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #0E7C6B, #12A08B);
  border: none; border-radius: 18px; cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(14,124,107,0.25);
}
.btn-track:active { transform: scale(0.98); }
.btn-track:hover { opacity: 0.9; }
.btn-track:disabled { opacity: 0.65; cursor: wait; box-shadow: none; }
/* 轨迹容器 */
.track-wrap { margin-top: 10px; background: #FAFCFB; border-radius: 10px; padding: 10px 12px; }
.track-loading { font-size: 13px; color: var(--text-secondary); padding: 10px 0; text-align: center; }
.track-err { font-size: 13px; color: #C0392B; padding: 10px 0; text-align: center; }
/* 最新状态摘要条 */
.track-status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid #EDF1EF; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px;
}
.lg-status-pill {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 600;
}
.lg-status-pill.st-blue   { background: #E3F0FC; color: #1F6FC4; }
.lg-status-pill.st-orange { background: #FDF0E0; color: #C77A1B; }
.lg-status-pill.st-purple { background: #F0E7FC; color: #7A4FC0; }
.lg-status-pill.st-green  { background: #E0F5EC; color: #0E7C6B; }
.lg-status-pill.st-red    { background: #FDE8E8; color: #C0392B; }
.lg-status-time { font-size: 12px; color: var(--text-secondary); }
.lg-status-addr { font-size: 12px; color: var(--text-secondary); }
/* 时间线 */
.track-list {
  max-height: 300px; overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}
.track-list::-webkit-scrollbar { width: 3px; }
.track-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }
.track-list::-webkit-scrollbar-track { background: transparent; }
.track-item { position: relative; padding-left: 22px; padding-bottom: 18px; }
.track-item:last-child { padding-bottom: 0; }
/* 有长备注时节点与上段拉开（节点贴本段开头，线连上一段末尾） */
.track-item + .track-item { margin-top: 0; }
/* 节点圆点（默认灰，按状态着色，最新绿色加大） */
.track-dot {
  position: absolute; left: 0; top: 3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #CBD5E0; box-sizing: border-box;
}
.track-item.new .track-dot {
  width: 12px; height: 12px; left: -1px; top: 2px;
  background: #0E7C6B; box-shadow: 0 0 0 3px rgba(14,124,107,0.18);
}
/* 竖线 */
.track-line {
  position: absolute; left: 4.5px; top: 18px; bottom: 0;
  width: 1.5px; background: rgba(0,0,0,0.09);
}
.track-item.new .track-line { background: rgba(14,124,107,0.25); }
.track-item:last-child .track-line { display: none; }
/* 内容 */
.track-body { min-width: 0; }
.track-remark {
  font-size: 13px; color: var(--text-primary); line-height: 1.55;
  word-break: break-all;
}
.track-item.new .track-remark { color: var(--text-primary); font-weight: 600; }
.track-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-secondary); margin-top: 3px;
}
.track-time { font-variant-numeric: tabular-nums; }
.track-item:not(.new) .track-remark,
.track-item:not(.new) .track-meta { color: #8A9A95; }
.track-item:not(.new) .track-remark { font-weight: 400; }

/* ===== 样本回寄寄件表单输入框（独立可编辑样式，提高特异性压过 .form-row .value input） ===== */
/* 关键：边框加深 + 浅底 + 内阴影，让输入框在浅青卡片上明确"可填写" */
.form-row .value input.pk-input,
.form-row .value select.pk-input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #8CBBB5;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
  box-shadow: inset 0 1px 2px rgba(21,58,60,0.05);
}
.form-row .value input.pk-input:hover,
.form-row .value select.pk-input:hover { border-color: #6FA9A3; }
.form-row .value input.pk-input:focus,
.form-row .value select.pk-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,140,135,0.13);
  background: #fff;
}
.form-row .value input.pk-input::placeholder { color: #9DB3B0; }
/* 地址输入框再加重一档（主输入项） */
.form-row .value input.pk-input-lg {
  border-width: 2px;
  border-color: #6FA9A3;
  padding: 13px 14px;
  font-size: 15.5px;
  background: #FFFFFF;
}
.form-row .value input.pk-input-lg:focus { border-color: var(--primary); }
/* 下拉框：右侧箭头 + 外观统一 */
.form-row .value select.pk-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='10' viewBox='0 0 15 10'><path d='M1.5 1.5l6 6 6-6' fill='none' stroke='%232D8C87' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;  /* 下拉箭头明显化 */
  cursor: pointer;
  color: var(--text);
}
.form-row .value select.pk-input:invalid,
.form-row .value select.pk-input option[value=""] { color: #9DB3B0; }
