* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.header {
  padding: 48px 24px 24px;
  text-align: center;
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: #999;
}

.main {
  flex: 1;
  padding: 0 24px 24px;
}

.hidden {
  display: none !important;
}

.loading {
  text-align: center;
  padding: 60px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e8e8e8;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.currency {
  font-size: 32px;
  font-weight: 500;
  color: #1a1a1a;
  margin-right: 4px;
}

.amount-input {
  border: none;
  outline: none;
  font-size: 48px;
  font-weight: 600;
  width: 240px;
  text-align: left;
  color: #1a1a1a;
  background: transparent;
}

.amount-input::placeholder {
  color: #ddd;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: #07c160;
}

.pay-btn {
  width: 100%;
  padding: 14px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.pay-btn:disabled {
  background: #b2e6c5;
  cursor: not-allowed;
}

.pay-btn:not(:disabled):active {
  background: #06ad56;
}

.secondary-btn {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #07c160;
  border: 1px solid #07c160;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 16px;
}

.result {
  text-align: center;
  padding: 48px 0;
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.result-icon.success {
  background: #e8f8ef;
  color: #07c160;
}

.result h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.result-amount {
  font-size: 36px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.result-no {
  font-size: 13px;
  color: #999;
}

.error {
  text-align: center;
  padding: 48px 0;
}

.error p {
  color: #fa5151;
  margin-bottom: 16px;
  font-size: 15px;
}

.footer {
  padding: 24px;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: #ccc;
}
