/* sui-bike-base — 全站基础样式，勿与 exchange.css 混淆 */
@font-face {
  font-family: din;
  src: local("DIN Alternate"), local("Arial");
  font-weight: 600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: Avenir, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #040e1c;
  color: #fff;
  font-size: 14px;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(50px + env(safe-area-inset-bottom));
  background: #040e1c;
}

.layer {
  padding: 0 15px 10px;
  background: #040e1c;
}

.home_page {
  text-align: center;
  background: #040e1c;
}

.dinF {
  font-family: din, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-space-between {
  justify-content: space-between;
}

.faj_c {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
/* Hero 动态视频区 — 对齐官网 bg_video */
/* 顶栏 — 对齐官网 .header */
.home_page .header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 9;
  width: 100vw;
  max-width: 750px;
  padding: 16px 14px;
  box-sizing: border-box;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transform: translateX(-50%);
}

.home_page .header::after {
  content: " ";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #1c2632;
}

.home_page .header .address {
  padding: 3px 15px 3px 3px;
  border-radius: 13px;
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  margin-right: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.home_page .header .address img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  flex-shrink: 0;
  display: block;
}

.home_page .header .radio {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  padding: 2px;
  margin-left: 14px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.home_page .header .radio img {
  width: 22px;
  height: 22px;
  display: block;
}

.home_page .bg_video.hero {
  position: relative;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-right: -15px;
  height: auto;
  min-height: 0;
  padding-top: 160px;
  padding-bottom: 12px;
  margin-bottom: 0;
  overflow: visible;
  box-sizing: border-box;
  background: #040e1c;
}

/* 视频仅在中部区域，两侧与卡下间隙为纯黑底 #040e1c */
.home_page .bg_video__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  background: #040e1c;
}

.home_page .bg_video .fullscreen-video,
.home_page .bg_video .hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  transform: scale(1.06);
  transform-origin: center top;
  filter: brightness(1.05) saturate(1.14) contrast(1.02);
  display: block;
}

.home_page .bg_video__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 14, 28, 0.12);
  pointer-events: none;
}

/* 底部才压暗；挖矿卡区域保持透亮，毛玻璃才能映出动态背景 */
.home_page .bg_video__media::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 38%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 42%,
    rgba(4, 14, 28, 0.22) 68%,
    #040e1c 100%
  );
  pointer-events: none;
}

/* 挖矿卡与 Liquidity 之间：原版纯黑条 */
.home_page__spacer {
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-right: -15px;
  height: 12px;
  background: #040e1c;
  flex-shrink: 0;
}

.hero__title {
  position: relative;
  z-index: 2;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero__subtitle {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  width: 85%;
  margin: 0 auto 4px;
  padding: 0;
  line-height: 1.45;
}

/* 挖矿卡叠在视频上 — 动态毛玻璃随背景变色 */
.home_page .ht_box {
  position: relative;
  z-index: 2;
  font-family: "PingFang SC", Avenir, sans-serif;
  padding: 0 15px;
  text-align: center;
}

.home_page .ht_box .output_box {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 235px;
  height: auto;
  margin-top: 60px;
  padding: 18px 20px 20px;
  box-sizing: border-box;
  border-radius: 20px;
  text-align: left;
  background-color: hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(80px) saturate(1.4);
  -webkit-backdrop-filter: blur(80px) saturate(1.4);
  overflow: visible;
}

.home_page .output_box__head {
  margin-bottom: 15px;
}

.home_page .output_box__brand {
  display: flex;
  align-items: center;
}

.home_page .output_box__brand img {
  height: 20px;
  width: auto;
  display: block;
}

.home_page .output_box__take {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.home_page .output_box__balances {
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
}

.home_page .output_box__sui {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.home_page .output_box__earn {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.info-tip-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  line-height: 1;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
}

.home_page .ht_box .output_box .energy_box {
  padding: 0;
  width: 100%;
  background: transparent;
  border-radius: 0;
  margin-top: 0;
  border: none;
  gap: 10px;
}

.home_page .ht_box .output_box .energy_box .energy {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 12px 10px 6px;
}

.home_page .energy-divider {
  display: none;
}

.home_page .ht_box .output_box .energy_box .energy {
  flex: 1;
  min-width: 0;
}

.home_page .ht_box .output_box .energy_box .energy .icon_box {
  width: 42px;
  height: 42px;
  background-color: hsla(0, 0%, 100%, 0.102);
  border-radius: 16px;
  margin-right: 10px;
  flex-shrink: 0;
}

.home_page .ht_box .output_box .energy_box .energy .icon_box img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home_page .energy-divider {
  width: 1px;
  align-self: stretch;
  margin: 8px 6px;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.home_page .ht_box .output_box .energy_box .energy .info_sub {
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.home_page .ht_box .output_box .energy_box .energy .info_sub .name {
  font-size: 12px;
  margin-right: 5px;
  font-weight: 400;
  text-transform: lowercase;
}

.home_page .ht_box .output_box .energy_box .energy .info_sub .info-tip {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.home_page .info_sub__val {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.home_page .ht_box .output_box .tool_box {
  margin-top: 22px;
  gap: 0;
}

.home_page .ht_box .output_box .tool_box .van-btn {
  flex: 1;
  max-width: calc(50% - 8px);
  height: 44px;
  border: none;
  border-radius: 22px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
}

.home_page .ht_box .output_box .tool_box .van-btn + .van-btn {
  margin-left: 15px;
}

.home_page .van-btn--primary {
  background-color: rgb(77, 162, 255);
  color: #fff;
}

.home_page .van-btn:not(.van-btn--primary) {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sys-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
}

.sys-modal[hidden] {
  display: none !important;
}

.sys-modal__box {
  width: calc(100% - 48px);
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px 16px;
  text-align: center;
}

.sys-modal__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #323233;
}

.sys-modal__text {
  margin: 0 0 20px;
  font-size: 14px;
  color: #646566;
  line-height: 1.5;
}

.sys-modal__btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 22px;
  background: #4da2ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Liquidity node — 官网 node_box + nodeBg.png */
.home_page .node_box {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 319px;
  border: 1px solid #202c3a;
  border-radius: 20px;
  background: #101c2a;
  margin-bottom: 60px;
  margin-top: 0;
  text-align: left;
  overflow: visible;
}

.home_page .node_box .number {
  padding: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

.home_page .node_box .count_box {
  background: url("../assets/static/nodeBg.png") no-repeat;
  background-size: 100% 218px;
  width: 100%;
  padding: 4px 14px 14px;
  box-sizing: border-box;
}

.home_page .node_box .count_box .title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #fff;
  padding-top: 8px;
}

.home_page .node_box .count_box .count_item {
  padding: 4px 20px 4px 4px;
  width: 100%;
  height: 50px;
  background: hsla(0, 0%, 100%, 0.102);
  border-radius: 20px;
  margin-bottom: 14px;
  font-size: 14px;
}

.home_page .node_box .count_box .count_item:last-child {
  margin-bottom: 0;
}

.home_page .node_box .count_box .count_item .icon_box {
  width: 42px;
  height: 42px;
  background-color: hsla(0, 0%, 100%, 0.102);
  border-radius: 16px;
  margin-right: 10px;
  flex-shrink: 0;
}

.home_page .node_box .count_box .count_item .icon_box img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home_page .node_box .count_box .titNms {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* Sections */
.section-block {
  margin-top: 32px;
  text-align: center;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0 8px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  padding: 0 12px;
  margin-bottom: 20px;
}

#epochChart {
  width: 100% !important;
  height: 260px !important;
}

.chart-card {
  background: rgba(8, 16, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 16px 28px;
  margin-top: 8px;
  position: relative;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  text-align: left;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
}

.legend-item::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

.legend-item--blue::before {
  background: #3b82f6;
}

.legend-item--orange::before {
  background: #f97316;
}

.chart-axis-label--x {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
}

.stat-card__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card__value {
  font-size: 26px;
  margin-top: 10px;
  background: linear-gradient(180deg, #fff 30%, #7eb8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features */
.feature-list {
  margin-top: 24px;
}

.feature-card {
  margin-bottom: 28px;
  text-align: left;
}

.feature-video {
  border-radius: 12px;
  overflow: hidden;
  background: #0a1628;
  margin-bottom: 16px;
}

.feature-video__media {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: top;
}

.feature-video__media::-webkit-media-controls {
  display: none !important;
}

.video-placeholder {
  height: 200px;
  background:
    linear-gradient(135deg, #0d2847 0%, #1a0a3e 50%, #0a2040 100%),
    url("../assets/static/h6.png") center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder--alt {
  background:
    linear-gradient(135deg, #102a50 0%, #2a1050 100%),
    url("../assets/static/h4.png") center/cover;
}

.video-placeholder--future {
  background:
    linear-gradient(135deg, #0a3050 0%, #401050 100%),
    url("../assets/static/h5.png") center/cover;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  position: relative;
}

.play-btn::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  border: 10px solid transparent;
  border-left: 14px solid #fff;
}

.video-controls {
  display: none;
}

.progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.progress__bar {
  width: 0;
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  text-align: center;
  padding: 0 8px;
}

/* Contact */
.contact-block {
  margin-top: 32px;
  text-align: center;
  padding-bottom: 20px;
}

.contact-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(180deg, #0084ff, #005efd);
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-size: 15px;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  padding: 24px 0 16px;
}

/* Tab bar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  height: calc(50px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(4, 14, 28, 0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  padding: 6px 20px;
}

.tabbar-item img {
  width: 24px;
  height: 24px;
}

.tabbar-item.active {
  color: #3c9cff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
  color: #333;
  text-align: center;
}

.modal__title {
  font-size: 17px;
  font-weight: 600;
  padding: 24px 20px 8px;
  color: #000;
}

.modal__desc {
  font-size: 14px;
  color: #888;
  padding: 0 20px 20px;
  line-height: 1.5;
}

.modal__actions {
  display: flex;
  border-top: 1px solid #eee;
}

.modal__btn {
  flex: 1;
  border: none;
  background: #fff;
  padding: 16px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  font-family: inherit;
}

.modal__btn--primary {
  color: #0084ff;
  border-left: 1px solid #eee;
}

.modal__btn:hover {
  background: #f7f9fd;
}

@media (min-width: 751px) {
  body {
    background: #020810;
  }
  .app {
    box-shadow: 0 0 60px rgba(0, 100, 255, 0.08);
  }
}
