:root {
  --blue: #5269f5;
  --blue-soft: #eef1ff;
  --red: #ef3f49;
  --ink: #20222a;
  --muted: #9498a5;
  --line: #eceef3;
  --page: #f4f5f9;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.shop-body {
  min-height: 100vh;
  background: var(--page);
}

.phone-app {
  width: min(100%, 750px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
}

.shop-header,
.detail-header {
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-brand img,
.admin-logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e7e8ed;
}

.shop-brand b,
.shop-brand small,
.admin-logo b,
.admin-logo small {
  display: block;
}

.shop-brand b {
  font-size: 18px;
}

.shop-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.header-more,
.detail-header button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.service-trigger {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #ccebd9;
  border-radius: 20px;
  color: #168a50;
  background: #f1fbf5;
  font-size: 13px;
  font-weight: bold;
}

.service-trigger span {
  margin-right: 4px;
  color: #20b968;
  font-size: 10px;
}

.brand-banner {
  position: relative;
  min-height: 190px;
  margin: 18px 24px 0;
  padding: 30px 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgb(255 255 255 / 24%), transparent 28%),
    linear-gradient(135deg, #283b93, #536cf8 62%, #7f8fff);
  box-shadow: 0 12px 30px rgb(61 83 188 / 22%);
}

.brand-banner::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 35px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
}

.brand-banner > div {
  position: relative;
  z-index: 2;
}

.banner-eyebrow {
  color: #dce2ff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}

.brand-banner h1 {
  margin: 12px 0 10px;
  font-size: 30px;
  line-height: 1.25;
}

.brand-banner h1 em {
  color: #ffe17b;
  font-style: normal;
}

.brand-banner p {
  margin: 0;
  color: #e1e6ff;
  font-size: 13px;
}

.brand-banner img {
  position: relative;
  z-index: 1;
  width: 145px;
  height: 145px;
  object-fit: cover;
  border: 6px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgb(12 24 82 / 26%);
}

.search-wrap {
  height: 58px;
  margin: 18px 24px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #fff;
}

.search-wrap span,
.sheet-search span {
  color: #737a8c;
  font-size: 28px;
  transform: rotate(-20deg);
}

.search-wrap input,
.sheet-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.search-wrap input::placeholder,
.sheet-search input::placeholder {
  color: #b6b9c4;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
}

.quick-games {
  position: sticky;
  top: 78px;
  z-index: 4;
  margin: 18px 0 24px 18px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(35 43 75 / 5%);
}

.quick-games button {
  min-height: 82px;
  padding: 9px 2px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  color: #5e6370;
  background: transparent;
  font-size: 11px;
}

.quick-games i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #536cf8, #3449bc);
  box-shadow: 0 7px 14px rgb(61 83 188 / 22%);
  font-size: 18px;
  font-style: normal;
  font-weight: bold;
  transition: .18s;
}

.quick-games img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 7px 14px rgb(31 40 78 / 20%);
  transition: .18s;
}

.quick-games button:nth-child(2) i {
  background: linear-gradient(145deg, #4fb5ae, #237d83);
}

.quick-games button:nth-child(3) i {
  background: linear-gradient(145deg, #efa848, #d76a35);
}

.quick-games button:nth-child(4) i {
  background: linear-gradient(145deg, #ef6876, #bd304a);
}

.quick-games button.selected {
  color: var(--blue);
  background: #f0f2ff;
  font-weight: bold;
}

.quick-games button.selected i,
.quick-games button.selected img {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgb(61 83 188 / 30%);
  outline: 2px solid #dfe4ff;
}

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-bar .client-filter-trigger {
  grid-column: 3;
}

.filter-bar.nishuihan-only .client-filter-trigger {
  grid-column: 4;
}

.filter-bar.nishuihan-only [data-sheet="advanced"] {
  display: none;
}

.filter-bar button {
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
}

.filter-bar button:last-child {
  grid-column: 4;
  border-right: 0;
}

.filter-bar i {
  margin-left: 8px;
  color: #b4b7c0;
  font-style: normal;
}

.product-list {
  min-width: 0;
  padding: 18px 18px 50px 14px;
}

.product-card {
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(39 48 72 / 7%);
  cursor: pointer;
}

.product-visual {
  position: relative;
}

.visual-badges {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  gap: 7px;
}

.visual-badges span,
.visual-badges b {
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: rgb(16 23 52 / 76%);
  backdrop-filter: blur(6px);
  font-size: 11px;
}

.visual-badges b {
  color: #5b4500;
  background: #ffe17b;
}

.product-image,
.game-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1.78;
  object-fit: cover;
}

.game-preview {
  padding: 7% 5%;
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 4%;
  color: #e8f6ff;
  background:
    radial-gradient(circle at 55% 4%, #1b98f6 0 2%, transparent 26%),
    linear-gradient(145deg, #08355f, #071b38 55%, #0e4b7b);
  border: 8px solid #095488;
}

.preview-side {
  padding: 8% 7%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border: 1px solid #4b9ad4;
  background: rgb(2 28 62 / 68%);
  font-size: 10px;
}

.preview-side b {
  color: #f2ce74;
  font-size: clamp(13px, 3vw, 20px);
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.skin-grid i {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 30%, #fff9 0 7%, transparent 9%),
    linear-gradient(150deg, color-mix(in srgb, var(--tile), white 30%), var(--tile) 55%, #20284a);
  box-shadow: inset 0 0 0 1px #ffffff4d;
}

.skin-grid i::before {
  content: "";
  position: absolute;
  width: 46%;
  height: 70%;
  left: 27%;
  top: 12%;
  border-radius: 50% 50% 35% 35%;
  background: #f8e9dc55;
}

.skin-grid em {
  position: absolute;
  right: 2px;
  bottom: 2px;
  color: #fff;
  font-size: 7px;
  font-style: normal;
}

.product-copy {
  padding: 20px 24px 22px;
}

.product-copy p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #2c2e35;
  font-size: 18px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.product-number {
  margin-bottom: 8px;
  color: #a0a4af;
  font-size: 11px;
  letter-spacing: .3px;
}

.product-tags {
  margin: -3px 0 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-tags span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #6876ba;
  background: #f0f2ff;
  font-size: 11px;
}

.product-bottom > span {
  color: #777c89;
  font-size: 14px;
}

.product-copy strong,
.account-summary > strong {
  color: var(--red);
  font-size: 26px;
}

.product-copy strong small {
  margin-right: 2px;
  font-size: 14px;
}

.empty-state,
.detail-missing {
  padding: 90px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state b {
  font-size: 48px;
}

.sheet-mask {
  position: fixed;
  z-index: 20;
  inset: 0;
  visibility: hidden;
  background: rgb(0 0 0 / 58%);
  opacity: 0;
  transition: opacity .2s;
}

.sheet-mask.open {
  visibility: visible;
  opacity: 1;
}

.filter-sheet {
  position: fixed;
  z-index: 21;
  left: 50%;
  top: 0;
  width: min(100%, 750px);
  padding: 24px;
  visibility: hidden;
  border-radius: 0 0 22px 22px;
  background: #fff;
  opacity: 0;
  transform: translate(-50%, -24px);
  transition: .22s ease;
}

.filter-sheet.open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.sheet-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.sheet-title > button,
.admin-modal-title button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #8b8f9b;
  font-size: 26px;
}

.game-options {
  margin: 12px 0 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.game-options button,
.list-options button,
.advanced-tabs button,
.advanced-options button {
  border: 0;
  background: #f5f6fa;
}

.game-options button {
  min-height: 58px;
  border-radius: 10px;
}

.game-options button.selected,
.list-options button.selected,
.advanced-options button.selected {
  color: var(--blue);
  background: var(--blue-soft);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sheet-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 17px;
}

.sheet-actions .primary {
  color: #fff;
  background: var(--blue);
}

.compact-sheet {
  padding-bottom: 28px;
}

.list-options {
  display: grid;
  margin-top: 8px;
}

.list-options button {
  min-height: 68px;
  padding: 0;
  background: #fff;
  text-align: left;
  font-size: 18px;
}

.price-range {
  margin: 20px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.price-range input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  border-radius: 10px;
  background: #f5f6fa;
  text-align: center;
}

.advanced-sheet {
  top: auto;
  bottom: 0;
  height: min(88vh, 820px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  transform: translate(-50%, 24px);
}

.advanced-sheet.open {
  transform: translate(-50%, 0);
}

.client-sheet {
  top: auto;
  bottom: 0;
  min-height: min(72vh, 650px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  transform: translate(-50%, 24px);
}

.client-sheet.open {
  transform: translate(-50%, 0);
}

.client-sheet.region-style {
  height: min(88vh, 820px);
  max-height: 88vh;
  overflow: hidden;
}

.client-sheet.region-style .client-filter-content {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.client-filter-content {
  flex: 1;
}

.client-filter-group {
  margin-top: 18px;
}

.client-system-group {
  margin-top: 8px;
}

.client-filter-group h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.client-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-choice-grid button {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  color: #404756;
  background: #f5f6fa;
  font-size: 15px;
}

.client-choice-grid button.selected {
  color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px #cfd6ff;
}

.client-filter-pending {
  flex: 1;
  padding-top: 56px;
  color: var(--muted);
  text-align: center;
}

.region-picker {
  min-height: 0;
  margin: 18px -24px 24px;
  flex: 1;
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
}

.region-list,
.server-options {
  min-height: 0;
  overflow-y: auto;
}

.region-list {
  background: #f5f5f6;
}

.region-list button {
  width: 100%;
  min-height: 74px;
  border: 0;
  background: transparent;
  font-size: 15px;
}

.region-list button.selected {
  color: var(--blue);
  background: #fff;
  font-weight: bold;
}

.server-options {
  padding: 24px 26px;
}

.server-section-head h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.server-section-head small {
  color: #9ba0ac;
  font-size: 14px;
  font-weight: normal;
}

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

.server-choice-grid button {
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  color: #404756;
  background: #f5f6fa;
  font-size: 15px;
}

.server-choice-grid button.selected {
  color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px #cfd6ff;
}

.sheet-search {
  flex: 1;
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: #f5f6fa;
}

.advanced-game-title {
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: bold;
}

.advanced-content {
  min-height: 0;
  margin: 18px -24px 24px;
  flex: 1;
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
}

.advanced-tabs {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f5f6fa;
  scrollbar-width: thin;
}

.advanced-tabs button {
  min-height: 74px;
  font-size: 15px;
}

.advanced-tabs button.selected {
  color: var(--blue);
  background: #fff;
}

.advanced-options {
  min-height: 0;
  padding: 0 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.filter-section {
  padding: 1px 0 16px;
  scroll-margin-top: 20px;
}

.filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
}

.advanced-options h3 {
  margin: 15px 0;
  font-size: 17px;
}

.advanced-options h3 small {
  color: var(--muted);
  font-weight: normal;
}

.filter-choice-grid,
.price-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.advanced-options button {
  min-height: 48px;
  border-radius: 9px;
  font-size: 14px;
}

.advanced-options button.selected {
  color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px #cfd6ff;
}

.advanced-options .filter-expand {
  flex: 0 0 auto;
  width: auto;
  min-height: 32px;
  padding: 4px 6px;
  margin: 0;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.filter-range input,
.filter-text-input {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #dfe2e9;
  border-radius: 8px;
  outline: 0;
  background: #fff;
}

.filter-range input {
  text-align: center;
}

.price-presets {
  margin-top: 10px;
}

.filter-pending {
  padding: 70px 20px;
  color: #8d929f;
  text-align: center;
}

.filter-pending b {
  color: #343842;
  font-size: 18px;
}

.filter-pending p {
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 34px;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border-radius: 9px;
  background: rgb(24 26 33 / 92%);
  color: #fff;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.service-mask {
  position: fixed;
  z-index: 40;
  inset: 0;
  visibility: hidden;
  background: rgb(12 18 32 / 58%);
  opacity: 0;
  transition: .2s;
}

.service-mask.open {
  visibility: visible;
  opacity: 1;
}

.service-panel {
  position: fixed;
  z-index: 41;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 32px));
  padding: 30px 26px 26px;
  visibility: hidden;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -46%) scale(.96);
  transition: .22s ease;
}

.service-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.service-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #969aa6;
  font-size: 26px;
}

.service-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  padding: 4px;
  border-radius: 50%;
  background: #eef8f2;
}

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

.service-panel > small {
  color: #1b9a5d;
}

.service-panel h2 {
  margin: 9px 0 12px;
  font-size: 23px;
}

.service-panel p {
  margin: 0;
  color: #858a96;
  font-size: 14px;
  line-height: 1.7;
}

.wechat-number {
  margin: 20px 0 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 11px;
  background: #f5f7fa;
}

.wechat-number span {
  color: #8e929e;
  font-size: 13px;
}

.wechat-number b {
  font-size: 18px;
  letter-spacing: .5px;
}

.copy-wechat {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #20ad64;
  font-size: 16px;
  font-weight: bold;
}

.mobile-service-bar {
  display: none;
}

/* 账号详情 */
.detail-app {
  padding-bottom: 92px;
}

.detail-header {
  position: sticky;
  z-index: 5;
  top: 0;
  font-size: 20px;
}

.detail-header a {
  width: 44px;
  color: var(--blue);
  text-decoration: none;
  font-size: 38px;
  line-height: 1;
}

#detailContent {
  padding: 22px 24px;
}

.account-summary,
.account-info {
  margin-bottom: 22px;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
}

.detail-cover {
  width: 100%;
  max-height: 420px;
  margin-bottom: 22px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: #e9ebf1;
}

.account-gallery {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
}

.account-gallery h3 {
  margin: 0 0 16px;
}

.account-gallery > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.account-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #eef0f5;
}

.summary-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-top i {
  margin-left: auto;
  font-style: normal;
}

.game-badge {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgb(31 39 65 / 12%);
}

.account-summary > strong {
  display: block;
  margin: 24px 0 18px;
  text-align: right;
  font-size: 34px;
}

.account-summary p {
  font-size: 18px;
  line-height: 1.7;
}

.account-summary small,
.account-summary em {
  display: block;
  margin-top: 12px;
  color: #b8bbc4;
  font-size: 13px;
  font-style: normal;
}

.detail-tabs {
  margin: -26px -26px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.detail-tabs b,
.detail-tabs span {
  padding: 22px;
  text-align: center;
}

.detail-tabs span {
  color: #b7bac4;
}

.account-info h3 {
  padding-left: 14px;
  border-left: 5px solid var(--blue);
}

.account-info h4 {
  margin: 28px 0 16px;
  font-size: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  font-size: 15px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags span {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
}

.detail-action {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 0;
  width: min(100%, 750px);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  transform: translateX(-50%);
}

.detail-action button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 17px;
}

/* 独立管理端 */
.admin-body {
  min-height: 100vh;
  background: #f5f6f9;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px 1fr;
}

.admin-sidebar {
  padding: 28px 22px;
  color: #fff;
  background: #171b2b;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo small {
  margin-top: 4px;
  color: #9399ac;
}

.admin-sidebar nav {
  margin-top: 50px;
  display: grid;
  gap: 10px;
}

.admin-sidebar nav button,
.admin-sidebar nav a {
  padding: 14px 16px;
  border: 0;
  border-radius: 9px;
  color: #aeb4c6;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.admin-sidebar nav .active {
  color: #fff;
  background: #5269f5;
}

.admin-workspace {
  min-width: 0;
  padding: 38px clamp(24px, 5vw, 70px);
}

.admin-workspace > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.admin-workspace header small {
  color: var(--blue);
  letter-spacing: 1.5px;
}

.admin-workspace h1 {
  margin: 8px 0 0;
  font-size: 30px;
}

#newProduct {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
}

.admin-contact-view > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.contact-settings-card {
  width: min(100%, 620px);
  margin-top: 30px;
  padding: 28px;
  display: grid;
  gap: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(35 40 60 / 5%);
}

.contact-settings-card label {
  font-size: 17px;
  font-weight: bold;
}

.contact-settings-card p {
  margin: -4px 0 6px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-settings-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe2e9;
  border-radius: 9px;
  outline: 0;
  font-size: 15px;
}

.contact-settings-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(82 105 245 / 12%);
}

.contact-settings-card button {
  width: 150px;
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
}

.admin-toolbar {
  margin: 28px 0 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 12px;
}

.admin-toolbar input,
.admin-toolbar select,
.admin-modal input,
.admin-modal select,
.admin-modal textarea {
  width: 100%;
  border: 1px solid #dfe2e9;
  border-radius: 9px;
  outline: 0;
  background: #fff;
}

.admin-toolbar input,
.admin-toolbar select {
  height: 46px;
  padding: 0 14px;
}

.admin-table-wrap {
  overflow: auto;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(35 40 60 / 5%);
}

.admin-table-wrap table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table-wrap th {
  color: #818694;
  font-size: 12px;
  font-weight: normal;
  background: #fafbfc;
}

.admin-table-wrap td {
  font-size: 14px;
}

.admin-table-wrap td:first-child {
  width: 90px;
}

.admin-table-wrap td b,
.admin-table-wrap td span,
.admin-table-wrap td small {
  display: block;
}

.admin-table-wrap .admin-price {
  color: var(--red);
  white-space: nowrap;
}

.admin-table-wrap .admin-product-id {
  color: var(--blue);
  white-space: nowrap;
}

.local-file-input {
  display: none;
}

.local-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.local-upload-row small {
  color: #8b93a7;
  font-weight: 400;
}

.local-upload-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #dbe1ee;
  border-radius: 9px;
  background: #f5f7fc;
  color: #40526f;
  cursor: pointer;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.upload-thumb {
  position: relative;
  display: inline-flex;
  width: 92px;
  height: 68px;
  overflow: hidden;
  border: 1px solid #dfe4ef;
  border-radius: 10px;
  background: #f3f5f9;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 35, 0.72);
  color: #fff;
  cursor: pointer;
}

.admin-table-wrap td span,
.admin-table-wrap td small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-price {
  color: var(--red);
  font-weight: bold;
}

.admin-cover {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: 12px;
  background: #eef0f5;
  color: #9a9eaa;
  font-size: 11px;
}

.admin-title-cell {
  max-width: 190px;
  font-weight: bold;
}

.admin-description-cell {
  width: 260px;
  max-width: 260px;
  color: #737886;
  line-height: 1.55;
  vertical-align: middle;
}

.admin-description-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow-wrap: anywhere;
}

.screenshot-count {
  width: max-content;
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--blue) !important;
  background: var(--blue-soft);
}

.status,
.table-action {
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: #edf8f1;
  color: #278956;
  font-size: 12px;
}

.status.off {
  color: #858a95;
  background: #f0f1f4;
}

.table-action {
  margin-right: 6px;
  color: var(--blue);
  background: var(--blue-soft);
}

.table-action.danger {
  color: var(--red);
  background: #fff0f1;
}

.admin-modal-mask {
  position: fixed;
  z-index: 30;
  inset: 0;
  visibility: hidden;
  background: rgb(10 14 28 / 55%);
  opacity: 0;
  transition: .2s;
}

.admin-modal-mask.open {
  visibility: visible;
  opacity: 1;
}

.admin-modal {
  position: fixed;
  z-index: 31;
  top: 0;
  right: 0;
  width: min(560px, 100%);
  height: 100vh;
  padding: 28px;
  overflow: auto;
  background: #fff;
  transform: translateX(105%);
  transition: .25s ease;
}

.admin-modal.open {
  transform: translateX(0);
}

.admin-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-title h2 {
  margin: 0;
}

#productForm {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

#productForm label {
  display: grid;
  gap: 8px;
  color: #666b78;
  font-size: 13px;
}

#productForm label[hidden] {
  display: none;
}

#productForm label.full,
#productForm .submit-product {
  grid-column: 1 / -1;
}

.admin-modal input,
.admin-modal select {
  height: 44px;
  padding: 0 12px;
}

.admin-modal textarea {
  padding: 12px;
  resize: vertical;
}

.submit-product {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
}

@media (min-width: 751px) {
  .phone-app {
    box-shadow: 0 0 28px rgb(35 40 60 / 10%);
  }
}

@media (max-width: 750px) {
  .shop-header,
  .detail-header {
    height: 60px;
    padding: 0 16px;
  }

  .shop-brand img {
    width: 36px;
    height: 36px;
  }

  .shop-brand b {
    font-size: 16px;
  }

  .service-trigger {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .brand-banner {
    min-height: 160px;
    margin: 12px 12px 0;
    padding: 23px 20px;
    border-radius: 18px;
  }

  .banner-eyebrow {
    font-size: 9px;
  }

  .brand-banner h1 {
    margin: 9px 0 8px;
    font-size: 24px;
  }

  .brand-banner p {
    max-width: 205px;
    font-size: 11px;
    line-height: 1.5;
  }

  .brand-banner img {
    width: 105px;
    height: 105px;
    margin-right: -8px;
  }

  .search-wrap {
    height: 52px;
    margin: 14px 16px;
    padding: 0 14px;
  }

  .search-wrap input {
    font-size: 14px;
  }

  .catalog-layout {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .quick-games {
    top: 68px;
    margin: 10px 0 20px 8px;
    padding: 7px 5px;
    gap: 4px;
    border-radius: 13px;
  }

  .quick-games i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 14px;
  }

  .quick-games img {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .quick-games button {
    min-height: 67px;
    padding: 7px 1px;
    gap: 5px;
    border-radius: 10px;
    font-size: 10px;
  }

  .filter-bar {
    height: 58px;
  }

  .filter-bar button {
    font-size: 14px;
  }

  .filter-bar i {
    margin-left: 3px;
  }

  .product-list {
    padding: 10px 8px 35px;
  }

  .product-card {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .game-preview {
    border-width: 5px;
  }

  .preview-side {
    font-size: clamp(7px, 2.2vw, 10px);
  }

  .skin-grid {
    gap: 3px;
  }

  .product-copy {
    padding: 14px 16px 16px;
  }

  .product-copy p {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.65;
  }

  .product-number {
    font-size: 10px;
  }

  .product-tags {
    margin-bottom: 13px;
  }

  .product-tags span {
    padding: 4px 7px;
    font-size: 10px;
  }

  .product-copy span {
    font-size: 12px;
  }

  .product-copy strong {
    font-size: 22px;
  }

  .filter-sheet {
    padding: 18px 16px;
  }

  .region-picker {
    margin-right: -16px;
    margin-left: -16px;
    grid-template-columns: 118px 1fr;
  }

  .server-options {
    padding: 20px 12px;
  }

  .game-options {
    gap: 10px;
  }

  .sheet-actions button {
    min-height: 52px;
  }

  .advanced-content {
    margin-right: -16px;
    margin-left: -16px;
    grid-template-columns: 118px 1fr;
  }

  .advanced-options {
    padding: 0 12px;
  }

  .filter-choice-grid,
  .price-presets {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  #detailContent {
    padding: 16px 12px;
  }

  .account-summary,
  .account-info {
    padding: 18px;
    border-radius: 15px;
  }

  .detail-cover {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .account-gallery {
    padding: 16px;
    border-radius: 15px;
  }

  .account-gallery > div {
    grid-template-columns: 1fr;
  }

  .account-summary > strong {
    margin: 20px 0 14px;
    font-size: 28px;
  }

  .account-summary p {
    font-size: 15px;
  }

  .detail-tabs {
    margin: -18px -18px 20px;
  }

  .info-grid {
    gap: 15px 10px;
    font-size: 13px;
  }

  .detail-action {
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    padding: 14px 16px;
  }

  .admin-logo img {
    width: 36px;
    height: 36px;
  }

  .admin-sidebar nav {
    margin-top: 14px;
    display: flex;
  }

  .admin-sidebar nav button,
  .admin-sidebar nav a {
    padding: 10px 12px;
  }

  .admin-workspace {
    padding: 24px 14px;
  }

  .admin-workspace > header {
    align-items: center;
  }

  .admin-workspace h1 {
    font-size: 23px;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-table-wrap {
    border-radius: 10px;
  }

  .admin-modal {
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .mobile-service-bar {
    position: fixed;
    z-index: 15;
    left: 50%;
    bottom: 0;
    width: min(100%, 750px);
    min-height: 70px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -8px 25px rgb(31 39 69 / 8%);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
  }

  .mobile-service-bar > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-service-bar > div > span {
    color: #20b968;
    font-size: 11px;
  }

  .mobile-service-bar p,
  .mobile-service-bar b,
  .mobile-service-bar small {
    display: block;
    margin: 0;
  }

  .mobile-service-bar b {
    font-size: 12px;
  }

  .mobile-service-bar small {
    margin-top: 3px;
    overflow: hidden;
    color: #999eaa;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-service-bar button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #20ad64;
    font-size: 12px;
    font-weight: bold;
  }

  .bottom-spacer {
    height: 72px;
  }

  #productForm {
    grid-template-columns: 1fr;
  }

  #productForm label.full,
  #productForm .submit-product {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .filter-bar button {
    font-size: 13px;
  }

  .filter-bar i {
    display: none;
  }

  .preview-side span:last-child {
    display: none;
  }

  .product-copy p {
    font-size: 14px;
  }
}

.site-footer {
  padding: 22px 16px;
  text-align: center;
  font-size: 12px;
}

.site-footer a {
  color: #8d94a3;
  text-decoration: none;
}

.site-footer a:hover {
  color: #526df5;
}
