body {
  font-family: "Inter", Arial, sans-serif;
  background: #fff8ec;
  color: #482818;
  margin: 0;
  padding: 0;
}
.back-link {
  display: inline-block;
  margin: 8px 0 12px;
  color: #9b360c;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover,
.recharge-footer a:hover {
  text-decoration: underline;
}
.container {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(160, 80, 26, 0.08);
  padding: 32px 24px;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #b84b18;
  margin-bottom: 24px;
  text-align: center;
  border-bottom: 1px solid #f3dfc1;
  padding-bottom: 20px;
}
.package-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff2db;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #f5d5a1;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}

.package:hover:not(.selected):not(:disabled) {
  color: #b84b18;
  border-color: color-mix(in srgb, #b84b18 72%, transparent);
  box-shadow: 0 0 0 5px
    color-mix(in srgb, #b84b18 10%, transparent);
  transform: translateY(-1px);
}

.package.selected {
  border: 2px solid #b84b18;
  box-shadow: 0 4px 12px #b84b1822;
}
.package .coins {
  font-size: 1.1rem;
  font-weight: 600;
  color: #482818;
}
.package .price {
  font-size: 1rem;
  color: #b84b18;
  font-weight: 500;
}
.user-id {
  margin-bottom: 18px;
}
.user-id label {
  font-size: 1rem;
  color: #65422f;
  margin-bottom: 6px;
  display: block;
}
.user-id input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5c9a2;
  font-size: 1rem;
  margin-top: 4px;
  background: #fffaf0;
}
.user-id input:focus-visible,
.package:focus-visible,
.pay-btn:focus-visible {
  outline: 3px solid #f39434;
  outline-offset: 2px;
}
.agreement {
  font-size: 0.95rem;
  color: #725747;
  margin-bottom: 18px;
  text-align: left;
}
.agreement a {
  color: #b84b18;
  text-decoration: underline;
  margin-left: 4px;
}
.total {
  font-size: 1.1rem;
  font-weight: 600;
  color: #482818;
  margin: 18px 0 18px 0;
  text-align: right;
}
.total-amount {
  color: #b84b18;
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 4px;
}
.pay-btn {
  display: flex;
  justify-content: center;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  border-radius: 12px;
  background: linear-gradient(115deg, #b84b18,#f39434);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px #b84b1822;
  /* transition: background 0.2s; */
}
.pay-btn:hover:not(:disabled) {
  box-shadow: 0 10px 30px
    color-mix(in srgb, #b84b18 42%, transparent);
  transform: translateY(-1px);
}

.pay-btn:active:not(:disabled) {
  box-shadow: 0 4px 14px
    color-mix(in srgb, #b84b18 28%, transparent);
  transform: translateY(0);
}

.pay-btn:disabled {
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.45;
}

.success {
  display: none;
  text-align: center;
  color: #22c55e;
  font-size: 1.2rem;
  margin-top: 18px;
}
.checkout-notice {
  margin: 13px 0 0;
  color: #725747;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}
.checkout-notice a {
  color: #9b360c;
}
.recharge-footer {
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px solid #f3dfc1;
  color: #725747;
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}
.recharge-footer strong {
  color: #482818;
}
.recharge-footer a {
  color: #9b360c;
}
/* Drawer相关样式已拆分至drawer.css */
.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  z-index: 9999;
  display: none;
}
.modal-show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(160, 80, 26, 0.12);
  padding: 32px 24px 24px 24px;
  min-width: 320px;
  max-width: 90vw;
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #b84b18;
}
.modal-coin-img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.modal-subtitle {
  font-size: 1rem;
  color: #b84b18;
  margin-bottom: 18px;
  text-align: center;
}
.modal-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}
.modal-channel {
  width: 100%;
  padding: 12px 0;
  border-radius: 10px;
  background: linear-gradient(115deg, #f6a645, #b84b18);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px #b84b1822;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.modal-channel-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: inline-block;
}
.modal-channel-amount {
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: #b84b18;
  border-radius: 8px;
  padding: 4px 12px;
  margin-left: 8px;
}
.modal-channel:hover {
  background: #b84b18;
}
@media (max-width: 600px) {
  body {
    padding: 0 12px;
  }
  .container {
    max-width: 98vw;
    margin: 16px auto;
    border-radius: 12px;
    padding: 16px 12px;
  }
  h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }
  .package-list {
    gap: 8px;
    margin-bottom: 12px;
  }
  .package {
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .package .coins {
    font-size: 0.95rem;
  }
  .package .price {
    font-size: 0.9rem;
  }
  .user-id label {
    font-size: 0.9rem;
  }
  .user-id input {
    font-size: 0.95rem;
    padding: 7px 8px;
    border-radius: 6px;
  }
  .agreement {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  .total {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  .pay-btn {
    font-size: 1rem;
    padding: 10px 0;
    border-radius: 8px;
  }
  .success {
    font-size: 1rem;
    margin-top: 10px;
  }
  .modal-content {
    min-width: 0;
    width: 98vw;
    padding: 18px 8px 24px 8px;
  }
  .modal-title {
    font-size: 1rem;
  }
  .modal-channel {
    font-size: 1rem;
    padding: 10px 0;
  }
  .modal-channel-img {
    width: 24px;
    height: 24px;
  }
  .modal-channel-amount {
    font-size: 0.95rem;
    padding: 2px 8px;
  }
}
@media (min-width: 600px) {
  .container {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 24px;
    padding: 10px 24px 32px;
    overflow: visible;
  }
  .package-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .package {
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 150px;
    padding: 18px 10px;
  }
}
