/* ==========================================================================
   寒叶商行 · 租号大厅
   浅色蓝白 / 橙色行动按钮 / 卡片式商品展示
   ========================================================================== */

:root {
  --bg: #f4f6fb;
  --bg-soft: #eef2f9;
  --card: #ffffff;
  --text: #131c2e;
  --text-soft: #3f4c64;
  --muted: #6c7891;
  --muted-2: #8b96ab;
  --line: #e7ebf3;
  --line-strong: #dbe2ee;
  --navy: #0d1b34;
  --navy-soft: #16294a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --orange: #ff7a00;
  --orange-2: #ffa11a;
  --orange-soft: #fff3e6;
  --green: #12a150;
  --green-soft: #e7f8ee;
  --yellow: #ffcf3f;
  --red: #e5484d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(17, 35, 70, .045);
  --shadow: 0 10px 34px rgba(17, 35, 70, .07);
  --shadow-hover: 0 18px 46px rgba(17, 35, 70, .13);
  --container: 1220px;
  --header-h: 68px;
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Bahnschrift", "DIN Alternate", "JetBrains Mono", Consolas, "SFMono-Regular", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 460px at 82% -8%, rgba(37, 99, 235, .07), transparent 62%),
    radial-gradient(900px 420px at 8% 0%, rgba(255, 122, 0, .035), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::selection {
  background: rgba(37, 99, 235, .18);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 48px, 900px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  transition: top .2s;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hall-main {
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   按钮 / 通用
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s, border-color .2s;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 8px 20px rgba(255, 122, 0, .24);
}

.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 26px rgba(255, 122, 0, .32);
}

.btn-dark {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 6px 16px rgba(13, 27, 52, .14);
}

.btn-dark:hover {
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .26);
}

.btn-outline {
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  color: var(--blue);
  border-color: #b9cdf5;
  background: #fbfdff;
}

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(223, 229, 240, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .25s;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(17, 35, 70, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 56px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(150, 20, 20, .18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--navy);
}

.brand-text em {
  margin-top: 3px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--muted-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 100%;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #4b5872;
  white-space: nowrap;
  transition: color .2s;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a.is-active {
  color: var(--blue);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 28px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--blue), #5b93ff);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-login {
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5872;
  border-radius: 7px;
}

.header-login:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.header-register {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 8px;
}

.header-account:hover {
  background: #f4f6fa;
}

.header-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.header-logout {
  padding: 6px 5px;
  font-size: 12px;
  color: var(--muted);
}

.header-logout:hover {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   页面标题
   -------------------------------------------------------------------------- */

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 22px;
}

.eyebrow {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--blue);
}

.page-intro h1 {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--navy);
}

.page-sub {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--muted);
}

.intro-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 3px;
  flex-shrink: 0;
}

.intro-meta strong {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.intro-meta span {
  font-size: 12.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   排序 / 搜索工具栏
   -------------------------------------------------------------------------- */

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  background: rgba(244, 246, 251, .9);
  border-bottom: 1px solid rgba(222, 228, 240, .8);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.sort-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #5a6780;
  white-space: nowrap;
  transition: color .18s, background .18s, box-shadow .18s;
}

.sort-btn:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, .7);
}

.sort-btn.is-active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 35, 70, .07);
}

.sort-arrow {
  width: 9px;
  height: 11px;
  color: #a3adc0;
  transition: transform .2s, color .2s;
}

.sort-btn.is-active .sort-arrow {
  color: var(--blue);
}

.sort-btn.is-asc .sort-arrow {
  transform: rotate(180deg);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.result-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-right: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.result-count strong {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 262px;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within {
  border-color: #93b4f4;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.search-box svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #9aa5b8;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #a4aec0;
}

.search-box input::-webkit-search-cancel-button {
  cursor: pointer;
}

.view-toggle {
  display: flex;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.view-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border-radius: 6px;
  color: #97a2b5;
  transition: color .18s, background .18s;
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

.view-btn:hover {
  color: var(--navy);
}

.view-btn.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

/* --------------------------------------------------------------------------
   商品网格 / 卡片
   -------------------------------------------------------------------------- */

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

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #c9d9f7;
  box-shadow: var(--shadow-hover);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1219;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 9, 16, .06) 55%, rgba(4, 9, 16, .34));
  pointer-events: none;
}

.discount {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--yellow);
  color: #2b2100;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.cover-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 16, 28, .56);
  color: #e4f7eb;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.cover-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}

.cover-code {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(8, 16, 28, .62);
  color: #dbe7f7;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 17px 17px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.card-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .18s;
}

.card-title a:hover {
  color: var(--blue);
}

.verified {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--green);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 12px;
  min-height: 23px;
}

.tag {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.tag-0 { color: #b4436c; background: #ffeef4; }
.tag-1 { color: #9a6a12; background: #fff6dc; }
.tag-2 { color: #2a63b8; background: #eaf2ff; }
.tag-3 { color: #6941b3; background: #f2ecff; }
.tag-4 { color: #23764e; background: #e8f8ef; }

.card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto;
  padding: 9px 0;
  background: #f7f9fc;
  border: 1px solid #eef2f8;
  border-radius: 9px;
}

.card-stats > div {
  min-width: 0;
  padding: 0 9px;
  border-right: 1px solid #e9eef6;
}

.card-stats > div:last-child {
  border-right: 0;
}

.card-stats dt {
  margin-bottom: 1px;
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.card-stats dd {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.price {
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.price .cur {
  margin-right: 1px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange);
}

.price strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.price .dec {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.card-foot .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

/* 列表视图 */
.product-grid.is-list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-grid.is-list .product-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.product-grid.is-list .card-cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 188px;
}

.product-grid.is-list .card-body {
  padding: 16px 22px;
}

.product-grid.is-list .card-title {
  font-size: 18px;
}

.product-grid.is-list .card-stats {
  max-width: 560px;
  margin-top: 0;
}

.product-grid.is-list .card-foot {
  margin-top: auto;
}

.product-grid.is-list .tag-row {
  margin-bottom: 10px;
}

/* 骨架屏 */
.skeleton-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skeleton-card .sk-cover {
  aspect-ratio: 16 / 10;
  background: #e9eef6;
}

.skeleton-card .sk-body {
  padding: 16px 17px 18px;
}

.sk {
  display: block;
  height: 13px;
  border-radius: 5px;
  background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 37%, #eef2f8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.sk-line {
  margin-bottom: 10px;
}

.sk-line.tall { height: 20px; }
.sk-line.w30 { width: 30%; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-tags { display: flex; gap: 6px; margin: 12px 0; }
.sk-tags i { width: 58px; height: 22px; border-radius: 5px; background: #f1f4f9; }
.sk-stats { height: 56px; border-radius: 9px; background: #f5f8fc; }
.sk-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.sk-price { width: 94px; height: 26px; border-radius: 6px; }
.sk-btn { width: 92px; height: 34px; border-radius: 8px; }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 100px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  color: #9fb4d6;
  box-shadow: var(--shadow-sm);
}

.empty-icon svg {
  width: 38px;
  height: 38px;
}

.empty-state h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.empty-state p {
  margin: 6px 0 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.load-more {
  display: flex;
  justify-content: center;
  padding: 22px 0 56px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 48px;
  padding: 26px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-brand em {
  font-style: normal;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-contact {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.footer-note {
  flex: 1 1 360px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.copyright {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   详情页
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 0 15px;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.crumb-sep {
  color: #c1c9d7;
}

.detail-loading {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.sk-gallery {
  min-height: 470px;
  background: linear-gradient(120deg, #edf1f7 25%, #f7f9fc 40%, #edf1f7 60%);
  background-size: 300% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-info {
  padding: 36px 34px;
}

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

.sk-tiles i {
  height: 54px;
  border-radius: 8px;
  background: #f1f4f9;
}

.sk-button {
  height: 50px;
  border-radius: 11px;
  background: #f1f4f9;
}

.detail-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px 120px;
  text-align: center;
}

.detail-error h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.detail-error p {
  margin: 8px 0 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.gallery {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0a111a;
}

.gallery-main {
  position: relative;
  flex: 1;
  min-height: 380px;
  overflow: hidden;
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070c12;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 12, 22, .48);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background .2s, border-color .2s;
}

.gallery-arrow:hover {
  background: rgba(255, 122, 0, .88);
  border-color: transparent;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }

.gallery-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(6, 12, 22, .62);
  color: #eaf0f8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
}

.gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 12, 22, .58);
  color: #dce6f4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  backdrop-filter: blur(6px);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #0d1622;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.gallery-thumbs button {
  position: relative;
  width: 84px;
  height: 54px;
  overflow: hidden;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, .12);
  opacity: .72;
  transition: opacity .2s, border-color .2s;
}

.gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs button:hover {
  opacity: .9;
}

.gallery-thumbs button.is-active {
  border-color: var(--orange);
  opacity: 1;
}

.detail-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 30px 28px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
}

.badge svg {
  width: 13px;
  height: 13px;
}

.badge-green { color: #15803d; background: var(--green-soft); }
.badge-blue { color: var(--blue-dark); background: var(--blue-soft); }
.badge-yellow { color: #7a5300; background: #fff2c9; }
.badge-code {
  color: #516079;
  background: #f1f4f9;
  font-family: var(--mono);
  letter-spacing: .04em;
}

.detail-info h1 {
  margin: 11px 0 12px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--navy);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.price-now {
  display: inline-flex;
  align-items: baseline;
  color: var(--orange);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.price-now small:first-child {
  margin-right: 2px;
  font-size: 17px;
  font-weight: 600;
}

.price-now strong {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.price-now small:last-child {
  font-size: 16px;
  font-weight: 600;
}

.price-old {
  font-family: var(--mono);
  font-size: 13px;
  color: #a4aec0;
}

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

.spec-item {
  min-width: 0;
  padding: 9px 11px;
  background: #f7f9fc;
  border: 1px solid #eef2f8;
  border-radius: 8px;
}

.spec-item dt {
  margin-bottom: 2px;
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.spec-item dd {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.listed-at {
  margin: 16px 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.listed-at time {
  font-family: var(--mono);
}

.btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  margin-top: auto;
  border-radius: 11px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(135deg, #ffa11a, #ff7a00 62%, #ff6a00);
  box-shadow: 0 12px 28px rgba(255, 122, 0, .3);
  transition: filter .2s, box-shadow .2s, transform .2s;
}

.btn-order:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(255, 122, 0, .38);
}

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

.btn-order svg {
  width: 19px;
  height: 19px;
}

.order-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: center;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  gap: 20px;
  margin: 20px 0 20px;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.panel {
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f0f3f8;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy);
}

.panel h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), #6ea0ff);
}

.panel-muted {
  background: #fbfcfe;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-item {
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid #f1f4f9;
  border-bottom: 1px solid #f1f4f9;
}

.info-item:nth-child(4n) {
  border-right: 0;
}

.info-item:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.info-item dt {
  margin-bottom: 2px;
  font-size: 11px;
  color: var(--muted-2);
}

.info-item dd {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--orange);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.info-item dd.is-empty {
  color: #b3bccb;
  font-weight: 500;
}

.skin-list {
  padding-top: 2px;
}

.skin-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #eaeff7;
}

.skin-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.skin-row dt {
  font-size: 12.5px;
  color: var(--muted);
}

.skin-row dd {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--orange);
  word-break: break-word;
}

.skin-row dd.is-empty {
  color: #aab4c4;
  font-weight: 400;
}

.extra-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.extra-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f4f9;
}

.extra-item dt {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.extra-item dd {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prepay-tag {
  padding: 0 4px;
  border-radius: 3px;
  background: #fff0e0;
  color: #c26800;
  font-size: 9.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.prepay-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.prepay-total span {
  font-size: 12.5px;
  color: var(--muted);
}

.prepay-total strong {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.notes {
  padding-top: 6px;
}

.notes li {
  position: relative;
  padding-left: 14px;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.notes li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b7c6df;
}

/* --------------------------------------------------------------------------
   公告页
   -------------------------------------------------------------------------- */

.notices-intro {
  padding-bottom: 20px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0 40px;
}

.notice-card {
  padding: 22px 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}

.notice-card:hover {
  border-color: #d3dff3;
  box-shadow: var(--shadow);
}

.notice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.notice-cat {
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.notice-cat.is-safety { color: #b45309; background: #fff4e0; }
.notice-cat.is-help { color: #15803d; background: var(--green-soft); }

.notice-pin {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #b45309;
  background: #fff4e0;
}

.notice-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.notice-card h2 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
}

.notice-body {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #4b5870;
}

.notice-body p + p {
  margin-top: 7px;
}

.notice-image {
  margin: 14px 0 4px;
}

.notice-image img {
  width: 100%;
  height: auto;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.notice-image figcaption {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: center;
}

.notice-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0 40px;
}

.notice-loading .sk {
  height: 132px;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   二维码弹窗
   -------------------------------------------------------------------------- */

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

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 26, .56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qr-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 372px);
  padding: 26px 28px 24px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(4, 10, 22, .3);
  animation: dialog-in .24s cubic-bezier(.2, .8, .3, 1);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  background: #f4f6fa;
  transition: color .2s, background .2s;
}

.qr-close:hover {
  color: var(--navy);
  background: #eaeef6;
}

.qr-close svg {
  width: 15px;
  height: 15px;
}

.qr-eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--blue);
}

.qr-dialog h2 {
  margin: 5px 0 2px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
}

.qr-box {
  display: grid;
  place-items: center;
  width: 206px;
  height: 206px;
  margin: 18px auto 14px;
  padding: 8px;
  border: 2px dashed #d9e2f0;
  border-radius: 14px;
  background: #fbfcfe;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #a3aec0;
}

.qr-placeholder svg {
  width: 42px;
  height: 42px;
}

.qr-placeholder span {
  font-size: 11.5px;
  line-height: 1.6;
}

.qr-product {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
}

.qr-tip {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  max-width: min(90vw, 420px);
  padding: 10px 18px;
  border-radius: 9px;
  background: rgba(13, 27, 52, .94);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .22s, transform .22s;
}

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

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-count {
    display: none;
  }

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

  .gallery-main {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

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

  .detail-side {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px;
    align-items: start;
  }

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

  .sk-gallery {
    min-height: 340px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    gap: 34px;
  }

  .page-intro {
    padding-top: 28px;
  }

  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .sort-tabs {
    order: 2;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .toolbar-right {
    order: 1;
    width: 100%;
  }

  .search-box {
    flex: 1;
    width: auto;
  }

  .detail-info {
    padding: 24px;
  }

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

@media (max-width: 680px) {
  .container,
  .container.narrow {
    width: min(100% - 36px, var(--container));
  }

  :root {
    --header-h: 62px;
  }

  .header-inner {
    gap: 20px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .header-register {
    display: none;
  }

  .header-account-text {
    display: none;
  }

  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0 16px;
  }

  .page-intro h1 {
    font-size: 26px;
  }

  .intro-meta strong {
    font-size: 27px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 18px;
  }

  .product-grid.is-list .product-card {
    display: flex;
  }

  .product-grid.is-list .card-cover {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .card-title {
    font-size: 16px;
  }

  .detail-hero {
    border-radius: 16px;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .gallery-thumbs button {
    width: 72px;
    height: 48px;
  }

  .detail-info h1 {
    font-size: 21px;
  }

  .price-now strong {
    font-size: 31px;
  }

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

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

  .info-item:nth-child(4n) {
    border-right: 1px solid #f1f4f9;
  }

  .info-item:nth-child(2n) {
    border-right: 0;
  }

  .info-item:nth-last-child(-n + 4) {
    border-bottom: 1px solid #f1f4f9;
  }

  .info-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .extra-list {
    column-gap: 16px;
  }

  .notice-card {
    padding: 18px 18px 20px;
  }

  .notice-date {
    width: 100%;
    margin-left: 0;
  }

  .footer-inner {
    gap: 12px 18px;
  }

  .footer-note {
    flex-basis: 100%;
    order: 4;
  }

  .copyright {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-account {
    gap: 4px;
    padding: 0 2px;
  }

  .header-logout {
    padding: 5px 2px;
    font-size: 11.5px;
  }

  .sort-btn {
    padding: 0 9px;
    font-size: 13px;
  }

  .card-stats > div {
    padding: 0 7px;
  }

  .card-stats dt {
    font-size: 10px;
  }

  .card-stats dd {
    font-size: 11.5px;
  }

  .detail-info {
    padding: 20px 18px;
  }

  .panel {
    padding: 18px 16px 20px;
  }

  .skin-row {
    grid-template-columns: 76px 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
