:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --fire: #c41e3a;
  --fire-deep: #8b1530;
  --fire-soft: #fff0f2;
  --gold: #b8860b;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(196, 30, 58, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23c41e3a' d='M40 5c2 8 4 14 8 18-6 2-12 4-18 8 4-4 10-6 18-8 4 4 6 10 8 18 2-8 4-14 8-18-6-2-12-4-18-8 4 4 10 6 18 8z'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--fire);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(165deg, #f0f0f0 0%, #ffffff 45%, #f8f8f8 100%);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
  border-color: rgba(196, 30, 58, 0.25);
  box-shadow: 0 6px 24px rgba(196, 30, 58, 0.12);
}

.brand-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.brand-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(196, 30, 58, 0.45);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.address-pill {
  font-size: 0.8rem;
  padding: 8px 12px;
  background: var(--fire-soft);
  color: var(--fire-deep);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--fire-soft);
  color: var(--fire-deep);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(196, 30, 58, 0.15);
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--fire);
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 36px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 800;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--fire), transparent);
  border-radius: 2px;
  max-width: 120px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.intro-list {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.intro-list li {
  margin-bottom: 10px;
}

.intro-list strong {
  color: var(--ink);
}

/* Staking */
.stake-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

.stake-form input[type="text"],
.stake-form input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

.stake-form input:focus {
  outline: none;
  border-color: var(--fire);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.period-btn {
  padding: 12px 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.period-btn:hover {
  border-color: rgba(196, 30, 58, 0.4);
}

.period-btn.active {
  border-color: var(--fire);
  background: var(--fire-soft);
  color: var(--fire-deep);
}

.points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.points-row strong {
  color: var(--fire);
  font-size: 1.15rem;
}

.soul-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
  border-radius: 10px;
  margin: 10px 0 0;
  font-size: 0.95rem;
  border: 1px solid rgba(184, 134, 11, 0.22);
}

.soul-row strong {
  color: var(--gold);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.stake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.position-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 12px;
}

.position-table th,
.position-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.position-table th {
  color: var(--muted);
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

/* Tokenomics table */
.tok-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tok-table th,
.tok-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tok-table th {
  width: 140px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.copy-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-addr {
  word-break: break-all;
}

.btn-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fire-deep);
  background: var(--fire-soft);
  border: 1px solid rgba(196, 30, 58, 0.25);
  border-radius: 8px;
  cursor: pointer;
}

.btn-copy:hover {
  background: #ffe8ec;
  border-color: var(--fire);
}

.btn-copy:active {
  transform: scale(0.97);
}

.econ-blocks {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.econ-block {
  padding: 16px 18px;
  border-left: 4px solid var(--fire);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--line);
  border-left-width: 4px;
}

.econ-block h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.econ-block p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  margin-top: 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 40%);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.contact-list span {
  display: inline-block;
  min-width: 88px;
  color: var(--muted);
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
