/* YAOQIAN — money-tree red & gold theme.
 * Visual identity: deep lacquer red ground, brushed-gold rules, hanging
 * coin ornaments, and a vermilion seal stamp (印章) as the accent mark.
 * Layout is an asymmetric "scroll" composition, deliberately unlike the
 * centered-card layouts of earlier projects. */
:root {
  --red-950: #2b0603;
  --red-900: #4a0d06;
  --red-800: #6d1308;
  --red-700: #8f1d0b;
  --vermillion: #c8341c;
  --gold-300: #f3d27a;
  --gold-400: #e7bd4f;
  --gold-500: #c9962e;
  --gold-700: #8a6414;
  --paper: #fdf6e3;
  --ink: #2e1a05;
  --muted: #a98d5f;
  --line: rgba(231, 189, 79, 0.35);
  --card: rgba(43, 6, 3, 0.72);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(200, 52, 28, 0.5), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(201, 150, 46, 0.18), transparent 55%),
    linear-gradient(160deg, var(--red-950), var(--red-900) 45%, #1c0402);
  background-attachment: fixed;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
a { color: var(--gold-300); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 64px; }

/* ---- header rail ---- */
.rail {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 0 10px; border-bottom: 3px double var(--line);
}
.seal {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: 0 0 auto;
  background: var(--vermillion); color: #fff8ec;
  border-radius: 6px; transform: rotate(-4deg);
  font-family: "STKaiti", "KaiTi", serif; font-size: 15px; line-height: 1.05;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  text-align: center; padding: 3px;
}
.brand { font-size: 22px; letter-spacing: 3px; font-weight: 700; color: var(--gold-300); }
.brand small { display: block; font-size: 11px; letter-spacing: 5px; color: var(--muted); font-weight: 400; }
.rail nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.rail nav a { text-decoration: none; font-size: 14px; letter-spacing: 1px; }
.rail nav a:hover { color: #fff; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; color: var(--gold-300); border: 0; cursor: pointer;
  padding: 5px 14px; font-size: 13px; letter-spacing: 1px;
}
.lang-switch button.active { background: var(--gold-500); color: var(--red-950); font-weight: 700; }

/* ---- hero with the money tree ---- */
.hero { display: grid; grid-template-columns: 300px 1fr; gap: 34px; padding: 38px 0 10px; align-items: center; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .treebox { margin: 0 auto; } }
.treebox { width: 300px; max-width: 80vw; }
.kicker { color: var(--gold-400); letter-spacing: 4px; font-size: 12px; margin: 0 0 10px; }
h1 { font-size: clamp(26px, 4.4vw, 44px); line-height: 1.15; margin: 0 0 14px; font-weight: 800; }
h1 .cn { color: var(--gold-300); font-family: "STKaiti", "KaiTi", serif; }
.lede { color: #f0dfba; max-width: 56ch; }
.coming {
  border: 1px dashed var(--gold-400); border-left: 6px solid var(--vermillion);
  background: rgba(200, 52, 28, 0.12); padding: 14px 16px; border-radius: 4px; margin-top: 18px;
}
.contract-line { margin-top: 16px; font-size: 14px; color: var(--muted); word-break: break-all; }
.contract-line b { color: var(--gold-300); font-family: ui-monospace, "SF Mono", monospace; font-weight: 600; }

/* ---- stat coins ---- */
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 6px; }
.coin {
  flex: 1 1 160px; border: 1px solid var(--line); border-radius: 50% / 12px;
  background: var(--card); padding: 16px 18px; position: relative; overflow: hidden;
}
.coin::after {
  content: "钱"; position: absolute; right: 8px; top: 2px;
  font-family: "STKaiti", "KaiTi", serif; font-size: 44px; color: rgba(231,189,79,0.13);
}
.coin .num { font-size: 26px; font-weight: 800; color: var(--gold-300); }
.coin .lbl { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.progress { height: 12px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 14px 0 4px; background: rgba(0,0,0,0.35); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--gold-700), var(--gold-400), var(--gold-300)); width: 0%; transition: width 0.6s ease; }
.phase-line { font-size: 14px; color: var(--gold-300); letter-spacing: 1px; }

/* ---- panels ---- */
.panel {
  border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 22px 24px; margin-top: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.panel h2 { margin: 0 0 8px; font-size: 21px; color: var(--gold-300); letter-spacing: 1px; }
.panel h2 .seal { width: 34px; height: 34px; font-size: 11px; vertical-align: -8px; margin-right: 10px; }
.panel p { color: #efdfba; }
.steps p { margin: 8px 0; padding-left: 14px; border-left: 2px solid rgba(231,189,79,0.25); }
button.action, a.action {
  display: inline-block; background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--red-950); border: 0; border-radius: 999px; cursor: pointer;
  padding: 11px 22px; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; text-decoration: none;
}
button.action:disabled { opacity: 0.45; cursor: not-allowed; }
button.ghost {
  background: transparent; color: var(--gold-300); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; font-size: 14px;
}
input[type="text"], input[type="number"] {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.4); color: var(--paper); font-size: 15px;
}
label { display: block; font-size: 13px; letter-spacing: 1px; color: var(--muted); margin: 12px 0 6px; text-transform: uppercase; }
.template-box {
  border: 1px solid var(--line); background: rgba(0,0,0,0.35); border-radius: 8px;
  padding: 14px 16px; font-size: 15px; white-space: pre-wrap; word-break: break-word; min-height: 74px;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.status { font-size: 14px; color: var(--gold-300); min-height: 20px; }
.status.err { color: #ff9d8a; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 22px; margin-top: 10px; }
.kv div b { display: block; color: var(--gold-300); font-size: 18px; }
.kv div span { font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }

/* ---- recent mints table ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); letter-spacing: 1px; font-size: 12px; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--line); }
td { padding: 9px 6px; border-bottom: 1px dashed rgba(231,189,79,0.15); }
td.mono, .mono { font-family: ui-monospace, "SF Mono", monospace; font-size: 13px; }
.badge { border-radius: 999px; padding: 2px 10px; font-size: 11px; letter-spacing: 1px; }
.badge.free { background: rgba(200,52,28,0.85); color: #fff; }
.badge.paid { background: rgba(201,150,46,0.25); color: var(--gold-300); border: 1px solid var(--line); }

/* ---- refund / terms pages ---- */
.deadline-callout {
  border: 2px solid var(--vermillion); background: rgba(200,52,28,0.16);
  border-radius: 10px; padding: 18px 20px; margin-top: 22px;
}
.deadline-callout h2 { color: #ffb59f; margin-top: 0; }
.prompt-box {
  border: 1px solid var(--line); background: #170503; color: #f3e3bb; border-radius: 8px;
  padding: 16px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word;
  max-height: 340px; overflow: auto;
}
ol.manual li { margin: 9px 0; color: #efdfba; }
.terms-section { margin-top: 20px; }
.terms-section h3 { color: var(--gold-300); margin-bottom: 6px; }
footer { margin-top: 40px; border-top: 3px double var(--line); padding-top: 16px; color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
