/* ============================================
   GPT 自动充值系统 · 用户充值页
   页面专属样式（基础组件见 theme.css）
   ============================================ */

.container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 9, 8, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #191204;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-deep));
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.26);
}
.brand-logo svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.6px; }

/* ---------- 区块 ---------- */
.container > .section { margin: 46px 0; animation: rise 0.55s ease both; }
.container > .section:nth-child(2) { animation-delay: 0.1s; }
.container > .section:nth-child(3) { animation-delay: 0.2s; }

.section-head { position: relative; margin-bottom: 20px; padding-left: 20px; }
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-deep));
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.5);
}
.section-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: 0.5px; }
.section-sub { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.section-tip { font-size: 14px; color: var(--text-muted); padding: 10px 0; }
.section-tip--error { color: var(--error); }

/* ---------- 充值表单 ---------- */
.card { padding: 30px; }
.form { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.field label { font-size: 14px; margin-bottom: 9px; letter-spacing: 0.2px; }
#code-input { font-family: var(--font-mono); letter-spacing: 0.6px; font-size: 15px; }
.field textarea { font-family: var(--font-mono); font-size: 13px; min-height: 128px; line-height: 1.6; resize: vertical; }
.form .btn { padding: 14px 22px; font-size: 15px; }

/* ---------- 状态反馈 ---------- */
.feedback {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  animation: pop 0.35s ease both;
}
.feedback-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.feedback-icon svg { width: 21px; height: 21px; }
.feedback-body { min-width: 0; }
.feedback-title { font-size: 15px; font-weight: 700; }
.feedback-detail { margin-top: 5px; font-size: 13px; color: var(--text-muted); word-break: break-all; }
.feedback--success { border-color: rgba(124, 212, 160, 0.3); background: rgba(124, 212, 160, 0.07); }
.feedback--success .feedback-icon { color: var(--success); background: rgba(124, 212, 160, 0.14); box-shadow: 0 0 0 4px rgba(124, 212, 160, 0.06); }
.feedback--error { border-color: rgba(232, 131, 107, 0.3); background: rgba(232, 131, 107, 0.07); }
.feedback--error .feedback-icon { color: var(--error); background: rgba(232, 131, 107, 0.14); box-shadow: 0 0 0 4px rgba(232, 131, 107, 0.06); }
.feedback--loading .feedback-icon { color: var(--primary); background: rgba(217, 164, 65, 0.14); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.06); }
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(217, 164, 65, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: auto;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .container > .section { margin: 32px 0; }
  .card { padding: 20px 18px; }
  .plan-card { padding: 22px 16px; }
  .navbar-inner { height: 58px; }
  .brand-name { font-size: 17px; }
  .section-head h2 { font-size: 20px; }
}
