:root {
  --cream: #F7F3EE;
  --warm-white: #FDFAF6;
  --ink: #1C1A17;
  --stone: #8C8479;
  --gold: #B8975A;
  --gold-light: #D4B483;
  --mist: #E8E2D9;
  --tag-factory: #E8F0E8;
  --tag-factory-text: #4A6741;
  --tag-online: #E8EAF0;
  --tag-online-text: #3D4A6A;
  --tag-collab: #F0EBE3;
  --tag-collab-text: #7A5A35;
  --tag-info: #F0EDEA;
  --tag-info-text: #6B6059;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Serif SC', serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Header ── */
header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--mist);
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
}

.header-eyebrow {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1.2;
}

header h1 span {
  color: var(--gold);
}

.header-sub {
  margin-top: 10px;
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 1px;
  line-height: 1.8;
}

.header-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ── Tab Nav ── */
.tab-nav {
  display: flex;
  gap: 0;
  padding: 0 20px;
  background: var(--warm-white);
  border-bottom: 1px solid var(--mist);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 14px 18px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--stone);
  cursor: pointer;
  position: relative;
  letter-spacing: 1px;
  transition: color 0.3s;
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gold);
  transition: left 0.3s, right 0.3s;
}

.tab-btn.active {
  color: var(--ink);
  font-weight: 400;
}

.tab-btn.active::after {
  left: 18px;
  right: 18px;
}

/* ── Main ── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 120px;
}

.section {
  display: none;
  animation: fadeUp 0.4s ease both;
}

.section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 16px 4px;
}

/* ── Card ── */
.card {
  background: var(--warm-white);
  border: 1px solid var(--mist);
  border-radius: 2px;
  padding: 18px 20px;
  margin-bottom: 10px;
  transition: box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(28, 26, 23, 0.07);
  border-color: var(--gold-light);
}

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

.card-left {
  flex: 1;
}

.card-name {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.card-detail {
  font-size: 12px;
  color: var(--stone);
  margin-top: 4px;
  letter-spacing: 0.5px;
  line-height: 1.7;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.tag-factory {
  background: var(--tag-factory);
  color: var(--tag-factory-text);
}

.tag-online {
  background: var(--tag-online);
  color: var(--tag-online-text);
}

.tag-collab {
  background: var(--tag-collab);
  color: var(--tag-collab-text);
}

.tag-info {
  background: var(--tag-info);
  color: var(--tag-info-text);
}

.tag-xiaohongshu {
  background: #FDEEF0;
  color: #C45A6A;
}

.tag-douyin {
  background: #F0F0F0;
  color: #333333;
}

/* ── Action Buttons ── */
.card-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  letter-spacing: 0.8px;
  padding: 7px 14px;
  border-radius: 1px;
  cursor: pointer;
  border: 1px solid;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border-color: var(--mist);
  color: var(--stone);
}

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

/* ── QR Modal ── */
.qr-expand {
  display: none;
  margin-top: 14px;
  padding: 16px;
  background: var(--cream);
  border: 1px dashed var(--mist);
  border-radius: 2px;
  text-align: center;
}

.qr-expand.open {
  display: block;
  animation: fadeUp 0.3s ease;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--mist);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.qr-placeholder svg {
  opacity: 0.4;
}

.qr-caption {
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 1px;
}

/* ── Price ── */
.price {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--gold);
  margin-top: 4px;
}

/* ── Promo tip ── */
.promo-tip {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--tag-collab-text);
  background: var(--tag-collab);
  padding: 3px 8px;
  border-radius: 1px;
}

/* ── Bottom CTA ── */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 24px;
  text-align: center;
  z-index: 100;
  cursor: pointer;
  transition: background 0.2s;
}

.bottom-cta:hover {
  background: #2e2b26;
}

/* ── WeChat QR Modal ── */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.qr-modal.open {
  display: flex;
  animation: fadeUp 0.25s ease;
}

.qr-modal-inner {
  background: var(--warm-white);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  max-width: 300px;
  width: 88%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.qr-modal-inner img {
  width: 100%;
  border-radius: 2px;
  display: block;
}

.qr-modal-tip {
  margin-top: 12px;
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 1px;
}

.bottom-cta p {
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.bottom-cta strong {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .card {
    padding: 14px 15px;
  }

  .card-name {
    font-size: 14px;
  }
}