:root {
  --blue: #2557d6;
  --navy: #061b35;
  --text: #171b23;
  --muted: #747b88;
  --line: #e5e8ee;
  --soft: #f5f8ff;
  --green: #169b55;
  --red: #e23b3b;
  --orange: #d97706;
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  transition: 0.18s ease;
}
a {
  text-decoration: none;
  color: var(--blue);
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 3vw;
  gap: 70px;
}
.brand {
  font-weight: 800;
  font-size: 30px;
  color: var(--blue);
  letter-spacing: -2px;
}
.topbar nav {
  display: flex;
  gap: 45px;
  height: 100%;
  align-items: center;
}
.topbar nav a {
  font-size: 16px;
  color: var(--text);
  height: 100%;
  display: grid;
  place-items: center;
  border-bottom: 3px solid transparent;
}
.topbar nav a.active {
  color: var(--blue);
  border-color: var(--blue);
}
.support {
  margin-left: auto;
  color: var(--muted);
}
.store {
  max-width: 1100px;
  margin: 34px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 38px;
}
.catalog {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
}
.categories {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.category {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 17px 25px;
  color: #505765;
  cursor: pointer;
}
.category:hover,
.category.active {
  background: #f6f8fc;
  color: var(--blue);
}
.category.active {
  border-left: 3px solid var(--blue);
  font-weight: 700;
}
.product-area h1 {
  margin: 8px 0 20px;
  font-size: 25px;
}
.product-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 20px;
  text-align: left;
  padding: 20px;
  cursor: pointer;
  align-items: center;
}
.product:last-child {
  border: 0;
}
.product:hover,
.product.selected {
  background: #fbfcff;
}
.product.selected {
  box-shadow: inset 3px 0 var(--blue);
}
.product-mark {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.product-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-copy strong {
  font-size: 18px;
}
.product-copy small {
  color: var(--muted);
  line-height: 1.55;
}
.product-copy em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
}
.price {
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
}
.catalog-note {
  color: var(--muted);
  margin-top: 22px;
}
.checkout {
  background: linear-gradient(145deg, #f7f9ff, #eef4ff);
  border-radius: var(--radius);
  padding: 26px 28px;
  align-self: start;
}
.checkout h2 {
  margin: 0 0 21px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dce4f4;
}
.summary-row span,
.checkout label,
.checkout legend {
  color: #505765;
}
.blue {
  color: var(--blue);
}
.checkout > form > label {
  display: block;
  margin-top: 20px;
}
.checkout input[type="text"],
.lookup input,
.login-box input,
.panel input,
.panel select,
.panel textarea,
.filters select,
.form-grid input {
  display: block;
  width: 100%;
  border: 1px solid #d6dbe5;
  border-radius: 6px;
  background: #fff;
  padding: 12px 14px;
  margin-top: 9px;
  outline: 0;
}
.checkout input:focus,
.lookup input:focus,
.panel input:focus,
.panel textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2557d618;
}
.quantity {
  display: flex;
  margin-top: 8px;
  width: 155px;
  margin-left: auto;
}
.quantity button,
.quantity input {
  height: 38px;
  border: 1px solid #d7dbe3;
  background: #fff;
  text-align: center;
}
.quantity button {
  width: 42px;
}
.quantity input {
  width: 70px;
  border-left: 0;
  border-right: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
.pay-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8dce5;
  border-radius: 6px;
  background: #fff;
  padding: 10px 13px;
  margin-top: 8px !important;
}
.pay-option input {
  order: 3;
  margin-left: auto;
}
.pay-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}
.ali {
  background: #1677ff;
}
.wx {
  background: #18ad45;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #cdd5e3;
  margin-top: 21px;
  padding-top: 16px;
}
.total strong {
  font-size: 26px;
  color: var(--blue);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  padding: 11px 21px;
  cursor: pointer;
}
.btn:hover {
  background: #1747bd;
}
.wide {
  width: 100%;
  margin-top: 15px;
}
.safe {
  display: block;
  text-align: center;
  color: #8a93a3;
  margin-top: 11px;
}
.lookup {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 0 0 45px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 55px;
}
.lookup h2 {
  margin: 0 0 18px;
}
.lookup form {
  display: flex;
  gap: 12px;
}
.lookup form input {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.lookup-result {
  border-left: 1px solid var(--line);
  padding-left: 35px;
}
.result-head {
  display: flex;
  justify-content: space-between;
}
.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  background: #f1f3f5;
}
.status.delivered {
  color: var(--green);
  background: #e8f8ef;
}
.status.pending {
  color: var(--orange);
  background: #fff5e5;
}
.status.failed {
  color: var(--red);
  background: #fff0f0;
}
dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 11px;
  margin: 20px 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  word-break: break-all;
}
.card-secret {
  display: flex;
  background: #f4f6f9;
  padding: 10px 13px;
  margin-top: 8px;
}
.card-secret code {
  flex: 1;
}
.card-secret button,
.link-btn {
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
}
.install-body,
.login-body {
  min-height: 100vh;
  background: #f4f6fa;
  display: grid;
  place-items: center;
}
.install-box,
.login-box {
  width: min(620px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 18px 60px #17203312;
}
.login-box {
  width: min(420px, calc(100% - 32px));
}
.login-box h1 {
  margin: 34px 0 24px;
}
.login-box label,
.panel label,
.form-grid label {
  display: block;
  margin: 14px 0;
  color: #505765;
}
.notice {
  padding: 12px 16px;
  background: #eef4ff;
  color: #1f4ab7;
  border-radius: 6px;
  margin: 15px 0;
}
.notice.danger {
  background: #fff0f0;
  color: var(--red);
}
.notice.success {
  background: #e8f8ef;
  color: var(--green);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .btn {
  grid-column: 1/-1;
}
.admin-body {
  background: #f7f8fa;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 210px;
  background: var(--navy);
  color: #fff;
  padding: 25px 13px;
  display: flex;
  flex-direction: column;
}
.brand.inverse {
  color: #fff;
  padding: 0 12px;
  font-size: 25px;
}
.sidebar nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  color: #d7e2ef;
  padding: 14px 16px;
  border-radius: 6px;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #1264ec;
  color: #fff;
}
.sidebar-user {
  margin-top: auto;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  color: #dbe4ef;
}
.admin-main {
  margin-left: 210px;
  min-height: 100vh;
}
.admin-main > header {
  height: 64px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-main > header h1 {
  font-size: 20px;
  margin: 0;
}
.admin-main > section,
.admin-main > .stats,
.admin-main > .filters,
.admin-main > .table-wrap,
.admin-main > .split,
.admin-main > .notice {
  margin-left: 22px;
  margin-right: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}
.stats div {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.stats span {
  display: block;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}
.orange {
  color: var(--orange);
}
.green {
  color: var(--green);
}
.red {
  color: var(--red) !important;
}
.filters {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 0;
}
.filters select {
  width: 180px;
  margin: 0;
  background: #fff;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 600;
  background: #fbfcfd;
}
td {
  color: #414958;
}
.detail-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  bottom: 0;
  width: 440px;
  background: #fff;
  box-shadow: -15px 0 45px #1219271a;
  padding: 26px;
  z-index: 10;
  transition: right 0.25s;
}
.detail-drawer.open {
  right: 0;
}
.drawer-close {
  position: absolute;
  right: 20px;
  top: 20px;
  border: 0;
  background: none;
  font-size: 26px;
  cursor: pointer;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin-top: 22px;
}
.split h2,
.panel h2 {
  font-size: 18px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  align-self: start;
}
.panel textarea {
  resize: vertical;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.settings {
  max-width: 720px;
  margin-top: 22px !important;
}
.settings form {
  max-width: 520px;
}
@media (max-width: 900px) {
  .topbar {
    gap: 25px;
  }
  .support {
    display: none;
  }
  .store {
    display: block;
    padding: 0 16px;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .categories {
    display: flex;
    overflow: auto;
    border: 0;
  }
  .category {
    white-space: nowrap;
    border-bottom: 2px solid transparent;
  }
  .category.active {
    border-left: 0;
    border-bottom-color: var(--blue);
  }
  .checkout {
    margin: 28px 0;
  }
  .lookup {
    grid-template-columns: 1fr;
  }
  .lookup-result {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .sidebar nav {
    margin-top: 20px;
    flex-direction: row;
    overflow: auto;
  }
  .sidebar-user {
    display: none;
  }
  .admin-main {
    margin: 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .detail-drawer {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .brand {
    font-size: 24px;
  }
  .topbar nav {
    gap: 20px;
  }
  .catalog {
    display: block;
  }
  .product {
    grid-template-columns: 52px 1fr;
  }
  .product-mark {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .price {
    grid-column: 2;
  }
  .checkout {
    padding: 22px 18px;
  }
  .lookup {
    padding: 22px 18px;
  }
  .lookup form {
    display: block;
  }
  .lookup form .btn {
    margin-top: 10px;
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .admin-main > header {
    padding: 0 15px;
  }
}
.site-icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 9px;
  vertical-align: middle;
}
.product-mark.image {
  object-fit: cover;
}
.product-description,
.service-box {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  line-height: 1.75;
  overflow: hidden;
}
.product-description img,
.service-box img {
  max-width: 100%;
  height: auto;
}
.wechat-qr {
  width: 150px !important;
}
.service-box h2 {
  margin-top: 0;
}
.chat-messages,
.admin-chat {
  height: 260px;
  overflow: auto;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin: 14px 0;
}
.chat-message {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  margin: 7px 0;
  word-break: break-word;
}
.chat-message.visitor {
  margin-left: auto;
  background: #e7efff;
}
.chat-message img {
  max-width: 220px;
  max-height: 220px;
}
.service-box form {
  display: flex;
  gap: 8px;
}
.service-box form input:first-child {
  flex: 1;
  border: 1px solid var(--line);
  padding: 10px;
}
.query-hint {
  color: var(--muted);
  line-height: 1.6;
}
.ip-order {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.ip-order > span:nth-child(2) {
  grid-column: 1;
  color: var(--muted);
}
.ip-order .status {
  grid-column: 2;
  grid-row: 1/3;
}
.admin-table {
  margin: 22px;
}
.inline {
  display: inline;
}
.dashboard-panel {
  margin-top: 22px !important;
}
.thread {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.thread span {
  color: var(--muted);
}
.detail-body {
  background: #fafafa;
  padding-bottom: 100px;
}
.detail-header {
  height: 70px;
  background: #202020;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100% - 1120px) / 2), 24px);
}
.detail-header a {
  color: #fff;
  font-weight: 700;
}
.detail-brand {
  display: flex;
  align-items: center;
  font-size: 19px;
}
.detail-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  margin-right: 9px;
  border-radius: 6px;
}
.detail-shell {
  width: min(820px, calc(100% - 28px));
  margin: 18px auto;
}
.detail-title,
.detail-content {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 18px;
  box-shadow: 0 12px 35px #1820330b;
}
.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  margin-bottom: 10px;
}
.detail-title span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.detail-title em {
  font-style: normal;
  color: #df4e4e;
  background: #fff0f0;
  padding: 4px 9px;
  border-radius: 6px;
}
.detail-title b {
  color: #2c9b57;
  background: #edf8f0;
  padding: 4px 9px;
  border-radius: 6px;
}
.detail-content {
  overflow: hidden;
}
.detail-content h2 {
  font-size: 18px;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.content-body {
  padding: 18px;
  line-height: 1.8;
  font-size: 16px;
}
.content-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 18px auto;
}
.content-body p {
  margin: 14px 0;
}
.fixed-order {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100%);
  height: 68px;
  border: 0;
  background: #202020;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  z-index: 20;
  cursor: pointer;
}
.floating-service {
  position: fixed;
  right: 24px;
  bottom: 90px;
  background: #242424;
  color: #fff;
  border-radius: 28px;
  padding: 14px 24px;
  box-shadow: 0 12px 35px #0002;
}
.order-mask {
  position: fixed;
  inset: 0;
  background: #1119;
  z-index: 30;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.order-mask.open {
  display: flex;
}
.order-modal {
  position: relative;
  width: min(820px, 100%);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 26px;
}
.order-modal h2 {
  margin: 0 0 22px;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.order-modal label {
  display: block;
  margin: 12px 0;
}
.order-modal label input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 7px;
}
.modal-payments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.modal-payments button {
  height: 84px;
  border: 2px solid #b8d8ff;
  background: #eff7ff;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}
.modal-payments button:first-child {
  border-color: #99e6b9;
  background: #effcf4;
}
.modal-payments img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .detail-header {
    padding: 0 16px;
  }
  .detail-title {
    border-radius: 12px;
  }
  .detail-content {
    border-radius: 12px;
  }
  .modal-payments {
    grid-template-columns: 1fr;
  }
  .floating-service {
    right: 14px;
  }
  .content-body {
    padding: 14px;
  }
}
.wecom-welcome{width:min(820px,calc(100% - 28px));margin:12px auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;line-height:1.7}.settings-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:-5px 0 22px}.settings-tabs button{border:0;background:none;padding:12px 4px;margin-right:20px}.settings-tabs button.active{color:var(--blue);border-bottom:2px solid var(--blue)}.toggle-row,.payment-setting{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:8px;padding:16px;margin:14px 0}.toggle-row span{display:flex;flex-direction:column;gap:5px}.toggle-row small{color:var(--muted)}.switch input{display:none}.switch i{display:block;width:46px;height:26px;background:#cbd1da;border-radius:20px;position:relative;cursor:pointer}.switch i:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+i{background:var(--blue)}.switch input:checked+i:after{left:23px}.payment-setting>div{display:flex;align-items:center;gap:12px}.payment-setting img{width:40px;height:40px;object-fit:contain}.payment-setting input[type=file]{width:240px}
