: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;
}

/* Nav */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: var(--fire-deep);
  background: var(--fire-soft);
  text-decoration: none;
}

.site-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-deep) 100%);
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.25);
}

/* 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;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  overflow: hidden;
}

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

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.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: 40px 0 32px;
  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: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1rem;
  text-align: left;
}

.hero-lead-tight {
  margin-top: -12px;
  margin-bottom: 24px;
}

.hero-date {
  color: var(--fire-deep);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.card-subtitle {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.presale-deadline {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.presale-deadline strong {
  color: var(--fire-deep);
  font-variant-numeric: tabular-nums;
}

.home-ip .ip-grid {
  display: grid;
  gap: 18px;
  padding: 4px 0 0;
}

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

.ip-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(165deg, #fffefb 0%, #fff 100%);
}

.ip-item h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--fire-deep);
}

.ip-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.72;
}

.tutorial-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.tutorial-steps li {
  margin-bottom: 14px;
}

.tutorial-steps li:last-child {
  margin-bottom: 4px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 720px;
  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 */
.page-panel {
  display: none;
  padding-bottom: 24px;
}

.page-panel.active {
  display: block;
}

section {
  padding: 28px 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);
}

/* 首页 · 持币权益 */
.home-perks {
  padding-top: 8px;
}

.perks-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 820px;
}

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

.perks-list li {
  display: grid;
  grid-template-columns: minmax(108px, 148px) 1fr;
  gap: 10px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.perks-list li:first-child {
  padding-top: 0;
}

.perks-list li:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.perks-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.perks-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.perks-num {
  color: var(--fire-deep);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .perks-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* 积分排行（独立页面 #points） */
.points-rank-block {
  padding-top: 0;
}

.rank-card {
  margin-top: 0;
}

.rank-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rank-table th,
.rank-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rank-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.rank-table tbody tr:hover {
  background: var(--fire-soft);
}

.rank-addr {
  font-size: 0.84rem;
}

.rank-points {
  font-weight: 700;
  color: var(--fire-deep);
  font-variant-numeric: tabular-nums;
}

.rank-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rank-page-btn {
  min-width: 40px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.rank-page-btn:hover {
  border-color: rgba(196, 30, 58, 0.35);
  color: var(--fire-deep);
}

.rank-page-btn.is-active {
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

/* Progress */
.progress-block {
  margin-top: 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fire), #e85d75);
  transition: width 0.4s ease;
}

/* Presale form */
.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);
}

.label-presale-amount {
  color: var(--ink) !important;
  font-size: 0.92rem !important;
}

.stake-form input.input-presale-amount {
  background: linear-gradient(180deg, #fffbf5 0%, #fff5eb 100%);
  border: 2px solid rgba(196, 30, 58, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(196, 30, 58, 0.12),
    0 6px 20px rgba(196, 30, 58, 0.1);
  font-size: 1.08rem;
  font-weight: 700;
  padding: 14px 16px;
  color: var(--ink);
}

.stake-form input.input-presale-amount::placeholder {
  color: #a08080;
  font-weight: 500;
}

.stake-form input.input-presale-amount:focus {
  background: #fff;
  border-color: var(--fire);
  box-shadow:
    0 0 0 4px rgba(196, 30, 58, 0.2),
    0 8px 24px rgba(196, 30, 58, 0.14);
}

.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.05rem;
  font-variant-numeric: tabular-nums;
}

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

.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;
}

.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);
}

/* Dividend disabled */
.disabled-banner {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.disabled-banner strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.disabled-banner strong:only-child {
  margin-bottom: 0;
}

/* 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%);
}

.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);
}
