:root {
  --luna-blue: #3c8ce7;
  --luna-cyan: #00eaff;
  --luna-text: #545454;
  --luna-muted: #737373;
  --luna-line: #f7f7f7;
  --luna-shadow: 0 7px 29px 0 rgba(18, 52, 91, .11);
  --luna-button-shadow: 0 5px 6px 0 rgba(73, 105, 230, .22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--luna-text);
  font: 14px/1.5 Arial, "Microsoft YaHei", sans-serif;
  background: #eef5ff;
}

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

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

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    linear-gradient(135deg, rgba(60, 140, 231, .28), rgba(0, 234, 255, .12)),
    url("data:image/svg+xml,%3Csvg width='1600' height='1000' viewBox='0 0 1600 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 166C229 89 372 245 577 173C738 116 804 12 1007 41C1236 73 1333 236 1600 135V0H0z' fill='%23ffffff' fill-opacity='.55'/%3E%3Cpath d='M0 1000V810c178-90 358 2 533-88c188-97 356-286 614-214c199 56 257 209 453 172v320z' fill='%23ffffff' fill-opacity='.48'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center top;
}

.layui-row {
  width: min(1100px, calc(100% - 20px));
  margin: 0 auto;
}

.layui-col-md8,
.layui-col-sm12 {
  width: 100%;
}

.layui-hide-sm {
  display: none;
}

.header .header-box {
  padding-top: 15px;
}

.header .header-box .brand {
  display: inline-flex;
  align-items: center;
  min-height: 45px;
}

.header .header-box .logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
  box-shadow: var(--luna-button-shadow);
}

.header .header-box .logo-image {
  overflow: hidden;
  background: #fff;
}

.header .header-box .logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header .header-box .info {
  font-size: 16px;
  font-weight: 700;
  color: var(--luna-text);
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.header .header-box .query {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  float: right;
}

.header .header-box .query a,
.header .header-box .query button {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 119px;
  line-height: 35px;
  border-radius: 19px;
  cursor: pointer;
  box-shadow: var(--luna-button-shadow);
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.header .header-box .query button {
  border: 0;
  font: inherit;
}

.main .main-box {
  margin-top: 14px;
  background: #fff;
  box-shadow: var(--luna-shadow);
  border-radius: 6px;
  padding-top: 8px;
  padding-bottom: 10px;
}

.main-box:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.recent-purchases-wrap {
  margin-top: 12px;
}

.recent-purchases {
  --purchase-visible: 4;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 20px rgba(18, 52, 91, .09);
  border: 1px solid rgba(219, 234, 254, .92);
  backdrop-filter: blur(10px);
}

.recent-purchases-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #24344d;
  margin-bottom: 8px;
}

.recent-purchases-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.recent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c76f;
  box-shadow: 0 0 0 5px rgba(40, 199, 111, .12);
}

.recent-purchase-controls {
  display: flex;
  gap: 6px;
}

.recent-purchase-controls button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #dcecff;
  border-radius: 50%;
  color: #1677ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  background: #f8fbff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(44, 96, 158, .07);
}

.recent-purchase-controls button:disabled {
  opacity: .42;
  cursor: default;
}

.recent-purchases-viewport {
  overflow: hidden;
}

.recent-purchases-list {
  display: flex;
  gap: 10px;
  will-change: transform;
  transition: transform .34s ease;
}

.recent-purchase-card {
  flex: 0 0 calc(100% / var(--purchase-visible) - 8px);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  border: 1px solid #e6f0ff;
}

.purchase-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
  box-shadow: var(--luna-button-shadow);
}

.recent-purchase-card p {
  margin: 0;
  color: #6c7b92;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-purchase-card p strong {
  color: #24344d;
  font-weight: 800;
}

.recent-purchase-card em {
  display: block;
  margin-top: 1px;
  color: #1677ff;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main .title,
.main .cate,
.main .goods {
  margin: 0 20px;
}

.main .title,
.pay-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--luna-text);
}

.title-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  margin-right: 5px;
  vertical-align: -3px;
  border-radius: 4px;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.title-icon:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 1.5px;
}

.main .cate {
  padding-top: 8px;
  margin: 0 12px;
  font-size: 0;
}

.main .cate .cate-box {
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  min-width: 98px;
  background: #f1f1f1;
  border-radius: 8px;
  height: 40px;
  padding: 0 12px;
  margin: 0 5px 6px;
  position: relative;
}

.main .cate .cate-box-select {
  color: #fff;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
  box-shadow: 0 5px 8px 0 rgba(54, 144, 248, .18);
}

.main .cate .cate-box p {
  font-weight: 400;
  font-size: 11px;
  color: inherit;
  margin: 6px 0 0;
}

.main .cate .cate-box div {
  opacity: .76;
  color: inherit;
  font-size: 10px;
  margin-top: 2px;
}

.main .goods {
  margin-top: 10px;
  border-top: 1px solid var(--luna-line);
  padding-top: 10px;
}

.main .title-2 {
  margin: 0 0 10px;
  color: var(--luna-text);
}

.goods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 11px;
}

.main .goods .goods-box {
  padding: 18px;
  vertical-align: middle;
  min-width: 260px;
  min-height: 116px;
  background: #fff;
  border: 2px solid #f1f4fb;
  box-shadow: 0 4px 10px 0 rgba(135, 142, 154, .14);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  flex: 1 1 260px;
  max-width: calc(50% - 6px);
}

.main .goods .goods-box:hover {
  border-color: rgba(60, 140, 231, .5);
}

.main .goods .picture {
  margin-right: 10px;
  min-width: 80px;
  width: 80px;
  height: 80px;
}

.main .goods .picture img,
.main .goods .picture .placeholder,
.goods-img .placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.main .goods .msg {
  min-width: 0;
}

.main .goods .msg .goods-name {
  margin: 5px 0 10px;
  color: var(--luna-text);
  font-size: 13px;
  font-weight: 700;
}

.main .goods .msg .goods-desc {
  color: #8a8a8a;
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 8px;
}

.main .goods .msg .goods-price {
  color: var(--luna-blue);
  font-size: 14px;
  font-weight: 700;
}

.main .goods .msg .goods-price div {
  display: inline-block;
  background: #ffebe8;
  color: #fb636b;
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 12px;
  margin-left: 5px;
}

.main .goods .msg .goods-num {
  margin-top: 5px;
}

.main .goods .msg .goods-num div {
  display: inline-block;
  width: 53px;
  height: 5px;
  background: #f3f3f3;
  position: relative;
  border-radius: 3px;
}

.main .goods .msg .goods-num div p {
  display: inline-block;
  position: absolute;
  width: 60%;
  height: 100%;
  background: linear-gradient(55deg, #65d69e, #31dd92);
  border-radius: 3px;
  margin: 0;
}

.main .goods .msg .goods-num span {
  color: #0db26a;
  font-size: 12px;
  margin-left: 10px;
}

.messages {
  margin-top: 20px;
}

.message {
  background: #fff;
  box-shadow: var(--luna-shadow);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: var(--luna-muted);
}

.message.error {
  color: #fb636b;
}

.message.success {
  color: #28c76f;
}

.footer {
  margin-top: 50px;
  margin-bottom: 15px;
  text-align: center;
  color: #9a9a9a;
}

.footer a {
  color: var(--luna-blue);
}

.query-m {
  display: none;
  position: fixed;
  width: 60px;
  height: 60px;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
  border-radius: 50%;
  right: 20px;
  bottom: 20%;
  box-shadow: var(--luna-button-shadow);
  z-index: 3;
}

.query-m a {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.goods-img {
  float: left;
  margin-left: 20px;
  margin-right: 10px;
  margin-top: 10px;
  width: calc(33.333% - 30px);
  aspect-ratio: 1;
  position: relative;
}

.goods-img img,
.goods-img .placeholder {
  width: calc(100% - 10px);
  height: 100%;
  position: absolute;
  object-fit: cover;
  box-shadow: var(--luna-button-shadow);
  border-radius: 5px;
  margin-top: 5px;
}

.goods-msg {
  float: left;
  width: calc(66.666% - 30px);
  margin: 20px 20px 0 10px;
}

.goods-msg .goods-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--luna-text);
  border-bottom: 1px solid var(--luna-line);
  padding-bottom: 5px;
}

.small-tips {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 5px;
  line-height: initial;
}

.tips-green {
  background: #dff7ea;
  color: #28c76f;
}

.tips-yellow {
  background: #fbf7da;
  color: #d6b900;
}

.tips-blue {
  background: #cadbff;
  color: var(--luna-blue);
}

.tips-red {
  background: #ffd3d3;
  color: #fa016d;
}

.tips-pink {
  background: #ffebe8;
  color: #fb636b;
}

.tips-black {
  background: #262626;
  color: #fff;
}

.price {
  margin-top: 5px;
}

.price-preview {
  margin-top: 14px;
  width: min(390px, 100%);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #dcecff;
  background: #f7fbff;
}

.price-preview span,
.price-preview small {
  display: block;
  color: #7a8a9e;
}

.price-preview strong {
  display: block;
  color: #e4393c;
  font-size: 24px;
  line-height: 1.35;
}

.price .price-sign {
  color: #e4393c;
  font-size: 16px;
}

.price .price-num {
  color: #e4393c;
  font-size: 22px;
}

.price .price-c {
  margin-left: 5px;
  color: #666;
  font-size: 12px;
}

.entry {
  margin-top: 15px;
}

.l-msg {
  color: #999;
  width: 72px;
  display: inline-block;
  vertical-align: middle;
}

.input input,
.input select,
.input textarea,
.install-field input {
  display: inline-block;
  padding: 0 8px;
  height: 35px;
  width: 300px;
  font-weight: 500;
  font-size: 14px;
  color: #777;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 10px 0 rgba(135, 142, 154, .07);
  border-radius: 4px;
  overflow: hidden;
}

.input textarea {
  min-height: 72px;
  padding-top: 8px;
  resize: vertical;
}

.captcha-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  vertical-align: middle;
}

.captcha-input img {
  height: 35px;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
}

.captcha-input input {
  width: 120px;
}

.install-form {
  padding: 12px 20px 0;
}

.install-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--luna-muted);
}

.install-field input {
  width: 100%;
}

.field-error {
  color: #fb636b;
  font-weight: 700;
}

.pay-num {
  width: 54px !important;
  text-align: center;
  font-size: 20px !important;
}

.pay {
  margin-top: 20px;
  border-top: 1px solid var(--luna-line);
  padding-top: 10px;
}

.pay-type {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  background: #f7f7f7;
  border: 2px solid #e7e7e7;
  border-radius: 5px;
  position: relative;
  padding: 7px 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.pay-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-type:has(input:checked) {
  border-color: rgb(51, 105, 255);
  background: rgb(248, 250, 255);
  color: rgb(51, 105, 255);
}

.pay-type small {
  flex-basis: 100%;
  color: #8a97a8;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

.pay-type .pay-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  flex: 0 0 28px;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  box-sizing: border-box;
}

.pay-dot {
  width: 28px;
  height: 22px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.buy {
  text-align: center;
  margin-top: 10px;
  clear: both;
}

.buy button,
.btn a,
.btn button {
  border: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  min-width: 160px;
  line-height: 45px;
  padding: 0 22px;
  margin-top: 15px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: var(--luna-button-shadow);
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.intro {
  padding: 10px 20px;
  color: #444;
  font-size: 14px;
  line-height: 2.2;
  font-weight: 700;
}

.notice-text {
  padding: 10px 20px;
  color: #777;
  line-height: 1.8;
}

.rich-notice {
  line-height: 1.9;
  word-break: break-word;
}

.rich-notice p,
.rich-notice div {
  margin: 0 0 8px;
}

.rich-notice h1,
.rich-notice h2,
.rich-notice h3,
.rich-notice h4 {
  margin: 0 0 10px;
  color: #1f2937;
  line-height: 1.35;
}

.rich-notice ul,
.rich-notice ol {
  margin: 8px 0 8px 24px;
  padding: 0;
}

.rich-notice a {
  color: var(--luna-blue);
  font-weight: 700;
  text-decoration: underline;
}

.rich-notice blockquote {
  margin: 10px 0;
  padding: 8px 12px;
  border-left: 4px solid var(--luna-blue);
  background: #f8faff;
  border-radius: 8px;
}

.rich-notice img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.rich-notice table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
}

.rich-notice th,
.rich-notice td {
  padding: 8px 10px;
  border: 1px solid #dbe4f0;
  text-align: left;
}

.rich-notice th {
  background: #f8faff;
  font-weight: 800;
}

.rich-notice hr {
  height: 1px;
  margin: 12px 0;
  border: 0;
  background: #dbe4f0;
}

.pay-title {
  margin: 0 15px;
}

.layui-card-body {
  padding: 10px 20px;
}

.luna-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.qr-box {
  display: grid;
  place-items: center;
  margin: 12px 0;
}

.qr-box img {
  width: 148px;
  height: 148px;
  border-radius: 8px;
  border: 1px solid var(--luna-line);
  padding: 8px;
  background: #fff;
}

.luna-table td,
.luna-table th {
  padding: 9px 5px;
  border-bottom: 1px solid var(--luna-line);
}

.luna-table td:first-child {
  width: 45%;
  text-align: right;
  color: var(--luna-muted);
}

.order-list {
  margin: 10px 0 0;
  border-bottom: 1px solid var(--luna-line);
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-ui {
  color: var(--luna-muted);
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-ui li {
  margin-bottom: 8px;
}

.info-ui strong {
  width: 86px;
  margin-bottom: 3px;
  text-align: right;
  display: inline-block;
}

.order-info {
  width: 100%;
  min-height: 95px;
  overflow-wrap: break-word;
  padding: 8px;
  overflow: auto;
  resize: vertical;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 10px 0 rgba(135, 142, 154, .07);
  border-radius: 4px;
  color: #555;
  background: #fff;
}

.tabs {
  margin-top: 18px;
}

.tab-labels {
  display: flex;
  border-bottom: 1px solid #e6e6e6;
}

.tab-labels label {
  color: var(--luna-muted);
  line-height: 40px;
  padding: 0 18px;
  cursor: pointer;
}

.tabs input[type="radio"] {
  display: none;
}

.tab-panel {
  display: none;
  text-align: center;
  padding: 20px 0 8px;
}

#tab-sn:checked ~ .tab-labels label[for="tab-sn"],
#tab-email:checked ~ .tab-labels label[for="tab-email"],
#tab-browser:checked ~ .tab-labels label[for="tab-browser"],
#tab-recharge:checked ~ .tab-labels label[for="tab-recharge"] {
  color: var(--luna-text);
  font-weight: 700;
  border-bottom: 2px solid var(--luna-blue);
}

#tab-sn:checked ~ .tab-content .tab-sn,
#tab-email:checked ~ .tab-content .tab-email,
#tab-browser:checked ~ .tab-content .tab-browser,
#tab-recharge:checked ~ .tab-content .tab-recharge {
  display: block;
}

.radio-field ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  list-style: none;
}

.radio-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recharge-card {
  overflow: hidden;
}

.recharge-card .layui-card-body {
  padding: 8px 20px 4px;
}

.recharge-summary,
.recharge-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.recharge-summary div,
.recharge-status-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e9f1ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.recharge-summary span,
.recharge-status-card span,
.recharge-detail-list span {
  display: block;
  margin-bottom: 5px;
  color: #7a8a9e;
  font-size: 12px;
}

.recharge-summary strong,
.recharge-status-card strong,
.recharge-detail-list strong {
  display: block;
  min-width: 0;
  color: #23334d;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.recharge-form {
  display: grid;
  gap: 16px;
}

.recharge-field {
  display: grid;
  gap: 8px;
  color: #23334d;
  font-weight: 700;
}

.recharge-field input,
.recharge-field select,
.recharge-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #1f2a44;
  font-weight: 600;
  border: 1px solid #dfe9f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(44, 96, 158, .07);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.recharge-field input:focus,
.recharge-field textarea:focus {
  border-color: #3c8ce7;
  box-shadow: 0 0 0 4px rgba(60, 140, 231, .12);
}

.recharge-field small {
  color: #8a9bb2;
  font-weight: 500;
}

.recharge-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recharge-channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #dfe9f7;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(44, 96, 158, .07);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.recharge-channel:hover {
  transform: translateY(-1px);
  border-color: rgba(60, 140, 231, .55);
}

.recharge-channel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recharge-channel:has(input:checked) {
  color: #1677ff;
  border-color: #3c8ce7;
  background: linear-gradient(135deg, rgba(60, 140, 231, .12), rgba(0, 234, 255, .08));
  box-shadow: 0 12px 24px rgba(60, 140, 231, .18);
}

.recharge-channel-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
  box-shadow: var(--luna-button-shadow);
}

.recharge-channel-text {
  min-width: 0;
}

.recharge-channel-text strong,
.recharge-channel-text small {
  display: block;
}

.recharge-channel-text small {
  color: #8a9bb2;
  font-size: 12px;
  font-weight: 500;
}

.recharge-actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.recharge-actions button,
.recharge-actions a {
  min-width: 180px;
  border: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 46px;
  padding: 0 28px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: var(--luna-button-shadow);
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.recharge-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}

.recharge-detail-list div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e9f1ff;
}

.recharge-message {
  padding: 16px;
  color: #23334d;
  font-weight: 700;
  line-height: 1.8;
  border-radius: 14px;
  background: #f5fbff;
  border: 1px solid #dcecff;
  overflow-wrap: anywhere;
}

.empty {
  text-align: center;
  color: var(--luna-muted);
  padding: 40px 20px;
}

@media (max-width: 768px) {
  body {
    background: #fff;
  }

  .background {
    display: none;
  }

  .header {
    background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
    color: #fff;
    height: 205px;
    margin-bottom: -145px;
    border-radius: 0 0 10px 10px;
  }

  .header .info {
    color: #fff !important;
  }

  .header .header-box .query {
    display: inline-flex;
  }

  .query-m {
    display: none;
  }

  .main .goods .goods-box {
    max-width: 100%;
    flex-basis: 100%;
  }

  .recent-purchases {
    --purchase-visible: 2;
  }

  .goods-img,
  .goods-msg {
    float: none;
    width: auto;
    margin: 15px 20px 0;
  }

  .goods-img {
    aspect-ratio: 16 / 9;
  }

  .input input,
  .input select,
  .input textarea {
    width: calc(100% - 88px);
  }

  .order-list {
    grid-template-columns: 1fr;
  }

  .recharge-card .layui-card-body {
    padding: 6px 14px 2px;
  }

  .recharge-summary,
  .recharge-status-grid,
  .recharge-detail-list {
    grid-template-columns: 1fr;
  }

  .recharge-channel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 425px) {
  .main .cate .cate-box {
    min-width: calc(50% - 60px);
  }

  .recent-purchases {
    --purchase-visible: 1;
  }

  .tab-labels {
    display: grid;
    grid-template-columns: 1fr;
  }
}


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

.title-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.project-request-link {
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.project-request-link strong {
  color: #168bff;
  font-weight: 800;
}

.project-request-link:hover strong {
  text-decoration: underline;
}

.project-request-form {
  display: grid;
  gap: 15px;
  padding: 18px 20px 4px;
}

.project-request-field {
  display: grid;
  gap: 7px;
  color: #23334d;
  font-weight: 700;
}

.project-request-field input,
.project-request-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: #1f2a44;
  border: 1px solid #dfe9f7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(44, 96, 158, .07);
  outline: none;
}

.project-request-field textarea {
  min-height: 100px;
  resize: vertical;
}

.project-request-field input:focus,
.project-request-field textarea:focus {
  border-color: #3c8ce7;
  box-shadow: 0 0 0 4px rgba(60, 140, 231, .12);
}

.project-request-field small {
  color: #8a9bb2;
  font-weight: 500;
}

.project-request-field img {
  width: auto;
  height: 38px;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #dfe9f7;
  border-radius: 8px;
}

.project-request-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.project-request-actions button,
.project-request-actions a {
  min-width: 150px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 44px;
  padding: 0 24px;
  border-radius: 100px;
  cursor: pointer;
}

.project-request-actions button {
  color: #fff;
  box-shadow: var(--luna-button-shadow);
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.project-request-secondary {
  color: var(--luna-blue);
  border: 1px solid #dcecff !important;
  background: #f8fbff;
}

@media (max-width: 768px) {
  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-request-link {
    white-space: normal;
  }

  .project-request-actions button,
  .project-request-actions a {
    width: 100%;
  }
}


.support-widget {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.support-launcher {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(60, 140, 231, .28);
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
  position: relative;
}

.support-launcher i {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #fb636b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(239, 68, 68, .28);
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #dcecff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 52, 91, .18);
}

.support-panel[hidden] {
  display: none !important;
}

.activity-launcher {
  min-width: 96px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(220, 38, 38, .28);
  background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
}

.header .header-box .query .header-activity-launcher {
  width: auto;
  min-width: 142px;
  padding: 0 18px;
  box-shadow: 0 10px 22px rgba(220, 38, 38, .24);
  background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
}

.activity-launcher:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.activity-modal[hidden] {
  display: none !important;
}

.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.activity-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(3px);
}

.activity-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .26);
}

.activity-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
  background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%);
}

.activity-dialog-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.activity-dialog-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.activity-dialog-body {
  min-height: 220px;
  padding: 18px;
  overflow: auto;
  color: #24344d;
}

body.activity-modal-open {
  overflow: hidden;
}

.support-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.support-head > div {
  min-width: 0;
}

.support-head strong,
.support-head small {
  display: block;
  overflow-wrap: anywhere;
}

.support-head small {
  opacity: .86;
  font-size: 12px;
}

.support-head button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  touch-action: manipulation;
}

.support-messages {
  height: 280px;
  padding: 14px;
  overflow: auto;
  background: #f7fbff;
}

.support-empty {
  margin: 52px auto 0;
  max-width: 220px;
  color: #7a8a9e;
  text-align: center;
  line-height: 1.7;
}

.support-msg {
  display: flex;
  margin-bottom: 10px;
}

.support-msg.own {
  justify-content: flex-end;
}

.support-msg > div {
  max-width: 78%;
  padding: 9px 11px;
  border-radius: 12px;
  color: #24344d;
  background: #fff;
  box-shadow: 0 6px 14px rgba(44, 96, 158, .08);
  word-break: break-word;
}

.support-msg.own > div {
  color: #fff;
  background: #3c8ce7;
}

.support-msg small {
  display: block;
  margin-top: 4px;
  opacity: .72;
  font-size: 11px;
  text-align: right;
}

.support-form {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e6f0ff;
  background: #fff;
}

.support-form.support-dragging {
  background: #f0f8ff;
  box-shadow: inset 0 0 0 2px rgba(60, 140, 231, .24);
}

.support-form.support-dragging::after {
  content: "松手添加图片";
  position: absolute;
  inset: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px dashed #3c8ce7;
  border-radius: 12px;
  color: #1d4ed8;
  background: rgba(239, 246, 255, .92);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
}

.support-topic-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.support-topic-switch label {
  position: relative;
  min-width: 0;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe9f7;
  border-radius: 10px;
  color: #4c5f78;
  background: #f8fbff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.support-topic-switch label.active {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.support-topic-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-topic-hint {
  color: #6b7d94;
  font-size: 12px;
}

.support-form input:not([type="radio"]),
.support-form textarea {
  width: 100%;
  border: 1px solid #dfe9f7;
  border-radius: 10px;
  padding: 9px 10px;
  color: #23334d;
  outline: none;
  resize: none;
}

.support-form input:not([type="radio"]):focus,
.support-form textarea:focus {
  border-color: #3c8ce7;
  box-shadow: 0 0 0 3px rgba(60, 140, 231, .12);
}

.support-form button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background-image: linear-gradient(135deg, var(--luna-blue) 10%, var(--luna-cyan) 100%);
}

.support-form button:disabled {
  opacity: .62;
  cursor: default;
}

@media (max-width: 768px) {
  .support-widget {
    right: 14px;
    bottom: 22px;
  }

  .support-launcher {
    width: 56px;
    height: 56px;
  }

  .support-panel {
    bottom: calc(100% + 10px);
  }

  .activity-launcher {
    min-width: 88px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .activity-dialog {
    max-height: 86vh;
  }

  .activity-dialog-head {
    padding: 14px;
  }

  .activity-dialog-body {
    padding: 14px;
  }

  .query-m {
    display: none;
  }

  .query-m a {
    width: 56px;
    height: 56px;
  }
}

.support-presence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #064e3b;
  background: rgba(220, 252, 231, .92);
  font-size: 12px;
  font-weight: 800;
  vertical-align: 1px;
}

.support-presence i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.support-presence.offline {
  color: #6b7280;
  background: rgba(243, 244, 246, .94);
}

.support-presence.offline i {
  background: #9ca3af;
}

.support-widget.support-offline .support-head {
  background-image: linear-gradient(135deg, #607089 10%, #8aa0b6 100%);
}

.support-widget.support-offline .support-launcher {
  background-image: linear-gradient(135deg, #64748b 10%, #94a3b8 100%);
}

.support-msg small {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.support-recalled-message {
  color: #8a96a8;
  font-size: 12px;
  font-style: italic;
}

.support-msg.own .support-recalled-message {
  color: rgba(255, 255, 255, .82);
}

.support-revoke-button {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  opacity: .9;
}

.support-revoke-button:hover {
  text-decoration: underline;
}

.support-revoke-button:disabled {
  cursor: default;
  opacity: .55;
}

.support-read {
  font-style: normal;
  opacity: .84;
}

.support-read.unread {
  opacity: 1;
  color: #e0f2fe;
}

.support-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.support-upload-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #dfe9f7;
  border-radius: 999px;
  color: #2765a8;
  background: #f7fbff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.support-upload-row [data-support-file-name] {
  min-width: 0;
  color: #6b7a90;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.support-image-link {
  display: block;
  margin-top: 4px;
}

.support-image-link img {
  display: block;
  max-width: min(210px, 100%);
  max-height: 180px;
  border-radius: 10px;
  object-fit: contain;
}

.support-msg-text + .support-image-link {
  margin-top: 8px;
}

/* Full-site mobile fit pass */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .layui-row {
    width: min(100% - 16px, 100%);
  }

  .header .header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 4px 0;
  }

  .header .header-box .brand {
    min-width: 0;
    max-width: none;
  }

  .header .header-box .query {
    flex: 0 0 auto;
    gap: 6px;
  }

  .header .header-box .query a,
  .header .header-box .query button {
    width: auto;
    min-width: 62px;
    height: 34px;
    padding: 0 10px;
    line-height: 34px;
    font-size: 13px;
  }

  .header .header-box .query .header-activity-launcher {
    min-width: 92px;
    padding: 0 10px;
  }

  .header .header-box .info {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main .main-box {
    margin-top: 14px;
    padding-top: 9px;
    border-radius: 10px;
  }

  .main .title,
  .main .cate,
  .main .goods,
  .pay-title {
    margin-left: 12px;
    margin-right: 12px;
  }

  .main .cate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 8px;
    font-size: inherit;
  }

  .main .cate .cate-box {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 40px;
    margin: 0;
    padding: 6px 9px;
  }

  .main .cate .cate-box p {
    margin-top: 0;
    overflow-wrap: anywhere;
  }

  .goods-list {
    gap: 9px;
  }

  .main .goods .goods-box {
    min-width: 0;
    max-width: none;
    flex-basis: 100%;
    width: 100%;
    padding: 12px;
    border-radius: 9px;
  }

  .main .goods .picture {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }

  .main .goods .msg .goods-name,
  .main .goods .msg .goods-desc,
  .main .goods .msg .goods-price,
  .main .goods .msg .goods-num {
    overflow-wrap: anywhere;
  }

  .main .goods .msg .goods-price div {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
  }

  .main .goods .msg .goods-num span {
    display: inline-block;
    margin-left: 6px;
  }

  .goods-img,
  .goods-msg {
    margin-left: 12px;
    margin-right: 12px;
  }

  .goods-img {
    width: auto;
    max-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .goods-img img,
  .goods-img .placeholder {
    width: 100%;
    margin-top: 0;
    inset: 0;
  }

  .goods-msg .goods-name {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .small-tips {
    margin-left: 0;
  }

  .entry {
    display: grid;
    gap: 7px;
    margin-top: 13px;
  }

  .l-msg {
    width: auto;
    display: block;
    text-align: left;
  }

  .input,
  .input input,
  .input select,
  .input textarea {
    width: 100%;
  }

  .input input,
  .input select,
  .input textarea,
  .install-field input {
    min-height: 42px;
  }

  .pay-num {
    width: 96px !important;
  }

  .captcha-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .captcha-input input {
    width: 100%;
  }

  .pay {
    display: grid;
    gap: 8px;
  }

  .pay-type {
    width: 100%;
    margin: 0;
  }

  .buy button,
  .btn a,
  .btn button,
  .recharge-actions button,
  .recharge-actions a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .layui-card-body {
    padding: 8px 12px;
  }

  .luna-table {
    table-layout: fixed;
    font-size: 13px;
  }

  .luna-table td,
  .luna-table th {
    overflow-wrap: anywhere;
  }

  .luna-table td:first-child {
    width: 36%;
  }

  .info-ui strong {
    width: auto;
    min-width: 72px;
    text-align: left;
  }

  .order-info {
    min-height: 132px;
    font-size: 13px;
  }

  .tab-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-labels label {
    padding: 0 8px;
    text-align: center;
  }

  .tab-panel {
    padding-top: 14px;
  }

  .recent-purchases,
  .message,
  .project-request-form,
  .notice-text,
  .intro {
    word-break: break-word;
  }

  .footer {
    margin: 28px 12px 8px;
    font-size: 12px;
  }

  .support-widget {
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .query-m {
    left: 12px;
    right: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .support-panel {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 112px);
    display: flex;
    flex-direction: column;
  }

  .support-messages {
    height: auto;
    min-height: 190px;
    max-height: 42dvh;
  }

  .support-form {
    gap: 7px;
  }

  .support-topic-switch {
    gap: 6px;
  }

  .activity-modal {
    padding: 12px;
  }

  .activity-dialog {
    width: calc(100vw - 24px);
    max-height: 88dvh;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .main .cate {
    grid-template-columns: 1fr;
  }

  .main .goods .goods-box {
    align-items: flex-start;
  }

  .main .goods .picture {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .title-row {
    gap: 8px;
  }

  .project-request-actions,
  .recharge-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab-labels {
    grid-template-columns: 1fr;
  }

  .support-launcher {
    width: 52px;
    height: 52px;
  }

  .header .header-box .query a,
  .header .header-box .query button {
    min-width: 56px;
    padding: 0 8px;
    font-size: 12px;
  }

  .header .header-box .query .header-activity-launcher {
    min-width: 82px;
  }
}
