:root {
  --ink: #101418;
  --muted: #65707c;
  --line: #dde3ea;
  --panel: #ffffff;
  --soft: #f5f7fa;
  --deep: #0f1720;
  --cyan: #05b6c9;
  --blue: #1769e0;
  --green: #00a676;
  --gold: #d89a00;
  --shadow: 0 22px 60px rgba(12, 21, 32, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 0 48px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(221, 227, 234, .8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 105, 224, .22);
}

.nav-brand-title {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.nav-brand-title strong {
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.05;
}

.nav-brand-title span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 750;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #354150;
  font-size: 14px;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 999px;
}

.language-switch .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: #6e6e73;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.language-switch .lang-link.active {
  color: #1d1d1f;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 18px;
  min-height: 360px;
  padding: 38px 48px 44px;
  color: #1d1d1f;
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 68%, #ffffff 100%);
}

.hero-carousel {
  isolation: isolate;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, .52) 30%, rgba(255, 255, 255, .2) 56%, rgba(255, 255, 255, .04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .34));
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08);
  opacity: 0;
  transform: scale(1.035);
  animation: hero-fade 18s infinite;
}

.hero-slides img:nth-child(2) {
  animation-delay: 6s;
}

.hero-slides img:nth-child(3) {
  animation-delay: 12s;
}

@keyframes hero-fade {
  0%,
  8% {
    opacity: 0;
  }
  14%,
  33% {
    opacity: 1;
    transform: scale(1);
  }
  41%,
  100% {
    opacity: 0;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
  padding-top: 4px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0071e3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-updated {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  color: #525866;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 12px auto 0;
  color: #6e6e73;
  font-size: 19px;
  line-height: 1.42;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.phone-direct {
  font-variant-numeric: tabular-nums;
}

.hero-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  gap: 14px;
  align-items: center;
  width: min(680px, 100%);
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .08);
}

.hero-phone {
  display: grid;
  gap: 6px;
  text-align: left;
}

.hero-phone span,
.hero-qr span {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 750;
}

.hero-phone a {
  color: #1d1d1f;
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
}

.hero-phone small {
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.42;
}

.hero-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.hero-qr img {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
}

.button,
.filters button,
.quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  cursor: pointer;
}

.primary {
  color: white;
  background: var(--blue);
}

.ghost {
  color: #1d1d1f;
  border-color: #c7c7cc;
  background: rgba(255, 255, 255, .7);
}

.danger {
  color: #b42318;
  background: #fff1f0;
  border-color: #f3b3ad;
}

.small-button,
.tiny-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.tiny-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.hero-panel,
.stat-card {
  padding: 28px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: center;
  display: grid;
  justify-items: center;
  min-width: 340px;
  color: #1d1d1f;
  backdrop-filter: blur(18px);
}

.hero-panel span,
.stat-card span {
  color: #6e6e73;
  font-size: 13px;
}

.hero-panel strong,
.stat-card strong {
  display: block;
  margin: 10px 0;
  font-size: 58px;
  line-height: 1;
}

.hero-panel small,
.stat-card small {
  color: #6e6e73;
}

.featured-band {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 48px 10px;
}

.featured-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.featured-heading h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 42px;
  line-height: 1.1;
}

.featured-carousel {
  overflow: hidden;
}

.featured-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: featured-scroll 42s linear infinite;
}

.featured-carousel:hover .featured-track {
  animation-play-state: paused;
}

.featured-slide {
  display: grid;
  align-content: start;
  width: 320px;
  min-height: 292px;
  padding: 24px;
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
}

.featured-slide h3 {
  margin: 24px 0 8px;
  color: #1d1d1f;
  font-size: 26px;
  line-height: 1.15;
}

.featured-slide p {
  min-height: 48px;
  margin: 0 0 18px;
  color: #6e6e73;
  line-height: 1.45;
}

.featured-slide strong {
  color: #0071e3;
  font-size: 30px;
}

.featured-slide small {
  min-height: 42px;
  margin: 10px 0 18px;
  color: #6e6e73;
  line-height: 1.45;
  word-break: break-word;
}

.featured-slide a {
  align-self: end;
  color: #0071e3;
  font-weight: 750;
}

@keyframes featured-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.inventory,
.admin-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 48px;
}

.toolbar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 28px;
}

.toolbar h2,
.admin-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 10px;
}

.nav-filters {
  grid-template-columns: repeat(3, minmax(120px, .82fr)) minmax(180px, 1.3fr) auto;
  gap: 8px;
  min-width: 0;
}

.nav-filters input,
.nav-filters select,
.nav-filters button {
  min-height: 40px;
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.filters button {
  color: white;
  background: var(--deep);
}

.meta-line {
  margin: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
}

.pagination a.active {
  color: #fff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.pagination a.disabled {
  color: #a1a1a6;
  pointer-events: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-color: #e8e8ed;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .055);
}

.card-top,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  padding: 5px 9px;
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.muted,
.spec,
.pn,
dt {
  color: var(--muted);
}

.product-card h3 {
  margin: 22px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.spec {
  min-height: 46px;
  margin: 0;
  line-height: 1.45;
}

.pn {
  min-height: 72px;
  margin: 16px 0 20px;
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.price-row {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price-row strong {
  color: #0071e3;
  font-size: 30px;
  letter-spacing: 0;
}

.price-row span {
  color: var(--muted);
  font-size: 12px;
}

.usd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.usd-price-row strong {
  color: #0071e3;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.usd-price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

dl {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

dl div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
}

dt,
dd {
  margin: 0;
  font-size: 13px;
}

dd {
  word-break: break-word;
}

.quote-link {
  color: var(--deep);
  background: var(--soft);
  border-color: var(--line);
}

.empty,
.empty-page {
  grid-column: 1 / -1;
  padding: 44px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 24px auto 40px;
  padding: 54px;
  background: #f5f5f7;
  border-radius: 8px;
}

.contact-copy h2 {
  margin: 0;
  max-width: 680px;
  color: #1d1d1f;
  font-size: 44px;
  line-height: 1.12;
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 26px;
  color: #6e6e73;
  font-size: 18px;
  line-height: 1.6;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .06);
}

.qr-card img {
  display: block;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.qr-card span {
  color: #1d1d1f;
  font-weight: 750;
}

.footer {
  display: block;
  padding: 42px 48px 54px;
  color: var(--muted);
  background: #f5f5f7;
  border-top: 1px solid #e8e8ed;
  font-size: 13px;
  text-align: center;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.footer strong {
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 850;
}

.footer p {
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: #1d1d1f;
  font-weight: 750;
}

.footer-links a {
  color: #1d1d1f;
}

.footer small {
  color: #6e6e73;
  line-height: 1.6;
}

.admin-page {
  background: #eef3f7;
}

.admin-header {
  position: static;
}

.admin-hero,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.admin-hero {
  margin-bottom: 18px;
  padding: 18px 22px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(15, 23, 32, .06);
}

.admin-hero p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-hero .eyebrow {
  margin-bottom: 4px;
  color: #1769e0;
  font-size: 12px;
}

.admin-hero h1 {
  font-size: 30px;
}

.admin-hero .stat-card {
  align-self: center;
  padding: 14px 16px;
  background: #f6f8fb;
  box-shadow: none;
}

.admin-hero .stat-card strong {
  margin: 6px 0;
  font-size: 34px;
}

.admin-hero .stat-card small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-side-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(15, 23, 32, .07);
}

.admin-side-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: #1d1d1f;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
}

.admin-side-nav a:hover,
.admin-side-nav a.active {
  color: #fff;
  background: #1769e0;
  border-color: #1769e0;
}

.admin-content {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.admin-module {
  scroll-margin-top: 18px;
}

.module-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.module-heading span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1769e0;
  background: #eaf3ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.module-heading h2 {
  margin: 0;
  font-size: 28px;
}

.module-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.upload-config-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr);
}

.upload-config-grid .markup-panel:nth-of-type(3) {
  grid-column: 2;
}

.password-panel {
  max-width: 560px;
}

.upload-panel,
.table-panel,
.login-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(15, 23, 32, .07);
}

.upload-panel h2,
.table-panel h2 {
  margin: 0 0 10px;
}

.upload-panel p,
.upload-panel li {
  color: var(--muted);
  line-height: 1.6;
}

.upload-panel input[type="file"] {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 10px 0;
  padding: 8px 10px;
}

.upload-stack {
  display: grid;
  gap: 14px;
}

.upload-stack-head,
.upload-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upload-stack-head h2 {
  margin-bottom: 6px;
}

.upload-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-table-module {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upload-module-head {
  margin-bottom: 8px;
}

.upload-module-head span {
  color: #1769e0;
  font-size: 12px;
  font-weight: 900;
}

.upload-module-head strong {
  color: #1d1d1f;
  font-size: 16px;
}

.upload-module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.upload-pricing-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 2px;
}

.pricing-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.pricing-choice.active {
  background: #eef6ff;
  border-color: #1769e0;
  box-shadow: 0 12px 28px rgba(23, 105, 224, .12);
}

.pricing-choice input {
  width: 16px;
  min-height: 16px;
  accent-color: #1769e0;
}

.pricing-choice span {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 900;
}

.pricing-choice small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.upload-progress {
  display: none;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  background: #e8eef6;
  border-radius: 999px;
}

.upload-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: #1769e0;
  border-radius: inherit;
  animation: upload-progress 1s ease-in-out infinite;
}

.upload-warning {
  margin: 0;
  padding: 12px 14px;
  color: #7a4b00;
  background: #fff7df;
  border: 1px solid #f1d48a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.upload-status {
  display: none;
  margin-top: 10px;
  font-weight: 750;
}

.is-uploading .upload-progress,
.is-uploading .upload-status {
  display: block;
}

@keyframes upload-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(260%);
  }
}

.markup-field {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.markup-field[hidden],
[data-pricing-fields][hidden] {
  display: none !important;
}

.markup-panel {
  display: grid;
  gap: 14px;
}

.markup-panel.is-saving .autosave-status::after {
  content: " 正在应用...";
  color: #1769e0;
}

.markup-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.markup-card.active {
  background: #eef6ff;
  border-color: #1769e0;
  box-shadow: 0 12px 30px rgba(23, 105, 224, .12);
}

.markup-card h3 {
  margin: 0 0 0 32px;
  font-size: 18px;
}

.markup-card p,
.markup-card .markup-field {
  margin: 0;
}

.markup-card > p,
.markup-card > .markup-field {
  margin-left: 32px;
}

.markup-radio {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 18px;
  height: 18px;
  accent-color: #1769e0;
}

.autosave-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.table-panel {
  margin-top: 24px;
  overflow-x: auto;
}

.admin-module .table-panel {
  margin-top: 0;
}

.table-heading {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.table-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-price-tools {
  position: sticky;
  left: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px auto;
  gap: 10px;
  margin-bottom: 16px;
}

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

.table-actions form {
  margin: 0;
}

.exchange-rate-panel {
  margin-bottom: 16px;
}

.exchange-rate-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

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

.switch-ui {
  position: relative;
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .18s ease;
}

.switch-ui span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
  transition: transform .18s ease;
}

.switch-control input:checked + .switch-ui {
  background: #0071e3;
}

.switch-control input:checked + .switch-ui span {
  transform: translateX(22px);
}

.switch-control em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.carousel-upload-panel {
  margin-bottom: 18px;
}

.carousel-panel input {
  width: min(360px, 100%);
  min-height: 36px;
}

.carousel-thumb {
  width: 150px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.manual-table input {
  min-width: 120px;
  min-height: 36px;
}

.empty-row {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

.manual-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, .42);
}

.manual-modal.is-open {
  display: grid;
}

.manual-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(760px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.manual-dialog h2,
.manual-dialog p {
  margin: 0;
}

.manual-dialog p {
  color: var(--muted);
  line-height: 1.6;
}

.manual-dialog textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

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

.manual-image-field {
  grid-column: 1 / -1;
}

.manual-image-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.manual-image-preview {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manual-image-preview img {
  width: 120px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.manual-image-preview span {
  color: var(--muted);
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 12px;
}

.price-input {
  width: 118px;
  min-height: 38px;
  font-weight: 800;
}

.admin-pagination {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.admin-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.admin-pagination a.active {
  color: #fff;
  background: #1769e0;
  border-color: #1769e0;
}

.admin-pagination a.disabled {
  color: #a1a1a6;
  pointer-events: none;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.login-card {
  width: min(440px, 92vw);
}

.login-card h1 {
  margin: 34px 0 8px;
}

.login-card p {
  color: var(--muted);
  line-height: 1.7;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin: 24px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.success,
.alert {
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 6px;
}

.success {
  color: #065f46;
  background: #d1fae5;
}

.alert {
  color: #9f1239;
  background: #ffe4e6;
}

.featured-slide {
  min-height: 420px;
  padding: 14px;
}

.featured-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card {
  min-height: 520px;
  padding: 12px;
}

.product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / .68;
  overflow: hidden;
  background: #f5f5f7;
  border-radius: 8px;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-media span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, .64);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.inline-link {
  color: #0071e3;
  font-weight: 750;
}

.single-action {
  grid-template-columns: 1fr;
}

.product-card h3 {
  margin: 16px 8px 8px;
  font-size: 19px;
}

.product-card .spec {
  min-height: 36px;
  margin: 0 8px;
}

.product-card .price-row {
  margin: 14px 8px 0;
  padding-top: 14px;
}

.product-card .price-row strong {
  color: #ff5000;
}

.spec-table {
  margin: 12px 8px;
  padding: 8px 10px;
  background: #fafafa;
  border-radius: 8px;
}

.spec-table div {
  grid-template-columns: 78px minmax(0, 1fr);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: auto 8px 8px;
}

.real-link,
.product-card .quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.real-link {
  color: #ff5000;
  background: #fff3ec;
  border: 1px solid #ffd4be;
}

.product-card .quote-link {
  color: #fff;
  background: #ff5000;
  border-color: #ff5000;
}

.copy-link {
  width: 100%;
  font: inherit;
  font-size: 13px;
}

.copy-link.is-copied {
  background: #0a7f42;
  border-color: #0a7f42;
}

.floating-service {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: 148px;
  transform: translateY(-50%);
}

.float-title {
  padding: 9px 12px;
  color: #1d1d1f;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.float-phone,
.float-qr {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px 12px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px);
}

.float-qr {
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ff5000;
  background: #fff3ec;
  border: 1px solid #ffd4be;
  border-radius: 999px;
  line-height: 1;
}

.float-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.wechat-icon {
  color: #07c160;
  background: #e9fff4;
  border-color: #bdf4d7;
}

.float-phone span,
.float-qr span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 750;
}

.float-phone strong {
  color: #ff5000;
  font-size: 17px;
  line-height: 1.1;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 20, 24, .46);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.wechat-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wechat-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(360px, 92vw);
  padding: 28px 28px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 10px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
  transform: translateY(8px) scale(.98);
  transition: transform .18s ease;
}

.wechat-modal.is-open .wechat-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #6e6e73;
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.wechat-dialog h2 {
  margin: 2px 0 0;
  color: #1d1d1f;
  font-size: 24px;
}

.modal-phone {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
}

.modal-phone span {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 750;
}

.modal-phone strong {
  color: #ff5000;
  font-size: 24px;
  line-height: 1.1;
}

.wechat-dialog > img {
  width: min(240px, 72vw);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.wechat-dialog p {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 750;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 22px;
  }

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

  .filters:not(.nav-filters),
  .toolbar,
  .admin-hero,
  .admin-workspace,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-side-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-side-nav a {
    justify-content: center;
    text-align: center;
  }

  .upload-config-grid .markup-panel:nth-of-type(3) {
    grid-column: auto;
  }

  .upload-stack-head,
  .upload-module-head,
  .admin-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-module-list,
  .upload-module-grid,
  .upload-pricing-choice,
  .manual-form-grid,
  .manual-image-actions,
  .manual-image-preview,
  .admin-price-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 18px 12px;
  }

  nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }

  .nav-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 22px 34px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .inventory,
  .admin-shell {
    padding: 30px 18px;
  }

  .featured-band {
    padding: 26px 18px 4px;
  }

  .featured-heading h2 {
    font-size: 32px;
  }

  .featured-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    animation: none;
  }

  .featured-slide {
    width: 82vw;
    scroll-snap-align: start;
  }

  .filters:not(.nav-filters) {
    grid-template-columns: 1fr;
  }

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

  .footer {
    display: grid;
    justify-items: center;
    padding: 24px 18px 36px;
  }

  .footer-links {
    display: grid;
    gap: 8px;
  }

  .contact-band {
    grid-template-columns: 1fr;
    margin: 16px 18px 28px;
    padding: 28px;
  }

  .contact-copy h2 {
    font-size: 32px;
  }

  .floating-service {
    right: 12px;
    bottom: 12px;
    top: auto;
    width: 118px;
    transform: none;
  }

  .float-phone {
    display: none;
  }
}
