/* BinBin 简约黑白（已批准的「香奈儿风格」方法：白底、墨黑、宽距字标、细线框）。不使用香奈儿商标。 */
:root {
  --cream: #ffffff;
  --mint: #f4f4f4;
  --mint-deep: #e0e0e0;
  --ink: #111111;
  --ink-soft: #555555;
  --orange: #111111;
  --orange-deep: #000000;
  --white: #fff;
  --peach: #f7f7f7;
  --line: #e5e5e5;
  --grey: #757575;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  --radius: 18px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: #f2f2f2;
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.page {
  width: min(100%, 480px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  padding-bottom: 88px;
}

/* ---- sample banner ---- */
.sample-banner {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 6px 12px;
}

/* ---- header (极简黑白，居中字标) ---- */
.site-header {
  padding: 30px 20px 20px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #111;
}
.site-header a { color: #111; text-decoration: none; display: block; }
.site-name { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em; /* 抵消末字母间距，保证视觉居中 */
  color: #111;
}
.wordmark-cn {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.6em;
  padding-left: 0.6em;
  color: #111;
}
.brand-cn { font-size: 12px; letter-spacing: 0.4em; margin-top: 8px; color: #111; }
.brand-line { display: none; }

/* ---- homepage promo (通栏广告，黑白) ---- */
.promo {
  background: #fff;
  border-bottom: 1px solid #111;
  margin: 0;
}
.promo-viewport {
  overflow: hidden;
  width: 100%;
}
.promo-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
}
.promo-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  min-height: 280px;
  color: #111;
  text-decoration: none;
  background: #fff;
}
.promo-copy {
  flex: 1 1 auto;
  padding: 28px 18px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.promo-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #111;
}
.promo-title {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #111;
  white-space: nowrap;
}
.promo-price {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111;
}
.promo-cta {
  margin-top: 18px;
  display: inline-block;
  align-self: flex-start;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.promo-slide:active .promo-cta,
.promo-slide:hover .promo-cta {
  background: #111;
  color: #fff;
}
.promo-visual {
  flex: 0 0 42%;
  width: 42%;
  min-width: 132px;
  overflow: hidden;
  background: #fff;
}
.promo-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.promo-type {
  justify-content: center;
}
.promo-type .promo-copy {
  padding: 48px 32px 44px;
  align-items: center;
  text-align: center;
}
.promo-type .promo-title {
  font-size: 32px;
  letter-spacing: 0.12em;
}
.promo-type .promo-cta {
  align-self: center;
}
.promo-staff {
  flex-direction: column;
  min-height: 0;
}
.promo-staff .promo-visual {
  flex: none;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  background: #fff;
}
.promo-staff .promo-visual img {
  object-fit: contain;
  object-position: center;
}
.promo-staff .promo-copy {
  padding: 14px 20px 12px;
  justify-content: flex-start;
}
.promo-staff .promo-title {
  margin: 6px 0 4px;
}
.promo-staff .promo-cta {
  margin-top: 10px;
}
.promo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 0 12px;
  background: #fff;
}
.promo-dot {
  width: 18px;
  height: 2px;
  padding: 0;
  border: 0;
  background: #c8c8c8;
  cursor: pointer;
  appearance: none;
  border-radius: 0;
}
.promo-dot.is-on {
  background: #111;
}
@media (prefers-reduced-motion: reduce) {
  .promo-track { transition: none; }
}

/* ---- sections ---- */
.section { padding: 8px 16px 20px; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 8px 0 14px;
}
.section-title small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-top: 2px;
}

/* ---- hero cards ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  color: inherit;
}
.card:active { transform: scale(0.985); }
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f0;
  color: #888;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.card-static { cursor: default; color: inherit; }
.badge-shiyi {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  color: #111;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
}
.card-body { padding: 8px 10px 10px; }
.card-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.card-price {
  margin-top: 2px;
  font-size: 12px;
  color: var(--orange);
  line-height: 1.35;
}

/* ---- weekly strip ---- */
.strip {
  margin: 0 16px 8px;
  background: #fff;
  color: #111;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #111;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* ---- order ---- */
.order-box {
  margin: 8px 16px 16px;
  background: var(--white);
  border-radius: 20px;
  padding: 18px 16px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
}
.order-box h2 { font-size: 18px; margin-bottom: 6px; }
.order-box .lead {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.qr-placeholder {
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  border: 1px dashed #bbb;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      135deg,
      #f7f7f7 0 12px,
      #eeeeee 12px 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.qr-note {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.55;
}


/* ---- 今日串门入口（安静文字，不进通栏） ---- */
.chuanmen-entry {
  text-align: center;
  margin: 2px 16px 22px;
}
.chuanmen-entry a {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 2px 0 2px 0.18em;
  border-bottom: 1px solid transparent;
}
.chuanmen-entry a:hover,
.chuanmen-entry a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- price list（分类折叠，默认收起） ---- */
.price-section {
  background: #fff;
  border-radius: 16px;
  padding: 0 14px;
  margin-bottom: 10px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
}
.price-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  color: #111;
}
.price-head::-webkit-details-marker { display: none; }
.price-head::marker { content: ""; }
.price-head-name { flex: 1; font-weight: 700; min-width: 0; }
.price-head-count { flex: none; font-size: 12px; font-weight: 500; color: #757575; }
.price-head-mark {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 2px 0 4px;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.price-section[open] .price-head { border-bottom: 1px solid #111; }
.price-section[open] .price-head-mark { transform: rotate(-135deg); margin-bottom: -2px; }
.price-body { padding-bottom: 4px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.price-row:last-child { border-bottom: 0; }
.price-name { flex: 1; font-weight: 600; }
.price-val {
  text-align: right;
  color: var(--orange);
  font-weight: 600;
  max-width: 58%;
  line-height: 1.45;
}
.price-val .tba { color: var(--grey); font-weight: 500; }
.tag-out {
  display: inline-block;
  margin-left: 6px;
  background: #f4f4f4;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}
.price-multi { display: block; }

/* ---- article cards ---- */
.article-list { display: flex; flex-direction: column; gap: 10px; }
.article-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  border-left: 2px solid #111;
}
.article-card h3 { font-size: 16px; }
.article-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.article-card .more {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}

/* ---- about ---- */
.about-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: var(--card-shadow);
}
.about-card h2 { font-size: 16px; margin: 16px 0 6px; }
.about-card h2:first-child { margin-top: 0; }
.about-card p { font-size: 15px; line-height: 1.75; }
.about-card .pending {
  margin-top: 16px;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #666;
}

/* ---- product page ---- */
.prod-hero {
  position: relative;
  background: #f5f5f5;
}
.prod-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}
.prod-hero .badge-shiyi {
  position: absolute;
  top: 10px;
  right: 10px;
}
.prod-hero-empty {
  min-height: 220px;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f0;
  color: #888;
  letter-spacing: 0.16em;
  font-size: 15px;
  font-weight: 600;
}
.prod-price .price-multi,
.prod-price-line {
  display: block;
  line-height: 1.45;
}
.price-name-link { color: inherit; text-decoration: none; }
.price-name-link:active { opacity: 0.7; }
.prod-panel {
  background: var(--cream);
  margin-top: -18px;
  position: relative;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px 8px;
}
.prod-name { font-size: 24px; font-weight: 700; line-height: 1.3; }
.prod-price {
  margin-top: 6px;
  font-size: 18px;
  color: var(--orange);
  font-weight: 700;
}
.guide {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: var(--card-shadow);
}
.guide h2 {
  font-size: 15px;
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 2px solid #111;
}
.guide p, .guide li { font-size: 14px; line-height: 1.75; color: #333; }
.guide ol, .guide ul { padding-left: 1.2em; }
.guide li + li { margin-top: 4px; }

/* ---- article page ---- */
.article {
  padding: 8px 18px 24px;
}
.article header { margin-bottom: 16px; }
.article h1 {
  font-size: 24px;
  line-height: 1.35;
  margin-top: 8px;
}
.article .kicker {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.article h2 {
  font-size: 17px;
  margin: 22px 0 8px;
}
.article p {
  font-size: 15px;
  line-height: 1.85;
  margin: 8px 0;
}
.article ol, .article ul {
  padding-left: 1.3em;
  margin: 8px 0;
}
.article li {
  font-size: 15px;
  line-height: 1.8;
  margin: 4px 0;
}
.disclaimer {
  margin-top: 24px;
  padding: 12px 14px;
  background: #f7f7f7;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.65;
}
.related {
  margin: 16px 18px 0;
}

/* ---- back / crumbs ---- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.topbar {
  padding: 10px 16px 0;
}

/* ---- footer ---- */
.site-footer {
  text-align: center;
  padding: 8px 20px 20px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}
.site-footer strong { font-weight: 600; color: var(--ink); }
.site-footer .icp { margin-top: 6px; }
.site-footer .icp a { color: var(--ink-soft); text-decoration: none; }
.site-footer .icp a:hover { text-decoration: underline; }

/* ---- bottom nav ---- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, 480px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tabbar a {
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 6px 0 2px;
  line-height: 1.2;
}
.tabbar a span {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.tabbar a.active { color: var(--ink); }

.cta-btn {
  display: block;
  margin: 16px 16px 0;
  background: #fff;
  color: #111;
  text-align: center;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.cta-btn:active { background: #111; color: #fff; }

.photo-note {
  text-align: left;
  font-size: 12px;
  color: var(--grey);
  padding: 6px 0 0;
}
