body {
  font-family: "Inter", Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  padding: 32px 24px;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 24px;
  text-align: center;
  border-bottom: 1px solid #e0e7ff;
  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: #eff6ff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}
.package.selected {
  border: 2px solid #2563eb;
  box-shadow: 0 4px 12px #2563eb22;
}
.package .coins {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}
.package .price {
  font-size: 1rem;
  color: #2563eb;
  font-weight: 500;
}
.user-id {
  margin-bottom: 18px;
}
.user-id label {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}
.user-id input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  margin-top: 4px;
  background: #f1f5f9;
}
.agreement {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 18px;
  text-align: left;
}
.agreement a {
  color: #2563eb;
  text-decoration: underline;
  margin-left: 4px;
}
.total {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 18px 0 18px 0;
  text-align: right;
}
.total-amount {
  color: #2563eb;
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 4px;
}
.pay-btn {
  width: 100%;
  padding: 14px 0;
  border-radius: 12px;
  background: linear-gradient(115deg, #2563eb, #60a5fa);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px #2563eb22;
  transition: background 0.2s;
}
.pay-btn:hover {
  background: #2563eb;
}
.success {
  display: none;
  text-align: center;
  color: #22c55e;
  font-size: 1.2rem;
  margin-top: 18px;
}
/* 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(37, 99, 235, 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: #2563eb;
}
.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: #2563eb;
  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, #60a5fa, #2563eb);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px #2563eb22;
  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: #2563eb;
  border-radius: 8px;
  padding: 4px 12px;
  margin-left: 8px;
}
.modal-channel:hover {
  background: #2563eb;
}
@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;
  }
}
