/* ==========================================
   胡卜萝 — 六爻 AI 直断
   风格：温润雅致 · 东方韵味
   ========================================== */

:root {
  --bg: #f5f0eb;
  --card: #ffffff;
  --ink: #2c2418;
  --ink-light: #6b5a48;
  --ink-muted: #9a8a78;
  --gold: #b8860b;
  --gold-light: #f5e6c8;
  --gold-bg: #fcf6ed;
  --red: #b84538;
  --red-bg: #fef2f0;
  --green: #5a7a5a;
  --green-bg: #f2f7f2;
  --border: #e8dfd4;
  --shadow: rgba(90, 70, 50, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Noto Serif SC", "PingFang SC", Georgia, serif;
  --font-sans: "PingFang SC", -apple-system, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

button { cursor: pointer; background: none; }
button:disabled { opacity: 0.5; pointer-events: none; }
textarea { resize: vertical; }

/* ===== App Shell ===== */
#app {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 80px;
  position: relative;
}

/* ===== Bottom Nav ===== */
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-muted);
  font-size: 11px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active { color: var(--ink); }

.nav-icon { width: 22px; height: 22px; }

.nav-item.active .nav-icon {
  stroke: var(--gold);
  stroke-width: 2;
}

.tab-content { display: none; padding-top: 4px; }
.tab-content.active { display: block; }

/* ===== Brand ===== */
.brand {
  text-align: center;
  padding: 36px 0 20px;
  position: relative;
}

.brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

.brand-seal {
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin: 0 auto 12px;
  font-size: 28px;
  font-family: var(--font);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #3d2e1e, #2c2418);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(44,36,24,0.15);
}

.brand-title {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 4px;
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 2px;
}

/* ===== Input Card ===== */
.input-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px var(--shadow);
  margin: 20px 0 12px;
  overflow: hidden;
}

.input-card textarea {
  width: 100%;
  min-height: 100px;
  padding: 18px 20px 12px;
  background: transparent;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.input-card textarea::placeholder { color: var(--ink-muted); opacity: 0.6; }

.input-meta {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 10px;
}

.input-count { font-size: 12px; color: var(--ink-muted); }

/* ===== Card ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.card-body { padding: 20px; }

/* ===== Section ===== */
.section { margin-bottom: 20px; }

.section-title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-light);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* ===== Category Pills ===== */
.cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
}

.cat-pills::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 6px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-light);
  transition: all 0.2s;
  box-shadow: 0 1px 4px var(--shadow);
}

.pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(44,36,24,0.15);
}

/* ===== Samples ===== */
.samples {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 6px var(--shadow);
}

.sample-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sample-btn:active { background: var(--gold-bg); }
.sample-btn + .sample-btn { border-top: 1px solid var(--border); }
.sample-btn .arrow { color: var(--ink-muted); font-size: 14px; }

/* ===== Method Grid ===== */
.method-grid { display: flex; gap: 10px; }

.method-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px var(--shadow);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.method-btn.active {
  border-color: var(--gold);
  background: var(--gold-bg);
  box-shadow: 0 2px 10px rgba(184,134,11,0.08);
}

.method-icon { font-size: 22px; }
.method-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.method-desc { font-size: 11px; color: var(--ink-muted); }

/* ===== Manual Panel ===== */
.manual-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px var(--shadow);
}

.manual-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.manual-label {
  width: 42px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-light);
  flex-shrink: 0;
}

.manual-options {
  display: flex;
  gap: 6px;
  flex: 1;
}

.manual-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: #f8f4f0;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-light);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.manual-opt.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.yao-icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 8px;
}

.yao-icon span {
  display: inline-block;
  height: 8px;
  background: currentColor;
  border-radius: 1px;
}

.yao-icon.yang span:first-child { width: 40px; }
.yao-icon.yang span:last-child { display: none; }
.yao-icon.yin span { width: 17px; }

/* ===== Primary Button ===== */
.btn-primary {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #3d2e1e, #2c2418);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 3px;
  box-shadow: 0 4px 16px rgba(44,36,24,0.2);
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active { opacity: 0.85; }

/* ===== Status ===== */
.status {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  min-height: 20px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 64px 32px;
}

.empty-icon {
  font-size: 40px;
  opacity: 0.2;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty-desc { font-size: 13px; color: var(--ink-muted); }

/* ===== Info Grid (Plate) ===== */
.info-grid {
  padding: 16px 20px 10px;
}

.info-row {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.6;
}

.info-row + .info-row { border-top: 1px solid var(--border); }

.info-label {
  flex-shrink: 0;
  width: 50px;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 1px;
}

.info-value { flex: 1; color: var(--ink); word-break: break-all; }
.text-red { color: var(--red); font-weight: 700; }

/* ===== Hexagram Board ===== */
.hex-header {
  text-align: center;
  padding: 10px 20px 8px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}

.hex-header .arrow { color: var(--ink-muted); margin: 0 8px; font-size: 14px; }

.hex-board {
  padding: 4px 12px;
}

.hex-row {
  display: grid;
  grid-template-columns: 1fr 56px 28px 56px 1fr;
  align-items: center;
  min-height: 56px;
  gap: 2px;
}

/* Left cell */
.hl-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
}

.spirit {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  width: 18px;
  flex-shrink: 0;
  text-align: center;
}

.rel-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.role-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hidden-badge {
  font-size: 11px;
  color: var(--red);
  background: var(--red-bg);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Yao lines */
.yao-wrap { display: flex; align-items: center; justify-content: center; }

.yao-line {
  display: flex;
  width: 48px;
  height: 10px;
  align-items: center;
  justify-content: space-between;
}

.yao-line span {
  display: inline-block;
  height: 10px;
  background: var(--ink);
  border-radius: 2px;
}

.yao-line.yang span:first-child { width: 48px; }
.yao-line.yang span:last-child { display: none; }
.yao-line.yin span { width: 20px; }

/* Change mark */
.change-cell { text-align: center; }

.change-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  background: var(--border);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Right cell */
.hl-right { text-align: right; min-width: 0; }

.strength-tag {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 1px;
  white-space: nowrap;
}

/* Footer */
.hex-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  padding: 8px 20px 14px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 2px;
}

/* ===== Reading Section ===== */
.reading-head { padding: 20px 20px 0; }

.reading-badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  padding: 4px 14px;
  background: var(--red-bg);
  border-radius: 999px;
}

.reading-body {
  padding: 16px 20px 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
  white-space: pre-wrap;
}

.reading-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.btn-outline {
  flex: 1;
  height: 40px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-light);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline:active { background: var(--gold-light); }

/* ===== Feedback ===== */
.feedback {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 4px;
}

.feedback-title {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.feedback-row { display: flex; gap: 8px; }

.fb-opt {
  flex: 1;
  height: 38px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-light);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.fb-opt.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.feedback-extend {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-extend textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--gold-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.feedback-msg {
  margin-top: 8px;
  font-size: 12px;
  color: var(--green);
  text-align: center;
}

.btn-sm {
  height: 36px;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  align-self: flex-end;
  transition: opacity 0.15s;
}

.btn-sm:active { opacity: 0.8; }

/* ===== Sub Nav ===== */
.sub-nav {
  display: flex;
  gap: 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.sub-nav-item {
  flex: 1;
  padding: 14px 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.sub-nav-item.active { color: var(--ink); border-bottom-color: var(--ink); }

.sub-page { padding-top: 6px; }
.sub-hint { font-size: 12px; color: var(--ink-muted); margin-bottom: 12px; }

/* ===== History ===== */
.history-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px var(--shadow);
  cursor: pointer;
  transition: background 0.15s;
}

.history-item:active { background: var(--gold-bg); }

.hist-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.hist-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.hist-summary {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
  white-space: pre-wrap;
}

.hist-actions { display: flex; gap: 8px; margin-top: 10px; }
.hist-actions .btn-sm { flex: 1; background: var(--gold-bg); color: var(--ink-light); }
.hist-actions .btn-sm:active { background: var(--gold-light); }

/* ===== Notes ===== */
.note-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px var(--shadow);
}

.note-card textarea {
  width: 100%;
  min-height: 80px;
  background: transparent;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.note-card textarea::placeholder { color: var(--ink-muted); opacity: 0.6; }
.note-card .btn-sm { margin-top: 10px; }

.note-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px var(--shadow);
}

.note-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.note-q { font-size: 14px; font-weight: 600; color: var(--ink); }
.note-time { font-size: 11px; color: var(--ink-muted); }
.note-hex { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.note-body {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
  white-space: pre-wrap;
}

.note-item .btn-sm {
  margin-top: 10px;
  background: var(--gold-bg);
  color: var(--ink-light);
}

/* ===== Profile ===== */
.profile-head {
  text-align: center;
  padding: 32px 0 20px;
}

.profile-seal {
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin: 0 auto 12px;
  font-size: 28px;
  font-family: var(--font);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #3d2e1e, #2c2418);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(44,36,24,0.15);
}

.profile-name {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 3px;
}

.profile-role { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

.card-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-light);
}

.card-cell + .card-cell { border-top: 1px solid var(--border); }

.tag {
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--gold-bg);
  padding: 2px 10px;
  border-radius: 999px;
}

.tag.green { color: var(--green); background: var(--green-bg); }

.card-title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 20px 20px 0;
  letter-spacing: 1px;
}

.about-text { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.about-text p { font-size: 13px; color: var(--ink-light); line-height: 1.8; }

.footer-legal {
  margin-top: 32px;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  letter-spacing: 1px;
}

/* ===== Flex Helper ===== */
.flex-row { display: flex; gap: 10px; }
.flex-row .btn-secondary {
  flex: 1;
  height: 40px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-light);
}

/* ===== Mobile Fine-tune ===== */
@media (max-width: 360px) {
  .hex-row { grid-template-columns: 1fr 44px 24px 44px 1fr; }
  .yao-line { width: 38px; }
  .yao-line.yang span:first-child { width: 38px; }
  .yao-line.yin span { width: 16px; }
  .spirit { width: 16px; font-size: 10px; }
  .rel-text { font-size: 12px; }
}

/* ===== Desktop ===== */
@media (min-width: 600px) {
  body { background: #e8e0d6; padding: 16px 0; }
  #app {
    border-radius: 24px;
    background: var(--bg);
    box-shadow: 0 8px 40px rgba(44,36,24,0.08);
    min-height: auto;
    padding-bottom: 80px;
  }
}

/* ===== 昵称弹窗 ===== */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 24, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFadeIn 0.8s ease forwards;
}

@keyframes modalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.modal-box {
  width: 320px;
  max-width: 85vw;
  padding: 36px 28px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(44,36,24,0.25);
  text-align: center;
  transform: translateY(20px);
  animation: modalSlideIn 0.6s ease 0.3s forwards;
  opacity: 0;
}

@keyframes modalSlideIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.modal-seal {
  width: 56px;
  height: 56px;
  line-height: 56px;
  margin: 0 auto 16px;
  font-size: 24px;
  font-family: var(--font);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #3d2e1e, #2c2418);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(44,36,24,0.15);
}

.modal-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  color: var(--ink);
  background: #f8f6f3;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: var(--ink);
  background: #fff;
}

.modal-input::placeholder { color: var(--light); }

.modal-btn {
  margin-top: 16px;
  height: 48px;
  font-size: 15px;
}

.modal-skip {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s;
}

.modal-skip:hover { color: var(--ink-light); }

/* ===== 每日限制 ===== */

.daily-count {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 10px;
}

.donation-hint {
  margin-top: 12px;
}

.donation-box {
  background: var(--card);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
}

.donation-box p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.donation-emoji {
  font-size: 36px;
  margin-bottom: 10px;
}

.donation-title {
  font-family: var(--font);
  font-size: 18px !important;
  font-weight: 700;
  color: var(--ink) !important;
  margin-bottom: 6px !important;
}

.donation-desc {
  font-size: 13px !important;
  color: var(--ink-muted) !important;
  margin-bottom: 18px !important;
}

.donation-amounts {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.donation-amt {
  flex: 0 0 auto;
  min-width: 60px;
  padding: 8px 12px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s;
}

.donation-amt:active {
  background: var(--gold-light);
  transform: scale(0.95);
}

.donation-wx-hint {
  font-size: 12px !important;
  color: var(--ink-muted) !important;
  margin-bottom: 12px !important;
}

.donation-qr-wrap {
  width: 150px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.donation-qr-img {
  width: 160px;
  display: block;
}
