: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-block;
  float: right;
}

.header .header-box .query a {
  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%);
}

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

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

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

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

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

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

.main .cate {
  padding-top: 20px;
  margin: 0 10px;
  font-size: 0;
}

.main .cate .cate-box {
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  min-width: 130px;
  background: #f1f1f1;
  border-radius: 10px;
  height: 67px;
  padding: 0 20px;
  margin: 0 10px 10px;
  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 7px 10px 0 rgba(54, 144, 248, .23);
}

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

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

.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;
  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-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  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;
}

.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"] {
  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 {
  display: block;
}

.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: none;
  }

  .query-m {
    display: block;
  }

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

  .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;
  }
}

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

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