/* 充值中心 - 移动端优先 */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --accent: #ff6b35;
  --success: #1ba87e;
  --danger: #e84c4c;
  --warning: #f59e0b;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f0f2f5;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #4f8df7 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #ffa86b 100%);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(180deg, #e8f0fe 0%, #f5f7fa 30%, #f5f7fa 100%);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }

/* ===== 顶部导航 ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.app-header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}
.app-header .menu-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.app-header .menu-btn:hover { background: rgba(255,255,255,0.15); }

/* ===== 主内容容器 ===== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 80px;
}

/* ===== 账号信息 ===== */
.account-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
  font-size: 13px;
}
.account-info .left { color: var(--text-secondary); }
.account-info .right a { color: var(--accent); font-weight: 500; }
.account-info .right a:hover { text-decoration: underline; }

/* ===== 账户卡片 ===== */
.account-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.account-card .info { flex: 1; min-width: 0; }
.account-card .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.account-card .balance-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.account-card .balance-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.account-card .balance-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
}
.account-card .balance-value small {
  font-size: 12px;
  font-weight: 500;
  margin-left: 2px;
}
.account-card .days-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #fff4ec;
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
}
.account-card .days-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.account-card .records-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.15s;
  white-space: nowrap;
}
.account-card .records-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.account-card .records-link .arrow { color: var(--text-light); }

/* ===== 平台 Tab ===== */
.platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.platform-tab {
  background: var(--bg-card);
  border: 0;
  padding: 14px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.platform-tab:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.platform-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}
.platform-tab.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== 区块标题 ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.section-title h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.section-title .right-link {
  font-size: 13px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ===== 快速充值 ===== */
.quick-recharge-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.quick-recharge-card .field {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.quick-recharge-card textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  background: #fafbfc;
  transition: all 0.15s;
  color: var(--text);
}
.quick-recharge-card textarea:focus {
  outline: 0;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.quick-recharge-card .char-count {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 11px;
  color: var(--text-light);
  pointer-events: none;
}
.quick-recharge-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.quick-recharge-card .hint {
  font-size: 12px;
  color: var(--text-light);
  flex: 1;
}

/* ===== 按钮 ===== */
.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  margin-top: 16px;
}
.btn-ghost {
  background: var(--primary-light);
  color: var(--primary);
}
.btn-ghost:hover { background: #d4e3fc; }
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 表单 ===== */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 4px 18px;
  box-shadow: var(--shadow);
}
.form-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.form-row:last-child { border-bottom: 0; }
.form-row .label {
  width: 80px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 2px;
}
.form-row .label .required {
  color: var(--danger);
  font-size: 14px;
}
.form-row .control {
  flex: 1;
  min-width: 0;
}
.form-row .control input,
.form-row .control select {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 14px;
  padding: 8px 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.form-row .control input::placeholder { color: var(--text-light); }
.form-row .control .picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
  color: var(--text-light);
  min-height: 36px;
}
.form-row .control .picker.has-value { color: var(--text); }
.form-row .control .picker .arrow { color: var(--text-light); font-size: 14px; }

/* ===== 套餐选择 ===== */
.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.plan-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px 12px 10px;
  border: 1px solid var(--border-light);
}
.plan-section-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.plan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.plan-row:first-of-type { margin-top: 0; }
.plan-ah-tag {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 6px 4px;
  line-height: 1.2;
}
.plan-ah-tag .num { color: var(--text); font-size: 14px; display: block; }
.plan-row-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.plan-card {
  background: #fafbfc;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.plan-card:hover {
  border-color: var(--primary-light);
  background: #fff;
  transform: translateY(-1px);
}
.plan-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.18);
}
.plan-card .plan-day-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.plan-card .plan-meta {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
  font-family: 'SF Mono', Consolas, monospace;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(31, 41, 55, 0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 90vw;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ===== 订单历史（v4.0.2 移动端重构：垂直堆叠防文本竖排/按钮挤出） ===== */
.order-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.order-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  /* 重要：限制宽度为 100%，让内部 word-break 真正生效 */
  max-width: 100%;
  box-sizing: border-box;
}
.order-item:last-child { border-bottom: 0; }
.order-item:hover { background: #fafbfc; }
/* 第 1 行：icon + 标题区（标题/状态/扣减天数 同行右侧） */
.order-item .order-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.order-item .icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.order-item.pending  .icon { background: #fef3c7; color: var(--warning); }
.order-item.processing .icon { background: #dbeafe; color: var(--primary); animation: pulse 1.5s infinite; }
.order-item.success  .icon { background: #d1fae5; color: var(--success); }
.order-item.failed   .icon { background: #fee2e2; color: var(--danger); }
.order-item .title-area {
  flex: 1;
  min-width: 0;  /* 允许 flex 子元素被压缩触发 word-break */
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-item .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.order-item .status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
}
.order-item .cost {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.order-item .status {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  display: inline-block;
}
.order-item .status.pending    { background: #fef3c7; color: var(--warning); }
.order-item .status.processing { background: #dbeafe; color: var(--primary); }
.order-item .status.success    { background: #d1fae5; color: var(--success); }
.order-item .status.failed     { background: #fee2e2; color: var(--danger); }
.order-item .badge-time,
.order-item .badge-queue {
  font-size: 11px;
  color: var(--warning);
}
/* 第 2 行：手机号/时间 */
.order-item .meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  white-space: normal;
  margin-bottom: 4px;
}
.order-item .meta .phone {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.3px;
}
.order-item .meta .dot { color: var(--text-light); margin: 0 2px; }
/* 错误提示 */
.order-item .error-hint {
  font-size: 11px;
  color: var(--accent);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 4px 0 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  word-break: break-all;
}
/* 第 3 行：操作按钮（充满一行，自动换行） */
.order-item .order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.order-item .order-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 10px;
}
/* 旧布局兼容（防止个别地方漏改） */
.order-item .body { flex: 1; min-width: 0; }
.order-item .right { text-align: right; flex-shrink: 0; }
.order-item .actions-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.empty-state .text { font-size: 14px; }

/* ===== 弹窗（城市选择等） ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 720px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.modal-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.modal-body {
  padding: 12px 20px 20px;
  overflow-y: auto;
  flex: 1;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.city-item {
  padding: 10px 4px;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  background: #f5f7fa;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.city-item:hover { background: var(--primary-light); }
.city-item.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.login-page::before, .login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.login-page::before {
  width: 360px; height: 360px;
  top: -120px; right: -120px;
}
.login-page::after {
  width: 280px; height: 280px;
  bottom: -80px; left: -80px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.login-card .logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}
.login-card .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-card h1 {
  font-size: 20px;
  text-align: center;
  margin: 0 0 4px;
  color: var(--text);
}
.login-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 24px;
}
.login-card .form-field {
  margin-bottom: 14px;
}
.login-card .form-field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.login-card .form-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fafbfc;
  transition: all 0.15s;
}
.login-card .form-field input:focus {
  outline: 0;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.login-card .login-btn {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
  transition: all 0.15s;
  font-family: inherit;
}
.login-card .login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4); }
.login-card .login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-card .demo-hint {
  margin-top: 18px;
  padding: 10px 12px;
  background: #fff4ec;
  border-radius: var(--radius);
  font-size: 12px;
  color: #92400e;
  line-height: 1.6;
}
.login-card .demo-hint b { color: var(--accent); }

/* ===== Loading ===== */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 确认弹窗 ===== */
.confirm-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.confirm-backdrop.show { display: flex; }
.confirm-card {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 340px;
  box-shadow: var(--shadow-lg); padding: 24px; animation: fadeIn 0.2s;
}
.confirm-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.confirm-body { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ===== Badge ===== */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
}
.badge-pending-count { background: #fef3c7; color: var(--warning); }

/* ===== 订单操作按钮 ===== */
.order-item .actions-col {
  display: flex; gap: 6px; flex-shrink: 0; align-items: center;
}
.btn-danger {
  background: var(--danger); color: #fff;
}
.btn-danger:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-warning {
  background: var(--warning); color: #fff;
}
.btn-warning:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-xs {
  padding: 4px 10px; font-size: 11px; border-radius: 8px;
}

/* ===== 待充值区域高亮 ===== */
.order-item .pending-alert {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--warning); margin-top: 2px;
}
.order-item .pending-alert::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warning); animation: pulse 1.5s infinite;
}

/* ===== 收回状态 ===== */
.order-item.recalling .icon { background: #fce4ec; color: #e91e63; }
.order-item.recalled .icon { background: #f3e5f5; color: #9c27b0; }
.status.cancelled { background: #f3f4f6; color: #6b7280; }
.status.recalling { background: #fce4ec; color: #e91e63; }
.status.recalled  { background: #f3e5f5; color: #9c27b0; }

/* 充值记录行 */
.log-item {
  display: flex; align-items: center; padding: 12px 16px; gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
.log-item:last-child { border-bottom: 0; }
.log-item .icon {
  width: 32px; height: 32px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.log-item .icon.up   { background: #d1fae5; color: var(--success); }
.log-item .icon.down { background: #fee2e2; color: var(--danger); }
.log-item .body { flex: 1; min-width: 0; }
.log-item .body .title { font-size: 13px; font-weight: 500; }
.log-item .body .time { font-size: 11px; color: var(--text-light); }
.log-item .right { font-weight: 600; font-size: 14px; flex-shrink: 0; }
.log-item .right .up { color: var(--success); }
.log-item .right .down { color: var(--danger); }

/* ===== 响应式 ===== */
@media (min-width: 720px) {
  body { background: linear-gradient(180deg, #e8f0fe 0%, #f5f7fa 30%, #f5f7fa 100%); }
  .container { padding: 24px 20px 100px; }
  .platform-tabs { gap: 14px; }
  .plan-row-cards { gap: 8px; }
  .plan-card { padding: 10px 6px; }
  .plan-card .plan-day-label { font-size: 14px; }
  .city-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ===== 极小屏适配 ===== */
@media (max-width: 360px) {
  .container { padding: 12px; }
  .plan-ah-tag { width: 44px; font-size: 11px; }
  .plan-card { padding: 6px 2px; }
  .plan-card .plan-day-label { font-size: 12px; }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
}
