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

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

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

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

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: 24px;
  padding: 36px;
  color: white;
  background: linear-gradient(135deg, #111820, #21415f);
  border-radius: 8px;
}

.admin-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, .74);
  line-height: 1.7;
}

.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: 54px;
  margin: 22px 0;
  padding: 14px;
}

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

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

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

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: 560px;
  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 .card-top {
  margin: 12px 8px 0;
}

.product-card h3 {
  margin: 14px 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 12px;
  border-radius: 6px;
  font-weight: 750;
  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: 14px;
}

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

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