html {
  background: #161228;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(113, 88, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #171228 0%, #141024 48%, #120e21 100%);
  color: #ffffff;
}

button,
input {
  font-family: inherit;
}

.vip-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.vip-shell {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 56px;
}

.vip-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.vip-page-title h1 {
  font-size: 30px;
  line-height: 38px;
  font-weight: 800;
}

.vip-page-title span {
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  color: #f8d8bd;
  background: rgba(255, 220, 186, 0.12);
  border: 1px solid rgba(255, 220, 186, 0.26);
  font-size: 14px;
}

.vip-banner {
  min-height: 116px;
  border-radius: 8px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(96deg, #ffdfc0 0%, #ffc99e 100%);
  color: #725338;
  box-shadow: 0 20px 46px rgba(255, 186, 125, 0.16);
}

.vip-gem {
  width: 40px;
  height: 36px;
  position: relative;
  filter: drop-shadow(0 8px 12px rgba(154, 83, 0, 0.25));
}

.vip-gem::before,
.vip-gem::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.vip-gem::before {
  top: 0;
  width: 32px;
  height: 14px;
  background: linear-gradient(135deg, #ffe48c 0%, #f39b16 45%, #c86400 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

.vip-gem::after {
  bottom: 0;
  width: 40px;
  height: 26px;
  background: linear-gradient(135deg, #ffb021 0%, #ef850a 50%, #c65800 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.vip-banner-title {
  font-size: 26px;
  line-height: 34px;
  font-weight: 800;
  color: #765534;
}

.vip-banner-meta {
  color: rgba(99, 74, 54, 0.78);
  font-size: 16px;
  white-space: nowrap;
}

.buy-panel {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  grid-template-areas:
    "account payment"
    "plans payment";
  gap: 28px 36px;
  align-items: start;
}

.account-panel {
  grid-area: account;
  min-height: 92px;
  border-radius: 8px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(52, 51, 82, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-panel h2,
.block-title-row h2,
.rights-section h2,
.warm-tips h2 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 800;
}

.account-panel p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 20px;
}

.account-search {
  display: flex;
  width: 306px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.account-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 14px;
  color: #1a1830;
  font-size: 14px;
}

.account-search button {
  width: 76px;
  border: 0;
  background: linear-gradient(180deg, #7f63ff 0%, #6049e8 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.plans-area {
  grid-area: plans;
  min-width: 0;
}

.block-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.plan-card {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(123, 124, 165, 0.32);
  border-radius: 28px;
  padding: 52px 28px 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #30304c;
  color: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(137, 119, 255, 0.72);
}

.plan-card.is-active {
  background: #dceeff;
  color: #0f1022;
  border-color: rgba(226, 242, 255, 0.92);
  box-shadow: 0 24px 56px rgba(106, 91, 255, 0.28);
}

.plan-title {
  display: block;
  font-size: 36px;
  line-height: 44px;
  font-weight: 900;
  color: currentColor;
  letter-spacing: 0;
  white-space: nowrap;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 42px;
  color: #ffffff;
  font-size: 74px;
  line-height: 82px;
  font-weight: 900;
}

.plan-card.is-active .plan-price {
  color: #2b2576;
}

.plan-price span {
  font-size: 26px;
  line-height: 1;
  color: currentColor;
}

.plan-daily {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
}

.plan-card.is-active .plan-daily {
  color: rgba(20, 24, 40, 0.43);
}

.plan-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 112px;
  height: 44px;
  border-radius: 28px 0 28px 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #765cff;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.plan-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.payment-area {
  grid-area: payment;
  border-radius: 8px;
  padding: 24px;
  background: rgba(48, 48, 76, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 96px;
}

.pay-method {
  height: 58px;
  border-radius: 8px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-method.is-active {
  border-color: rgba(0, 174, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(0, 174, 255, 0.16);
}

.alipay-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00a8ff;
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 900;
}

.pay-detail {
  margin-top: 22px;
  display: block;
}

.pay-summary {
  min-width: 0;
  padding-top: 0;
}

.pay-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 22px;
}

.pay-plan {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 20px;
}

.pay-price {
  margin-top: 2px;
  color: #ffffff;
  font-size: 44px;
  line-height: 54px;
  font-weight: 900;
}

.pay-summary p {
  min-height: 20px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 14px;
  line-height: 20px;
}

.pay-button {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #7e63ff 0%, #6048ed 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(101, 75, 255, 0.22);
}

.agreement {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 20px;
}

.agreement a {
  color: #f4d1b2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rights-section {
  margin-top: 64px;
}

.rights-section h2 {
  text-align: center;
  color: #ffe0c4;
  font-size: 30px;
  line-height: 40px;
}

.rights-table-wrap {
  margin-top: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(30, 26, 48, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rights-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: rgba(255, 255, 255, 0.72);
}

.rights-table th,
.rights-table td {
  height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 18px;
  line-height: 26px;
}

.rights-table th {
  background: #30304c;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.rights-table tr:last-child td {
  border-bottom: 0;
}

.rights-table .vip-col {
  background: rgba(255, 204, 164, 0.52);
  color: #ffdfc4;
  font-weight: 900;
}

.rights-table th.vip-col {
  color: #6c4d24;
  background: linear-gradient(180deg, #ffddb9 0%, #ffc195 100%);
  font-size: 36px;
  line-height: 44px;
}

.rights-table .check {
  font-size: 32px;
  line-height: 1;
}

.warm-tips {
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.46);
}

.warm-tips h2 {
  color: rgba(255, 255, 255, 0.56);
  font-size: 18px;
  line-height: 28px;
}

.warm-tips p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 1180px) {
  .buy-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "account"
      "plans"
      "payment";
  }

  .payment-area {
    position: static;
  }
}

@media (max-width: 900px) {
  .vip-shell {
    width: calc(100% - 24px);
    padding: 88px 0 40px;
  }

  .vip-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .vip-page-title h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .vip-banner {
    grid-template-columns: auto 1fr;
    gap: 14px 16px;
    padding: 22px 20px;
  }

  .vip-banner-meta {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .account-panel {
    grid-template-columns: 1fr;
  }

  .account-search {
    width: 100%;
  }

  .plan-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .plan-list::-webkit-scrollbar {
    display: none;
  }

  .plan-card {
    flex: 0 0 154px;
    min-height: 182px;
    border-radius: 12px;
    padding: 32px 14px 24px;
  }

  .plan-title {
    font-size: 20px;
    line-height: 28px;
  }

  .plan-price {
    gap: 6px;
    margin-top: 24px;
    font-size: 44px;
    line-height: 52px;
  }

  .plan-price span {
    font-size: 18px;
  }

  .plan-daily {
    margin-top: 4px;
    font-size: 14px;
    line-height: 20px;
  }

  .plan-ribbon {
    min-width: 68px;
    height: 28px;
    border-radius: 12px 0 12px 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .plan-note {
    font-size: 12px;
    line-height: 20px;
  }

  .rights-section {
    margin-top: 48px;
  }

  .rights-table th,
  .rights-table td {
    height: 78px;
    font-size: 15px;
    line-height: 22px;
  }

  .rights-table th.vip-col {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 560px) {
  .vip-shell {
    width: calc(100% - 24px);
  }

  .vip-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .vip-banner-title {
    font-size: 20px;
    line-height: 28px;
  }

  .vip-banner-meta {
    font-size: 13px;
    line-height: 20px;
  }

  .buy-panel {
    margin-top: 24px;
    gap: 22px;
  }

  .account-panel,
  .payment-area {
    padding: 18px;
  }

  .account-panel h2,
  .block-title-row h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .pay-method {
    height: 52px;
    font-size: 16px;
  }

  .pay-price {
    font-size: 38px;
    line-height: 46px;
  }

  .rights-section h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .rights-table-wrap {
    overflow-x: auto;
  }

  .rights-table {
    min-width: 520px;
  }
}
