/* ================== 基础全局样式 ================== */
body {
  background:#ffffff;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: 'Saira', sans-serif;
  font-size: 15px;
}

/*.background {*/
/*  position: fixed;*/
/*  inset: 0;*/
/*  z-index: -1;*/
/*  background-size: cover;*/
/*}*/
/*.background {*/
/*      position: fixed;*/
/*      top: 0;*/
/*      left: 0;*/
/*      width: 100%;*/
/*      height: 100%;*/
      /*background: url('/public/bg1.jpg') no-repeat center center;*/
/*      background-size: cover;*/
/*      z-index: -1;*/
/*    }*/

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, #0b1f3a 0%, transparent 40%),
    linear-gradient(180deg, #040913 0%, #070c1f 100%);
}

.background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.background::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,15,0.85), rgba(5,5,15,0.95)),
    radial-gradient(circle at 20% 20%, rgba(0,246,255,0.12), transparent 40%);
  pointer-events: none;
}



/* ================== 主体布局 ================== */
.main {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  /*background: #ffffff;*/
  position: relative;
  z-index: 1;
}

.main img {
  width: 100%;
  border-radius: 10px;
}

/* ================== 顶部导航 ================== */
#nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(40,37,66,0.8);
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.pcolor {
  font-weight: bold;
  background: linear-gradient(90deg, #ffffff, #cccccc, #ffffff);
  -webkit-background-clip: text;
  color: transparent;
}

/* ================== staking 主容器 ================== */
.staking_container {
  width: 90%;
  max-width: 380px;
  margin: 20px auto;
  padding: 15px;
  /*background: #ffffff;*/
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
  border-radius: 10px;
  color: #000;
  text-align: center;
  box-sizing: border-box;
}

.staking_container a {
  color: #002fc9;
  text-decoration: underline;
}

/* ================== staking 信息块 ================== */
.staking {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  padding: 8px 0;
  border: 1px solid #eee;
  border-radius: 8px;
}

.staking-item,
.staking-item3 {
  text-align: center;
  color: #999;
}

.staking-item { width: 48%; }
.staking-item3 { width: 30%; }

.staking-item p,
.staking-item3 p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-size: 1em;
}

.staking-item p:first-child,
.staking-item3 p:first-child {
  font-size: 20px;
  color: #000;
  margin-bottom: 8px;
}

/* ================== 输入区 ================== */
.team-selection {
  margin: 20px 0;
  text-align: left;
}

.team-selection input {
  width: 100%;
  padding: 2px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 22px;
  font-weight: bold;
  box-sizing: border-box;
}

/* ================== 主按钮 ================== */
.c_btn {
  width: 100%;
  padding: 8px 18px;
  font-size: 16px;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(90deg, #ff7a33, #a835ff, #0066ff);
  transition: opacity 0.2s ease;
}

.c_btn:hover {
  opacity: 0.85;
}

/* ================== 弹窗（直推明细） ================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: #00e1ff;
  cursor: pointer;
}

/* ================== footer ================== */
.footer {
  padding: 8px;
  text-align: center;
  color: #cccccc;
}

/* ================== 文本基础 ================== */
p {
  padding: 0;
  margin: 0;
  font-size: 17px;
}

a {
  text-decoration: none;
  color: #fff;
}



/* ===== SweetAlert2 ===== */
.q_tip_color {
  color:#ffffff;
  background-color:rgba(0,0,0,0.9);
}

/* ===== 钱包地址显示 ===== */
#curent_addr {
  display: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: #2b2b3c;
  color: #00e1ff;
  font-size: 14px;
}

/* ===== 倒计时 ===== */
#countdown {
  font-size: 16px;
  color: #ff4d4f;
  font-weight: bold;
}



/* ================== 暗黑赛博主题 ================== */
:root {
  --cyber-blue: #00f6ff;
  --cyber-purple: #7f5cff;
  --cyber-bg: #05050a;
  --cyber-card: #0b0f1e;
  --cyber-glow: rgba(0,246,255,0.6);
}

body {
  background:
    radial-gradient(circle at 20% 10%, #0b1633, transparent 40%),
    radial-gradient(circle at 80% 80%, #1a0b33, transparent 40%),
    linear-gradient(180deg, #04040a, #070b1a);
  color: #dfefff;
}

/* 主容器 */
.staking_container {
  background: linear-gradient(180deg, #0a0f22, #060915);
  /*border: 1px solid rgba(0,246,255,0.25);*/
  /*box-shadow:*/
  /*  0 0 20px rgba(0,246,255,0.15),*/
  /*  inset 0 0 20px rgba(127,92,255,0.05);*/
  position: relative;
  overflow: hidden;
}

/* 电路线条装饰 */
.staking_container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0,
      transparent 18px,
      rgba(0,246,255,0.05) 20px
    );
  pointer-events: none;
}

/* 数据块 */
.staking {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,246,255,0.2);
}

/* 数字高亮 */
.staking-item p:first-child,
.staking-item3 p:first-child {
  color: var(--cyber-blue);
  text-shadow: 0 0 10px var(--cyber-glow);
}

/* 输入框 */
.team-selection input {
  background: #050914;
  border: 1px solid rgba(127,92,255,0.4);
  color: #00f6ff;
}

/* 主按钮霓虹 */
.c_btn {
  background: linear-gradient(90deg, #00f6ff, #7f5cff);
  box-shadow:
    0 0 10px rgba(0,246,255,0.6),
    0 0 25px rgba(127,92,255,0.4);
}

/* 顶部栏 */
#nav-bar {
  background: rgba(5,5,15,0.85);
  border-bottom: 1px solid rgba(0,246,255,0.2);
  backdrop-filter: blur(10px);
}

/* 标题居中 */
#nav-bar .pcolor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}



/*重要数值轻微呼吸闪烁*/
@keyframes breathe {
  0% { text-shadow: 0 0 6px rgba(0,246,255,0.4); }
  50% { text-shadow: 0 0 16px rgba(0,246,255,0.9); }
  100% { text-shadow: 0 0 6px rgba(0,246,255,0.4); }
}

.cyber-breathe {
  animation: breathe 2.5s infinite ease-in-out;
}







/* 弹窗科技感 */
.popup {
  background: linear-gradient(180deg, #0a1630, #060c1c);
  border: 1px solid rgba(0,225,255,0.3);
}





/* ================== 汉堡菜单 ================== */
#menu-btn {
  position: absolute;
  left: 15px;
  top: 14px;
  width: 25px;
  cursor: pointer;
}

#menu-btn span {
  display: block;
  height: 3px;
  background: #00e1ff;
  margin: 5px 0;
  border-radius: 2px;
}

/* 菜单面板 */
#menu-panel {
  position: fixed;
  top: 50px;
  left: -120px;
  width: 100px;
  background: #08162a;
  padding: 12px;
  transition: left 0.3s ease;
  z-index: 999;
}

#menu-panel a {
  display: block;
  padding: 8px 0;
  color: #00e1ff;
  border-bottom: 1px solid rgba(0,225,255,0.2);
}



/* ===== 节点挖矿按钮 ===== */
.miner-btn {
  background: transparent;
  border: 1px solid rgba(0,246,255,0.4);
  color: #00f6ff;
  padding: 6px 12px;
  margin: 3px;
  border-radius: 6px;
  cursor: pointer;
}

.miner-btn.active {
  background: linear-gradient(90deg, #00f6ff, #00f6ff);
  color: #000;
  box-shadow: 0 0 10px rgba(0,246,255,0.8);
}

/* 整个矿机卡片：纵向 */
.miner-item {
  display: flex;
  flex-direction: column;
}
.miner-item {
  padding-top: 0 !important;
}

/* 图片单独一行 */
.miner-img-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  padding: 0;
}

.miner-img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* 信息区：横向一行 */
.miner-info-row {
  display: flex;
  justify-content: space-between;
}

/* 单个信息块 */
.staking-item3 {
  flex: 1;
  text-align: center;
}

.miner-item .staking-item3 p:first-child {
  font-size: 14px;
}
.miner-item .staking-item3 p:nth-child(2) {
  font-size: 12px;
  color: #999;
}

.reward-num,
#totalReward {
  min-width: 90px;          /* 根据你最大位数调整 */
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* 彩色渐变高亮文字 */
.highlight-text {
    font-size: 36px;
    font-weight: bold;

    background: linear-gradient(
        120deg,
        #00f5ff,
        #3cffb0,
        #ffd700,
        #ff6ec7
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 6px rgba(0, 245, 255, 0.8),
        0 0 12px rgba(60, 255, 176, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4);
}


