:root {
  /* 主题主色：当前为蓝色 */
  --brand: #39a8ff;
  --brand-rgb: 57, 168, 255;
  --bg: #03060d;
  --text: #eef5ff;
  --muted: #8ea2bc;
  --line: rgba(255, 255, 255, 0.08);
  --page-gap: 18px;
  --panel-mask: rgba(7, 12, 22, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.5px, transparent 0.5px);
  background-size: 2px 2px;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

.shell {
  position: relative;
  z-index: 2;
  padding: var(--page-gap);
  min-height: 100vh;
  height: 100vh;
  display: grid;
  row-gap: var(--page-gap);
  align-content: start;
  grid-template-rows: auto minmax(0, 1fr) minmax(180px, 0.42fr);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-mask);
  backdrop-filter: blur(3px);
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .btn {
  min-height: 40px;
  min-width: 92px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.nav-links a {
  color: #d9e8ff;
  text-decoration: none;
  font-size: 14px;
  text-transform: lowercase;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
}

.btn {
  border: 1px solid rgba(var(--brand-rgb), 0.5);
  background: transparent;
  color: var(--text);
  border-radius: 7px;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  transition: 0.2s ease;
  font-size: 10px;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.24);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(120deg, rgba(var(--brand-rgb), 0.95), rgba(var(--brand-rgb), 0.74));
  border: none;
  color: #031425;
  font-weight: 700;
}

.btn-primary:disabled {
  background: linear-gradient(120deg, rgba(125, 137, 154, 0.9), rgba(99, 112, 130, 0.9));
  color: #dce4ee;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--page-gap);
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 32px;
  background: var(--panel-mask);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.32);
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero h1 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.02;
  max-width: 12ch;
}

.hero h1 span {
  color: var(--brand);
  text-shadow: 0 0 25px rgba(var(--brand-rgb), 0.38);
}

.hero-desc {
  margin: 26px 0 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.7;
  font-family: "Chakra Petch", sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.donation-card {
  margin-top: 42px;
  display: grid;
  gap: 24px;
  max-width: 580px;
}

.donation-card label {
  display: grid;
  gap: 12px;
  color: #dfe9ff;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.donation-card input:not([type="range"]) {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(var(--brand-rgb), 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: #eff5ff;
  padding: 12px 14px;
  outline: none;
}

.donation-card input:not([type="range"]):focus {
  border-color: rgba(var(--brand-rgb), 0.85);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.2);
}

.range-wrap {
  display: grid;
  gap: 16px;
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  background: rgba(0, 0, 0, 0.28);
}

#amountRange {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--brand-rgb), 0.36),
    rgba(255, 255, 255, 0.12)
  );
  outline: none;
}

#amountRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid rgba(4, 11, 22, 0.9);
  box-shadow: 0 0 14px rgba(var(--brand-rgb), 0.45);
  cursor: pointer;
}

#amountRange::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid rgba(4, 11, 22, 0.9);
  box-shadow: 0 0 14px rgba(var(--brand-rgb), 0.45);
  cursor: pointer;
}

#amountRange::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--brand-rgb), 0.36),
    rgba(255, 255, 255, 0.12)
  );
}

.range-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.range-meta strong {
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.range-meta span:last-child {
  text-align: right;
}

.notice {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.notice code {
  color: rgba(var(--brand-rgb), 0.92);
}

.donation-card .btn {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.side-panel {
  display: grid;
  gap: 16px;
  grid-template-rows: minmax(0, 0.48fr) minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.panel-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-mask);
  backdrop-filter: blur(3px);
  padding: 16px;
  min-height: 0;
}

.panel-title {
  margin: 0 0 10px;
  color: #90a6c3;
  letter-spacing: 0.2em;
  font-size: 11px;
  text-transform: uppercase;
}

.panel-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.panel-block li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #b8c9de;
}

.panel-block strong {
  font-weight: 600;
  color: #f2f7ff;
}

.official-link {
  margin: 14px 0 0;
  font-size: 12px;
  color: #9ab0cd;
  line-height: 1.5;
}

.official-link a {
  color: rgba(var(--brand-rgb), 0.95);
  text-decoration: none;
}

.official-link a:hover {
  text-decoration: underline;
}

.live {
  color: var(--brand) !important;
}

.token-title {
  margin: 0;
  font-size: 34px;
  font-family: "Chakra Petch", sans-serif;
  color: var(--brand);
}

.token-sub {
  margin: 4px 0 16px;
  color: #7f96b5;
  font-size: 12px;
}

.stats {
  display: grid;
  gap: 12px;
}

.stats div {
  display: grid;
  gap: 4px;
}

.stats span {
  color: #96abc8;
  font-size: 12px;
}

.stats strong {
  font-size: 20px;
  font-family: "Chakra Petch", sans-serif;
}

.records {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 14px 14px;
  background: var(--panel-mask);
  backdrop-filter: blur(3px);
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: stretch;
}

.records-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 8px 12px;
}

.records h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 22px;
}

.records-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.records-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: var(--panel-mask);
  backdrop-filter: blur(3px);
  min-height: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead th {
  text-align: left;
  padding: 12px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9eb4d4;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbe8ff;
  font-size: 13px;
}

tbody td a {
  color: var(--brand);
  text-decoration: none;
}

tbody td a:hover {
  text-decoration: underline;
}

tbody tr:hover {
  background: rgba(var(--brand-rgb), 0.08);
}

.empty-row td {
  color: #8fa4c1;
}

@media (max-width: 1080px) {
  .shell {
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .content-wrap {
    grid-template-columns: 1fr;
  }

  .side-panel {
    grid-template-rows: auto auto;
  }
}

@media (max-width: 740px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .content-wrap,
  .records {
    padding: 14px;
  }

  .hero {
    padding: 22px 18px;
  }

  .hero h1 {
    font-size: clamp(28px, 11vw, 42px);
  }

  .token-title {
    font-size: 28px;
  }
}
