/* 哈佛币代售网站 · 淘宝式挂售前台 */
:root {
  --brand: #ff5000;
  --brand-dark: #e64600;
  --brand-soft: #fff1e8;
  --gold: #f6b73c;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #222222;
  --muted: #888888;
  --line: #ececec;
  --line-strong: #dedede;
  --green: #00a870;
  --danger: #e54d42;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --container: min(1220px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

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

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

button { cursor: pointer; }

h1, h2, h3, h4, p, dl, dd, dt { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(255, 80, 0, 0.2); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

[hidden] { display: none !important; }

.container { width: var(--container); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 10px; }

/* ---------- 顶部条 ---------- */
.top-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: #777;
  font-size: 12px;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.top-strip-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.top-strip-left span { display: inline-flex; align-items: center; gap: 6px; }

.top-strip-left span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.top-strip-right { display: flex; align-items: center; gap: 18px; }

.top-strip-right a:hover { color: var(--brand); }

/* ---------- 头部 ---------- */
.market-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff7a1a, #ff5000 60%, #d93d00);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 8px 18px rgba(255, 80, 0, 0.24);
}

.brand-text { display: grid; line-height: 1.2; }

.brand-name { font-size: 18px; font-weight: 800; color: #222; letter-spacing: 0.2px; white-space: nowrap; }

.brand-sub { font-size: 9.5px; letter-spacing: 2px; color: #aaa; font-weight: 600; }

.search {
  display: flex;
  flex: 1 1 auto;
  max-width: 560px;
  height: 42px;
  border: 2px solid var(--brand);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

.search:focus-within { box-shadow: 0 0 0 4px rgba(255, 80, 0, 0.1); }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 8px 0 18px;
  font-size: 14px;
  color: #333;
}

.search input::placeholder { color: #b5b5b5; }

.search button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: linear-gradient(135deg, #ff6a00, #ff5000);
  color: #fff;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
}

.search button svg { width: 16px; height: 16px; }

.search button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; flex: none; }

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.header-account svg { width: 16px; height: 16px; flex: none; }

.header-account:hover { color: var(--brand); }

.header-account.is-logged-in { color: var(--brand); font-weight: 600; }

.header-link { color: #555; font-size: 13px; }

.header-link:hover { color: var(--brand); }

.header-contact {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.header-contact:hover { background: var(--brand-soft); }

.market-nav { border-top: 1px solid var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-links a {
  position: relative;
  padding: 10px 0;
  color: #444;
  font-size: 14px;
}

.nav-links a:hover, .nav-links a.is-active { color: var(--brand); }

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%);
}

.compliance-note {
  border-bottom: 1px solid #ffe3d3;
  background: linear-gradient(90deg, #fff8f2, #fffdfb 60%, #fff8f2);
  color: #8a6a58;
}

.compliance-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
}

.compliance-note-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: #ffe9dc;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.compliance-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.1px;
}

.nav-contact { color: #999; font-size: 12px; }

.nav-contact span { color: var(--brand); }

.nav-contact:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 24px;
  padding: 42px 48px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ffe4d3;
  background:
    radial-gradient(420px 240px at 88% 18%, rgba(255, 255, 255, 0.72), transparent 70%),
    linear-gradient(115deg, #fff7ef 0%, #ffe9d6 48%, #ffd6b5 100%);
  box-shadow: 0 16px 40px rgba(255, 80, 0, 0.08);
}

.hero-inner::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 80, 0, 0.1);
}

.hero-copy { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 80, 0, 0.09);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.15);
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 900;
  color: #1d1d1f;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(255, 80, 0, 0.12);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  max-width: 520px;
  color: #77675c;
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 12px; margin: 24px 0 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #ff6a00, #ff5000);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 80, 0, 0.22);
}

.btn-primary:hover { background: linear-gradient(135deg, #ff7a1a, #e64600); }

.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 80, 0, 0.28);
  color: var(--brand);
}

.btn-outline:hover { background: #fff; border-color: var(--brand); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: #333;
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-sm { min-height: 34px; padding: 7px 14px; font-size: 12.5px; }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.hero-figures { display: flex; align-items: center; gap: 0; border-top: 1px solid rgba(120, 80, 40, 0.14); padding-top: 18px; max-width: 440px; }

.hero-figures > div { flex: 1; padding: 0 20px; border-left: 1px solid rgba(120, 80, 40, 0.14); }

.hero-figures > div:first-child { padding-left: 0; border-left: 0; }

.hero-figures strong { display: block; color: #333; font-size: 22px; line-height: 1.2; }

.hero-figures span { color: #8b7767; font-size: 11.5px; }

.hero-art {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 80, 0, 0.14);
}

.hero-ring.r1 { width: 300px; height: 300px; }

.hero-ring.r2 { width: 380px; height: 380px; border-style: dashed; border-color: rgba(255, 80, 0, 0.1); }

.hero-coin {
  position: relative;
  display: grid;
  place-items: center;
  width: 205px;
  height: 205px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 27%, #fff7d6 0%, #ffdf94 28%, #f6b73c 58%, #d98b17 100%);
  border: 5px solid rgba(255, 250, 225, 0.85);
  color: #5f3b06;
  font-size: 100px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 248, 220, 0.65);
  box-shadow:
    inset 0 0 0 9px rgba(140, 90, 12, 0.16),
    inset 0 14px 22px rgba(255, 255, 255, 0.4),
    inset 0 -18px 30px rgba(110, 65, 4, 0.3),
    0 24px 40px rgba(150, 85, 10, 0.24);
  transform: rotate(-7deg);
}

.hero-coin::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(100, 60, 5, 0.3);
}

.hero-float {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #6b4a2a;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(150, 85, 10, 0.12);
  backdrop-filter: blur(8px);
  animation: floaty 6s ease-in-out infinite;
}

.hero-float.f1 { top: 42px; left: 10px; }

.hero-float.f2 { right: 0; top: 118px; animation-delay: -2s; }

.hero-float.f3 { left: 28px; bottom: 48px; animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- 商品目录 ---------- */
.catalog { padding: 34px 0 0; scroll-margin-top: 132px; }

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.crumb { color: #aaa; font-size: 12px; }

.crumb span { color: #666; }

.catalog-head h2 { margin-top: 4px; font-size: 28px; letter-spacing: -0.4px; }

.catalog-count { color: #999; font-size: 12.5px; }

.catalog-count strong { color: var(--brand); font-size: 18px; margin: 0 2px; }

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

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

.category-tab {
  flex: none;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #555;
  font-size: 13.5px;
  white-space: nowrap;
}

.category-tab:hover { color: var(--brand); background: var(--brand-soft); }

.category-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sort-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }

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

.sort-tabs button {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 12.5px;
}

.sort-tabs button:hover { color: var(--brand); }

.sort-tabs button.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.stock-filter { display: inline-flex; align-items: center; gap: 6px; color: #777; font-size: 12.5px; cursor: pointer; white-space: nowrap; }

.stock-filter input { width: 14px; height: 14px; accent-color: var(--brand); }

/* ---------- 多维筛选 ---------- */
.market-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.market-type-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #f7f8fa;
}

.market-type-tabs button {
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #777;
  font-size: 11.5px;
  cursor: pointer;
}

.market-type-tabs button.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.market-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a8a8a;
  font-size: 11px;
}

.market-select select {
  height: 30px;
  padding: 0 24px 0 8px;
  border: 1px solid #e5e8ee;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #555;
  font-family: inherit;
  font-size: 11.5px;
}

.market-select select:focus { border-color: #ffb28a; }

.market-instant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #777;
  font-size: 11.5px;
  cursor: pointer;
}

.market-instant input { width: 14px; height: 14px; accent-color: var(--brand); }

.market-reset {
  margin-left: auto;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 11px;
  cursor: pointer;
}

.market-reset:hover { color: var(--brand); }

.product-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.product-attrs span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff6ef;
  color: #a06a45;
  font-size: 9.5px;
  line-height: 1.4;
}

.product-type-badge {
  display: inline-block;
  margin-right: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef4ff;
  color: #4f6f9f;
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: 1px;
}

/* ---------- 成交公示 ---------- */
.deal-section { padding-top: 10px; }

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

.deal-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.deal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.deal-card strong { display: block; overflow: hidden; color: #2d3748; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }

.deal-card span { color: #9aa3b0; font-size: 10px; }

.deal-card-price { margin-top: 10px; color: var(--brand); font-size: 17px; font-weight: 800; }

.deal-card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: #9aa3b0; font-size: 10px; }

.deal-empty { padding: 24px; border: 1px dashed #e5e8ee; border-radius: 10px; color: #a2abb8; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .market-filters { gap: 8px; padding: 9px; }
  .market-type-tabs { flex: 1 1 100%; }
  .market-type-tabs button { flex: 1; }
  .market-select { flex: 1 1 calc(50% - 8px); justify-content: space-between; }
  .market-select select { max-width: 120px; }
  .market-instant { flex: 1 1 auto; }
  .market-reset { margin-left: 0; }
  .deal-grid { grid-template-columns: 1fr; }
  .deal-empty { padding: 18px; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-height: 120px;
}

.grid-loading {
  grid-column: 1 / -1;
  padding: 70px 0;
  text-align: center;
  color: #aaa;
  font-size: 13px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 20, 10, 0.045);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, #ff6a00, #ffb27a);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #ffc4a5;
  box-shadow: 0 18px 36px rgba(255, 80, 0, 0.12);
}

.product-card:hover::before { opacity: 1; }

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid #f3f3f3;
  background: #fff6ee;
}

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

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

.product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6a00, #ff5000);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 80, 0, 0.25);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sold-out-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.66);
  color: #666;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}

.product-body { display: flex; flex-direction: column; flex: 1; padding: 14px 15px 16px; }

.product-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; margin-bottom: 7px; }

.product-tags span {
  padding: 2px 7px;
  border: 1px solid #ffd8c4;
  border-radius: 4px;
  background: #fff8f4;
  color: var(--brand);
  font-size: 10.5px;
  line-height: 1.5;
}

.product-tags .product-type-badge {
  border-color: #dbe7ff;
  background: #eef4ff;
  color: #4f6f9f;
  font-size: 9.5px;
  font-weight: 700;
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  color: #2b2b2b;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.product-title:hover { color: var(--brand); }

.product-sub {
  margin-top: 5px;
  overflow: hidden;
  color: #9a9a9a;
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: #aaa;
  font-size: 11px;
}

.product-meta .in-stock { color: var(--green); }

.product-meta .low-stock { color: #e58a00; }

.product-meta .out-stock { color: #bbb; }

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
}

.product-price { display: flex; align-items: baseline; gap: 2px; min-width: 0; color: var(--brand); }

.product-price .currency { font-size: 12px; font-weight: 600; }

.product-price strong { font-size: 22px; line-height: 1; letter-spacing: -0.4px; }

.product-price .quote { font-size: 18px; }

.product-price del { margin-left: 4px; color: #bbb; font-size: 11px; font-weight: 400; }

.buy-btn {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6a00, #ff5000);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 80, 0, 0.18);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.buy-btn:hover { background: var(--brand-dark); box-shadow: 0 6px 14px rgba(255, 80, 0, 0.24); }

.buy-btn[disabled] { border-color: #ddd; background: #f2f2f2; color: #aaa; box-shadow: none; cursor: not-allowed; }

.empty-products {
  padding: 70px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  color: #999;
}

.empty-icon { font-size: 42px; line-height: 1; color: #d8d8d8; }

.empty-products strong { display: block; margin-top: 12px; color: #555; font-size: 15px; }

.empty-products p { margin-top: 6px; font-size: 12.5px; }

/* ---------- 通用区块 ---------- */
.order-section { padding: 46px 0 0; scroll-margin-top: 132px; }

.info-section { padding: 46px 0 0; scroll-margin-top: 132px; }

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

.eyebrow { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: 2px; }

.section-head h2 { margin-top: 5px; font-size: 27px; letter-spacing: -0.4px; }

.section-head p { max-width: 460px; color: #999; font-size: 12.5px; text-align: right; }

/* ---------- 下单 ---------- */
.order-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 20, 10, 0.07);
}

.order-main { min-width: 0; padding: 24px; }

.selected-product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #ffe1d2;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff9f4, #fff4ea);
}

.selected-placeholder { color: #aaa; font-size: 13px; }

.selected-image {
  width: 72px;
  height: 72px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.selected-image img { width: 100%; height: 100%; object-fit: cover; }

.selected-info { min-width: 0; flex: 1; }

.selected-info .selected-category { color: #b09a8c; font-size: 11px; }

.selected-info h3 {
  margin-top: 3px;
  overflow: hidden;
  color: #333;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-info p { margin-top: 3px; overflow: hidden; color: #a08b7d; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }

.selected-price { flex: none; color: var(--brand); font-size: 18px; font-weight: 700; white-space: nowrap; }

.login-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid #ffe1d2;
  border-radius: 8px;
  background: #fff8f3;
  color: #a08b7d;
  font-size: 11.5px;
  line-height: 1.7;
}

.login-tip a { flex: none; color: var(--brand); font-weight: 600; white-space: nowrap; }

.login-tip a:hover { color: var(--brand-dark); }

.login-tip.is-logged { border-color: #c9efdf; background: #f4fcf8; color: #7c9a8d; }

.login-tip.is-logged a { color: var(--green); }

.order-form { margin-top: 22px; }

.order-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order-form-head h3 { font-size: 15px; }

.order-form-head span { color: #aaa; font-size: 11.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }

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

.field { display: grid; gap: 6px; }

.field label { color: #666; font-size: 12px; font-weight: 600; }

.field .optional { color: #aaa; font-size: 11px; font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea { min-height: 74px; resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: #b9b9b9; }

.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.08);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.qty-stepper button {
  width: 36px;
  height: 100%;
  border: 0;
  background: #fafafa;
  color: #666;
  font-size: 18px;
  line-height: 1;
}

.qty-stepper button:hover { color: var(--brand); background: var(--brand-soft); }

.qty-stepper input {
  width: 58px;
  height: 100%;
  border: 0;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  text-align: center;
  font-size: 14px;
  outline: 0;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: #999;
  font-size: 11.5px;
  line-height: 1.7;
  cursor: pointer;
}

.agree input { width: 14px; height: 14px; margin-top: 2px; accent-color: var(--brand); flex: none; }

.form-error {
  display: none;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid #ffd3cf;
  border-radius: 6px;
  background: #fff4f3;
  color: #d4382c;
  font-size: 12px;
}

.form-error.is-visible { display: block; }

.order-form .btn-block { margin-top: 16px; border-radius: 8px; }

.form-hint { margin-top: 10px; color: #aaa; font-size: 11px; line-height: 1.7; }

.order-result {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c9efdf;
  border-radius: 10px;
  background: #f4fcf8;
}

.order-result.is-visible { display: block; }

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

.result-title { display: flex; align-items: flex-start; gap: 10px; }

.result-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.result-title h3 { font-size: 14.5px; }

.result-title p { margin-top: 2px; color: #7c9a8d; font-size: 11.5px; }

.result-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin-top: 15px;
}

.result-list > div { min-width: 0; }

.result-list dt { color: #8aa79a; font-size: 11px; }

.result-list dd { margin-top: 1px; color: #333; font-size: 12.5px; word-break: break-all; }

.result-list .order-id { color: var(--brand); font-weight: 700; letter-spacing: 0.3px; }

.result-note { margin-top: 12px; color: #8aa79a; font-size: 11px; }

.order-summary {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #fcfcfc;
}

.order-summary h3 { font-size: 15px; }

.summary-product { margin-top: 14px; min-height: 58px; }

.summary-placeholder { color: #aaa; font-size: 12px; }

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

.summary-item img { width: 54px; height: 54px; flex: none; border-radius: 7px; object-fit: cover; }

.summary-item strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.5; }

.summary-item span { color: #999; font-size: 11px; }

.summary-list { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }

.summary-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.summary-list dt { color: #999; font-size: 12px; }

.summary-list dd { color: #333; font-size: 12.5px; }

.summary-total { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }

.summary-total dt { color: #555; font-weight: 600; }

.summary-total dd { color: var(--brand); font-size: 21px; font-weight: 800; }

.summary-tip { margin-top: 16px; padding: 11px 12px; border-radius: 6px; background: #fff6ef; }

.summary-tip span { color: var(--brand); font-size: 11px; font-weight: 600; }

.summary-tip p { margin-top: 4px; color: #a08b7d; font-size: 11px; line-height: 1.7; }

/* ---------- 流程 / 保障 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.process-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.step { display: block; color: #ffc3a6; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }

.process-item h3 { margin-top: 12px; font-size: 14px; }

.process-item p { margin-top: 5px; color: #999; font-size: 11.5px; line-height: 1.8; }

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

.trust-item { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.trust-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}

.trust-item h3 { margin-top: 12px; font-size: 14px; }

.trust-item p { margin-top: 5px; color: #999; font-size: 11.5px; line-height: 1.8; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }

.faq details {
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq details[open] { border-color: #ffd8c4; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: #444;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; color: #b5b5b5; font-size: 18px; font-weight: 400; line-height: 1; }

.faq details[open] summary::after { content: "−"; color: var(--brand); }

.faq .faq-body { padding: 0 28px 15px 0; color: #999; font-size: 12px; line-height: 1.85; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.contact-card img {
  width: 112px;
  height: 112px;
  flex: none;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.contact-card h3 { font-size: 15px; }

.contact-card p { margin: 5px 0 10px; color: #999; font-size: 12px; line-height: 1.7; }

.contact-card a { color: var(--brand); font-size: 12px; font-weight: 600; word-break: break-all; }

.contact-hint { display: inline-block; color: #b08972; font-size: 11.5px; }

.contact-empty { margin: 0; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #ffe1d2;
  border-radius: 8px;
  background: #fff8f3;
  color: #a08b7d;
  font-size: 11.5px;
  line-height: 1.8;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); background: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 36px 0 28px;
}

.footer-brand p { max-width: 300px; margin-top: 12px; color: #999; font-size: 12px; line-height: 1.8; }

.footer-col h4 { margin-bottom: 10px; color: #555; font-size: 12.5px; }

.footer-col li { margin-bottom: 7px; }

.footer-col a { color: #888; font-size: 12px; }

.footer-col a:hover { color: var(--brand); }

.footer-info li { display: flex; justify-content: space-between; gap: 12px; color: #999; font-size: 12px; }

.footer-info li span:last-child { color: #666; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  color: #aaa;
  font-size: 11px;
}

.footer-bottom a { color: #888; }

.footer-bottom a:hover { color: var(--brand); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 220;
  transform: translate(-50%, 14px);
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.94);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ---------- 商品详情弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }

.modal-card {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #777;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover { color: #333; }

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

.modal-media { position: relative; background: #fff6ee; }

.modal-media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.modal-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.modal-info { padding: 28px 28px 24px; }

.modal-category { color: #b09a8c; font-size: 11.5px; }

.modal-info h2 { margin-top: 6px; color: #222; font-size: 22px; line-height: 1.4; letter-spacing: -0.3px; }

.modal-subtitle { margin-top: 6px; color: #999; font-size: 12.5px; }

.modal-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; color: var(--brand); }

.modal-price span { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; line-height: 1; }

.modal-price del { color: #bbb; font-size: 13px; }

.modal-meta { display: flex; gap: 20px; margin-top: 12px; color: #999; font-size: 12px; }

.modal-meta b { color: #555; font-weight: 600; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.modal-tags span { padding: 3px 8px; border: 1px solid #ffd8c4; border-radius: 3px; color: var(--brand); font-size: 10.5px; }

.modal-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #fafbfc;
}

.modal-attrs div { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }

.modal-attrs span { color: #9aa3b0; font-size: 10.5px; }

.modal-attrs strong { overflow: hidden; color: #586273; font-size: 10.5px; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.modal-desc { margin-top: 14px; color: #888; font-size: 12px; line-height: 1.9; }

.modal-buy-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }

.modal-buy-row .qty-stepper { width: 126px; height: 40px; }

.modal-buy-row .btn { flex: 1; border-radius: 8px; }

.modal-hint { margin-top: 12px; color: #aaa; font-size: 10.5px; }

body.modal-open { overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { padding: 36px 36px; }
  .hero-coin { width: 180px; height: 180px; font-size: 86px; }
  .hero-ring.r1 { width: 260px; height: 260px; }
  .hero-ring.r2 { width: 330px; height: 330px; }
  .header-main { gap: 20px; }
  .search { max-width: 460px; }
}

@media (max-width: 900px) {
  .catalog, .order-section, .info-section { scroll-margin-top: 178px; }
  .header-main { flex-wrap: wrap; padding: 12px 0; gap: 12px; }
  .header-main > .brand { order: 1; }
  .header-main > .header-actions { order: 2; margin-left: auto; }
  .header-main > .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-links { gap: 18px; overflow-x: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-inner { padding: 30px 28px; }
  .hero-figures { max-width: none; }
  .order-shell { grid-template-columns: 1fr; }
  .order-summary { border-left: 0; border-top: 1px solid var(--line); }
  .process-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --container: calc(100% - 24px); }

  .compliance-note-inner { padding: 8px 0; gap: 7px; }
  .compliance-note p { font-size: 11px; line-height: 1.7; }

  .top-strip-left span:nth-child(2), .top-strip-left span:nth-child(3) { display: none; }
  .top-strip-right a:first-child { display: none; }

  .header-main { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; font-size: 21px; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { font-size: 8px; letter-spacing: 1.4px; }
  .header-link { display: none; }
  .header-account { font-size: 12px; }
  .header-account svg { width: 14px; height: 14px; }
  .header-contact { height: 30px; padding: 0 12px; font-size: 12px; }
  .search { height: 38px; }
  .search button { padding: 0 16px; }
  .search button span { display: none; }

  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-contact { display: none; }

  .hero { padding-top: 12px; }
  .hero-inner { padding: 24px 20px; border-radius: 14px; }
  .hero h1 { font-size: 34px; margin: 12px 0; }
  .hero-lead { font-size: 12.5px; }
  .hero-actions { margin: 18px 0 22px; }
  .hero-actions .btn { flex: 1; }
  .hero-figures > div { padding: 0 12px; }
  .hero-figures strong { font-size: 18px; }
  .hero-figures span { font-size: 10px; }

  .catalog { padding-top: 26px; }
  .catalog-head h2 { font-size: 23px; }
  .catalog-count { font-size: 11px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 9px 10px 11px; }
  .product-title { font-size: 12.5px; min-height: 38px; }
  .product-sub { display: none; }
  .product-tags { min-height: 0; margin-bottom: 4px; }
  .product-tags span { font-size: 9.5px; padding: 1px 5px; }
  .modal-attrs { grid-template-columns: 1fr; }
  .product-price strong { font-size: 18px; }
  .product-price .quote { font-size: 16px; }
  .product-price del { display: none; }
  .buy-btn { height: 28px; padding: 0 9px; font-size: 11px; }
  .product-meta { font-size: 10px; margin-top: 6px; }
  .product-meta .sales { display: none; }

  .filter-bar { flex-wrap: wrap; gap: 6px; padding: 8px; }
  .sort-tabs { flex: 1 1 100%; flex-wrap: wrap; gap: 0; overflow: visible; }
  .sort-tabs button { padding: 6px 8px; font-size: 11.5px; }
  .stock-filter {
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
    font-size: 11px;
  }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head p { text-align: left; }
  .section-head h2 { font-size: 23px; }

  .order-main, .order-summary { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .selected-product { align-items: flex-start; }
  .selected-price { font-size: 15px; }
  .selected-image { width: 58px; height: 58px; }
  .result-list { grid-template-columns: 1fr; }

  .process-grid, .trust-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { align-items: flex-start; }
  .contact-card img { width: 96px; height: 96px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .modal { padding: 10px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media img { aspect-ratio: 4 / 3; }
  .modal-info { padding: 20px; }
  .modal-info h2 { font-size: 19px; }
  .modal-price span { font-size: 25px; }
  .modal-buy-row { flex-wrap: wrap; }
  .modal-buy-row .qty-stepper { width: 120px; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .header-account svg { display: none; }
  .brand-name { font-size: 14.5px; }
  .header-contact { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
