/* 页面基础 */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background-color: #0f0f10;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

h1 {
  font-size: 2.4em;
  font-weight: 600;
  margin-bottom: 10px;
}

.sub {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 20px;
}

/* 主卡片容器 */
.card {
  background-color: #1c1c1f;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 模式切换按钮 */
.mode-switch-inside {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-btn {
  padding: 8px 18px;
  border-radius: 8px;
  background-color: #2a2b2e;
  border: 1px solid #444;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.mode-btn.active {
  background-color: #00c8a8;
  color: #000;
  font-weight: bold;
}

/* 按钮网格 */
.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn {
  width: 100px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #2a2b2e;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #444;
  transition: 0.2s;
  user-select: none;
}

.btn.active {
  background-color: #00c8a8;
  color: #000;
  font-weight: bold;
}

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

/* 价格与按钮 */
.price-box {
  font-size: 15px;
  margin-bottom: 20px;
}

.buy-btn {
  background-color: #00c8a8;
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
  border: none;
  width: 100%;
}

.buy-btn:hover {
  background-color: #00e3c4;
}

/* 状态栏 */
.status {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}

.energy-info {
  font-size: 14px;
  color: #ccc;
  margin-top: 10px;
}

.green-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #00c853;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* 支付弹窗 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #121212;
  color: #fff;
  border-radius: 12px;
  width: 300px;
  padding: 20px;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.qr-img {
  width: 200px;
  height: 200px;
  margin: 10px auto;
}

.wallet-address {
  font-size: 14px;
  word-break: break-all;
  margin-top: 10px;
}

.copy-btn {
  background-color: #00c8a8;
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: #00e3c4;
}

.summary {
  margin-top: 12px;
  font-size: 14px;
  color: #ccc;
}

.warning-text {
  font-size: 13px;
  color: #ff7777;
  margin-top: 6px;
}

/* FAQ 区块 —— 与 .card 样式保持一致 */
.faq-section {
  background-color: #1c1c1f;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
  width: 100%;
  max-width: 480px;
}

.faq-section h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

.faq-item {
  background: #2a2b2e;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #444;
}

.faq-item summary {
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '▼';
  position: absolute;
  right: 0; top: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '▲';
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
}

/* 使用指南 样式 */
.guide {
  background-color: #1c1c1f;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
  width: 100%;
  max-width: 480px;
}

.guide h2 {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.guide p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 12px;
}

.guide a {
  color: #00c8a8;
  text-decoration: none;
}

.guide a:hover {
  text-decoration: underline;
}

/* 能量介绍 样式 */
.energy-intro {
  background-color: #1c1c1f;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
  width: 100%;
  max-width: 480px;
}

.energy-intro h2 {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.energy-intro p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 16px;
}

.energy-intro p strong {
  color: #00c8a8;
}

/* —— TRX 自动兑换 样式 —— */
.trx-exchange {
  background-color: #1c1c1f;
  border-radius: 16px;
  padding: 30px;
  margin: 20px 0;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.trx-exchange h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

.trx-exchange .exchange-rate {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}
.trx-exchange .exchange-rate strong {
  color: #fff;
}

.trx-exchange .exchange-box {
  background-color: #2a2b2e;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.trx-exchange .exchange-labels {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 13px;
  margin-bottom: 8px;
}
.trx-exchange .exchange-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trx-exchange .exchange-content span {
  color: #fff;
  word-break: break-all;
  flex: 1;
}
.trx-exchange .exchange-content .copy-btn {
  margin-left: 12px;
}

.trx-exchange .exchange-desc {
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
}
