:root {
  color-scheme: dark;
  --background: #141416;
  --ink: #faf5ed;
  --muted: #bbb5b0;
  --rule: #38343a;
  --gold: #f0cda3;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 10px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 35% -8%, #292321 0%, transparent 56%) no-repeat var(--background);
  color: var(--ink);
  font: 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.directory-shell { width: min(1100px, calc(100% - clamp(24px, 7vw, 92px))); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 3;
  padding: 9px 12px;
  color: var(--background);
  background: var(--gold);
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); }
.directory-header { border-bottom: 1px solid var(--rule); }
.mast {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand-row { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1; }
.wordmark-main { display: flex; align-items: baseline; }
.wordmark-main .cn { font-size: 25px; font-weight: 900; letter-spacing: 2px; white-space: nowrap; }
.wordmark-main .en { color: var(--muted); font-size: 10px; letter-spacing: 5px; font-weight: 300; margin-left: 7px; }
.wordmark-sub { display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 4px; color: var(--gold); }
.wordmark-sub i { width: 19px; height: 1px; background: currentColor; opacity: .58; }
.flag-badge {
  border: 1px solid #65513d;
  border-radius: 100px;
  background: #32281f;
  color: #edccaa;
  font-size: .625rem;
  font-weight: 660;
  padding: 5px 9px;
  white-space: nowrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--gold);
  color: #231c16;
  font-size: .9375rem;
  font-weight: 700;
  white-space: nowrap;
}
.contact-link:hover { background: #f9dfbf; }

.directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding-block: clamp(25px, 4.2vw, 51px) 20px;
}
.directory-heading h1 {
  font: 680 clamp(2rem, 4.3vw, 3.85rem)/1.14 var(--serif);
  letter-spacing: -.045em;
}
.directory-heading p { color: var(--muted); padding-bottom: 3px; font-size: .875rem; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.7vw, 20px); }

.tone-jade { --panel: #1b2a23; --rim: #385748; --accent: #b8e1c5; --tint: #2c4437; --crop: 50% 54%; }
.tone-teal { --panel: #1d343c; --rim: #3e606b; --accent: #b6e5e8; --tint: #2a4751; --crop: 66% 54%; }
.tone-amber { --panel: #29231d; --rim: #594735; --accent: #f2c99e; --tint: #463524; --crop: 50% 43%; }
.tone-indigo { --panel: #20293c; --rim: #405677; --accent: #c0d7ff; --tint: #2e4060; --crop: 50% 50%; }
.tone-violet { --panel: #2c2239; --rim: #514268; --accent: #e2ccfd; --tint: #423254; --crop: 50% 52%; }
.shopcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rim);
  border-radius: clamp(15px, 2.2vw, 25px);
  background: var(--panel);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) {
  .shopcard:hover {
    border-color: var(--accent);
    box-shadow: 0 13px 33px #0004;
    transform: translateY(-2px);
  }
}
.card-photo {
  aspect-ratio: 2.18;
  position: relative;
  overflow: hidden;
  background: var(--tint);
}
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--crop); }
.card-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  border-radius: 100px;
  padding: 4px 9px;
  color: #352611;
  background: #f5d69b;
  font-size: .8125rem;
  font-weight: 720;
  white-space: nowrap;
}
.card-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, #0d0d1366);
  pointer-events: none;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(11px, 2vw, 21px); }
.card-body h2 { font-size: clamp(1rem, 2.45vw, 1.8rem); font-weight: 715; letter-spacing: -.031em; line-height: 1.23; }
.card-specialty { color: var(--muted); font-size: .9rem; margin-top: 4px; margin-bottom: 12px; }
.card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4px 10px;
  border-top: 1px solid var(--rim);
  margin-top: auto;
  padding-top: 10px;
}
.card-price { min-width: 0; }
.price-caption { display: block; color: var(--muted); font-size: .8125rem; }
.card-price strong {
  display: block;
  color: var(--accent);
  margin-top: 3px;
  font-size: clamp(1rem, 2.2vw, 1.57rem);
  font-weight: 710;
  line-height: 1.25;
  letter-spacing: -.022em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  background: var(--tint);
  border-radius: 100px;
  padding: 5px 11px;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.shopcard:hover .card-action { color: var(--panel); background: var(--accent); }

.price-compare {
  margin-top: 17px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #1d1c1f;
  padding: 0 clamp(12px, 2vw, 20px);
}
.price-compare summary {
  color: var(--muted);
  width: fit-content;
  min-height: 44px;
  padding: 11px 0;
  cursor: pointer;
  font-size: .9rem;
}
.price-compare summary:hover { color: var(--ink); }
.price-compare table { border-collapse: collapse; width: 100%; text-align: left; margin: 0 0 9px; }
.price-compare :is(th, td) { border-top: 1px solid var(--rule); padding: 9px 12px 9px 0; vertical-align: top; }
.price-compare thead { color: var(--muted); font-size: .875rem; }
.price-compare tbody { font-size: .9375rem; }
.price-compare td { color: var(--muted); }
.price-compare .compare-price { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-compare a:hover { text-decoration: underline; text-underline-offset: 3px; }
.directory-footer { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .875rem; padding-block: 21px 28px; }
.directory-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .mast { min-height: 61px; }
  .brand-row { gap: 7px; }
  .wordmark-main .cn { font-size: 21px; }
  .wordmark-main .en { font-size: 8px; letter-spacing: 3px; margin-left: 4px; }
  .wordmark-sub { font-size: 7px; letter-spacing: 3px; gap: 5px; }
  .wordmark-sub i { width: 15px; }
  .flag-badge { font-size: .56rem; padding: 4px 6px; }
  .contact-link { padding-inline: 10px; min-height: 36px; font-size: .8125rem; }
  .directory-heading { display: block; padding-block: 22px 15px; }
  .directory-heading p { margin-top: 6px; padding: 0; }
  .card-photo { aspect-ratio: 1.46; }
  .card-specialty { font-size: .8125rem; margin-bottom: 9px; }
  .card-bottom { position: relative; gap: 3px; padding-top: 8px; }
  .card-price strong { font-size: 1.04rem; }
  .price-caption { font-size: .75rem; white-space: nowrap; }
  .card-action { padding: 3px 5px; font-size: .75rem; }
  .price-compare :is(th, td) { padding-inline-end: 5px; font-size: .81rem; }
  .price-compare .compare-price { white-space: normal; }
}
@media (max-width: 365px) {
  .brand-row { gap: 5px; }
  .wordmark-main .cn { font-size: 19px; }
  .wordmark-main .en { letter-spacing: 2.5px; margin-left: 3px; }
  .flag-badge { font-size: .52rem; padding-inline: 5px; }
  .contact-link { padding-inline: 8px; }
  .card-body { padding-inline: 9px; }
  .card-price strong { font-size: .96rem; }
  .card-specialty, .price-caption { font-size: .72rem; }
  .card-action { font-size: .71rem; }
}
@media (prefers-reduced-motion: reduce) {
  .shopcard { transition: none; }
}
