:root {
  --primary: #6236f5;
  --primary-dark: #4021b8;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e8eaf2;
  --soft: #f7f8fc;
  --success: #20b982;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(98, 54, 245, .08), transparent 25rem),
    radial-gradient(circle at 85% 20%, rgba(32, 185, 130, .08), transparent 18rem),
    #f4f6fb;
}

a {
  color: inherit;
  text-decoration: none;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.phone {
  width: min(390px, 100%);
  min-height: 812px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 34px;
  box-shadow: 0 26px 80px rgba(31, 41, 55, .14);
}

.status {
  height: 34px;
  padding: 12px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.signal {
  display: flex;
  gap: 4px;
  align-items: center;
  color: #0f172a;
}

.topbar {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  background: var(--primary);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111827;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.content {
  padding: 8px 18px 92px;
}

.page-title {
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(15, 23, 42, .98), rgba(46, 28, 121, .9)),
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.25), transparent 10rem);
  box-shadow: 0 16px 30px rgba(57, 34, 150, .22);
}

.gpu-visual {
  height: 142px;
  margin-bottom: 14px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 50%, #1b2458 0 16px, #050712 17px 33px, #28356f 34px 36px, transparent 37px),
    radial-gradient(circle at 68% 50%, #1b2458 0 16px, #050712 17px 33px, #28356f 34px 36px, transparent 37px),
    linear-gradient(145deg, #111827, #050712 55%, #2339a8);
}

.gpu-visual::before {
  content: "";
  position: absolute;
  inset: 38px 24px;
  transform: skewX(-15deg);
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.stat b {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.primary-btn,
.outline-btn,
.mini-btn {
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: default;
}

.primary-btn {
  width: 100%;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 10px 20px rgba(98, 54, 245, .26);
}

.outline-btn {
  height: 38px;
  padding: 0 14px;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(98, 54, 245, .28);
}

.mini-btn {
  height: 30px;
  padding: 0 10px;
  color: var(--primary);
  background: #f2efff;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.shortcut {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 12px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
}

.shortcut i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: #f2efff;
  font-style: normal;
}

.section-title {
  margin: 22px 0 12px;
  font-size: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .04);
}

.gpu-card,
.list-card,
.bill-row,
.wallet-row,
.model-row,
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.gpu-thumb {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 52%, #334155 0 10px, #020617 11px 24px, #4f46e5 25px 27px, transparent 28px),
    radial-gradient(circle at 70% 52%, #334155 0 10px, #020617 11px 24px, #4f46e5 25px 27px, transparent 28px),
    linear-gradient(145deg, #020617, #111827 52%, #283593);
}

.grow {
  flex: 1;
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-title {
  font-weight: 800;
  font-size: 15px;
}

.meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.price {
  margin-top: 8px;
  color: #1f2937;
  font-weight: 800;
}

.price em {
  color: var(--primary);
  font-style: normal;
}

.toolbar,
.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.search {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #374151;
  background: #fff;
  font-size: 12px;
}

.tabs {
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 0 4px 10px;
  color: var(--muted);
  font-size: 13px;
}

.tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 800;
}

.field {
  margin-top: 13px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.control {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #374151;
  font-size: 13px;
}

.stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  text-align: center;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--success);
  background: #dcfce7;
  font-size: 12px;
  font-weight: 800;
}

.badge.gray {
  color: #64748b;
  background: #eef2f7;
}

.badge.red {
  color: #dc2626;
  background: #fee2e2;
}

.detail-list {
  padding: 10px 14px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f2f7;
  font-size: 13px;
}

.kv:last-child {
  border-bottom: 0;
}

.kv span:first-child {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  padding: 14px;
}

.metric strong {
  display: block;
  margin: 5px 0;
  font-size: 19px;
}

.spark {
  height: 42px;
  margin-top: 8px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 8%, rgba(98,54,245,.22) 9% 11%, transparent 12% 23%, rgba(98,54,245,.22) 24% 26%, transparent 27% 40%, rgba(98,54,245,.22) 41% 43%, transparent 44%),
    linear-gradient(180deg, #fafbff, #fff);
}

.wallet-balance,
.promo-hero,
.ai-hero,
.mining-hero {
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--primary), #312e81),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.24), transparent 8rem);
}

.wallet-balance b {
  display: block;
  margin: 6px 0;
  font-size: 30px;
}

.coin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--success);
}

.coin.orange {
  background: var(--warning);
}

.coin.blue {
  background: #3b82f6;
}

.qr {
  width: 174px;
  height: 174px;
  margin: 18px auto;
  border: 10px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  background:
    conic-gradient(from 90deg, #000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 28px 28px,
    linear-gradient(90deg, #000 12px, transparent 12px 42px, #000 42px 54px, transparent 54px);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  padding: 8px 12px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: #64748b;
  font-size: 11px;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.nav-icon {
  font-size: 18px;
  line-height: 1;
}

.drawer-shell {
  min-height: 812px;
  background: linear-gradient(90deg, #fff 0 72%, rgba(17,24,39,.38) 72% 100%);
}

.side-menu {
  width: 72%;
  min-height: 812px;
  padding: 48px 18px 22px;
  background: #fff;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #111827);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amount {
  margin: 22px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.amount b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

@media (max-width: 430px) {
  .stage {
    padding: 0;
    background: #fff;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
