/* 旧安五开传递 - 全局样式（克制国风 · 呼吸感视觉系统） */
:root {
  /* 主色：收敛的朱砂红，比纯红更雅致 */
  --primary: #c0392b;
  --primary-dark: #9c2c20;
  --primary-deep: #7d2218;
  --primary-light: #fbeee9;
  /* 点缀：低饱和雅金，替代刺眼亮黄，气质更高级 */
  --accent: #c8a96a;
  --accent-dark: #b08d4f;
  --accent-soft: #f5ecd8;
  /* 文本：暖黑系，比纯黑柔和 */
  --text: #2b2622;
  --text-secondary: #6b6258;
  --text-muted: #9b9286;
  /* 背景：暖中性层级 */
  --bg: #ffffff;
  --bg-soft: #faf7f2;
  --bg-gray: #f3efe9;
  --border: #ece6dc;
  --border-strong: #ddd4c6;
  /* 圆角与阴影：更大圆角、暖调阴影，柔和舒适 */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 2px 12px rgba(74, 48, 32, 0.06);
  --shadow: 0 10px 30px rgba(74, 48, 32, 0.10);
  --shadow-lg: 0 20px 50px rgba(74, 48, 32, 0.14);
  /* 统一缓动曲线，交互顺滑 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 64px;
  --topbar-height: 38px;
  /* 国风衬线，用于大标题营造雅致气质（无则用系统衬线兜底） */
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-gray);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Top bar：沉稳朱砂渐变 */
.topbar {
  height: var(--topbar-height);
  background: linear-gradient(90deg, #8c1f16 0%, #a82a1e 100%);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-contact { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; fill: currentColor; opacity: .92; }
.wx-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255,255,255,.16);
  border-radius: 20px;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.wx-copy:hover { background: rgba(255,255,255,.28); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  transition: transform .4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.04); }
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}
.logo-title {
  font-size: 18px; font-weight: 700; letter-spacing: .5px;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.logo-sub {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.3;
  margin-top: 1px;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px; color: var(--text-secondary);
  position: relative; padding: 8px 0;
  transition: color .25s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent); border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--bg-gray); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Main container */
main { min-height: calc(100vh - var(--header-height) - 180px); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero：留白 + 淡雅背景纹理 + 右侧国风印章 */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(200,169,106,.16), transparent 62%),
    linear-gradient(160deg, #fff 0%, #fdf8f1 55%, #f7efe4 100%);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(192,57,43,.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.hero-text { max-width: 620px; }
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700; line-height: 1.3;
  color: var(--text);
  letter-spacing: 1px;
}
.hero-text h1 span { color: var(--primary); }
.hero-text p {
  margin-top: 18px; font-size: 16px; color: var(--text-secondary);
  max-width: 560px; line-height: 1.85;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 9px 18px;
  background: rgba(255,255,255,.7); border: 1px solid var(--border-strong);
  border-radius: 30px; font-size: 13px; color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}
.hero-icon { flex-shrink: 0; color: var(--accent-dark); }

/* Hero 右侧国风印章 */
.hero-visual {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  animation: sealFloat 6s var(--ease) infinite;
}
.hero-visual .seal { width: 180px; height: 180px; filter: drop-shadow(0 12px 28px rgba(124,34,24,.22)); }
@keyframes sealFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1.5deg); }
}

/* Buttons：微妙渐变 + 柔和阴影 + 顺滑 hover */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 28px; border-radius: 30px;
  font-size: 15px; font-weight: 600; transition: all .28s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(192,57,43,.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(192,57,43,.34); }
.btn-outline {
  background: #fff; color: var(--primary); border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-large { padding: 14px 36px; font-size: 16px; }

/* Section titles：雅金竖线装饰 */
.section { padding: 72px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  letter-spacing: .5px;
}
.section-title::before {
  content: ''; width: 5px; height: 24px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 3px;
}
.section-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 36px; }

/* Product card (home) */
.product-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
  cursor: pointer;
  border: 1px solid var(--border);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card.is-sold { cursor: default; }
.product-card.is-sold:hover { transform: none; }
.product-card .product-card-actions a { cursor: pointer; }
.product-card-media {
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; padding: 20px;
  position: relative;
  overflow: hidden;
}
.product-card-media img {
  max-height: 360px; object-fit: contain;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.product-card:not(.is-sold):hover .product-card-media img { transform: scale(1.04); }
.product-card-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--accent); color: #3a2c10;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(176,141,79,.3);
}
.product-card-body { padding: 34px; min-width: 0; }
.product-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 12px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.product-card-title { font-size: 26px; font-weight: 700; line-height: 1.4; word-break: break-word; overflow-wrap: anywhere; }
.product-card-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.product-card-price {
  margin-top: 20px; display: flex; align-items: baseline; gap: 6px;
}
.price-symbol { font-size: 18px; font-weight: 600; color: var(--primary); }
.price-amount { font-size: 38px; font-weight: 800; color: var(--primary); line-height: 1; }
.price-unit { font-size: 14px; color: var(--text-muted); }
.product-card-desc { margin-top: 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
.product-card-actions { margin-top: 28px; display: flex; gap: 14px; }
.product-card-meta {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px;
  padding: 16px; background: var(--bg-soft); border-radius: var(--radius-xs);
}
.meta-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.meta-label { color: var(--text-muted); white-space: nowrap; }
.meta-value { color: var(--text); font-weight: 600; }

/* Homepage product card: gate preview thumbnails */
.product-card-thumbs {
  margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap;
}
.pc-thumb {
  position: relative; width: 72px; height: 72px; border-radius: var(--radius-xs);
  overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pc-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-thumb span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(43,38,34,.6); color: #fff; font-size: 11px; text-align: center;
  padding: 2px 0; line-height: 1.2;
}

/* Selling points / ad strip */
.sp-section { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.sp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
  margin-top: 8px;
}
.sp-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sp-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sp-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.sp-icon svg { width: 24px; height: 24px; }
.sp-title { font-size: 15px; font-weight: 700; color: var(--text); }
.sp-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; }

.product-card.is-sold { opacity: .82; }
.product-card.is-sold .product-card-media img { filter: grayscale(.35); }
.product-card-badge.sold { background: #6b6258; color: #fff; }

/* Carousel (home: random on-sale source showcase) */
.carousel {
  position: relative;
  max-width: 1120px;
  margin: 36px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1410;
}
.carousel-track { display: flex; transition: transform .6s var(--ease); }
.carousel-slide {
  position: relative; flex: 0 0 100%;
  aspect-ratio: 21 / 8; display: block; color: #fff;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.carousel-slide:hover img { transform: scale(1.05); }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px 30px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.66) 100%);
}
.carousel-tag {
  display: inline-block; background: var(--accent); color: #3a2c10;
  padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; margin-bottom: 8px;
}
.carousel-caption h3 { font-size: 22px; font-weight: 800; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.carousel-price {
  display: inline-flex; align-items: baseline; gap: 3px; margin: 6px 0 4px;
  color: #fff; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.carousel-price .price-symbol { font-size: 14px; }
.carousel-price .price-amount { font-size: 22px; }
.carousel-price .price-unit { font-size: 12px; opacity: .9; margin-left: 2px; }
.carousel-cta { font-size: 14px; color: var(--accent); font-weight: 700; }
.carousel.single .carousel-arrow,
.carousel.single .carousel-dots { display: none; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.4); color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: background .25s var(--ease);
}
.carousel-arrow:hover { background: rgba(0,0,0,.72); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  display: flex; gap: 8px;
}
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); padding: 0; transition: all .25s var(--ease);
}
.carousel-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }

/* Product grid (home: multiple available products) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
  gap: 28px;
}

/* 首页两列网格中的卡片：改为紧凑垂直卡片，避免纵向过长 */
.product-grid .product-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}
.product-grid .product-card-media {
  min-height: 0;
  height: 220px;
  padding: 16px;
}
.product-grid .product-card-media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.product-grid .product-card-body {
  padding: 22px;
}
.product-grid .product-card-tags {
  margin-bottom: 10px;
}
.product-grid .product-card-title {
  font-size: 20px;
}
.product-grid .product-card-subtitle {
  font-size: 13px;
}
.product-grid .product-card-price {
  margin-top: 14px;
}
.product-grid .price-amount {
  font-size: 28px;
}
.product-grid .product-card-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-grid .product-card-thumbs {
  display: none;
}
.product-grid .product-card-meta {
  margin-top: 14px;
  padding: 12px;
  gap: 8px 14px;
}
.product-grid .meta-row {
  font-size: 12px;
}
.product-grid .product-card-actions {
  margin-top: 16px;
}
.product-grid .product-card-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* 在售账号列表：桌面端为大气横向卡片，移动端转为竖向卡片 */
.account-list {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
/* 网页端（宽屏）一行最多 2 组账号 */
@media (min-width: 901px) {
  .account-list { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.account-row {
  display: flex; align-items: stretch; gap: 22px;
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  color: var(--text); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.account-row:hover, .account-row:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-left-color: var(--accent); outline: none;
}
.account-row-media {
  flex: 0 0 220px; width: 220px; height: 165px;
  border-radius: var(--radius-xs); overflow: hidden; background: var(--bg-soft);
}
.account-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.account-row:hover .account-row-media img { transform: scale(1.05); }
.account-row-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.account-row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.account-row-title {
  font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.4;
  word-break: break-word; overflow-wrap: anywhere;
}
.account-row-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.account-row-price { color: var(--primary); font-weight: 800; white-space: nowrap; }
.account-row-price .price-symbol { font-size: 14px; margin-right: 2px; }
.account-row-price .price-amount { font-size: 24px; line-height: 1; }
.account-row-price .price-unit { font-size: 13px; color: var(--text-muted); margin-left: 2px; }
.account-row-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13px; color: var(--text-secondary);
}
.account-row-meta .ar-meta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-soft); padding: 4px 10px; border-radius: 20px;
}
.account-row-meta .ar-meta strong {
  color: var(--text-muted); font-weight: 500; font-size: 12px;
}
.account-row-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.account-row-cta {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 10px; min-width: 140px; border-left: 1px solid var(--border); padding-left: 22px;
}
.account-row-cta .desktop-price .price-amount { font-size: 26px; }
.account-row-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(192,57,43,.26);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.account-row:hover .account-row-btn { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%); transform: translateX(3px); }
.mobile-price { display: none; }
.desktop-price { display: flex; }

/* Empty state */
.empty-state {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 56px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.empty-state .empty-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: 50%; color: var(--primary);
}
.empty-state .empty-icon svg { width: 28px; height: 28px; fill: currentColor; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* Detail sold badge */
.detail-media { position: relative; }
.detail-sold-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #6b6258; color: #fff; padding: 6px 14px;
  border-radius: 20px; font-size: 14px; font-weight: 700; letter-spacing: 1px;
}

/* Detail page */
.breadcrumb {
  padding: 18px 0; font-size: 13px; color: var(--text-secondary);
  background: #fff; border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

.detail-hero {
  background: #fff; padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}
.detail-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 34px;
}
.detail-media {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  border: 1px solid var(--border);
}
.detail-media img {
  max-height: 360px; object-fit: contain; border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
}
.detail-info h1 { font-size: 28px; font-weight: 700; font-family: var(--font-display); letter-spacing: .5px; }
.detail-info .subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.detail-info .tags { margin: 16px 0; }
.detail-info .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.detail-info .price-row .price-amount { font-size: 44px; }
.detail-info .desc { margin-top: 16px; color: var(--text-secondary); font-size: 15px; max-width: 640px; line-height: 1.85; }
.detail-info .actions { margin-top: 26px; display: flex; gap: 14px; }
.detail-specs {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px;
  padding: 16px; background: var(--bg-soft); border-radius: var(--radius-xs);
}

/* Gallery tabs */
.gallery-tabs {
  position: sticky; top: var(--header-height);
  z-index: 90;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.gallery-tabs-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
}
.gallery-tabs-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 8px 18px; border-radius: 20px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-soft); white-space: nowrap;
  transition: all .25s var(--ease);
}
.tab-btn:hover { background: var(--primary-light); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; }

.gallery-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.gallery-section:last-of-type { border-bottom: none; }
.gallery-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 8px;
}
.gallery-section-title { font-size: 22px; font-weight: 700; font-family: var(--font-display); }
.gallery-section-title small { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-left: 8px; }
.gallery-section-summary { color: var(--text-secondary); font-size: 14px; margin-top: 2px; }
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.image-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 4 / 3;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.image-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.image-card img {
  width: 100%; height: 100%; object-fit: contain; background: var(--bg-soft);
  transition: transform .4s var(--ease);
}
.image-card:hover img { transform: scale(1.04); }
.image-card-index {
  position: absolute; bottom: 6px; right: 8px;
  background: rgba(43,38,34,.6); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
}

/* Footer */
.footer {
  background: #211c18; color: #c9c1b6; padding: 44px 0 28px;
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.footer-brand::before {
  content: ''; width: 6px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.footer-copy { color: #9b9286; margin-top: 8px; line-height: 1.8; }
.footer-contact { text-align: right; }
.footer-contact strong { color: #fff; font-size: 18px; }
.footer-contact p { margin-top: 4px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,16,12,.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-xs);
}
.lightbox-close {
  position: absolute; top: 18px; right: 24px;
  color: #fff; font-size: 36px; line-height: 1;
  opacity: .8; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%;
  width: 44px; height: 44px; margin-top: -22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); color: #fff;
  border-radius: 50%; font-size: 20px; backdrop-filter: blur(4px);
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(0,0,0,.5); padding: 6px 14px; border-radius: 20px;
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed; left: 50%; top: 30%; transform: translateX(-50%) translateY(-10px);
  background: rgba(33,28,24,.9); color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s var(--ease);
  z-index: 1100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Back to top */
.backtop {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--primary); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, background .25s, transform .25s var(--ease);
}
.backtop.show { opacity: 1; pointer-events: auto; }
.backtop:hover { background: var(--primary-light); transform: translateY(-3px); }

/* No-js fallback */
.no-js-msg { padding: 12px; background: #fdf3e3; color: #8a6d1f; border-bottom: 1px solid #f0e0bb; text-align: center; font-size: 13px; }

/* 已成交页（蓝灰沉稳配色，避免与顶部红色 topbar 撞色） */
.hero-deals {
  background:
    radial-gradient(1100px 420px at 82% -20%, rgba(200,169,106,.20), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #2d2d44 55%, #3a3a5c 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.hero-deals .hero-text h1 { color: #fff; font-family: var(--font-display); }
.hero-deals .hero-text h1 span { color: var(--accent); }
.hero-deals .hero-text p { color: rgba(255,255,255,.9); }
.hero-deals .hero-badge {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: #fff;
}
/* 已成交页印章用金色，呼应深底 */
.hero-deals .hero-visual .seal { filter: drop-shadow(0 12px 28px rgba(0,0,0,.4)); }

.deal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.product-card.deal-mode { opacity: 1; cursor: pointer; }
.product-card.deal-mode .product-card-media img { filter: none; }
.product-card.deal-mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.deal-mode .product-card-badge.sold {
  background: #4a4453; color: #fff;
}
.product-card.deal-mode {
  border-top: 3px solid var(--accent);
}

/* 成交于日期小标签 */
.deal-date-chip {
  margin-left: 10px; align-self: center;
  font-size: 12px; font-weight: 700;
  color: #3a2c10; background: var(--accent);
  padding: 3px 12px; border-radius: 20px;
  white-space: nowrap;
}

/* 卡片内：藏宝阁成交链接 */
.deal-card-links {
  margin-top: 16px; padding: 12px 14px;
  background: #fbf5ea; border: 1px dashed #e3c79a; border-radius: var(--radius-xs);
}
.deal-card-links-label {
  display: inline-block; font-size: 12px; color: #a9762a; font-weight: 700;
}
.deal-card-links-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.deal-link-mini {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 20px;
  background: #fff; border: 1px solid #e0b873; color: #a9762a;
  font-size: 12px; font-weight: 600; transition: all .25s var(--ease);
}
.deal-link-mini:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 详情页：成交链接区块 */
.deal-links-section { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.deal-links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-top: 8px;
}
.deal-link-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-xs);
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); color: var(--text); transition: all .25s var(--ease);
}
.deal-link-chip:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.deal-link-icon { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.deal-link-text { display: flex; flex-direction: column; line-height: 1.3; }
.deal-link-text strong { font-size: 15px; font-weight: 700; }
.deal-link-text small { font-size: 12px; color: var(--text-muted); }

/* 进入动画：让内容自然浮现，增强「留连」感 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.section, .product-grid, .account-list, .deal-grid { animation: fadeUp .6s var(--ease) both; }

/* ===== 首页搜索栏 + 搜索历史（克制国风 · 呼吸感） ===== */
.search-section { background: var(--bg-soft); }
.search-box {
  display: flex; align-items: center; gap: 12px;
  max-width: 720px; margin: 0 auto;
}
.search-input-wrap {
  position: relative; flex: 1; display: flex; align-items: center;
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: 30px; padding: 0 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(192,57,43,.10);
}
.search-icon { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--text); padding: 14px 12px; line-height: 1.4;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-input::-ms-clear { display: none; }
/* 隐藏 iOS/Safari 等浏览器在 search 输入框左侧自带的原生放大镜，避免与自定义放大镜重复 */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-results-decoration,
.search-input::-webkit-search-results-button { -webkit-appearance: none; appearance: none; }
.search-clear-input {
  font-size: 22px; line-height: 1; color: var(--text-muted);
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.search-clear-input:hover { background: var(--bg-gray); color: var(--text); }
.search-submit { flex-shrink: 0; }

/* 顶部搜索（与首页 logo 同一行） */
.header-search {
  position: relative;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 380px;
  max-width: 440px;
  margin-left: auto;
  margin-right: 14px;
}
.header-search .search-input-wrap { flex: 1; }
.header-search .search-submit { height: 40px; padding: 0 20px; }

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  max-height: 72vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  z-index: 120;
  animation: fadeUp .3s var(--ease) both;
}
.search-panel[hidden] { display: none; }
.search-panel .search-history {
  margin: 0; max-width: none; background: transparent;
  border: none; box-shadow: none; padding: 0 0 14px;
  animation: none;
}
.search-panel .search-results { margin: 0; max-width: none; }

.search-history {
  max-width: 720px; margin: 18px auto 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp .35s var(--ease) both;
}
.search-history-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.search-history-title { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.search-history-clear {
  font-size: 12px; color: var(--text-muted); padding: 4px 10px; border-radius: 14px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.search-history-clear:hover { color: var(--primary); background: var(--primary-light); }
.search-history-list { display: flex; flex-wrap: wrap; gap: 8px; }
.history-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-gray); border: 1px solid var(--border);
  color: var(--text); font-size: 13px;
  padding: 6px 10px 6px 12px; border-radius: 16px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.history-chip:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-1px); }
.history-chip-text { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-chip-del {
  font-size: 15px; line-height: 1; color: var(--text-muted);
  width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .2s, color .2s;
}
.history-chip-del:hover { background: var(--primary); color: #fff; }

.search-results { max-width: 980px; margin: 28px auto 0; }
.search-results-head { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.search-results-head strong { color: var(--primary); }

/* 在售账号区头部 + 查看全部按钮 */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 4px;
}
.section-head .section-subtitle { margin-bottom: 0; }
.view-all-btn { flex-shrink: 0; padding: 10px 22px; font-size: 14px; }

/* 在售账号页：五开 / 单开 切换标签 */
.account-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px;
}
.account-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; font-size: 15px; font-weight: 600; line-height: 1.2;
  color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: 30px; cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.account-tab:hover { color: var(--primary); border-color: var(--primary); }
.account-tab.active {
  color: #fff; background: var(--primary); border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(192, 57, 43, .22);
}
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  font-size: 12px; font-weight: 700;
  background: var(--bg-gray); color: var(--text-secondary);
  border-radius: 11px;
}
.account-tab.active .tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

@media (max-width: 900px) {
  .header-search { max-width: 300px; margin-left: auto; margin-right: 12px; }
}
@media (max-width: 768px) {
  .header-search .search-submit { display: none; }
}
@media (max-width: 640px) {
  .header-search { max-width: none; margin-left: auto; margin-right: 10px; flex: 1 1 auto; }
  .search-input { padding: 10px 10px; }
  .search-panel { left: -10px; right: -10px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .view-all-btn { width: 100%; }
  .account-tabs { gap: 8px; }
  .account-tab { flex: 1 1 auto; justify-content: center; padding: 10px 14px; }
  .history-chip-text { max-width: 120px; }
}

/* Responsive */
@media (max-width: 1024px) {
  .image-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-card-media { min-height: 260px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { min-height: 260px; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-visual { margin-top: 8px; }
  .hero-visual .seal { width: 132px; height: 132px; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .account-row { gap: 16px; padding: 14px 16px; }
  .account-row-media { flex: 0 0 160px; width: 160px; height: 120px; }
  .account-row-title { font-size: 17px; }
  .account-row-cta { min-width: 120px; padding-left: 16px; }
  .account-row-cta .desktop-price .price-amount { font-size: 22px; }
  .account-row-btn { padding: 8px 16px; font-size: 13px; }
}
@media (max-width: 768px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .section { padding: 56px 0; }
}
@media (max-width: 640px) {
  :root { --header-height: 56px; }
  .topbar-inner { flex-direction: column; gap: 4px; justify-content: center; }
  .topbar { height: auto; padding: 8px 0; }

  .logo-mark { width: 36px; height: 36px; }
  .logo-title { font-size: 16px; }
  .logo-sub { font-size: 10px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 20px 12px;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }

  .hero { padding: 48px 0 40px; }
  .hero-text h1 { font-size: 30px; }
  .product-card-body { padding: 24px; }
  .product-card-title { font-size: 22px; }
  .price-amount { font-size: 30px; }
  .product-card-actions { flex-direction: column; }
  .product-card-actions .btn { width: 100%; }
  .image-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-section-header { flex-direction: column; align-items: flex-start; }
  .detail-info .actions { flex-direction: column; }
  .detail-info .actions .btn { width: 100%; }
  .account-row {
    flex-direction: column; gap: 0; padding: 0; overflow: hidden;
  }
  .account-row-media {
    flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 16 / 9;
    border-radius: 0;
  }
  .account-row-body {
    padding: 16px 16px 10px; gap: 8px;
  }
  .account-row-head {
    flex-direction: column; gap: 8px;
  }
  .account-row-title { font-size: 17px; }
  .account-row-price { display: flex; align-items: baseline; }
  .account-row-price .price-amount { font-size: 22px; }
  .mobile-price { display: flex; }
  .desktop-price { display: none; }
  .account-row-desc {
    -webkit-line-clamp: 2; font-size: 13px;
  }
  .account-row-meta { gap: 6px 10px; }
  .account-row-meta .ar-meta { font-size: 12px; padding: 3px 8px; }
  .account-row-cta {
    flex-direction: row; align-items: center; justify-content: space-between;
    border-left: none; border-top: 1px solid var(--border);
    padding: 12px 16px; min-width: auto;
  }
  .account-row-btn { width: auto; padding: 10px 20px; }
}

/* 尊重「减少动态」偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
