:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6fa;
  color: #20242c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f6fa;
}

button,
input,
select,
textarea {
  font: inherit;
}

.phone-shell {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  padding-bottom: 32px;
}

.hero {
  min-height: 310px;
  padding: 18px 18px 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 24, 36, .18), rgba(20, 24, 36, .68)),
    var(--hero-image, url("/uploads/arc-banner.jpg")) center / cover no-repeat,
    linear-gradient(135deg, #2667ff, #111827 58%, #ec4b8f);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  font-size: 12px;
  opacity: .78;
}

.profile-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(17, 24, 39, .42);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
}

.hero-copy {
  padding-top: 112px;
}

.hero-copy p {
  margin: 0 0 8px;
  opacity: .86;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy button,
.order-panel button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  background: #2378ff;
  font-weight: 700;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.hero-dots button {
  width: 22px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
}

.hero-dots button.active {
  background: #fff;
}

section {
  padding: 18px;
}

.notice {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff6df;
  color: #7a4b00;
  font-size: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 19px;
}

.section-title a {
  color: #2378ff;
  text-decoration: none;
  font-size: 14px;
}

.intro-list,
.package-list {
  display: grid;
  gap: 12px;
}

.package-card,
.game-card {
  border: 1px solid #eceff5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(31, 41, 55, .06);
}

.package-card h3,
.package-card p {
  margin: 0;
}

.intro-card {
  overflow: hidden;
  border: 1px solid #eceff5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(31, 41, 55, .06);
}

.intro-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111827;
}

.intro-card div {
  padding: 12px 14px;
}

.intro-card h3,
.intro-card p {
  margin: 0;
}

.intro-card p {
  margin-top: 5px;
  color: #6b7280;
  font-size: 14px;
}

.package-card p {
  margin-top: 6px;
  color: inherit;
  opacity: .72;
}

.text-button {
  border: 0;
  background: transparent;
  color: #2378ff;
}

.hidden {
  display: none !important;
}

.profile-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  background: rgba(17, 24, 39, .48);
}

.profile-card {
  width: min(520px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.profile-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
}

.profile-head h2,
.profile-head p {
  margin: 0;
}

.profile-head p {
  margin-top: 4px;
  color: #2378ff;
  font-size: 14px;
}

.profile-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 24px;
}

.profile-section {
  padding: 18px;
}

.profile-page {
  background: #f5f6fa;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #111827;
  color: #fff;
}

.profile-top h1,
.profile-top p {
  margin: 0;
}

.profile-top h1 {
  font-size: 22px;
}

.profile-top p {
  margin-top: 4px;
  color: #b8c4d8;
  font-size: 14px;
}

.back-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
}

.profile-block {
  margin: 14px 18px 0;
  border: 1px solid #eceff5;
  border-radius: 8px;
  background: #fff;
}

.order-history {
  display: grid;
  gap: 12px;
}

.order-group {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.order-group h3 {
  margin: 0;
  font-size: 17px;
}

.history-card {
  border: 1px solid #eceff5;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.history-card.is-closed {
  background: #f8fafc;
  opacity: .82;
}

.history-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.history-head span {
  color: #2378ff;
  white-space: nowrap;
}

.history-card p {
  margin: 8px 0 0;
  color: #5b6472;
  font-size: 14px;
}

.review-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.review-form button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: #2378ff;
}

.continue-pay {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  color: #fff;
  background: #2378ff;
  font-weight: 700;
}

.review-done {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f1f5ff;
  color: #1f3b7a;
  font-size: 14px;
}

.muted {
  color: #6b7280;
}

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

.game-card {
  padding: 12px 8px;
  text-align: center;
}

.game-card img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.game-card strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.game-card span {
  display: inline-block;
  margin-top: 5px;
  color: #2378ff;
  font-size: 12px;
}

.package-card {
  padding: 15px;
}

.package-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: #ef3f5f;
  font-weight: 800;
  white-space: nowrap;
}

.order-panel {
  margin: 0 18px;
  border: 1px solid #eceff5;
  border-radius: 8px;
  background: #fbfcff;
}

.login-panel {
  margin: 14px 18px 0;
  border: 1px solid #eceff5;
  border-radius: 8px;
  background: #fbfcff;
}

.login-panel .section-title span {
  color: #2378ff;
  font-size: 13px;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.login-grid button {
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: #111827;
  font-weight: 700;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #20242c;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.pay-result {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f1f5ff;
}

.pay-result.visible {
  display: block;
}

.primary-link {
  color: #2378ff;
  font-weight: 700;
  text-decoration: none;
}

.pay-center {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.wechat-qr {
  width: min(260px, 82vw);
  height: min(260px, 82vw);
  border: 1px solid #eceff5;
  border-radius: 8px;
  background: #fff;
}

.primary-action {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  background: #2378ff;
  font-weight: 700;
}

.pay-result img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 12px auto 0;
}
