:root {
  --shell-purple: #6c78ef;
  --sky-blue: #59c8fb;
  --sky-blue-2: #78d6ff;
  --page-bg: #eef2fb;
  --white: #ffffff;
  --ink: #202020;
  --muted: #8d95a7;
  --border-soft: rgba(19, 25, 39, 0.06);
  --pink: #ff135d;
  --pink-soft: #ffedf3;
  --orange: #ff9c44;
  --blue: #4a82ff;
  --cyan: #32c2ff;
  --tag-bg: #fff3e7;
  --tag-ink: #bf8a4e;
  --shadow-soft: 0 20px 40px rgba(44, 62, 129, 0.12);
  --shadow-button: 0 14px 22px rgba(255, 19, 93, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
}

body {
  position: relative;
}

body[data-page="storefront"] {
  background: #ffffff;
}

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

button,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.loading-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(88, 108, 255, 0.18);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loading-shell.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-card {
  width: min(88vw, 360px);
  padding: 28px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.loading-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), #ff8e5a);
  animation: hop 0.7s ease-in-out infinite alternate;
}

@keyframes hop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}

.mobile-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(76, 88, 142, 0.04), 0 14px 40px rgba(57, 76, 142, 0.12);
}

.mobile-page-clean {
  box-shadow: 0 14px 40px rgba(57, 76, 142, 0.1);
}

.safety-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 94px;
  padding: 24px 18px 16px;
  background: var(--shell-purple);
  color: var(--white);
}

.safety-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.safety-check {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
}

.safety-refresh,
.detail-back {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.detail-back {
  font-size: 1rem;
  font-weight: 600;
}

.hero-stage {
  position: relative;
  height: 398px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(180deg, var(--sky-blue) 0%, var(--sky-blue-2) 100%);
}

.hero-cloud {
  position: absolute;
  background: #ffffff;
  border: 5px solid #111111;
  border-radius: 999px;
}

.hero-cloud::before,
.hero-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border: inherit;
  border-radius: inherit;
}

.hero-cloud-left {
  left: -30px;
  top: 54px;
  width: 158px;
  height: 58px;
}

.hero-cloud-left::before {
  left: 28px;
  top: -30px;
  width: 76px;
  height: 68px;
}

.hero-cloud-left::after {
  left: 72px;
  top: -14px;
  width: 86px;
  height: 58px;
}

.hero-cloud-right {
  right: -34px;
  top: -10px;
  width: 166px;
  height: 62px;
}

.hero-cloud-right::before {
  left: 22px;
  top: -32px;
  width: 88px;
  height: 74px;
}

.hero-cloud-right::after {
  left: 82px;
  top: -12px;
  width: 92px;
  height: 58px;
}

.hero-board {
  position: absolute;
  top: 62px;
  left: 50px;
  width: 326px;
  padding: 30px 22px 30px;
  background:
    repeating-linear-gradient(180deg, rgba(216, 204, 182, 0.2) 0 2px, transparent 2px 30px),
    #fffef8;
  border: 6px solid #111111;
  border-radius: 8px;
  transform: rotate(-7deg);
  box-shadow: 0 10px 18px rgba(16, 25, 58, 0.16);
}

.hero-board-line {
  display: block;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  -webkit-text-stroke: 5px #1f1616;
  paint-order: stroke fill;
}

.hero-board-line-top {
  font-size: 4.35rem;
  color: var(--orange);
}

.hero-board-line-bottom {
  margin-top: 18px;
  font-size: 4.35rem;
  color: #ff5fa6;
}

.hero-side-sign {
  position: absolute;
  right: 30px;
  bottom: 54px;
  width: 132px;
  padding: 12px 0;
  background: #fffef7;
  border: 6px solid #111111;
  border-radius: 8px;
  transform: rotate(4deg);
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
}

.hero-side-sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 72px;
  background: #d0ad7c;
  transform: translateX(-50%);
}

.hero-mascot {
  position: absolute;
  left: 34px;
  bottom: 0;
  width: 142px;
  height: 180px;
}

.hero-arm {
  position: absolute;
  width: 50px;
  height: 100px;
  background: #ffe2d0;
  border: 5px solid #111111;
  border-radius: 28px;
}

.hero-arm-left {
  left: -16px;
  top: 58px;
  transform: rotate(24deg);
}

.hero-arm-right {
  right: 0;
  top: 42px;
  transform: rotate(-28deg);
}

.hero-head {
  position: absolute;
  left: 22px;
  top: 76px;
  width: 96px;
  height: 86px;
  background: #fff2df;
  border: 5px solid #111111;
  border-radius: 28px;
}

.hero-head::before,
.hero-head::after {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 153, 138, 0.55);
}

.hero-head::before {
  left: 10px;
}

.hero-head::after {
  right: 10px;
}

.eye {
  position: absolute;
  top: 28px;
  width: 8px;
  height: 14px;
  background: #111111;
  border-radius: 999px;
}

.eye-left {
  left: 24px;
}

.eye-right {
  right: 24px;
}

.mouth {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 24px;
  height: 14px;
  border-bottom: 4px solid #111111;
  border-radius: 0 0 20px 20px;
  transform: translateX(-50%);
}

.hero-body {
  position: absolute;
  left: 26px;
  bottom: -10px;
  width: 92px;
  height: 74px;
  background: #fff4b7;
  border: 5px solid #111111;
  border-radius: 22px 22px 8px 8px;
}

.mobile-content {
  position: relative;
  margin-top: -42px;
  padding: 0 18px 50px;
  border-radius: 28px 28px 0 0;
  background: var(--white);
}

.shop-panel {
  margin: -50px -18px 0;
  padding: 0 18px 18px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shop-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin-inline: 0;
  padding: 11px 18px;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.shop-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 237, 255, 0.82));
  color: #6f74cf;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(97, 107, 175, 0.12);
}

.shop-copy {
  min-width: 0;
}

.shop-badge {
  display: inline-block;
  font-size: 0.86rem;
  color: rgba(53, 62, 120, 0.68);
}

.shop-name {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.store-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(90deg, #fff8dd 0%, #fff2f5 100%);
  border: 1px solid rgba(255, 179, 74, 0.2);
  color: #845b1d;
}

.store-trust-strip span {
  font-size: 0.84rem;
  font-weight: 800;
}

.store-trust-strip strong {
  color: #161b28;
  font-size: 0.98rem;
}

.panel-refresh {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #6672d9;
  font-size: 1.45rem;
  cursor: pointer;
}

.category-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  overflow-x: auto;
  padding: 18px 0 8px;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.category-button {
  position: relative;
  border: 0;
  padding: 0 0 9px;
  background: transparent;
  color: #4f525a;
  font-size: 1.28rem;
  font-weight: 800;
  cursor: pointer;
}

.category-button.active {
  color: #111111;
}

.category-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
  background: #f3c326;
}

.search-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  margin-top: 14px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: #f9fafc;
  box-shadow: inset 0 0 0 1px rgba(93, 113, 180, 0.04), 0 8px 18px rgba(56, 71, 112, 0.04);
}

.region-chip {
  border: 0;
  padding: 0 14px 0 0;
  background: transparent;
  color: #1a1d21;
  font-size: 1.05rem;
  font-weight: 600;
}

.region-chip::after {
  content: "|";
  margin-left: 14px;
  color: #c1c6d3;
}

.search-row input {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  color: #444c61;
}

.search-button {
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: #4a7cff;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eef2fb;
  color: #7b8498;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.result-summary {
  margin: 14px 2px 0;
  color: #838da2;
  font-size: 0.92rem;
  font-weight: 700;
}

.deal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.deal-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 700;
}

.deal-metric span {
  color: #a4acbc;
  font-size: 0.9rem;
}

.deal-list {
  display: grid;
  gap: 40px;
  margin-top: 24px;
}

.deal-card {
  padding: 0 2px;
}

.deal-top {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.deal-thumb-link {
  display: block;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(61, 89, 174, 0.14);
}

.detail-thumb-static {
  pointer-events: none;
}

.deal-thumb {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: #f2f4fb;
}

.deal-main {
  min-width: 0;
}

.deal-title-link {
  display: block;
}

.deal-title {
  margin: 2px 0 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.62;
  letter-spacing: 0;
}

.deal-actions {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  margin-top: 22px;
}

.detail-entry-button {
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  font-size: 1.18rem;
}

.share-button,
.apply-button {
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  cursor: pointer;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffeef2 0%, #ffe8ed 100%);
  color: var(--pink);
  font-size: 1rem;
  font-weight: 700;
}

.share-arrow {
  font-size: 1.35rem;
  line-height: 1;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: var(--white);
  font-size: 1.16rem;
  font-weight: 700;
  box-shadow: var(--shadow-button);
}

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

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 48, 0.42);
  backdrop-filter: blur(6px);
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(100%, 392px);
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 232, 123, 0.28), transparent 30%),
    #ffffff;
  box-shadow: 0 24px 60px rgba(23, 31, 64, 0.28);
  animation: contact-rise 0.22s ease-out;
}

@keyframes contact-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-x {
  position: absolute;
  right: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f4f6fb;
  color: #6c7385;
  font-size: 1.4rem;
  cursor: pointer;
}

.contact-kicker {
  margin: 0 0 8px;
  color: var(--pink);
  font-weight: 800;
}

.contact-card h2 {
  margin: 0;
  font-size: 1.38rem;
}

.contact-product {
  margin: 12px 0 0;
  color: #596273;
  line-height: 1.6;
}

.wechat-box,
.detail-contact-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #f8f9fd;
  border: 1px solid rgba(93, 113, 180, 0.08);
}

.wechat-box span,
.detail-contact-box span {
  display: block;
  margin-bottom: 8px;
  color: #8c95a8;
  font-size: 0.92rem;
  font-weight: 700;
}

.wechat-box strong,
.detail-contact-box strong {
  display: block;
  color: #151a26;
  font-size: 1.38rem;
  word-break: break-all;
}

.contact-tip,
.detail-contact-box p {
  margin: 12px 0 0;
  color: #667084;
  line-height: 1.65;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  margin-top: 18px;
}

.contact-actions .apply-button,
.contact-actions .share-button {
  min-height: 50px;
}

.empty-state {
  margin: 28px 0 0;
  color: #6f7788;
  text-align: center;
}

.item-page {
  padding: 16px;
}

.item-header-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.item-title {
  margin: 4px 0 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.detail-deal-card {
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-sticky-contact {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: -4px -4px 18px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(90deg, #fff7dd 0%, #fff0f4 100%);
  box-shadow: 0 12px 26px rgba(255, 19, 93, 0.14);
}

.detail-sticky-contact span {
  display: block;
  color: #b68436;
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-sticky-contact strong {
  display: block;
  margin-top: 4px;
  color: #181d2c;
  font-size: 1.22rem;
  word-break: break-all;
}

.detail-sticky-contact .apply-button {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.96rem;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #f8f9fd;
}

.detail-hero-thumb {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 20px rgba(60, 88, 145, 0.14);
}

.detail-hero-card p {
  margin: 0 0 8px;
  color: #8d95a7;
  font-weight: 700;
}

.detail-hero-card h2 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.55;
}

.detail-top-guide {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: #fff3e7;
  color: #9a6832;
}

.detail-top-guide strong {
  color: #202020;
  font-size: 1.08rem;
}

.detail-top-guide p {
  margin: 0;
  line-height: 1.65;
}

.detail-top-guide .apply-button {
  min-height: 48px;
  margin-top: 2px;
}

.detail-content-flow {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.detail-content-flow h3 {
  margin: 10px 0 0;
  font-size: 1.18rem;
}

.detail-content-flow p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8f9fd;
  color: #333a4c;
  line-height: 1.8;
  font-weight: 600;
}

.detail-content-image {
  margin: 0;
}

.detail-content-image img {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(38, 50, 91, 0.12);
}

.detail-image-fallback {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  background: repeating-linear-gradient(135deg, #f7f9ff 0 12px, #eef2fb 12px 24px);
  border: 1px dashed #c9d3ea;
  border-radius: 18px;
  color: #6f7c96;
  text-align: center;
}

.detail-image-fallback strong {
  display: block;
  color: #2f3950;
  font-size: 1.06rem;
}

.detail-image-fallback span {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.detail-share-inline {
  width: 100%;
  margin-top: 18px;
}

body[data-page="item"] {
  background: #ffffff;
}

.detail-simple-page {
  background: #ffffff;
  box-shadow: none;
}

.detail-simple-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #eef1f7;
}

.detail-back-simple {
  color: #3158e8;
  font-weight: 800;
}

.detail-simple-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 1rem;
}

.detail-simple-content {
  padding: 0;
}

.detail-simple-card {
  padding: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.simple-wechat-top {
  position: sticky;
  top: 48px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #fffaf0;
  border-bottom: 1px solid #ffe6b5;
}

.simple-wechat-top span {
  display: block;
  color: #9a6a1d;
  font-size: 0.84rem;
  font-weight: 800;
}

.simple-wechat-top strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 1.18rem;
  word-break: break-all;
}

.simple-wechat-top button {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--pink);
  color: #ffffff;
  font-weight: 800;
}

.simple-guide {
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #eef1f7;
}

.simple-guide p {
  margin: 0;
  color: #8a5a24;
  line-height: 1.65;
  font-weight: 700;
}

body[data-page="item"] .detail-content-flow {
  display: block;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body[data-page="item"] .detail-content-flow h3 {
  margin: 18px 14px 8px;
  color: #111111;
  font-size: 1.45rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="item"] .detail-content-flow p {
  margin: 0;
  padding: 8px 14px;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 1.26rem;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-content-link {
  display: inline-flex;
  width: calc(100% - 28px);
  max-width: calc(100% - 28px);
  min-width: 0;
  margin: 0 14px 12px;
  padding: 11px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbe6ff;
  border-radius: 14px;
  background: #f3f7ff;
  color: #123cff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-link-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.detail-link-host {
  min-width: 0;
  color: #62719b;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-all;
}

body[data-page="item"] .detail-content-image {
  margin: 0;
}

body[data-page="item"] .detail-content-image img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="item"] .detail-image-fallback {
  margin: 0 14px 12px;
  border-radius: 14px;
}

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

.detail-data-grid div {
  padding: 12px;
  border-radius: 16px;
  background: #f7f9fd;
}

.detail-data-grid span {
  display: block;
  margin-bottom: 6px;
  color: #8990a0;
  font-size: 0.9rem;
}

.detail-data-grid strong {
  font-size: 1.08rem;
}

.detail-related {
  margin-top: 20px;
}

.detail-related h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-link {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  line-height: 1.5;
}

body[data-page="admin"] {
  background:
    radial-gradient(circle at 9% 4%, rgba(69, 132, 255, 0.18), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(255, 145, 79, 0.14), transparent 28%),
    linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
}

body[data-page="admin"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(78, 101, 172, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 101, 172, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.admin-page {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 30px 0 52px;
}

.admin-card {
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 255, 0.92) 100%);
  box-shadow: 0 18px 44px rgba(47, 64, 122, 0.1);
  border: 1px solid rgba(94, 112, 180, 0.1);
  backdrop-filter: blur(16px);
}

.login-card {
  width: min(100%, 420px);
  margin: 6vh auto 0;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 2px;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-header h1,
.admin-card h1,
.admin-card h2,
.admin-card h3 {
  margin: 0;
}

.admin-card h2 {
  color: #17213a;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.admin-kicker {
  margin: 0 0 8px;
  color: #396eff;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-hint {
  margin: 14px 0 0;
  color: #d53559;
}

.source-sync-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(71, 114, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
  color: #606b85;
  line-height: 1.7;
}

.source-sync-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #396eff;
  font-size: 0.92rem;
  font-weight: 800;
}

.source-sync-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.source-sync-metric {
  padding: 14px;
  border-radius: 18px;
  background: #f7f9ff;
  border: 1px solid rgba(94, 112, 180, 0.08);
}

.source-sync-metric span {
  display: block;
  color: #7b8498;
  font-size: 0.82rem;
  font-weight: 800;
}

.source-sync-metric strong {
  display: block;
  margin-top: 7px;
  color: #17213a;
  font-size: 1rem;
  line-height: 1.4;
}

.source-sync-settings-form {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fbfcff;
  border: 1px solid rgba(94, 112, 180, 0.08);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.admin-grid.two-column {
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-form label,
.product-editor label {
  display: grid;
  gap: 8px;
  color: #3c4662;
  font-weight: 600;
}

.admin-form label span,
.product-editor label span,
.admin-toolbar label span {
  color: #58637d;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.product-editor input,
.product-editor textarea,
.admin-toolbar input,
.admin-toolbar select,
.bulk-action-buttons select {
  width: 100%;
  border: 1px solid #dbe1f0;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #f7f9ff;
  color: #202840;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.product-editor input:focus,
.product-editor textarea:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus,
.bulk-action-buttons select:focus {
  border-color: #6f8cff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(90, 126, 255, 0.12);
}

.admin-form textarea,
.product-editor textarea {
  resize: vertical;
}

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

.checkbox-line {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
}

.admin-primary,
.admin-secondary,
.admin-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.admin-primary:hover,
.admin-secondary:hover,
.admin-danger:hover {
  transform: translateY(-1px);
}

.admin-primary:focus-visible,
.admin-secondary:focus-visible,
.admin-danger:focus-visible,
.admin-tab:focus-visible {
  outline: 3px solid rgba(74, 124, 255, 0.26);
  outline-offset: 2px;
}

.admin-primary:disabled,
.admin-secondary:disabled,
.admin-danger:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.admin-primary {
  background: linear-gradient(90deg, #597fff 0%, #33c2ff 100%);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(73, 122, 255, 0.2);
}

.admin-secondary {
  background: #eef2ff;
  color: #4b59a8;
}

.admin-danger {
  background: #ffe8ed;
  color: #d53d61;
}

.small-button {
  min-height: 40px;
  padding-inline: 14px;
}

.admin-divider {
  height: 1px;
  background: #edf0f7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  --stat-rgb: 89, 127, 255;
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--stat-rgb), 0.22), transparent 32%),
    linear-gradient(180deg, rgba(var(--stat-rgb), 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(var(--stat-rgb), 0.12);
  box-shadow: 0 14px 28px rgba(55, 73, 132, 0.08);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgb(var(--stat-rgb));
}

.stat-card[data-tone="green"] {
  --stat-rgb: 28, 169, 103;
}

.stat-card[data-tone="gray"] {
  --stat-rgb: 115, 126, 150;
}

.stat-card[data-tone="orange"] {
  --stat-rgb: 255, 145, 79;
}

.stat-card[data-tone="cyan"] {
  --stat-rgb: 35, 178, 219;
}

.stat-card[data-tone="purple"] {
  --stat-rgb: 123, 103, 255;
}

.stat-label {
  display: block;
  color: #737b91;
  font-size: 0.95rem;
}

.stat-value {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(97, 115, 176, 0.08);
  backdrop-filter: blur(12px);
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex: 0 0 auto;
  border: 0;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 15px;
  background: transparent;
  color: #657089;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-tab.active {
  background: linear-gradient(90deg, #1d2b53 0%, #4c6fff 100%);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(54, 79, 155, 0.18);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 150px auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(94, 112, 180, 0.08);
  box-shadow: var(--shadow-soft);
}

.admin-toolbar:focus-within {
  border-color: rgba(74, 124, 255, 0.18);
  box-shadow: 0 18px 40px rgba(54, 88, 167, 0.12);
}

.admin-toolbar label,
.admin-search {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #59627a;
  font-weight: 700;
}

.bulk-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 249, 255, 0.92) 100%);
  border: 1px solid rgba(94, 112, 180, 0.08);
  box-shadow: 0 12px 26px rgba(55, 73, 132, 0.06);
}

.bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #34405f;
  font-weight: 800;
  white-space: nowrap;
}

.bulk-select-all input,
.row-check input {
  width: 20px;
  height: 20px;
  accent-color: #4c6fff;
}

.bulk-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bulk-action-buttons select {
  width: 110px;
  min-height: 40px;
  padding: 8px 10px;
}

.compact-card {
  margin-top: 16px;
}

.product-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-field {
  grid-column: 1 / -1;
}

.product-list-card {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head span {
  color: #7a8399;
  font-weight: 700;
}

.section-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.small-button.is-active,
#compact-mode-toggle.is-active {
  background: #1d2b53;
  color: #ffffff;
}

.product-row {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: #fbfcff;
  border: 1px solid rgba(92, 109, 171, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #26b879;
  opacity: 0.82;
}

.product-row[data-status="disabled"]::before {
  background: #9aa5bc;
}

.product-row:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 124, 255, 0.16);
  box-shadow: 0 16px 34px rgba(46, 64, 124, 0.08);
}

.product-row.is-editing {
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8ff 100%);
  border-color: rgba(74, 124, 255, 0.2);
}

.product-row.is-editing::before {
  width: 5px;
  background: linear-gradient(180deg, #4a7cff 0%, #33c2ff 100%);
}

.product-row-main {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.row-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 88px;
}

.row-check span {
  display: none;
}

.row-thumb {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(180deg, #de664c 0%, #27bd75 100%);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 20px rgba(60, 88, 145, 0.14);
}

.row-thumb[data-theme="telecom"],
.row-thumb[data-theme="电信"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(180deg, #3271d8 0%, #e96349 100%);
}

.row-thumb[data-theme="mobile"],
.row-thumb[data-theme="移动"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(180deg, #2c7dff 0%, #ff9f43 100%);
}

.row-thumb[data-theme="radio"],
.row-thumb[data-theme="广电"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(180deg, #7869ff 0%, #43c9bf 100%);
}

.row-thumb small,
.row-thumb span {
  font-size: 0.74rem;
  font-weight: 800;
}

.row-thumb strong {
  font-size: 1.52rem;
  line-height: 1;
}

.row-copy {
  min-width: 0;
}

.row-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.04rem;
}

.row-status {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9fbf2;
  color: #14935f;
  font-size: 0.8rem;
  font-weight: 800;
}

.row-status.is-off {
  background: #f1f3f8;
  color: #7a8396;
}

.row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.row-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff3e7;
  color: #b77d40;
  font-size: 0.82rem;
  font-weight: 700;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.row-actions .edit-button {
  background: linear-gradient(90deg, #1d2b53 0%, #4c6fff 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(54, 79, 155, 0.18);
}

.row-actions .status-button.is-disable-action {
  background: #fff5df;
  color: #b46900;
}

.row-actions .status-button.is-enable-action {
  background: #e8fbf3;
  color: #128a5b;
}

.row-actions .top-button,
.row-actions .up-button,
.row-actions .down-button {
  background: #f4f7ff;
  color: #4c5d96;
}

.product-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: #f8f9fd;
}

.detail-upload-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff8ed;
  border: 1px dashed rgba(213, 142, 61, 0.36);
}

.product-image-row {
  grid-template-columns: auto auto 1fr;
}

.product-image-preview {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: #eef2fb;
  background-position: center;
  background-size: cover;
  color: #7d879b;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(93, 113, 180, 0.08);
}

.product-image-preview.has-image {
  background-color: #ffffff;
}

.upload-pick {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffeff4;
  border: 1px solid rgba(255, 19, 93, 0.12);
  color: var(--pink);
  font-weight: 800;
  cursor: pointer;
}

.upload-pick input {
  display: none;
}

.upload-status {
  color: #9a6a1d;
  line-height: 1.5;
}

.preview-card {
  position: sticky;
  top: 18px;
}

.phone-preview {
  width: min(100%, 390px);
  height: 720px;
  display: block;
  margin: 18px auto 0;
  border: 0;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(36, 52, 108, 0.16), 0 0 0 10px #1f2945;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#data-export {
  width: 100%;
  margin-top: 14px;
  border: 1px solid #dbe1f0;
  border-radius: 16px;
  padding: 14px;
  background: #111827;
  color: #d8f3ff;
  font-family: Consolas, "Courier New", monospace;
  resize: vertical;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #f8f9fd;
  color: #7b8497;
  text-align: center;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: min(340px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 16px;
  background: #17213a;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(27, 38, 70, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #c92a4b;
}

.editor-list,
.log-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.editor-list.is-compact {
  gap: 8px;
}

.editor-list.is-compact .product-row {
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
}

.editor-list.is-compact .product-row-main {
  grid-template-columns: auto 52px minmax(0, 1fr);
  gap: 10px;
}

.editor-list.is-compact .row-check {
  height: 52px;
}

.editor-list.is-compact .row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.editor-list.is-compact .row-thumb strong {
  font-size: 1rem;
}

.editor-list.is-compact .row-thumb small,
.editor-list.is-compact .row-thumb span,
.editor-list.is-compact .row-tags,
.editor-list.is-compact .meta-pill small {
  display: none;
}

.editor-list.is-compact .editor-title {
  font-size: 0.92rem;
  line-height: 1.35;
}

.editor-list.is-compact .editor-meta {
  margin-top: 6px;
  gap: 5px;
}

.editor-list.is-compact .meta-pill {
  padding: 4px 7px;
  font-size: 0.74rem;
}

.editor-list.is-compact .row-status {
  padding: 4px 8px;
  font-size: 0.72rem;
}

.editor-list.is-compact .row-actions {
  gap: 6px;
}

.editor-list.is-compact .small-button {
  min-height: 34px;
  padding-inline: 9px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.product-editor {
  padding: 18px;
  border-radius: 20px;
  background: #f8f9fd;
}

.editor-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
  color: #7f8698;
  font-size: 0.92rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1f4fb;
  color: #33415f;
  font-size: 0.82rem;
  font-weight: 800;
}

.meta-pill small {
  color: #7c879d;
  font-size: 0.76rem;
  font-weight: 800;
}

.editor-actions {
  display: flex;
  gap: 10px;
}

.log-item {
  border-left: 4px solid #7e96ff;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8f9fd;
}

.log-item p {
  margin: 8px 0;
  line-height: 1.6;
}

.log-item time {
  color: #8790a5;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .admin-page {
    width: min(calc(100% - 24px), 1120px);
    padding: 22px 0 44px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-sync-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-search,
  .admin-toolbar .admin-primary {
    grid-column: 1 / -1;
  }

  .product-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-upload-row {
    grid-template-columns: 1fr;
  }

  .product-image-row {
    grid-template-columns: auto 1fr;
  }

  .product-image-preview {
    grid-row: span 2;
  }

  .preview-card {
    position: static;
  }

  .phone-preview {
    height: 560px;
  }
}

@media (max-width: 640px) {
  body[data-page="admin"] {
    background:
      radial-gradient(circle at 12% 0%, rgba(69, 132, 255, 0.16), transparent 34%),
      linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
  }

  .admin-page {
    width: 100%;
    padding: 12px 10px 30px;
  }

  .login-card {
    margin-top: 10vh;
  }

  .dashboard {
    gap: 12px;
  }

  .admin-card {
    padding: 16px;
    border-radius: 22px;
  }

  .admin-header {
    position: sticky;
    top: 0;
    z-index: 35;
    margin: -12px -10px 0;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(92, 109, 171, 0.08);
    background: rgba(246, 248, 255, 0.94);
    backdrop-filter: blur(14px);
  }

  .admin-header h1 {
    font-size: 1.36rem;
    line-height: 1.35;
  }

  .admin-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-tabs {
    position: sticky;
    top: 92px;
    z-index: 30;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding: 7px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    scrollbar-width: none;
  }

  .admin-tab {
    min-height: 40px;
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
    border-radius: 18px;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .stat-value {
    margin-top: 6px;
    font-size: 1.42rem;
  }

  .admin-toolbar,
  .product-form-grid,
  .form-split,
  .product-editor {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .bulk-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .bulk-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-action-buttons select,
  .bulk-action-buttons .bulk-button {
    width: 100%;
  }

  .admin-form input,
  .admin-form textarea,
  .admin-form select,
  .product-editor input,
  .product-editor textarea,
  .admin-toolbar input,
  .admin-toolbar select {
    min-height: 46px;
    font-size: 16px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .product-row {
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .product-row-main {
    grid-template-columns: auto 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .row-check {
    width: 24px;
    height: 76px;
  }

  .row-thumb {
    width: 76px;
    height: 76px;
    border-radius: 17px;
  }

  .row-title-line {
    display: grid;
    gap: 7px;
  }

  .editor-title {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .editor-meta {
    font-size: 0.84rem;
    line-height: 1.55;
  }

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

  .row-actions > * {
    width: 100%;
  }

  .row-actions .delete-button {
    grid-column: 1 / -1;
  }

  .editor-list.is-compact .product-row {
    padding: 9px 10px;
  }

  .editor-list.is-compact .product-row-main {
    grid-template-columns: auto 46px minmax(0, 1fr);
  }

  .editor-list.is-compact .row-check {
    height: 46px;
  }

  .editor-list.is-compact .row-thumb {
    width: 46px;
    height: 46px;
  }

  .editor-list.is-compact .editor-meta {
    display: none;
  }

  .editor-list.is-compact .row-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .editor-list.is-compact .row-actions .delete-button {
    grid-column: auto;
  }

  .small-button {
    min-height: 42px;
    padding-inline: 10px;
  }

  .product-editor {
    padding: 14px;
    border-radius: 18px;
  }

  .detail-upload-row {
    padding: 10px;
    border-radius: 16px;
  }

  .product-image-row {
    grid-template-columns: 1fr;
  }

  .product-image-preview {
    grid-row: auto;
    width: 100%;
    height: 120px;
  }

  .upload-pick {
    width: 100%;
  }

  .data-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .source-sync-status {
    justify-content: center;
    min-height: 38px;
    text-align: center;
  }

  .source-sync-grid {
    grid-template-columns: 1fr;
  }

  #data-export {
    min-height: 160px;
    font-size: 12px;
  }

  .preview-card {
    display: none;
  }

  .toast-stack {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .mobile-page {
    width: 100%;
    box-shadow: none;
  }

  .hero-stage {
    height: 398px;
  }

  .hero-board {
    left: 44px;
    width: 326px;
  }

  .hero-board-line-top,
  .hero-board-line-bottom {
    font-size: 4.22rem;
  }

  .hero-side-sign {
    right: 28px;
  }

  .deal-top {
    grid-template-columns: 128px 1fr;
  }

  .deal-thumb {
    width: 128px;
    height: 128px;
  }

  .admin-page {
    width: 100%;
  }
}
