:root {
  --black: #050505;
  --dark: #111111;
  --text: #1f2024;
  --muted: #6f7379;
  --line: #dfe1e5;
  --surface: #ffffff;
  --soft: #f4f4f4;
  --accent: #0078d6;
  --accent-soft: #e8f3fc;
  --title-font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #f7f8fa;
}

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

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--black);
  color: #ffffff;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: #ffffff;
  color: #ffffff;
}

main {
  display: grid;
  gap: 0;
}

.hero-card {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: var(--black);
  color: #ffffff;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: calc(100vh - 72px);
  max-width: 720px;
  padding: 0 clamp(24px, 7vw, 96px) clamp(54px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics div {
  min-width: 126px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 28px;
  font-weight: 700;
}

.hero-metrics span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.promo-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--black);
}

.promo-track,
.promo-slide {
  position: absolute;
  inset: 0;
}

.promo-slide {
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.08) 100%),
    var(--promo-image) center / cover;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.promo-slide.active {
  opacity: 1;
  transform: scale(1);
}

.promo-slide span,
.promo-slide strong,
.promo-slide p {
  display: none;
}

.promo-controls {
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  bottom: clamp(28px, 6vw, 70px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-arrow,
.promo-dots button {
  border: 0;
  cursor: pointer;
}

.promo-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  font-size: 24px;
}

.promo-dots {
  display: flex;
  gap: 8px;
}

.promo-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.promo-dots button.active {
  width: 28px;
  background: #ffffff;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.category-strip a {
  min-height: 132px;
  padding: 28px clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease;
}

.category-strip a:last-child {
  border-right: 0;
}

.category-strip a:hover {
  background: var(--accent-soft);
  color: #005c9f;
}

.category-strip strong,
.category-strip span {
  display: block;
}

.category-strip strong {
  font-family: var(--title-font);
  font-size: 21px;
  font-weight: 500;
}

.category-strip span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.content-layout,
.dashboard,
.split-section {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 70px 0;
}

.market-column,
.side-column {
  display: grid;
  gap: 28px;
  align-content: start;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

h2 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0;
}

.toolbar p,
.trade-guide p,
.publish-note p,
.detail-note p,
.loading {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 120, 214, 0.12);
}

textarea {
  min-height: 118px;
  padding-top: 12px;
  resize: vertical;
}

.filters input {
  width: min(280px, 100%);
}

.filters select {
  width: 142px;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--soft);
}

.product-body {
  padding: 18px 18px 16px;
}

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

.product-head h3 {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.product-body p {
  min-height: 48px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
}

.price {
  margin-top: 16px;
  color: var(--dark);
  font-size: 26px;
  font-weight: 500;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.meta span {
  padding: 0;
  background: transparent;
}

.meta span:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: #b0b4ba;
}

.product-actions,
.auth-actions,
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.ghost-btn,
.primary-btn,
.secondary-btn,
.dark-btn,
.panel-title button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.ghost-btn,
.secondary-btn,
.panel-title button {
  border: 1px solid #8f9399;
  background: transparent;
  color: inherit;
}

.site-header .ghost-btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.primary-btn,
.dark-btn {
  background: var(--accent);
  color: #ffffff;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.88);
  color: var(--dark);
}

.product-actions .secondary-btn,
.product-actions .primary-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.product-actions .secondary-btn {
  border-color: #c8ccd2;
}

.request-card,
.trade-guide,
.publish-note {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.request-list div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px;
}

.request-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--soft);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
}

.request-list p {
  margin: 0;
}

.request-list strong,
.request-list small {
  display: block;
}

.request-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.request-list b {
  font-size: 14px;
}

.trade-guide ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.stat-card {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 36px;
  font-weight: 500;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  background: #e3e5e8;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 76px 0;
}

.publish-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

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

.publish-note p {
  max-width: 280px;
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-list span {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
}

.note-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

dialog {
  width: min(92vw, 520px);
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  font-size: 22px;
}

.detail-frame {
  width: min(1120px, calc(100vw - 48px));
  min-height: calc(100vh - 96px);
  margin: 40px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(32, 33, 36, 0.08);
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
}

.detail-nav {
  display: flex;
  gap: 12px;
}

.detail-page {
  padding: 30px;
}

.detail-shell {
  display: grid;
  gap: 18px;
}

.detail-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 26px;
  padding: 22px;
}

.detail-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  background: var(--soft);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-info h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

.detail-price {
  color: var(--dark);
  font-size: 42px;
  font-weight: 500;
}

.detail-desc {
  color: #4b4b4b;
  line-height: 1.8;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.detail-actions {
  margin-top: auto;
}

.detail-note {
  padding: 20px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, 90vw);
  transform: translateY(16px);
  opacity: 0;
  padding: 14px 16px;
  background: var(--dark);
  color: white;
  transition: 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.empty {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  padding: 26px;
  color: var(--muted);
  text-align: center;
  background: var(--soft);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .content-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .side-column {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 16px 20px;
  }

  .nav a {
    min-height: 40px;
  }

  .hero-card,
  .hero-copy {
    min-height: 640px;
  }

  .hero-copy {
    padding: 0 20px 48px;
  }

  .hero-card h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-metrics div {
    min-width: calc(50% - 6px);
  }

  .category-strip,
  .dashboard,
  .side-column,
  .detail-product {
    grid-template-columns: 1fr;
  }

  .category-strip a,
  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content-layout,
  .dashboard,
  .split-section {
    width: min(100% - 32px, 680px);
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters,
  .filters input,
  .filters select {
    width: 100%;
  }

  .detail-frame {
    width: 100%;
    min-height: 100vh;
    margin: 0;
  }

  .detail-page {
    padding: 20px;
  }

  .detail-media img {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .product-grid,
  .form-grid,
  .product-actions,
  .auth-actions,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .hero-card h1 {
    font-size: 38px;
  }

  .hero-metrics div {
    min-width: 100%;
  }

  .promo-controls {
    right: 20px;
    bottom: 20px;
  }
}
