[v-cloak] {
  display: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 3.2rem;
  background: #fbfaf5;
  color: #292929;
  font-family:
    Arial, "Microsoft YAHei", "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: calc(100vw / 3.75) !important;
  height: 100%;
}

body {
  margin: 0;
  background: #fbfaf5;
  min-height: 100%;
  min-height: -webkit-fill-available;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}
a {
  text-decoration: none;
  outline: none;
}
button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prepaid-page {
  min-height: 100%;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 251, 241, 0.9) 42%
    ),
    #fbfaf5;
}

.mobile-time {
  margin: 0 0 0.22rem;
  padding-left: 0.44rem;
  font-size: 0.17rem;
  font-weight: 700;
}

.mobile-title {
  display: grid;
  grid-template-columns: 0.36rem minmax(0, 1fr) 0.36rem;
  align-items: center;
  gap: 0.12rem;
}

.mobile-title h1 {
  margin: 0;
  overflow: hidden;
  font-size: 0.21rem;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-icon-button,
.mobile-more-button {
  position: relative;
  width: 0.36rem;
  height: 0.36rem;
  background: transparent;
}

.mobile-icon-button::before,
.mobile-icon-button::after {
  position: absolute;
  top: 0.17rem;
  left: 0.06rem;
  width: 0.24rem;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: "";
}

.mobile-icon-button::before {
  transform: rotate(45deg);
}

.mobile-icon-button::after {
  transform: rotate(-45deg);
}

.mobile-more-button::before {
  display: block;
  color: #fff;
  content: "...";
  font-size: 0.24rem;
  line-height: 0.2rem;
}

.hero-banner {
  position: relative;
  border-radius: 0 0 0.12rem 0.12rem;
  background: url("../images/m/header_bg.png") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  /* min-height: 1.44rem; */
}

.hero-slogan {
  display: block;
  width: min(78vw, 4.8rem);
  margin: 0 auto;
}

.language-switcher {
  position: absolute;
  top: 0.1rem;
  right: 0.08rem;
  z-index: 4;
  /* width: 0.82rem; */
}

.language-current,
.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* min-height: 0.38rem; */
  padding: 0.04rem 0.08rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.95);
  color: #ff7c30;
  font-size: 0.12rem;
}

.language-current {
  gap: 0.04rem;
}

.lang-m {
  display: inline;
}

.lang-pc {
  display: none;
}

.language-icon {
  display: none;
  width: 0.14rem;
  height: 0.14rem;
  object-fit: contain;
  /* border: 2px solid #ff7c30; */
  border-radius: 50%;
}

.language-arrow {
  width: 0.07rem;
  height: 0.07rem;
  border-right: 2px solid #ff7c30;
  border-bottom: 2px solid #ff7c30;
  transform: translateY(-2px) rotate(45deg);
}

.language-list {
  margin-top: 0.08rem;
}

.language-list li + li {
  margin-top: 0.08rem;
}

.language-option {
  background: rgba(255, 166, 65, 0.72);
  color: #fff;
}

.language-option.active {
  background: rgba(255, 255, 255, 0.96);
  color: #ff7c30;
}

.language-option:disabled {
  opacity: 0.82;
}

.page-main {
  width: min(100%, 7.6rem);
  margin: 0.12rem auto 0;
  padding: 0 0.12rem 0.22rem;
}

.top-grid {
  display: grid;
  gap: 0.18rem;
}

.panel {
  border-radius: 0.12rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.04rem 0.2rem rgba(120, 89, 34, 0.08);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 0.09rem;
  /* min-height: 0.36rem; */
}

.panel-heading h2 {
  margin: 0;
  color: #242424;
  font-size: 0.18rem;
  font-weight: 800;
}

.heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 0.09rem;
  background: #ff9457;
}

.bag-icon {
  background: url("../images/pc/product.png") center / contain no-repeat;
  border-radius: 0;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .bag-icon {
    background-image: url("../images/pc/product@2x.png");
  }
}

.bag-icon::before {
  display: none;
}

.user-icon::before {
  display: none;
}

.account-icon {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
}

.logout-icon {
  width: 0.14rem;
  height: 0.14rem;
  object-fit: contain;
}

.pay-icon {
  background: url("../images/pc/icon_pay.png") center / contain no-repeat;
  border-radius: 0;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .pay-icon {
    background-image: url("../images/pc/icon_pay@2x.png");
  }
}

.pay-icon::before {
  display: none;
}

.product-panel {
  padding: 0.15rem 0.14rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem 0.1rem;
  margin-top: 0.14rem;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.6rem minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 0.76rem;
  padding: 0.09rem 0.1rem;
  border: 1px solid #dfe4e7;
  border-radius: 0.06rem;
  background: #fff;
  color: #ff8238;
  text-align: left;
}

.product-card.active {
  border-color: #ff7d32;
  box-shadow: inset 0 0 0 1px #ff7d32;
}

.product-image {
  width: 0.55rem;
  height: 0.55rem;
  object-fit: contain;
}

.product-bonus {
  position: absolute;
  top: 0.02rem;
  right: 0.02rem;
  /* max-width: 0.74rem; */
  padding: 0.01rem 0.05rem;
  border-radius: 0.05rem 0.05rem 0 0.05rem;
  background: linear-gradient(90deg, #ff8744, #ff6d0c);
  color: #fff;
  font-size: 0.1rem;
  font-weight: 500;
  /* line-height: 1.2; */
  text-align: center;
}

.product-info {
  display: grid;
  gap: 0.04rem;
  min-width: 0;
  white-space: nowrap;
}

.product-name {
  overflow: hidden;
  font-size: 0.13rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* margin-right: 0.48rem; */
}

.product-info strong {
  font-size: 0.16rem;
  line-height: 1;
}

.product-info strong span {
  margin-left: 0.01rem;
  /* font-size: 0.12rem; */
}

.product-check,
.option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: #d9d9d9;
}

.option-check::after {
  width: 0.09rem;
  height: 0.05rem;
  border-bottom: 0.03rem solid #fff;
  border-left: 0.03rem solid #fff;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.option-check.active,
.payment-option.active .option-check {
  background: #ff7d32;
}

/* 彻底独立定义商品选中图标 */
.product-check {
  position: absolute;
  right: 0.06rem;
  bottom: 0.06rem;
  width: 0.14rem;
  height: 0.14rem;
  background-image: url("../images/pc/check.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .product-check {
    background-image: url("../images/pc/check@2x.png");
  }
}

.product-card.active .product-check {
  background-image: url("../images/pc/checked.png");
  background-color: transparent;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .product-card.active .product-check {
    background-image: url("../images/pc/checked@2x.png");
  }
}

.product-check::after {
  content: none;
}

.product-note {
  margin: 0.16rem 0 0;
  color: #ff8846;
  font-size: 0.16rem;
}
.product-note .product-note-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.product-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.18rem;
  height: 0.18rem;
  margin-right: 0.03rem;
  border-radius: 50%;
  background: #ff8846;
  color: #fff;
  font-size: 0.13rem;
  font-weight: 800;
  line-height: 1;
}
.product-note p {
  margin-top: 0.05rem;
  font-size: 0.13rem;
}
.account-panel {
  /* height: 1.32rem; */
  padding: 0.15rem 0.14rem;
  display: flex;
  min-height: 1.32rem;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.login-prompt {
  display: grid;
  justify-items: center;
  gap: 0.14rem;
}

.login-prompt p {
  margin: 0;
  color: #474747;
  font-size: 0.15rem;
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 0.42rem;
  padding: 0 0.24rem;
  border-radius: 0.22rem;
  background: linear-gradient(
    90deg,
    rgba(255, 121, 17, 0.96),
    rgba(255, 169, 66, 0.94)
  );
  color: #fff;
  font-size: 0.14rem;
  box-shadow: 0 0.04rem 0.12rem rgba(255, 126, 20, 0.36);
}

.primary-pill.small {
  /* min-width: 1.2rem; */
  /* min-height: 0.36rem; */
  font-size: 0.16rem;
}

.account-title {
  align-items: center;
  margin-bottom: 0.14rem;
}

.account-title h2 {
  flex: 1;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
  background: transparent;
  color: #ff8238;
  font-size: 0.13rem;
}

.logout-button::before {
  display: none;
}

.role-picker {
  position: relative;
}

.role-toggle,
.role-option {
  display: grid;
  grid-template-columns: 0.4rem minmax(0, 1fr) 0.24rem;
  align-items: center;
  gap: 0.1rem;
  width: 100%;
  min-height: 0.72rem;
  padding: 0.08rem 0.12rem;
  border: 1px solid #f1dfc4;
  border-radius: 0.08rem;
  background: #fffdfa;
  color: #2d2d2d;
  text-align: left;
}

.role-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #77c6ff, #2e67ad);
  color: #111;
  font-size: 0.26rem;
  font-weight: 900;
  text-shadow: 0 1px 0 #fff;
  overflow: hidden;
}

.role-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.role-text {
  display: grid;
  gap: 0.03rem;
  min-width: 0;
}

.role-text strong {
  overflow: hidden;
  font-size: 0.14rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-text span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #8d949d;
  font-size: 0.11rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  word-break: break-all;
}

.role-arrow {
  width: 0.11rem;
  height: 0.11rem;
  border-right: 2px solid #ff8238;
  border-bottom: 2px solid #ff8238;
  transform: rotate(45deg);
}

.role-list {
  position: absolute;
  top: calc(100% + 0.06rem);
  left: 0;
  z-index: 5;
  width: 100%;
  border-radius: 0.08rem;
  background: #fff;
  box-shadow: 0 0.1rem 0.24rem rgba(86, 63, 38, 0.13);
}

.role-option {
  border-color: transparent;
  border-radius: 0.08rem;
}

.benefit-panel {
  display: none;
}

.payment-panel {
  margin-top: 0.2rem;
  padding: 0.15rem 0.14rem;
}

.payment-list {
  margin-top: 0.14rem;
  border: 1px solid #e4e5e6;
  border-radius: 0.03rem;
  overflow: hidden;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 0.6rem;
  padding: 0 0.12rem;
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
  color: #464646;
  font-size: 0.14rem;
  text-align: left;
}

.payment-list li:last-child .payment-option {
  border-bottom: 0;
}

.payment-option.active {
  background: #fff5e6;
}

.payment-brand {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  min-width: 0;
}

.payment-brand img {
  width: 0.78rem;
  max-height: 0.34rem;
  object-fit: contain;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.16rem;
  color: #ff8238;
}

.summary-info {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  min-width: 0;
}

.order-summary p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.08rem;
  margin: 0;
  font-size: 0.12rem;
}

.summary-product {
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
}

.summary-product img {
  width: 0.22rem;
  height: 0.22rem;
}

.order-summary strong {
  font-size: 0.18rem;
}

.order-summary strong span {
  font-size: 0.12rem;
}

.submit-button {
  flex-shrink: 0;
  min-width: 1.2rem;
}

.mobile-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem 0.12rem;
  margin-top: 0.2rem;
}

.mobile-benefit-card {
  display: flex;
  align-items: center;
  gap: 0.06rem;
  min-height: auto;
  padding: 0.15rem 0.08rem;
  border: 1px solid #ffd6bd;
  border-radius: 0.09rem;
  background: #fff;
  color: #ff8846;
}

.mobile-benefit-card img {
  width: 0.32rem;
  height: 0.32rem;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-benefit-card span {
  display: grid;
  min-width: 0;
}

.mobile-benefit-card strong {
  font-size: 0.14rem;
  line-height: 1.25;
}

.mobile-benefit-card small {
  font-size: 0.1rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Footer（第三屏底部，完全同步自 index.css）
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Footer（第三屏底部，结构、内容与视觉尺寸完全与 index.html 同步）
   -------------------------------------------------------------------------- */
.idx-footer {
  flex-shrink: 0;
  background: #171717;
  color: #777;
}

.idx-footer__inner {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  width: min(100%, 23rem);
  margin: 0 auto;
  padding: 0.35rem 0.77rem;
}

/* 游戏 Logo */
.idx-footer__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2vw;
}

.idx-footer__logo img {
  height: auto;
  width: auto;
  object-fit: contain;
}

/* 分级图 + 免责声明区域 */
.idx-footer__rating-block {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.31rem;
  min-width: 0;
}

.idx-footer__level {
  flex-shrink: 0;
  width: auto;
  height: auto;
}

.idx-footer__disclaimers ul {
  display: grid;
  gap: 0.08rem;
}

.idx-footer__disclaimers li {
  color: #777;
  font-size: 0.15rem;
  line-height: 1.5;
}

/* 右侧：用户协议 + 版权 */
.idx-footer__links-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
}

.idx-footer__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.idx-footer__nav-btn {
  color: #8e8e8e;
  font-size: 0.15rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

.idx-footer__nav-btn:hover {
  color: #c8c8c8;
}

.idx-footer__nav-sep {
  color: #555;
  font-size: 0.17rem;
  line-height: 1;
}

.idx-footer__copyright {
  color: #747474;
  font-size: 0.15rem;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  /* Footer 调整 */
  .idx-footer {
    height: auto;
    padding: 1vw 2vw;
    background: #171717;
  }
  .hero-slogan {
    padding: 0.24rem 0;
  }
  .idx-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
    height: auto;
    width: min(100%, 12rem);
    padding: 0;
  }
  .idx-footer__links-block {
    display: contents; /* 使 nav 和 copyright 成为直接子元素，可利用 order 排序 */
  }
  .idx-footer__nav {
    order: 1;
    display: flex;
    justify-content: center;
    gap: 4vw;
    margin-bottom: 1vw;
  }
  .idx-footer__nav-btn {
    font-size: 3.2vw;
    color: #a0a0a0;
  }
  .idx-footer__nav-sep {
    font-size: 3.2vw;
    color: #444;
  }
  .idx-footer__logo {
    order: 2;
    margin: 1vw 0;
    display: flex;
    width: 100%;
    justify-content: space-around;
  }
  .idx-footer__logo img {
    width: 32vw;
    height: auto;
  }
  .idx-footer__copyright {
    order: 3;
    font-size: 2.8vw;
    color: #747474;
    text-align: center;
  }
  .idx-footer__rating-block {
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4vw;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2vw;
    text-align: left;
  }
  .idx-footer__level {
    width: 14vw;
    height: auto;
    flex-shrink: 0;
  }
  .idx-footer__disclaimers {
    flex: 1;
    min-width: 0;
  }
  .idx-footer__disclaimers ul {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    padding: 0;
    margin: 0;
  }
  .idx-footer__disclaimers li {
    font-size: 2.7vw;
    line-height: 1.2;
    color: #777;
    text-align: left;
    list-style: none;
  }
}

.dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem;
  background: rgba(0, 0, 0, 0.58);
}

.login-dialog,
.order-dialog {
  position: relative;
  width: min(100%, 5.3rem);
  /* border: 2px solid #c6f1ff; */
  border-radius: 0.1rem;
  background: #fff;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
}

.login-dialog {
  padding: 0.18rem 0.22rem 0.24rem;
}

.order-dialog {
  padding: 0.18rem 0.22rem 0.24rem;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0.3rem;
  margin-bottom: 0.22rem;
}

.dialog-header h2 {
  margin: 0;
  color: #212456;
  font-size: 0.18rem;
  font-weight: 700;
}

.dialog-close {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  z-index: 10;
  width: 0.3rem;
  height: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.login-dialog .dialog-close {
  background: url("../images/pc/dialog_close.png") center / 0.16rem 0.16rem
    no-repeat;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .login-dialog .dialog-close {
    background-image: url("../images/pc/dialog_close@2x.png");
  }
}

.dialog-close-svg {
  width: 0.22rem;
  height: 0.22rem;
  display: block;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.dialog-close:hover .dialog-close-svg {
  opacity: 0.7;
}

.login-form {
  display: grid;
  gap: 0.14rem;
}

.form-field {
  position: relative;
  display: block;
  width: 100%;
  height: 0.44rem;
  background: #dceff5;
  border: 1px solid transparent;
  box-sizing: border-box;
  -webkit-mask:
    radial-gradient(circle 6px at 0 0, transparent 5.5px, #000 6px) top left,
    radial-gradient(circle 6px at 100% 0, transparent 5.5px, #000 6px) top right,
    radial-gradient(circle 6px at 0 100%, transparent 5.5px, #000 6px) bottom
      left,
    radial-gradient(circle 6px at 100% 100%, transparent 5.5px, #000 6px) bottom
      right;
  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;
  mask:
    radial-gradient(circle 6px at 0 0, transparent 5.5px, #000 6px) top left,
    radial-gradient(circle 6px at 100% 0, transparent 5.5px, #000 6px) top right,
    radial-gradient(circle 6px at 0 100%, transparent 5.5px, #000 6px) bottom
      left,
    radial-gradient(circle 6px at 100% 100%, transparent 5.5px, #000 6px) bottom
      right;
  mask-size: 51% 51%;
  mask-repeat: no-repeat;
}

.form-field input {
  width: 100%;
  height: 100%;
  padding: 0 0.18rem 0 0.54rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4c4c4c;
  font-size: 0.14rem;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 0.18rem;
  width: 0.22rem;
  height: 0.22rem;
  transform: translateY(-50%);
  z-index: 2;
}

.account-field-icon {
  background-image: url("../images/pc/icon_user.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .account-field-icon {
    background-image: url("../images/pc/icon_user@2x.png");
  }
}

.account-field-icon::before,
.account-field-icon::after {
  display: none;
}

.password-field-icon {
  background-image: url("../images/pc/icon_password.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  .password-field-icon {
    background-image: url("../images/pc/icon_password@2x.png");
  }
}

.password-field-icon::before,
.password-field-icon::after {
  display: none;
}

.form-error {
  margin: 0;
  color: #c84420;
  font-size: 0.12rem;
  min-height: 0.2rem;
}

.login-submit {
  width: 100%;
  min-height: 0.44rem;
  /* margin-top: 0.14rem; */
  border-radius: 0.22rem;
  font-size: 0.15rem;
}

.third-party-login {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  margin-top: 0.28rem;
}

.third-party-login p {
  display: grid;
  grid-template-columns: minmax(0.8rem, 1fr) auto minmax(0.8rem, 1fr);
  align-items: center;
  gap: 0.1rem;
  width: 100%;
  margin: 0;
  color: #9b9b9b;
  font-size: 0.11rem;
}

.third-party-login span {
  height: 1px;
  background: #5b4129;
}

/* 登录弹框四角装饰 */
.dialog-corner {
  position: absolute;
  width: 0.12rem;
  height: 0.12rem;
  border: 2px solid #c6f1ff;
  pointer-events: none;
  z-index: 1;
}
.dialog-corner-tl {
  top: -4px;
  left: -4px;
  border-right: 0;
  border-bottom: 0;
}
.dialog-corner-tr {
  top: -4px;
  right: -4px;
  border-left: 0;
  border-bottom: 0;
}
.dialog-corner-bl {
  bottom: -4px;
  left: -4px;
  border-right: 0;
  border-top: 0;
}
.dialog-corner-br {
  bottom: -4px;
  right: -4px;
  border-left: 0;
  border-top: 0;
}

.third-party-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
}

.google-login,
.facebook-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.google-login:active,
.facebook-login:active {
  transform: scale(0.95);
}

.google-login img,
.facebook-login img {
  width: 0.26rem;
  height: 0.26rem;
  object-fit: contain;
}

.dialog-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  margin-top: 0.22rem;
}

.dialog-links a {
  padding: 0;
  background: transparent;
  color: #6b6b6b;
  font-size: 0.12rem;
}

.dialog-links span {
  width: 1px;
  height: 0.18rem;
  background: #9b9b9b;
}

.order-detail-list {
  display: grid;
  grid-template-columns: 0.96rem minmax(0, 1fr);
  gap: 0.12rem;
  margin: 0;
  color: #333;
}

.order-detail-list dt {
  color: #888;
}

.order-detail-list dd {
  margin: 0;
}

.confirm-button {
  width: 100%;
  margin-top: 0.24rem;
}

.toast {
  position: fixed;
  left: 50%;
  top: 30%;
  z-index: 30;
  max-width: calc(100% - 0.48rem);
  margin: 0;
  padding: 0.12rem 0.18rem;
  border-radius: 0.24rem;
  background: rgba(32, 32, 32, 0.9);
  color: #fff;
  font-size: 0.12rem;
  transform: translate(-50%, -50%);
}

@media (max-width: 374px) {
  .product-card {
    grid-template-columns: 0.54rem minmax(0, 1fr);
    padding-right: 0.22rem;
  }

  .product-image {
    width: 0.48rem;
    height: 0.48rem;
  }

  .product-name {
    font-size: 0.14rem;
  }

  .product-info strong {
    font-size: 0.17rem;
  }

  .product-info strong span {
    /* font-size: 0.15rem; */
  }

  .mobile-benefit-card {
    gap: 0.04rem;
    padding: 0.06rem 0.04rem;
  }

  .mobile-benefit-card strong {
    font-size: 0.12rem;
  }
}

/* --- 新增商品初始化加载及空状态样式 (移动端) --- */
.product-status-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 3rem;
  width: 100%;
}
.product-status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.status-icon-box {
}
.status-icon-cart {
}
.status-text {
  font-size: 0.18rem;
  color: #999;
}
.reload-button {
  margin-top: 0.1rem;
  background-color: #ff8a4d;
  color: #fff;
}

/* --- 支付弹框公共基础 --- */
.pay-dialog {
  background: #fff;
  border-radius: 0.12rem;
  position: relative;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.15);
  width: min(4.2rem, 88vw);
}

/* 弹框头部：标题居中，关闭按鈕绝对定位右上角 */
.pay-dialog-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.4rem 0.2rem;
}

.pay-dialog-header .pay-dialog-title {
  margin: 0;
  color: #333;
  font-size: clamp(14px, 0.32rem, 26px);
  font-weight: normal;
  text-align: center;
}

.pay-dialog-header .dialog-close {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
}

/* --- 支付中弹框 --- */
.pay-loading-dialog {
  padding: 0.28rem 0.3rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* × 关闭按钮：绝对定位到弹框右上角 */
.pay-loading-close {
  position: absolute;
  top: 0.16rem;
  right: 0.16rem;
}

/* 标题居中 */
.pay-dialog-title {
  width: 100%;
  margin: 0 0 0.38rem;
  color: #333;
  font-size: clamp(14px, 0.32rem, 26px);
  text-align: center;
}

.pay-spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== 菊花 spinner (12 段 iOS 风格) ===== */
.chr-spinner {
  position: relative;
  width: 0.88rem;
  height: 0.88rem;
}

.chr-spinner span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.07rem;
  height: 0.24rem;
  margin-left: -0.035rem;
  border-radius: 0.035rem;
  background: #aaa;
  transform-origin: 50% 0.44rem;
  animation: chr-fade 1.2s linear infinite;
}

.chr-spinner span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: 0s;
}
.chr-spinner span:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1.1s;
}
.chr-spinner span:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -1s;
}
.chr-spinner span:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.9s;
}
.chr-spinner span:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.8s;
}
.chr-spinner span:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.7s;
}
.chr-spinner span:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.6s;
}
.chr-spinner span:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.5s;
}
.chr-spinner span:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.4s;
}
.chr-spinner span:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.3s;
}
.chr-spinner span:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.2s;
}
.chr-spinner span:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: -0.1s;
}

@keyframes chr-fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}

/* --- 购买成功弹框 --- */
.pay-success-dialog {
  text-align: center;
}

.success-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.3rem 0.4rem;
}

.success-icon-container {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 auto 0.24rem;
}

.success-icon-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.success-desc {
  font-size: clamp(12px, 0.24rem, 18px);
  color: #333;
  margin-bottom: 0.32rem;
  line-height: 1.6;
  text-align: center;
  white-space: pre-line;
}

.success-desc .highlight {
  color: #ff8a4d;
  font-weight: bold;
}

.success-confirm-btn {
  width: 100%;
  min-height: 0.44rem;
  border-radius: 0.5rem;
  font-size: clamp(14px, 0.28rem, 20px);
  font-weight: 600;
}

/* --- 退出登录确认弹框 --- */
.logout-dialog {
  background: #fff;
  border-radius: 0.12rem;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.15);
  width: min(5.2rem, 88vw);
  text-align: center;
  position: relative;
}

.logout-desc {
  margin: 0.24rem auto 0.36rem;
  padding: 0 0.24rem;
  color: #474747;
  font-size: clamp(12px, 0.26rem, 18px);
  line-height: 1.6;
  text-align: center;
}

.logout-actions {
  display: flex;
  gap: 0.16rem;
  justify-content: center;
  padding: 0 0.28rem 0.32rem;
}

.logout-cancel-btn {
  flex: 1;
  min-height: 0.44rem;
  border-radius: 0.5rem;
  background: #f0f0f0;
  color: #555;
  font-size: clamp(13px, 0.26rem, 18px);
}

.logout-confirm-btn {
  flex: 1;
  min-width: 0;
  min-height: 0.44rem;
  border-radius: 0.5rem;
  font-size: clamp(13px, 0.26rem, 18px);
  font-weight: normal;
  padding: 0;
}

@media (min-width: 768px) {
  html {
    font-size: calc(100vw / 19.2) !important;
  }
  .hero-banner {
    border-radius: 0 0 0.28rem 0.28rem;
    background-image: url("../images/pc/header_bg.png");
    background-image: -webkit-image-set(
      url("../images/pc/header_bg.png") 1x,
      url("../images/pc/header_bg@2x.png") 2x
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .language-switcher {
    top: 0.24rem;
    right: 0.34rem;
    /* width: 1.5rem; */
  }

  .language-current,
  .language-option {
    /* min-height: 0.42rem; */
    font-size: 0.16rem;
  }

  .lang-m {
    display: none;
  }

  .lang-pc {
    display: inline;
  }

  .language-icon {
    display: inline-block;
    width: 0.18rem;
    height: 0.18rem;
  }

  .page-main {
    width: min(calc(100% - 0.48rem), 10.64rem);
    margin-top: 0.72rem;
    padding: 0 0 0.8rem;
  }

  .top-grid {
    grid-template-areas:
      "product account"
      "product benefit";
    grid-template-columns: minmax(0, 7.6rem) 2.74rem;
    grid-template-rows: auto 1fr;
    gap: 0.28rem;
  }

  .product-panel {
    grid-area: product;
    display: flex;
    flex-direction: column;
  }

  .account-panel {
    grid-area: account;
  }

  .benefit-panel {
    grid-area: benefit;
  }

  .product-panel,
  .payment-panel {
    padding: 0.2rem 0.32rem 0.3rem;
  }

  .panel-heading h2 {
    font-size: 0.2rem;
  }

  .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem 0.16rem;
  }

  .product-card {
    grid-template-columns: 0.72rem minmax(0, 1fr);
    min-height: 0.95rem;
    padding: 0.1rem 0.28rem 0.1rem 0.14rem;
    border-radius: 0.08rem;
  }

  .product-check {
    width: 0.22rem;
    height: 0.22rem;
    right: 0.08rem;
    bottom: 0.08rem;
  }

  .product-image {
    width: 0.64rem;
    height: 0.64rem;
  }

  .product-bonus {
    /* max-width: 0.82rem; */
    font-size: 0.12rem;
  }

  .product-name {
    font-size: 0.16rem;
  }

  .product-info strong {
    font-size: 0.18rem;
  }

  .account-panel {
    height: 1.53rem;
    padding: 0.21rem 0.18rem;
  }

  .login-prompt {
    gap: 0.15rem;
  }

  .benefit-panel {
    display: flex;
    flex-direction: column;
    padding: 0.1rem 0.3rem;
  }

  .benefit-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.118rem 0;
    border-bottom: 1px solid #ececec;
    color: #ff8a4d;
  }

  .benefit-list li:last-child {
    border-bottom: 0;
  }

  .benefit-list img {
    width: 0.34rem;
    height: 0.34rem;
    object-fit: contain;
  }

  .benefit-list span {
    display: grid;
    gap: 2px;
  }

  .benefit-list strong {
    font-size: 0.2rem;
  }

  .benefit-list small {
    font-size: 0.13rem;
  }

  .payment-panel {
    margin-top: 0.46rem;
  }

  .payment-list {
    margin-top: 0.18rem;
  }

  .payment-list li:not(:first-child) {
    display: none;
  }

  .payment-option {
    min-height: 0.64rem;
    padding: 0 0.24rem;
    font-size: 0.16rem;
  }

  .payment-brand img {
    width: 0.92rem;
  }

  .order-summary {
    display: block;
    position: relative;
    margin-top: 0.38rem;
    padding-right: 1.9rem;
  }

  .summary-info {
    display: block;
  }

  .submit-button {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 1.92rem;
  }

  .mobile-benefits {
    display: none;
  }

  .login-dialog {
    padding: 0.22rem 0.38rem 0.24rem;
  }

  /* Desktop font size overrides to restore 1k, 2k, 4k desktop sizes */
  .product-info strong span {
    /* font-size: 0.14rem; */
  }
  .product-note {
    font-size: 0.16rem;
    line-height: 1;
    margin-top: auto;
    padding-top: 0.3rem;
  }
  .product-note p {
    margin-top: 0.08rem;
  }
  .login-prompt p {
    font-size: 0.19rem;
  }
  .primary-pill {
    font-size: 0.2rem;
    min-height: 0.48rem;
    border-radius: 0.26rem;
  }
  .primary-pill.small {
    font-size: 0.16rem;
    min-height: 0.42rem;
  }
  .logout-button {
    font-size: 0.15rem;
  }
  .role-text strong {
    font-size: 0.17rem;
  }
  .role-text span {
    font-size: 0.13rem;
  }
  .order-summary p {
    font-size: 0.14rem;
  }
  .order-summary strong {
    font-size: 0.24rem;
  }
  .order-summary strong span {
    font-size: 0.16rem;
  }
  .dialog-header h2 {
    font-size: 0.22rem;
  }
  .form-field {
    height: 0.62rem;
  }
  .form-field input {
    font-size: 0.17rem;
    height: 100%;
  }
  .form-error {
    font-size: 0.14rem;
  }
  .dialog-links a {
    font-size: 0.14rem;
  }
  .toast {
    top: 30%;
    bottom: auto;
    font-size: 0.14rem;
    transform: translate(-50%, -50%);
  }
  .product-name {
    margin-right: 0;
  }
  .product-bonus {
    top: 0.04rem;
    right: 0.04rem;
    font-size: 0.12rem;
    padding: 0.01rem 0.02rem;
  }

  .third-party-login p {
    font-size: 0.14rem;
  }

  .google-login,
  .facebook-login {
    width: 0.6rem;
    height: 0.6rem;
  }
  .google-login img,
  .facebook-login img {
    width: 0.3rem;
    height: 0.3rem;
  }

  .login-submit {
    min-height: 0.56rem;
    font-size: 0.18rem;
    border-radius: 0.3rem;
  }

  /* --- 支付弹框 PC/1K/2K/4K 自适应 --- */
  .pay-dialog {
    width: min(3.2rem, 480px);
  }
  .pay-loading-dialog {
    padding: 0.24rem 0.28rem 0.44rem;
  }
  .pay-loading-close {
    top: 0.16rem;
    right: 0.16rem;
  }
  .pay-dialog-title {
    font-size: clamp(16px, 0.22rem, 26px);
    margin-bottom: 0.3rem;
  }
  .chr-spinner {
    width: min(1.1rem, 110px);
    height: min(1.1rem, 110px);
  }
  .chr-spinner span {
    transform-origin: 50% min(0.55rem, 55px);
    height: 0.28rem;
  }
  .success-icon-container {
    width: min(0.9rem, 120px);
    height: min(0.9rem, 120px);
    margin-bottom: 0.2rem;
  }
  .success-desc {
    font-size: clamp(13px, 0.16rem, 18px);
    margin-bottom: 0.24rem;
  }
  .success-confirm-btn {
    font-size: clamp(14px, 0.18rem, 20px);
    min-height: min(0.44rem, 52px);
  }
  .logout-dialog {
    width: min(4.4rem, 500px);
  }
  .logout-desc {
    margin: 0.26rem auto 0.52rem;
    font-size: clamp(13px, 0.17rem, 18px);
  }
  .logout-actions {
    padding: 0 0.6rem 0.32rem;
  }
  .logout-cancel-btn,
  .logout-confirm-btn {
    font-size: clamp(14px, 0.18rem, 20px);
    min-height: min(0.44rem, 52px);
    font-weight: normal;
  }

  /* --- 新增商品初始化及弹窗样式 (PC端) --- */
  .product-status-container {
    flex: 1;
    min-height: 3.6rem;
  }
  .status-icon-box {
  }
  .status-icon-cart {
  }
  .status-text {
    font-size: 0.16rem;
  }
}
