/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    PingFang SC,
    Hiragino Sans GB,
    Microsoft YaHei,
    sans-serif;
  color: #111;
  background: #fff;
}

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

ul {
  list-style: none;
}
img {
  display: block;
  width: 100%;
}
/* 通用容器 */
.container {
  width: 100%;
  max-width: 12rem;
  margin: 0 auto;
  padding: 0 0.24rem;
}

/* 头部 */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.05);
}

.site-header-menu {
  display: none;
  width: 0.3rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 0.68rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
}
.logo img {
  width: 50px;
}
.logo-mark {
  display: inline-block;
  color: #fff;
  border-radius: 0.08rem;
  width: 0.8rem;
}

.logo-text {
  font-size: 0.2rem;
  color: #222;
}

.logo-text span {
  display: block;
}

.nav {
  /*display: bolo;*/
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  color: #666;
  font-size: 0.15rem;
}

.nav-link + .nav-link {
  margin-left: 0.2rem;
}

.nav.h5 {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10;
  background-color: white;
  height: 100vh;
  padding: 0.3rem;
}

.nav.h5 a {
  display: block;
}

.nav-link:hover,
.nav-link.active {
  color: #2f0d94;
}

/* 购买页面主体 */
.buy-main {
  padding: 0.4rem 0;
  background: #f7f9fc;
  min-height: calc(100vh - 1.36rem);
}

.buy-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.buy-content {
  background: #fff;
  border-radius: 0.16rem;
  padding: 0.2rem;
  box-shadow: 0 0.06rem 0.24rem rgba(0, 0, 0, 0.06);
}

.buy-header {
  text-align: center;
  margin-bottom: 0.4rem;
}

.buy-title {
  font-size: 0.36rem;
  color: #222;
  margin-bottom: 0.12rem;
  font-weight: 700;
}

.buy-subtitle {
  font-size: 0.24rem;
  color: #666;
}

/* ID输入区域 */
.id-section {
  margin-bottom: 0.4rem;
}

.input-group {
  margin-bottom: 0.32rem;
}

.input-label {
  margin-bottom: 0.16rem;
}

.label-text {
  display: block;
  font-size: 0.26rem;
  color: #333;
  margin-bottom: 0.08rem;
}

.label-tip {
  font-size: 0.22rem;
  color: #999;
}

.input-wrapper {
  display: flex;
  gap: 0.16rem;
  align-items: center;
}

.form-input {
  flex: 1;
  width: 100%;
  height: 0.72rem;
  border: 0.02rem solid #e7ecf3;
  border-radius: 0.12rem;
  padding: 0 0.24rem;
  font-size: 0.26rem;
  background: #f4f6fa;
}

.form-input:focus {
  outline: none;
  border-color: #2f0d94;
  background: #fff;
}

.btn-confirm {
  height: 0.72rem;
  padding: 0 0.32rem;
  background: #2f0d94;
  color: #fff;
  border: none;
  border-radius: 0.12rem;
  font-size: 0.26rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-confirm:hover {
  background: #ff7a59;
}

.error-message {
  color: #ff4757;
  font-size: 0.22rem;
  margin-top: 0.08rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* 套餐选择 */
.package-section {
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 0.32rem;
  color: #222;
  margin-bottom: 0.24rem;
  font-weight: 600;
}

.package-grid {
  display: flex;
  /* grid-template-columns: repeat(2, 1fr); */
  gap: 0.16rem;
  overflow: visible;
}

.package-card {
  border: 0.02rem solid #e7ecf3;
  border-radius: 0.12rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 10px;
}

.package-card:hover {
  border-color: #2f0d94;
  box-shadow: 0 0.04rem 0.16rem rgba(255, 134, 90, 0.2);
}

.package-card.selected {
  border-color: #2f0d94;
  box-shadow: 0 0.04rem 0.16rem rgba(255, 134, 90, 0.3);
  background-color: rgba(255, 134, 90, 0.08);
}

.package-banner {
  background: linear-gradient(135deg, #ff4757, #ff6b7a);
  color: #fff;
  text-align: center;
  padding: 0.12rem;
  font-size: 0.22rem;
  font-weight: 600;
}

.package-content {
  padding: 0.24rem;
  text-align: center;
}

.package-price {
  font-size: 0.28rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 0.08rem;
}

.package-original {
  font-size: 0.22rem;
  color: #999;
  text-decoration: line-through;
}

/* 支付方式 */
.payment-section {
  margin-bottom: 0.4rem;
  border: 1px solid #e6e6e6;
  padding: 0.1rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-bottom: 0.24rem;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 0.1rem;
  border: 0.02rem solid #e7ecf3;
  border-radius: 0.12rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.payment-method:hover {
  border-color: #2f0d94;
}

.payment-method.selected {
  border-color: #2f0d94;
  background: rgba(255, 134, 90, 0.05);
}

.payment-icon {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 0.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.24rem;
  font-weight: 700;
  color: #fff;
  margin-right: 0.16rem;
}

.payment-icon.alipay {
}

.payment-icon.wechat {
}

.payment-icon.usdt {
}

.payment-text {
  font-size: 0.26rem;
  color: #333;
  flex: 1;
}

.payment-check {
  position: absolute;
  top: 0.12rem;
  right: 0.12rem;
  width: 0.24rem;
  height: 0.24rem;
  background: #2f0d94;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.16rem;
  font-weight: 700;
}

.payment-method:not(.selected) .payment-check {
  display: none;
}

.payment-summary {
  background: #2f0d94;
  border-radius: 0.12rem;
  padding: 0.1rem;
  width: 100%;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.payment-summary.loading {
  background: #666;
  cursor: not-allowed;
}

.payment-summary.loading .summary-text {
  opacity: 0;
}

.payment-summary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.2rem;
  height: 0.2rem;
  margin: -0.1rem 0 0 -0.1rem;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-summary.loading::after {
  opacity: 1;
}
.vip-packages {
  display: flex;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.summary-text {
  font-size: 0.26rem;
  color: white;
  font-weight: 600;
}

/* 注意事项 */
.notes-section {
  padding-top: 0.24rem;
  border-top: 0.02rem solid #f0f0f0;
}

.note-text {
  font-size: 0.22rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.12rem;
}
.arrival-time {
  font-size: 0.15rem;
}
/* VIP权益侧边栏 */
.vip-benefits {
  background: #fff;
  border-radius: 0.16rem;
  padding: 0.4rem;
  box-shadow: 0 0.06rem 0.24rem rgba(0, 0, 0, 0.06);
  height: fit-content;
}

.benefits-title {
  font-size: 0.32rem;
  color: #222;
  margin-bottom: 0.24rem;
  font-weight: 600;
  text-align: center;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  padding: 0.16rem;
  border-radius: 0.08rem;
  background: #f8fafc;
}

.benefit-icon {
  width: 0.4rem;
  height: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.24rem;
  margin-right: 0.16rem;
}

.benefit-text {
  font-size: 0.24rem;
  color: #333;
}

/* 底部 */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.8rem 0;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .logo-mark {
  background: white;
  color: #fff;
  border-radius: 0.08rem;
  margin-right: 0.12rem;
}

.footer-brand .logo-text {
  font-size: 0.28rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.footer-link {
  font-size: 0.24rem;
  color: #cbd5e1;
}
.dialog-box {
  /*width: 80vw;*/
  /*height: 80vh;*/
  /*position: fixed;*/
}
.ftR ul {
  display: flex;
  flex-wrap: wrap;
}

.ftR ul li {
  margin-right: 15px;
  margin-bottom: 10px;
  font-size: 0.15rem;
}

/* 二维码弹框样式 */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-modal.show {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  background: white;
  border-radius: 0.12rem;
  padding: 0.24rem;
  width: 90%;
  height: 90%;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qr-modal.show .qr-modal-content {
  transform: scale(1);
}

.qr-modal-title {
  font-size: 0.24rem;
  font-weight: 600;
  margin-bottom: 0.24rem;
  color: #333;
}

.qr-modal-image {
  width: 100%;
  height: calc(100% - 100px);
  margin: 0 auto 0.24rem;
  border: 1px solid #eee;
  border-radius: 0.06rem;
}

.qr-modal-text {
  font-size: 0.16rem;
  color: #666;
  margin-bottom: 0.24rem;
  line-height: 1.5;
}

.qr-modal-close {
  background: #2f0d94;
  color: white;
  border: none;
  border-radius: 0.06rem;
  padding: 0.12rem 0.32rem;
  font-size: 0.16rem;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center;
}

.qr-modal-close:hover {
  background: #230a70;
}

/* PC 端：宽度大于 1024px 使用 px 与弹性布局（媒体查询） */
@media (min-width: 1025px) {
  .container {
    max-width: 1200px;
    padding: 0 24px;
  }
  .arrival-time {
    font-size: 14px;
  }
  .nav-link + .nav-link {
    margin-left: 70px;
  }

  .payment-section {
    padding: 20px;
    margin-top: 20px;
  }

  .nav-link {
    color: #3d3d3d;
    font-size: 18px;
  }

  .footer-brand .logo-text {
    font-size: 36px;
    color: #fff;
    margin-left: 10px;
    line-height: 1;
  }

  .footer-brand .logo-text span {
    display: flex;
  }

  .footer-brand .logo-text .tip {
    font-size: 18px;
    line-height: 1;
    color: #aaabb1;
    margin-top: 5px;
  }

  .nav {
    display: flex;
  }

  .header-inner {
    height: 64px;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-mark {
    width: 60px;
  }

  .site-header-menu {
    display: none;
  }

  /* 购买页面PC布局 */
  .buy-main {
    padding: 40px 0;
  }

  .buy-container {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }

  .buy-content {
    flex: 1;
    padding: 40px;
    border-radius: 12px;
  }

  .buy-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .buy-subtitle {
    font-size: 18px;
  }

  .input-group {
    margin-bottom: 24px;
  }

  .label-text {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .label-tip {
    font-size: 14px;
  }

  .form-input {
    height: 44px;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
  }

  .btn-confirm {
    height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 16px;
  }

  .error-message {
    font-size: 14px;
    margin-top: 8px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

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

  .package-banner {
    padding: 5px;
    font-size: 10px;
    position: absolute;
    left: 0;
    top: -20%;
    border-radius: 10px 10px 10px 0;
  }

  .package-content {
    padding: 20px;
  }

  .package-price {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .package-original {
    font-size: 14px;
  }

  .payment-methods {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 20px;
  }

  .payment-method {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
  }

  .payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 18px;
    margin-right: 12px;
  }

  .payment-text {
    font-size: 16px;
  }

  .payment-check {
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .payment-summary {
    border-radius: 8px;
    padding: 20px;
  }

  /* 移动端二维码弹框样式 */
  .qr-modal-content {
    margin: 0.1rem;
    padding: 0.16rem;
    width: calc(100% - 0.2rem);
    height: calc(100% - 0.2rem);
  }

  .qr-modal-title {
    font-size: 18px;
  }

  .qr-modal-image {
    width: 100%;
    height: calc(100% - 80px);
  }

  .qr-modal-text {
    font-size: 14px;
  }

  .qr-modal-close {
    padding: 12px 24px;
    font-size: 14px;
  }

  .summary-text {
    font-size: 18px;
  }

  .note-text {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .vip-benefits {
    width: 300px;
    padding: 30px;
    border-radius: 12px;
  }

  .benefits-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-item {
    padding: 12px;
    border-radius: 6px;
  }

  .benefit-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
    margin-right: 12px;
  }

  .benefit-text {
    font-size: 16px;
  }

  .site-footer {
    padding: 56px 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-link {
    font-size: 14px;
  }

  .footer-links-box {
    width: 50%;
  }

  .ftR ul {
    display: flex;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .ftR ul li span {
    font-size: 14px;
  }

  .ftR ul li {
    margin-right: 15px;
    margin-bottom: 10px;
  }
}

@media (max-width: 1025px) {
  .buy-main .container {
    padding: 0 0.1rem;
  }
  .site-header-menu {
    display: block;
  }
  .nav {
    display: none;
  }
  .nav-link {
    margin-bottom: 0.2rem;
  }
  .nav-link + .nav-link {
    margin-left: 0;
  }
  .buy-main {
    padding-top: 0.1rem;
  }

  .buy-title {
    font-size: 0.3rem;
  }

  .buy-subtitle {
    font-size: 0.15rem;
  }

  .label-text {
    font-size: 0.15rem;
  }
  .package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .package-banner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0;
    font-size: 10px;
  }
  .arrival-time {
    font-size: 0.15rem;
  }

  .form-input {
    height: 0.4rem;
    font-size: 0.15rem;
  }
  .package-card {
    overflow: hidden;
  }
  .package-banner {
    position: inherit;
    font-size: 0.15rem;
  }

  .section-title {
    font-size: 0.2rem;
  }

  .package-price {
    font-size: 0.2rem;
  }

  .package-original {
    font-size: 0.15rem;
  }

  .payment-method.selected {
    font-size: 0.14rem;
  }

  .payment-text {
    font-size: 0.15rem;
  }

  .summary-text {
    font-size: 0.15rem;
  }

  .payment-icon {
    font-size: 0.2rem;
    width: 0.3rem;
    height: 0.3rem;
  }

  .note-text {
    font-size: 0.15rem;
  }
}
