/* ===== local fonts ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrainsmono-500.woff2") format("woff2");
}

/* ===== reset / vars ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --text: #0a0a0a;
  --text-2: #525252;
  --text-3: #a3a3a3;
  --border: #e5e5e5;
  --border-strong: #c0c0c0;
  --accent: #ef4444;        /* TRX 红 */
  --accent-dark: #dc2626;
  --accent-soft: #fee2e2;
  --green: #16a34a;
  --green-soft: #dcfce7;

  --font: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; color: inherit; }
ol, ul { list-style: none; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== header ===== */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent); color: #fff;
  border-radius: 6px; font-size: 14px;
}
.header-link {
  font-size: 14px; color: var(--text-2);
  font-weight: 500;
}
.header-link:hover { color: var(--accent); }

/* ===== hero ===== */
.hero {
  padding: 70px 0 50px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }
.lead {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== rent card 主区 ===== */
.rent-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.05);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.steps li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.steps li b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--text); color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  flex-shrink: 0;
}

.form-tip {
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 22px;
  line-height: 1.6;
}
.form-tip b { color: var(--accent); }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .15s;
}
.pill:hover { border-color: var(--text); color: var(--text); }
.pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pill-custom { color: var(--accent); border-color: var(--accent-soft); }
.pill-custom.active { background: var(--accent); color: #fff; }

/* ===== result 区域 ===== */
.result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  gap: 14px; flex-wrap: wrap;
}
.result-row span {
  font-size: 13.5px;
  color: var(--text-2);
}
.amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.amount small { font-size: 14px; color: var(--text-3); font-weight: 500; margin-left: 4px; }

.result-row code {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px 8px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  word-break: break-all;
  flex: 1;
  justify-content: space-between;
  min-width: 0;
}
#copyBtn {
  background: var(--text);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .15s;
}
#copyBtn:hover { background: #262626; }

.result-qr {
  margin-top: 16px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: 10px;
  display: flex; align-items: center; gap: 18px;
}
.result-qr img {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  flex-shrink: 0;
}
.result-qr p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.result-qr p b { color: var(--text); }

/* ===== h2 通用 ===== */
.h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 32px;
}

/* ===== prices ===== */
.prices { padding: 70px 0 30px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.price {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all .15s;
}
.price:hover { border-color: var(--accent); transform: translateY(-2px); }
.price-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.price-tag.green { background: var(--green-soft); color: var(--green); }
.price-tag.red { background: var(--accent-soft); color: var(--accent); }
.price-name {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.price-num {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.price-num b {
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-right: 4px;
}
.price-num small { font-size: 13px; color: var(--text-3); }
.price-energy {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.price-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-2);
}
.price-note b { color: var(--text); }

/* ===== trust ===== */
.trust { padding: 50px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-grid > div { border-right: 1px solid var(--border); }
.trust-grid > div:last-child { border-right: none; }
.trust .big {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.trust .big small { font-size: 16px; color: var(--text-3); font-weight: 500; margin-left: 2px; }
.trust .small {
  font-size: 13px;
  color: var(--text-2);
}

/* ===== faq ===== */
.faq { padding: 60px 0; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 15.5px;
  font-weight: 600;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 0 22px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
}
.faq details p a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ===== service ===== */
.service {
  padding: 70px 0;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-top: -20px;
  margin-bottom: 20px;
}
.tg-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  padding: 14px 32px;
  background: var(--text);
  color: #fff;
  border-radius: 50px;
  transition: all .15s;
}
.tg-link:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== footer ===== */
.footer {
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-3);
}
.footer-inner {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
  vertical-align: middle;
}

/* ===== toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff;
  padding: 11px 22px; border-radius: 8px;
  font-size: 13.5px;
  opacity: 0; pointer-events: none;
  transition: all .2s;
  z-index: 100;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== responsive ===== */
@media (max-width: 560px) {
  .hero { padding: 50px 0 40px; }
  .rent-card { padding: 20px; border-radius: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .price-grid { grid-template-columns: 1fr; }
  .result-qr { flex-direction: column; align-items: flex-start; }
  .amount { font-size: 28px; }
}
