/* ==========================================================================
   锦夜衣橱 JINYE — 主样式
   深色高级感 / 香槟金点缀 / 衬线标题
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-soft: #101012;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3efe9;
  --text-2: #b6b0a8;
  --muted: #8b867f;
  --accent: #c8a96a;
  --accent-2: #e0c48c;
  --accent-soft: rgba(200, 169, 106, 0.12);
  --danger: #d96c5f;
  --ok: #7fae8a;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --head-h: 68px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
}

::selection {
  background: var(--accent);
  color: #14120e;
}

/* ---------- 通用 ---------- */

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

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.section {
  padding: 96px 0;
}

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

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.link-more {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.link-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text);
  background: transparent;
  transition: all 0.32s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #17130b;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #17130b;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-2);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:disabled:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ---------- 顶部导航 ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--head-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-head.solid {
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.head-inner {
  width: min(1400px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.34em;
  color: var(--text);
}

.brand-cn {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  position: relative;
  transition: color 0.3s var(--ease);
}

.icon-btn:hover {
  color: var(--accent);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
}

.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #17130b;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-family: var(--sans);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text);
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

/* 移动端抽屉 */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: var(--bg);
  padding: calc(var(--head-h) + 24px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

/* 搜索面板 */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 8, 9, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}

.search-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.search-box {
  width: min(680px, 100% - 48px);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
}

.search-box input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-hint {
  width: min(680px, 100% - 48px);
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 首页 hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(8, 8, 9, 0.92) 0%,
      rgba(8, 8, 9, 0.66) 42%,
      rgba(8, 8, 9, 0.16) 68%,
      rgba(8, 8, 9, 0.5) 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 32%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1400px, 100% - 48px);
  margin-inline: auto;
  padding-top: var(--head-h);
}

.hero-inner h1 {
  font-size: clamp(46px, 8.2vw, 108px);
  line-height: 1.02;
  letter-spacing: 0.06em;
  margin: 22px 0 26px;
  max-width: 12em;
}

.hero-inner h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  max-width: 34em;
  color: var(--text-2);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--muted), transparent);
  animation: hintPulse 2.4s var(--ease) infinite;
}

@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- 分类条 ---------- */

.cat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.cat-item {
  background: var(--bg);
  padding: 30px 16px;
  text-align: center;
  transition: background 0.34s var(--ease);
}

.cat-item:hover {
  background: var(--surface);
}

.cat-item .cn {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.16em;
}

.cat-item .en {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 商品卡片 ---------- */

.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}

.p-card {
  display: block;
  position: relative;
}

.p-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}

.p-card:hover .p-media img {
  transform: scale(1.045);
}

.p-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.16em;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(6px);
  color: var(--accent);
  border: 1px solid rgba(200, 169, 106, 0.32);
}

.p-sold-out {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 11, 0.66);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--text-2);
}

.p-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(243, 239, 233, 0.94);
  color: #17130b;
  font-size: 12px;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.34s var(--ease);
}

.p-card:hover .p-quick {
  opacity: 1;
  transform: translateY(0);
}

.p-quick:hover {
  background: var(--accent);
}

.p-info {
  padding-top: 14px;
}

.p-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.p-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-price {
  font-size: 14px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.p-price .now {
  color: var(--text);
}

.p-price .was {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- 品牌主张 ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.value {
  background: var(--bg);
  padding: 56px 34px;
}

.value .num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.value h3 {
  font-size: 20px;
  margin: 18px 0 12px;
  letter-spacing: 0.06em;
}

.value p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- 编辑图块 ---------- */

.editorial {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 64px;
}

.editorial-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

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

.editorial-body h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 18px 0 20px;
  line-height: 1.32;
}

.editorial-body p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 2;
}

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

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 72px 0 40px;
  background: var(--bg-soft);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.3em;
}

.foot-desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
  max-width: 24em;
  line-height: 1.9;
}

.foot-col h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-2);
  margin-bottom: 18px;
  font-family: var(--sans);
  font-weight: 500;
}

.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.28s var(--ease);
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.foot-icp {
  color: var(--muted);
  text-decoration: none;
}

.foot-icp:hover {
  color: var(--accent);
}

/* ---------- 页面头（内页） ---------- */

.page-head {
  padding: calc(var(--head-h) + 64px) 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: 0.08em;
}

.page-head p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ---------- 筛选栏 ---------- */

.filter-bar {
  position: sticky;
  top: var(--head-h);
  z-index: 40;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.chip {
  padding: 7px 16px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.sort-select {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 7px 12px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  outline: none;
  cursor: pointer;
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.sort-select option {
  background: var(--surface);
  color: var(--text);
}

/* ---------- 商品详情 ---------- */

.pd {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  padding-top: calc(var(--head-h) + 48px);
}

.pd-gallery {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  align-self: start;
}

.pd-main {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.pd-thumb {
  width: 66px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid transparent;
  opacity: 0.6;
  transition: all 0.28s var(--ease);
}

.pd-thumb.active,
.pd-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-body {
  padding-top: 8px;
}

.crumb {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.crumb a:hover {
  color: var(--accent);
}

.pd-body h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.pd-sub {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  margin: 0 0 24px;
}

.pd-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.pd-price .now {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.pd-price .was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
}

.pd-price .save {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(200, 169, 106, 0.34);
  padding: 2px 8px;
}

.opt-group {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.opt-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}

.sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size {
  min-width: 48px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: all 0.26s var(--ease);
}

.size:hover {
  border-color: var(--text-2);
  color: var(--text);
}

.size.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  height: 40px;
}

.qty button {
  width: 38px;
  height: 100%;
  color: var(--text-2);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: color 0.24s var(--ease);
}

.qty button:hover {
  color: var(--accent);
}

.qty span {
  min-width: 40px;
  text-align: center;
  font-size: 13px;
}

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

.pd-actions .btn {
  flex: 1;
}

.pd-meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pd-meta div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pd-meta svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
  flex: none;
  margin-top: 3px;
}

.pd-desc {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.pd-desc h2 {
  font-size: 20px;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}

.pd-desc p {
  color: var(--text-2);
  line-height: 2.1;
  font-size: 14.5px;
  max-width: 62em;
}

.related {
  margin-top: 88px;
}

/* ---------- 购物车 / 结算 ---------- */

.page-body {
  padding: calc(var(--head-h) + 56px) 0 96px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: start;
}

.cart-list {
  border-top: 1px solid var(--line);
}

.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-name {
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
}

.cart-opt {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.cart-del {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.26s var(--ease);
}

.cart-del:hover {
  color: var(--danger);
}

.cart-line-price {
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

.summary {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--bg-soft);
}

.summary h3 {
  font-size: 16px;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 9px 0;
}

.sum-row.total {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}

.sum-row.total .v {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--accent);
}

.summary .btn {
  margin-top: 24px;
}

.empty {
  padding: 96px 24px;
  text-align: center;
  border: 1px dashed var(--line);
}

.empty h3 {
  font-size: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.empty p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 26px;
}

/* 表单 */

.form-grid {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 9px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
  border-radius: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field .hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 0.02em;
}

.alert {
  padding: 12px 14px;
  font-size: 13px;
  border: 1px solid rgba(217, 108, 95, 0.4);
  background: rgba(217, 108, 95, 0.09);
  color: #eba69c;
  margin-bottom: 18px;
}

.alert.ok {
  border-color: rgba(127, 174, 138, 0.4);
  background: rgba(127, 174, 138, 0.09);
  color: #a8cdb1;
}

/* 登录卡片 */

.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.auth-tabs button {
  flex: 1;
  padding: 14px 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all 0.28s var(--ease);
}

.auth-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 订单卡片 */

.order-card {
  border: 1px solid var(--line);
  margin-bottom: 20px;
  background: var(--bg-soft);
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

.status {
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}

.status.pending {
  color: var(--accent);
  border-color: rgba(200, 169, 106, 0.4);
  background: var(--accent-soft);
}

.status.paid {
  color: #9fc4e8;
  border-color: rgba(159, 196, 232, 0.34);
}

.status.shipped {
  color: #b8a7e0;
  border-color: rgba(184, 167, 224, 0.34);
}

.status.done {
  color: var(--ok);
  border-color: rgba(127, 174, 138, 0.34);
}

.status.cancelled {
  color: var(--muted);
}

.order-items {
  padding: 8px 22px;
}

.order-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item .thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.order-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item .nm {
  font-size: 14px;
  font-family: var(--serif);
}

.order-item .mt {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.order-total {
  font-size: 13px;
  color: var(--text-2);
}

.order-total b {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
  margin-left: 6px;
}

/* ---------- 管理后台 ---------- */

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 100vh;
  padding-top: var(--head-h);
}

.admin-side {
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  position: sticky;
  top: var(--head-h);
  height: calc(100vh - var(--head-h));
}

.admin-side h2 {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-family: var(--sans);
  margin-bottom: 22px;
}

.admin-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: all 0.26s var(--ease);
}

.admin-nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav button.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.admin-main {
  padding: 36px 40px 80px;
  min-width: 0;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-title h1 {
  font-size: 26px;
  letter-spacing: 0.1em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--bg-soft);
}

.stat .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.stat .v {
  font-family: var(--serif);
  font-size: 28px;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.stat .v small {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

.table-wrap {
  border: 1px solid var(--line);
  overflow-x: auto;
  background: var(--bg-soft);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

table.data th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.022);
}

.tb-thumb {
  width: 44px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.tb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.mini-btn {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  transition: all 0.24s var(--ease);
}

.mini-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.mini-btn.danger:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.status-pill {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}

.status-pill.on {
  color: var(--ok);
  border-color: rgba(127, 174, 138, 0.4);
}

.status-pill.off {
  color: var(--muted);
}

/* 抽屉 / 弹窗 */

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 6, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}

.drawer-mask.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  width: min(520px, 100%);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  font-size: 17px;
  letter-spacing: 0.12em;
}

.drawer-body {
  padding: 26px;
  overflow-y: auto;
  flex: 1;
}

.drawer-foot {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}

.drawer-foot .btn {
  flex: 1;
}

/* Toast */

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 12px 22px;
  background: rgba(243, 239, 233, 0.97);
  color: #17130b;
  font-size: 13px;
  letter-spacing: 0.06em;
  animation: toastIn 0.32s var(--ease);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.toast.err {
  background: rgba(217, 108, 95, 0.97);
  color: #fff;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 骨架屏 */

.skeleton {
  background: linear-gradient(90deg, #16161a 25%, #202026 37%, #16161a 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

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

.sk-card {
  aspect-ratio: 3 / 4;
}

/* 404 */

.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.notfound .code {
  font-family: var(--serif);
  font-size: clamp(80px, 18vw, 180px);
  color: var(--accent);
  line-height: 1;
  opacity: 0.9;
}

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

@media (max-width: 1080px) {
  .grid-products {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .pd {
    gap: 40px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .admin-nav button {
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    width: auto;
  }
  .admin-nav button.active {
    border-left: 0;
    border-bottom-color: var(--accent);
  }
  .admin-main {
    padding: 24px 20px 64px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .brand-cn {
    display: none;
  }
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 14px;
  }
  .cat-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .values {
    grid-template-columns: 1fr;
  }
  .editorial {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pd {
    grid-template-columns: 1fr;
    padding-top: calc(var(--head-h) + 24px);
  }
  .pd-gallery {
    position: static;
  }
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .summary {
    position: static;
  }
  .section {
    padding: 64px 0;
  }
  .p-quick {
    display: none;
  }
  .filter-bar {
    row-gap: 12px;
  }
  .chips {
    flex: 1 1 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .sort-select {
    margin-left: auto;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner h1 {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .head-inner {
    width: calc(100% - 32px);
  }
  .cart-row {
    grid-template-columns: 76px 1fr;
  }
  .cart-line-price {
    grid-column: 2;
    text-align: left;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .p-name {
    font-size: 14px;
  }
  .page-head {
    padding-top: calc(var(--head-h) + 40px);
  }
}

/* ---------------- 独立运营后台 ---------------- */

.admin-who {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.02em;
  margin-right: 4px;
}

.admin-login {
  max-width: 340px;
  margin: 8vh auto 0;
  padding: 40px 32px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.admin-login h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.admin-login-tip {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 28px;
  line-height: 1.7;
}

.admin-login label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: 18px;
}

.admin-login input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  outline: none;
  transition: border-color 0.2s;
}

.admin-login input:focus {
  border-color: var(--accent);
}

.admin-login .btn {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .admin-login {
    margin-top: 4vh;
    padding: 28px 20px;
    border-left: 0;
    border-right: 0;
  }
}

/* 登录页辅助说明（替代原先的演示账号提示） */
.acc-forgot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
