:root {
  --bg: #efedf3;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --ink: #2d2414;
  --muted: #7a6b4c;
  --line: rgba(0, 0, 0, 0.06);
  --accent: #fd6e00;
  --accent-strong: #9c6a00;
  --accent-soft: #fff1b2;
  --success: #2d6a4f;
  --warning: #9c6644;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.brand-header {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(243, 191, 37, 0.24);
}

.brand-mark span {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.donation-card,
.progress-section,
.faq-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  color: var(--accent-strong);
}

blockquote {
  margin: 28px 0 12px;
  padding-left: 20px;
  border-left: 4px solid rgba(243, 191, 37, 0.75);
  font-size: clamp(12px, 1.5vw, 17px);
  line-height: 1.6;
  font-weight: 500;
}

.verse-ref,
.progress-note {
  color: var(--muted);
}

.contact-note {
  margin: 24px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.contact-note a {
  color: inherit;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

.verse-ref {
  margin: 0 0 24px;
  font-size: 13px;
}

.intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #56472d;
}

.donation-card {
  padding: 28px;
  background: #ffffff;
}

.status-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
}

.status-success {
  background: rgba(45, 106, 79, 0.1);
  color: var(--success);
}

.status-cancel {
  background: rgba(156, 102, 68, 0.12);
  color: var(--warning);
}

.donation-form {
  display: grid;
  gap: 22px;
}

.field-group {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preset-button,
.submit-button,
.custom-amount-wrap input {
  border: 1px solid transparent;
  border-radius: 8px;
  transition: 180ms ease;
}

.preset-button {
  padding: 16px 14px;
  background: #f6f5f9;
  border-color: var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.preset-button:hover,
.preset-button.is-active {
  border-color: rgba(176, 136, 34, 0.28);
  background: linear-gradient(135deg, rgba(243, 191, 37, 0.28) 0%, rgba(255, 242, 185, 0.95) 100%);
}

.custom-amount-wrap {
  position: relative;
}

.custom-amount-wrap input {
  width: 100%;
  padding: 18px 80px 18px 18px;
  background: #f8f7fb;
  border-color: var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  appearance: textfield;
}

.custom-amount-wrap input:focus {
  outline: none;
  border-color: rgba(176, 136, 34, 0.38);
  box-shadow: 0 0 0 4px rgba(243, 191, 37, 0.2);
}

.custom-amount-wrap input.email-input {
  height: 44px;
  padding: 10px 14px;
  font-size: 15px;
}

.currency-tag {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cny-hint {
  margin: -6px 0 0;
  min-height: 28px;
  color: #fd6e00;
  font-size: 14px;
  font-weight: 600;
}

.submit-button {
  padding: 18px 20px;
  background: #fd6e00;
  color: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:hover {
  filter: brightness(1.03);
}

.qr-access {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  text-align: center;
}

.qr-access__link {
  display: inline-flex;
}

.qr-access__image {
  display: block;
  width: 100px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-access__label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.payment-note {
  margin: -8px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.payment-note a {
  color: inherit;
  text-decoration: none;
}

.payment-note a:hover {
  text-decoration: underline;
}

.progress-section {
  margin-top: 28px;
  padding: 26px 28px;
}

.faq-section {
  margin-top: 28px;
  padding: 26px 28px;
}

.faq-header {
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  position: relative;
  padding: 24px 56px 24px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
}

.faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 160ms ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
  padding: 0 24px 24px;
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #666;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.progress-header span {
  font-size: 24px;
  color: var(--accent-strong);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(176, 136, 34, 0.12);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fd6e00;
}

@media (min-width: 861px) {
  .qr-access {
    display: flex;
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 24px, 720px);
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .donation-card,
  .progress-section,
  .faq-section {
    border-radius: 8px;
  }

  .hero-copy,
  .donation-card {
    padding: 24px;
  }

  .brand-header {
    margin-bottom: 18px;
  }
  .brand-mark span {
    font-size: 24px;
  }

  blockquote {
    font-size: 20px;
  }
}
