/* ===== 余额套餐专属样式（自 buy/prepaid-package.html 内联 style 迁出 · 2026-09-28） ===== */
.balance-notice {
  background: #f0f7ff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2468f2;
}
.balance-notice img { width: 18px; height: 18px; flex: none; }

.balance-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #354052;
  margin-bottom: 16px;
}

/* 充值卡片 */
.balance-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.balance-card {
  background: #fff;
  border: 2px solid #e8ecf4;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.balance-card:hover { border-color: #c5d6f6; }
.balance-card.is-on {
  border-color: #2468f2;
  box-shadow: 0 0 0 3px rgba(36,104,242,.08);
}
.balance-card-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff7a45;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 0 10px 0 10px;
  line-height: 1;
}
.balance-card-price {
  font-size: 28px;
  font-weight: 700;
  color: #354052;
  display: block;
  margin-top: 10px;
  line-height: 1;
}
.balance-card-price small { font-size: 16px; font-weight: 400; margin-right: 2px; }
.balance-card-real {
  display: inline-block;
  background: #f0f5ff;
  color: #2468f2;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 14px;
}
.balance-card.is-on .balance-card-real {
  background: linear-gradient(90deg, #2468f2 0%, #29abfe 100%);
  color: #fff;
}
.balance-card-check {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #2468f2;
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.balance-card.is-on .balance-card-check { display: flex; }

.balance-card--more .balance-card-price { font-size: 20px; color: #5e6d82; margin-top: 16px; }
.balance-card--more .balance-card-real { background: #f5f8fe; color: #5e6d82; }

/* 产品特性 */
.balance-features {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed #e8ecf4;
}
.balance-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.balance-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5e6d82;
}
.balance-feature-item svg {
  width: 16px;
  height: 16px;
  color: #2468f2;
  flex: none;
}

/* 右侧IP价格 */
.balance-fee { border-top: none !important; margin-top: 0 !important; }
.balance-fee-title {
  font-size: 18px;
  font-weight: 700;
  color: #354052;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f2f7;
}
.balance-price-group { margin-bottom: 20px; }
.balance-price-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #354052;
  margin-bottom: 12px;
}
.balance-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.balance-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #5e6d82;
  line-height: 1.8;
}
.balance-price-row b { color: #2468f2; font-weight: 600; }
.balance-price-calc {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e8ecf4;
}
.balance-price-calc svg { width: 22px; height: 22px; color: #acb4bf; flex: none; }
.balance-price-calc span { flex: 1; font-size: 14px; color: #354052; }
.balance-price-calc button {
  background: #f0f5ff;
  color: #2468f2;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.balance-price-calc button:hover { background: #dbe7fd; }

/* IP计算器弹窗 */
.ip-calc-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.ip-calc-modal[hidden] { display: none; }
.ip-calc-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ip-calc-modal-card { position: relative; background: #fff; border-radius: 16px; width: 560px; max-width: 92vw; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.ip-calc-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: transparent; color: #999; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all .2s; }
.ip-calc-modal-close:hover { background: #f5f5f5; color: #666; }
.ip-calc-title { font-size: 20px; font-weight: 700; color: #354052; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.ip-calc-title svg { width: 24px; height: 24px; color: #2468f2; flex: none; }
.ip-calc-input-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.ip-calc-input-wrap label { font-size: 14px; color: #5e6d82; font-weight: 600; white-space: nowrap; }
.ip-calc-input-wrap input, .ip-calc-input-wrap select { flex: 1; border: 1px solid #e8ecf4; border-radius: 8px; padding: 10px 14px; font-size: 16px; color: #354052; outline: none; transition: border-color .2s; background: #fff; }
.ip-calc-input-wrap input:focus, .ip-calc-input-wrap select:focus { border-color: #2468f2; }
.ip-calc-input-wrap select { cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235e6d82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1.6 2 6 6.2 10.4 2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ip-calc-input-wrap .unit { font-size: 14px; color: #5e6d82; }
.ip-calc-result-title { font-size: 14px; font-weight: 600; color: #354052; margin-bottom: 12px; }
.ip-calc-table { width: 100%; border-collapse: collapse; }
.ip-calc-table th, .ip-calc-table td { padding: 12px 10px; text-align: center; font-size: 13px; }
.ip-calc-table th { background: #f5f8fe; color: #5e6d82; font-weight: 600; border-bottom: 1px solid #e8ecf4; }
.ip-calc-table td { color: #354052; border-bottom: 1px solid #f0f2f7; }
.ip-calc-table td.price { color: #5e6d82; }
.ip-calc-table td.price b { color: #2468f2; font-weight: 600; }
.ip-calc-table td.count { color: #ff7a45; font-weight: 700; font-size: 15px; }
.ip-calc-empty { text-align: center; color: #acb4bf; padding: 40px 20px; font-size: 14px; }
.ip-calc-empty.hidden { display: none; }
.ip-calc-limit { background: #fff7e6; border: 1px solid #ffd591; color: #d48806; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ip-calc-limit::before { content: "⚠"; font-size: 14px; }
.ip-calc-limit.hidden { display: none; }
.ip-calc-bonus { background: #f0f7ff; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5e6d82; }
.ip-calc-bonus strong { color: #2468f2; font-weight: 700; }
.ip-calc-bonus .tag { background: #ff7a45; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; line-height: 1; }

@media (max-width: 768px) {
  .balance-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .balance-card { padding: 16px 8px; }
  .balance-card-price { font-size: 22px; }
  .balance-features-grid { grid-template-columns: 1fr; }
  .ip-calc-modal-card { padding: 24px 20px; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; max-height: 80vh; position: absolute; bottom: 0; }
  .ip-calc-table th, .ip-calc-table td { padding: 10px 6px; font-size: 12px; }
}
