﻿/* ===== 选号网 - 公共样式 ===== */
:root {
  --bg: #f5f6f8;
  --white: #ffffff;
  --text: #303133;
  --text-secondary: #606266;
  --text-muted: #909399;
  --border: #e4e7ed;
  --primary: #409eff;
  --primary-light: #66b1ff;
  --primary-dark: #3a8ee6;
  --success: #67c23a;
  --danger: #f56c6c;
  --warning: #e6a23c;
  --green-value: #2ecc71;
  --green-bg: #e8f8ef;
  --green-tag: #67c23a;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --header-h: 56px;
  --max-w: 1100px;
}

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

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

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

.nav-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Main ===== */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 20px 16px 28px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== 首页公告 ===== */
.shop-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.notice-label {
  color: var(--danger);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.notice-list {
  list-style: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
}

.notice-list li {
  padding-left: 0;
}

.notice-list .red {
  color: var(--danger);
  font-weight: 600;
}

.notice-warn {
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.notice-contact {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
}

.notice-contact .tg {
  color: var(--danger);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.notice-contact .tg:hover {
  text-decoration: underline;
}

/* ===== 分类网格 ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.section-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.category-item {
  background: #f0f2f5;
  border-radius: 6px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.category-item:hover {
  background: #e8f0fe;
}

.category-item.active {
  background: var(--primary);
  color: #fff;
}

.category-item .name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-item .count {
  font-size: 11px;
  opacity: 0.75;
}

.category-item.active .count {
  opacity: 0.9;
}

/* ===== 商品详情 ===== */
.product-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.product-img {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: 1;
  background: #fafafa;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img .img-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #42d392 0%, #64748b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img .img-placeholder::before {
  content: "";
  width: 70px;
  height: 70px;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(45deg);
}

.product-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.badge-success {
  background: var(--success);
  color: #fff;
}

.badge-primary {
  background: var(--primary);
  color: #fff;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}

.form-row label {
  flex-shrink: 0;
  width: 80px;
  text-align: right;
  color: var(--text-secondary);
  font-size: 13px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f7fa;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s;
}

.qty-control button:hover {
  background: #e4e7ed;
}

.qty-control input {
  width: 48px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  outline: none;
  color: var(--text);
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s;
  max-width: 360px;
}

.form-input:focus {
  border-color: var(--primary);
}

.form-tip {
  margin: 0 0 16px 90px;
  max-width: 360px;
  font-size: 13px;
  color: var(--danger);
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.1s;
  padding: 12px 24px;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn-order {
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
  margin-left: 90px;
  background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  height: 44px;
  font-size: 16px;
}

.btn-pay {
  width: 100%;
  background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  height: 48px;
  font-size: 16px;
  margin-top: 20px;
}

.btn-recharge {
  width: 100%;
  background: #3b82f6;
  color: #fff;
  height: 48px;
  font-size: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.intro-body {
  min-height: 40px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== 确认订单 ===== */
.confirm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.confirm-title svg {
  width: 22px;
  height: 22px;
}

.order-rows {
  max-width: 480px;
  margin: 0 auto;
}

.order-rows--page {
  max-width: none;
  margin: 0;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.order-rows--page .order-row {
  justify-content: flex-start;
  padding: 10px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #f0f2f5;
}

.order-rows--page .order-row:last-child {
  border-bottom: none;
}

.order-row .label {
  color: var(--text);
  flex-shrink: 0;
  min-width: 100px;
  text-align: right;
}

.order-rows--page .order-row .label {
  text-align: left;
  width: 120px;
  color: var(--text-secondary);
}

.order-row .value {
  color: var(--green-value);
  font-weight: 500;
  min-width: 160px;
}

.order-rows--page .order-row .value {
  min-width: 0;
}

.btn-pay--page {
  display: flex;
  max-width: 360px;
  margin: 20px auto 0;
}

.order-row .value-tag {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-tag);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 13px;
}

.pay-method-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.usdt-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #26a17b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.scan-tip {
  text-align: center;
  margin: 28px 0 16px;
  font-size: 14px;
  color: var(--text);
}

.qr-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
}

.qr-code {
  width: 200px;
  height: 200px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 2px;
  padding: 12px;
}

.qr-code span {
  background: #111;
  border-radius: 1px;
}

.qr-code span.off {
  background: transparent;
}

.qr-real {
  width: 200px;
  height: 200px;
  min-height: 200px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px;
  display: block;
  box-sizing: content-box;
  margin: 0 auto;
  overflow: hidden;
}

.qr-real > div {
  width: 200px !important;
  height: 200px !important;
}

.qr-real img,
.qr-real canvas {
  display: block !important;
  visibility: visible !important;
  width: 200px !important;
  height: 200px !important;
  max-width: 100%;
}

.qr-real table {
  display: table !important;
  margin: 0 auto;
}

/* ===== 支付双栏页 ===== */
.pay-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.pay-left,
.pay-right {
  min-width: 0;
}

.pay-left-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.pay-left .order-rows {
  max-width: 100%;
}

.pay-left .order-row {
  justify-content: flex-start;
  padding: 0 8px;
}

.pay-left .order-row .label {
  text-align: left;
  min-width: 110px;
}

.recharge-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 0 16px;
  color: var(--text);
}

.amount-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 0;
  background: #fff;
}

.amount-box .label-text {
  color: var(--text);
  font-size: 14px;
  flex-shrink: 0;
}

.amount-box .amount-input {
  width: 80px;
  border: none;
  border-bottom: 2px solid #333;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 2px 0;
}

.amount-box .currency {
  color: var(--text);
  font-size: 14px;
  flex-shrink: 0;
}

.wallet-hint {
  background: #f0f2f5;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 0;
}

.wallet-list {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.wallet-item:last-child {
  border-bottom: none;
}

.wallet-item:hover {
  background: #fafafa;
}

.wallet-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #c0c4cc;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  outline: none;
}

.wallet-item input[type="radio"]:checked {
  border-color: var(--primary);
}

.wallet-item input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.wallet-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.wallet-icon.okx { background: #000; }
.wallet-icon.bitkeep { background: linear-gradient(135deg, #00d4aa, #7b61ff); }
.wallet-icon.tp { background: #2980fe; }
.wallet-icon.imtoken { background: #1183fb; }
.wallet-icon.tronlink { background: #eb0029; }
.wallet-icon.trust { background: #3375bb; }
.wallet-icon.metamask { background: #e2761b; }
.wallet-icon.coinbase { background: #0052ff; }

.wallet-meta {
  flex: 1;
  min-width: 0;
}

.wallet-meta .w-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.wallet-meta .w-sub {
  font-size: 12px;
  color: #5b9bd5;
  margin-top: 2px;
}

.wallet-meta .w-sub.erc {
  color: #e74c3c;
}

.chain-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.chain-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.chain-btn.trc {
  background: #3b82f6;
}

.chain-btn.erc {
  background: #60a5fa;
}

.chain-btn.active {
  background: #1e293b;
}

.chain-btn:not(.active):hover {
  opacity: 0.85;
}

.notice-box {
  margin-top: 16px;
  background: #f0f2f5;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 独立充值页（窄屏卡片） */
.recharge-page {
  max-width: 460px;
  margin: 0 auto;
}

.recharge-main {
  max-width: 520px;
}

.page-recharge {
  background: var(--bg);
}

.recharge-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.recharge-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  border-radius: 6px;
}

.recharge-back:hover {
  background: #f5f7fa;
  color: var(--primary);
}

.recharge-page .recharge-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0 0 16px;
}

.recharge-page .recharge-title {
  border-bottom: none;
  margin: 0;
  padding: 16px;
  width: 100%;
  text-align: center;
}

.recharge-page .amount-box {
  margin: 16px;
  border-radius: 6px;
}

.recharge-page .wallet-hint {
  margin: 0;
}

.recharge-page .chain-btns,
.recharge-page .btn-recharge,
.recharge-page .notice-box {
  margin-left: 16px;
  margin-right: 16px;
}

/* 独立充值页：选中链为深色，未选中为亮蓝（与截图一致） */
.page-recharge .chain-btn.trc.active,
.page-recharge .chain-btn.erc.active {
  background: #1e293b;
}

.page-recharge .chain-btn:not(.active) {
  background: #3b82f6;
}

/* 充值页内容间距（通栏卡片内） */
.main > .card .amount-box {
  margin: 0 0 16px;
}

.main > .card > .wallet-hint {
  margin: 0;
  border-radius: 6px 6px 0 0;
}

.main > .card > .wallet-list {
  border-radius: 0 0 6px 6px;
  margin-bottom: 16px;
}

.main > .card > .chain-btns {
  margin-top: 0;
  margin-bottom: 4px;
}

.main > .card > .btn-recharge {
  display: flex;
  margin: 16px auto 0;
  max-width: 360px;
}

.main > .card > .notice-box {
  margin-top: 16px;
}

.main > .card > .wallet-status {
  margin-top: 12px;
}

.main > .card > .chain-btn.active,
.main > .card .chain-btns .chain-btn.active {
  background: #1e293b;
}

.main > .card .chain-btns .chain-btn:not(.active) {
  background: #3b82f6;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .main {
    padding: 12px;
  }

  .card {
    padding: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    flex-direction: column;
  }

  .product-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .form-row label {
    width: auto;
    text-align: left;
  }

  .form-tip {
    margin-left: 0;
    max-width: none;
  }

  .form-input {
    max-width: none;
  }

  .btn-order {
    margin-left: 0;
    max-width: none;
  }

  .pay-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .order-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .order-row .label {
    text-align: left;
    min-width: 90px;
  }

  .order-row .value {
    min-width: 0;
  }

  .qr-code {
    width: 180px;
    height: 180px;
  }

  .shop-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a span {
    font-size: 12px;
  }

  .logo span {
    font-size: 13px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-item {
    padding: 12px 6px;
  }

  .category-item .name {
    font-size: 12px;
  }

  .product-name {
    font-size: 16px;
  }

  .product-price {
    font-size: 20px;
  }
}

/* ===== 钱包授权状态 / Toast ===== */
.wallet-status {
  display: none;
  margin: 12px 16px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  background: #f4f4f5;
  color: var(--text-secondary);
  word-break: break-all;
}

.wallet-status.show {
  display: block;
}

.wallet-status.ok {
  background: #e8f8ef;
  color: #2d8f4e;
  border: 1px solid #b7ebc6;
}

.wallet-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -12px);
  z-index: 9999;
  max-width: 90vw;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(48, 49, 51, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.wallet-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wallet-toast--ok {
  background: rgba(45, 143, 78, 0.95);
}

.wallet-toast--error {
  background: rgba(245, 108, 108, 0.95);
}

.wallet-toast--warn {
  background: rgba(230, 162, 60, 0.95);
}

.wallet-toast--info {
  background: rgba(64, 158, 255, 0.95);
}

.btn-recharge:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== 收款地址 ===== */
.receive-box {
  display: none;
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: #f7fafc;
  border: 1px dashed #c0c4cc;
  border-radius: 6px;
}

.receive-box.show {
  display: block;
}

.receive-box.error {
  border-color: #f56c6c;
  background: #fff5f5;
}

.receive-box .receive-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.receive-box .receive-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.receive-box .receive-addr {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  line-height: 1.4;
}

.receive-box .btn-copy {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
}

.receive-box .btn-copy:hover {
  background: var(--primary);
  color: #fff;
}

.receive-box.confirm-page {
  margin: 16px auto 0;
  max-width: 480px;
}

/* ===== 多地址列表（可复制） ===== */
.addr-list-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin: -4px 0 14px;
}

.addr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.addr-list-loading,
.addr-list-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: #f7f8fa;
  border-radius: 6px;
}

.addr-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.addr-item:hover {
  border-color: #c6e2ff;
  background: #f5f9ff;
}

.addr-item-index {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.addr-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.addr-item-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  line-height: 1.45;
  font-family: Consolas, "Courier New", monospace;
}

.addr-copy-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.addr-copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.addr-copy-btn.copied {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.addr-copy-tip {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -10px);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(45, 143, 78, 0.95);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.addr-copy-tip.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confirm-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn-action {
  min-width: 200px;
  height: 44px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-action--ok {
  background: #67c23a;
  color: #fff;
}

.btn-action--ok:hover {
  opacity: 0.9;
}

.btn-action--primary {
  background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
}

.btn-action--primary:hover {
  opacity: 0.9;
}

.loading-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-mask[hidden] {
  display: none !important;
}

.loading-box {
  width: min(300px, 86vw);
  padding: 28px 20px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 3px solid #e4e7ed;
  border-top-color: #409eff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.loading-sub {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .addr-item-row {
    flex-direction: column;
    align-items: stretch;
  }

  .addr-copy-btn {
    width: 100%;
  }

  .btn-action {
    flex: 1;
    min-width: 120px;
  }
}

/* ===== 授权检测面板（二维码下方） ===== */
.auth-detect-wrap {
  max-width: 320px;
  margin: 14px auto 0;
}

.auth-panel {
  background: #f5f9ff;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}

.auth-panel--ok {
  background: #e8f8ef;
  border-color: #b7ebc6;
}

.auth-panel--warn {
  background: #fff8e6;
  border-color: #ffe1a6;
}

.auth-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.auth-panel-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  word-break: break-all;
  line-height: 1.5;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn-auth:hover {
  opacity: 0.92;
}

.btn-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-panel-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary);
}

/* ===== 自定义提示弹窗 ===== */
.site-alert-mask {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-alert-mask.show {
  opacity: 1;
  visibility: visible;
}

.site-alert {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 28px 24px 20px;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.site-alert-mask.show .site-alert {
  transform: translateY(0) scale(1);
}

.site-alert-msg {
  font-size: 15px;
  line-height: 1.6;
  color: #303133;
  margin-bottom: 22px;
  word-break: break-word;
}

.site-alert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.site-alert-btn:hover {
  opacity: 0.92;
}

.site-alert-btn:focus {
  outline: 2px solid rgba(64, 158, 255, 0.35);
  outline-offset: 2px;
}

