:root {
  --bg-deep: #0f1c1a;
  --bg-mid: #17302b;
  --ink: #e8f0ec;
  --ink-soft: #a7bdb4;
  --amber: #e6a23c;
  --amber-hot: #f0b95a;
  --teal: #2f8f7b;
  --teal-deep: #1f6a5b;
  --line: rgba(232, 240, 236, 0.12);
  --glass: rgba(20, 40, 36, 0.72);
  --danger: #e87461;
  --ok: #3dba8c;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(230, 162, 60, 0.18), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(47, 143, 123, 0.22), transparent 50%),
    linear-gradient(165deg, #0c1715 0%, #152824 42%, #0f1c1a 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.045;
  z-index: 0;
}

a { color: var(--amber-hot); text-decoration: none; }

.page {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 0 36px;
  animation: rise 0.9s ease both;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.brand span { display: inline-block; color: var(--amber); }

.lead {
  max-width: 28em;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.btn-primary,
.btn-secondary,
.pay-btn,
.btn-ghost {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #c9923a 0%, #a87428 100%);
  color: #1a1205;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(168, 116, 40, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 13px 20px;
  border-radius: 999px;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  animation: floaty 4.5s ease-in-out infinite;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(230, 162, 60, 0.55);
  box-shadow: 0 0 0 6px rgba(230, 162, 60, 0.08);
}

.profile-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.profile-meta strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 22px;
  animation: rise 0.8s ease both;
}

.panel.delay { animation-delay: 0.12s; }

.panel-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 6px;
}

.panel-sub {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: rgba(230, 162, 60, 0.08);
  color: var(--ink-soft);
  border-radius: 0 10px 10px 0;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(8, 16, 14, 0.45);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(230, 162, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(230, 162, 60, 0.12);
}

.quick-amount {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.9rem;
}

.chip.active,
.chip:hover {
  color: #1a1205;
  background: var(--amber);
  border-color: transparent;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pay-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}

.pay-btn strong {
  font-weight: 600;
  font-size: 0.95rem;
}

.pay-btn small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.pay-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.pay-btn.usdt:hover {
  border-color: rgba(47, 143, 123, 0.55);
  box-shadow: inset 0 0 0 1px rgba(47, 143, 123, 0.12);
}

.pay-btn.alipay:hover { border-color: rgba(22, 119, 255, 0.45); }
.pay-btn.wxpay:hover { border-color: rgba(7, 193, 96, 0.45); }
.pay-btn.qqpay:hover { border-color: rgba(18, 183, 245, 0.45); }

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 0.92rem;
}

th {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.82rem;
}

.donor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.donor-nick { font-weight: 600; }

.donor-qq,
.muted {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.pay-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 143, 123, 0.2);
  color: #8fd6c4;
  font-size: 0.75rem;
}

.badge-ok { color: var(--ok); font-weight: 600; }
.badge-wait { color: var(--danger); font-weight: 600; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(230, 162, 60, 0.45);
}

.footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 8px 0 20px;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 40, 36, 0.88);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.music-toggle.playing {
  color: var(--amber-hot);
  border-color: rgba(230, 162, 60, 0.35);
}

.music-toggle.playing .music-icon {
  animation: floaty 1.6s ease-in-out infinite;
}

.music-toggle.muted {
  opacity: 0.75;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 9, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.mask.show {
  display: flex;
  animation: fade 0.2s ease;
}

.dialog {
  width: min(360px, 100%);
  background: #17302b;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.dialog p {
  margin: 0 0 18px;
  word-break: break-word;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 40, 36, 0.95);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 1100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.loading-dot::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .pay-grid {
    grid-template-columns: 1fr 1fr;
  }
}
