@import url('https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@700;900&display=swap');

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #efe6da;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.page {
  position: relative;
  width: 100%;
  max-width: 608px;
  min-height: 100vh;
  background: linear-gradient(180deg, #fdf7ec 0%, #fbeadc 38%, #f9ded2 72%, #f9d8ce 100%);
  box-shadow: 0 0 40px rgba(150, 110, 70, .18);
  padding-bottom: 48px;
}

/* ---------- Loading ---------- */
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b08a63;
  font-size: 13px;
  letter-spacing: .2em;
  opacity: .55;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 356px;
}
.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 392px;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.hero-text {
  position: absolute;
  left: 30px;
  top: 90px;
  z-index: 2;
}
.hero-text h1 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
  font-weight: 900;
  font-size: 45px;
  letter-spacing: 2px;
  color: #4f2c13;
}
.hero-text p {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.75;
  color: #e07b2e;
  letter-spacing: 1px;
}
.heart-deco {
  position: absolute;
  left: 16px;
  top: 280px;
  width: 82px;
  z-index: 1;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  z-index: 3;
  margin: 0 24px 14px;
  background: #fffdf8;
  border-radius: 20px;
  padding: 18px 22px 16px;
  box-shadow: 0 4px 14px rgba(190, 140, 90, .10);
}
.card.warm { background: #fdf1e5; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #3a2412;
  letter-spacing: 1px;
}
.card-title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f08a3c;
  margin-left: 8px;
  margin-top: 6px;
}
.proj-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #ef8a3a;
  text-decoration: none;
}
.proj-link .chev { margin-left: 6px; font-weight: 700; }

.about-body {
  margin-top: 12px;
  font-size: 17.5px;
  line-height: 1.85;
  color: #7d5c3d;
}
.about-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn-orange {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f6a44e 0%, #ef8034 100%);
  box-shadow: 0 4px 10px rgba(238, 130, 50, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-orange:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(238, 130, 50, .45); }
.btn-orange:active { transform: translateY(0); }

/* ---------- QR section ---------- */
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.qr-box {
  background: linear-gradient(180deg, #fbe3c8 0%, #f8d5af 100%);
  border: 1.5px solid #eec296;
  border-radius: 14px;
  padding: 12px 12px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-card {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(160, 110, 60, .18);
  cursor: pointer;
  transition: transform .12s ease;
}
.qr-card:hover { transform: scale(1.03); }
.qr-card img {
  display: block;
  width: 84px;
  height: auto;
}
.qr-label {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #6b4a2c;
  letter-spacing: 1px;
  text-align: center;
}

.info-bar {
  display: flex;
  align-items: center;
  margin-top: 12px;
  background: #4a2f1b;
  border-radius: 22px;
  padding: 4px 4px 4px 18px;
  min-height: 42px;
}
.info-bar .bar-label {
  font-size: 13px;
  font-weight: 600;
  color: #c9a87a;
  letter-spacing: 1px;
  white-space: nowrap;
}
.info-bar .bar-label .chain {
  font-weight: 400;
  font-size: 12px;
  color: #a78556;
  margin-left: 4px;
}
.info-bar .bar-value {
  flex: 1;
  margin-left: 14px;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 15px;
  color: #fdf6ec;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-bar .bar-value.blog-name {
  font-family: inherit;
  font-size: 15px;
  color: #fdf6ec;
}
.btn-copy {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6a44e 0%, #ef8034 100%);
  white-space: nowrap;
  transition: filter .15s ease;
  margin-left: 8px;
}
.btn-copy:hover { filter: brightness(1.06); }
.btn-copy.copied { background: #67b26f; }
.btn-link {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6a44e 0%, #ef8034 100%);
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s ease;
  margin-left: 8px;
}
.btn-link:hover { filter: brightness(1.06); }

/* ---------- Thanks list ---------- */
.thanks-scroll {
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #eec296 transparent;
}
.thanks-scroll::-webkit-scrollbar { width: 5px; }
.thanks-scroll::-webkit-scrollbar-track { background: transparent; }
.thanks-scroll::-webkit-scrollbar-thumb {
  background: #eec296;
  border-radius: 3px;
}
.thanks-scroll::-webkit-scrollbar-thumb:hover { background: #d9a872; }
.thanks-row {
  display: flex;
  align-items: center;
  padding: 11px 2px;
}
.thanks-row + .thanks-row { border-top: 1px solid #f4e5d4; }
.t-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ef8034;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-name {
  margin-left: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #3a2412;
  width: 88px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-date {
  font-size: 12px;
  color: #b89872;
  margin-left: 10px;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.t-amount {
  margin-left: auto;
  font-size: 17px;
  font-weight: 700;
  color: #3a2412;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.thanks-empty {
  margin-top: 10px;
  font-size: 15px;
  color: #b89872;
  text-align: center;
  padding: 14px 0;
}

/* ---------- Footer ---------- */
.page-footer {
  text-align: center;
  font-size: 14px;
  color: #c98a4b;
  letter-spacing: 1px;
  margin-top: 6px;
}
.watermark {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 13px;
  color: rgba(120, 100, 85, .38);
  letter-spacing: 1px;
  z-index: 5;
}

/* ---------- QR modal ---------- */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
}
.qr-modal.open { display: flex; }
.qr-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(60, 40, 25, .55);
}
.qr-modal-body {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(60, 40, 25, .35);
  max-width: 86vw;
  text-align: center;
}
.qr-modal-body img {
  display: block;
  width: 260px;
  max-width: 72vw;
  height: auto;
  border-radius: 10px;
}
.qr-modal-label {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #3a2412;
  letter-spacing: 1px;
}

/* ---------- Responsive (phones) ---------- */
@media (max-width: 430px) {
  .hero { height: 320px; }
  .hero-img { width: 62%; }
  .hero-text { left: 22px; top: 78px; }
  .hero-text h1 { font-size: 38px; }
  .hero-text p { font-size: 16.5px; margin-top: 12px; }
  .heart-deco { width: 70px; left: 12px; top: 252px; }
  .card { margin: 0 16px 16px; padding: 18px 18px 16px; }
  .card-title { font-size: 20px; }
  .info-bar .bar-value { font-size: 13px; margin-left: 10px; letter-spacing: .5px; }
  .btn-copy, .btn-link { padding: 7px 14px; font-size: 13px; }
  .btn-orange { padding: 9px 20px; font-size: 14px; }
  .t-name { width: 72px; font-size: 15px; }
  .t-type { font-size: 13px; }
  .t-date { font-size: 11px; margin-left: 6px; }
  .t-amount { font-size: 16px; }
  .qr-modal-body img { width: 220px; }
}

@media (max-width: 360px) {
  .hero { height: 290px; }
  .hero-img { width: 58%; }
  .hero-text h1 { font-size: 34px; }
  .qr-card img { width: 76px; }
}
