/* 老白小红书专卖 — 2026 首頁交易型版面
   紙白、墨色、朱紅；分類卡直接連到可索引分類頁。 */

.home-page .lb-lang-link {
  display: inline-flex;
  min-width: 42px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid var(--lb-line);
  color: var(--lb-ink);
  background: rgba(253, 251, 246, .6);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.home-page .lb-lang-link:hover,
.home-page .lb-lang-link:focus-visible {
  border-color: var(--lb-red);
  color: #fdfbf6;
  background: var(--lb-red);
}

.home-page .hero-subhead {
  margin: -9px 0 25px;
  color: #8a6e44;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.6;
}

.home-page .hero h1 .h1-sub {
  margin-top: 8px;
  font-size: clamp(20px, 2.7vw, 38px);
  line-height: 1.35;
  letter-spacing: .02em;
}

/* 首屏深色選號面板：八個分類全部直連 */
.home-page .lb-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 238, 226, .16);
  color: #e8c9a0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.home-page .lb-all-link:hover {
  padding-left: 5px;
  color: #fdfbf6;
}
.home-page .lb-all-link span {
  color: #c9b696;
  font-size: 15px;
}

/* 01 分類索引 */
.home-page .lb-categories {
  background: var(--lb-paper) url("paper-grain.svg") repeat;
}
.home-page .lb-category-hub {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-page .lb-category-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 282px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 20px;
  border: 1px solid var(--lb-line);
  color: var(--lb-ink);
  background: linear-gradient(135deg, #fdfbf6 0%, #f8f2e7 100%);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.home-page .lb-category-card::after {
  position: absolute;
  right: -78px;
  bottom: -118px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(178, 58, 47, .18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.home-page .lb-category-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lb-red);
  content: "";
  transition: width .24s ease;
}
.home-page .lb-category-card:hover {
  border-color: #c9b48f;
  box-shadow: 0 16px 34px rgba(33, 28, 22, .07);
  transform: translateY(-3px);
}
.home-page .lb-category-card:hover::before {
  width: 100%;
}
.home-page .lb-card-top,
.home-page .lb-card-bottom,
.home-page .lb-product-top,
.home-page .lb-product-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-page .lb-card-top {
  color: var(--lb-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
}
.home-page .lb-card-top > span:last-child {
  color: var(--lb-red);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.home-page .lb-category-card h3 {
  position: relative;
  z-index: 1;
  margin: 26px 0 7px;
  color: var(--lb-ink);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.3;
}
.home-page .lb-card-en {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--lb-brass);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .18em;
  line-height: 1.5;
}
.home-page .lb-card-desc {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 15px 0 21px;
  color: #6c6152;
  font-size: 13px;
  line-height: 1.82;
}
.home-page .lb-card-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(33, 28, 22, .1);
  color: var(--lb-muted);
  font-size: 11px;
  line-height: 1.5;
}
.home-page .lb-card-bottom strong {
  color: var(--lb-red-deep);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.home-page .lb-card-bottom strong span {
  margin-left: 3px;
}

.home-page .lb-all-categories {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 22px 26px;
  color: #fdfbf6;
  background: var(--lb-ink);
  text-decoration: none;
  transition: background .2s ease;
}
.home-page .lb-all-categories:hover {
  background: var(--lb-red-deep);
}
.home-page .lb-all-categories > span {
  color: #b3a48c;
  font-size: 12px;
  letter-spacing: .04em;
}
.home-page .lb-all-categories strong {
  color: #fdfbf6;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
}
.home-page .lb-all-categories strong span {
  margin-left: 8px;
  color: #d9b98a;
}

@media (min-width: 1121px) {
  .home-page .site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .home-page .site-header .header-actions .lb-lang-link {
    width: auto;
    min-width: 42px;
  }
  .home-page .site-header .header-actions .header-cta {
    display: inline-flex;
  }
}

/* 02 用途卡 */
.home-page .lb-purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-page .lb-purpose-card {
  min-height: 248px;
  padding: 25px 24px 23px;
}
.home-page .lb-purpose-card h3 {
  font-size: 21px;
  line-height: 1.35;
}
.home-page .lb-purpose-card p {
  font-size: 13px;
  line-height: 1.82;
}
.home-page .lb-purpose-card .sx-purpose-meta {
  margin-top: 18px;
  font-size: 12px;
}

/* 03 精選商品 */
.home-page .lb-featured {
  background: #f4ecdd url("paper-grain.svg") repeat;
}
.home-page .lb-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-page .lb-product-card {
  display: flex;
  min-width: 0;
  min-height: 214px;
  flex-direction: column;
  padding: 22px 21px 19px;
  border: 1px solid #dccdb5;
  color: var(--lb-ink);
  background: #fdfbf6;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.home-page .lb-product-card:hover {
  border-color: var(--lb-red);
  box-shadow: 0 14px 28px rgba(33, 28, 22, .07);
  transform: translateY(-3px);
}
.home-page .lb-product-top {
  color: #8f806b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}
.home-page .lb-product-top > span:last-child {
  color: var(--lb-brass);
}
.home-page .lb-product-card h3 {
  margin: 22px 0 8px;
  color: var(--lb-ink);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.45;
}
.home-page .lb-product-card > p {
  flex: 1;
  margin: 0;
  color: var(--lb-muted);
  font-size: 12px;
  line-height: 1.7;
}
.home-page .lb-product-bottom {
  align-items: end;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid rgba(33, 28, 22, .1);
}
.home-page .lb-product-bottom strong {
  color: var(--lb-red-deep);
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}
.home-page .lb-product-bottom > span {
  color: var(--lb-muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.home-page .lb-featured-note {
  margin: 23px 0 0;
  color: var(--lb-muted);
  font-size: 12px;
  line-height: 1.7;
}
.home-page .lb-featured-note a {
  color: var(--lb-red-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 08 信任頁入口 */
.home-page .lb-trust {
  background: var(--lb-paper) url("paper-grain.svg") repeat;
}
.home-page .lb-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.home-page .lb-trust-card {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  padding: 23px 20px 20px;
  border: 1px solid var(--lb-line);
  color: var(--lb-ink);
  background: #f8f3e9;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.home-page .lb-trust-card:hover {
  border-color: var(--lb-red);
  transform: translateY(-2px);
}
.home-page .lb-trust-card > span {
  color: var(--lb-red);
  font-family: Georgia, serif;
  font-size: 12px;
}
.home-page .lb-trust-card h3 {
  margin: 22px 0 10px;
  color: var(--lb-ink);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.4;
}
.home-page .lb-trust-card p {
  flex: 1;
  margin: 0;
  color: #6c6152;
  font-size: 12px;
  line-height: 1.78;
}
.home-page .lb-trust-card strong {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(33, 28, 22, .1);
  color: var(--lb-red-deep);
  font-size: 11px;
  font-weight: 750;
}
.home-page .lb-trust-note {
  max-width: 900px;
  margin: 26px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--lb-red);
  color: #7c7162;
  background: rgba(178, 58, 47, .045);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 1120px) {
  .home-page .lb-category-hub,
  .home-page .lb-purpose-grid,
  .home-page .lb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .lb-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page .visual-stamp {
    display: none;
  }
  .home-page .lb-category-card {
    min-height: 260px;
    padding: 22px 21px 19px;
  }
  .home-page .lb-category-card h3 {
    margin-top: 22px;
    font-size: 25px;
  }
  .home-page .lb-product-grid {
    gap: 12px;
  }
  .home-page .lb-product-card {
    min-height: 204px;
  }
  .home-page .lb-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .lb-all-categories {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .home-page .site-header .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding-block: 10px;
  }
  .home-page .site-header .header-inner > .logo-link {
    min-width: 0;
    flex: 1 1 auto;
  }
  .home-page .site-header .header-actions {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
  }
  .home-page .site-header .header-actions .lb-lang-link {
    width: auto;
  }
  .home-page .site-header .header-actions .menu-toggle {
    margin-left: 0;
  }
  .home-page .site-header .main-nav {
    order: 5;
    width: 100%;
    flex: 0 0 100%;
  }
}

@media (max-width: 600px) {
  .home-page .lb-category-hub,
  .home-page .lb-purpose-grid,
  .home-page .lb-product-grid,
  .home-page .lb-trust-grid {
    grid-template-columns: 1fr;
  }
  .home-page .lb-category-card {
    min-height: 0;
  }
  .home-page .lb-product-card {
    min-height: 0;
  }
  .home-page .lb-trust-card {
    min-height: 0;
  }
  .home-page.home-en .lb-category-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .home-page .lb-lang-link {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .home-page .hero-subhead {
    margin-top: -6px;
    font-size: 15px;
    letter-spacing: .05em;
  }
  .home-page .lb-category-card h3 {
    font-size: 24px;
  }
  .home-page .lb-all-categories {
    padding: 18px 20px;
  }
  .home-page .lb-all-categories strong {
    font-size: 13px;
  }
  .home-page .lb-trust-note {
    padding: 14px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .lb-category-card,
  .home-page .lb-product-card,
  .home-page .lb-trust-card,
  .home-page .lb-all-categories,
  .home-page .lb-all-link {
    transition: none;
  }
}

@media (min-width: 761px) {
  .home-page .hero-visual .mascot-stage { z-index: 1; }
}

@media (min-width: 1121px) and (max-width: 1360px) {
  .home-page .hero-visual .mascot-stage { right: -110px; }
}

.home-page .collection-panel::after { display: none; }
