/* 全站统一页头 / 页脚（2026-11-27）
 *
 * 背景：首页用 HomeLayout 的 .site-header/.site-footer，礼品中心用 suite-kit 的
 * .header/.footer，其余内容页用 Header.astro/Footer.astro 的 .header/.footer，
 * 三套导航项、提货入口指向、移动端开合方式都不一样。
 *
 * 这里用独立前缀 bx- 重写一套，三套布局都加载本文件，互不干扰历史样式。
 * 加载顺序：各布局自身样式之后。
 */

/* ---------- 跳转链接 ---------- */
.bx-skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 200;
  background: #fff;
  color: #203d36;
  padding: 12px 16px;
  border: 1px solid #dce4dd;
  text-decoration: none;
}
.bx-skip:focus {
  top: 8px;
}

/* ---------- 页头 ---------- */
.bx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FBF8F2;
  color: #2B2723;
  border-bottom: 1px solid #E2D8C6;
}

.bx-header__inner {
  width: min(1440px, calc(100% - 144px));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.bx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2B2723;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.bx-brand img {
  width: 84px;
  height: auto;
  display: block;
}
.bx-brand__name {
  font-family: var(--serif, "Songti SC", "SimSun", serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
/* 「禮」用繁体后笔画多、显细：加字重并同色，跟品牌名整体一致（老板 2026-11-29 批注） */
.bx-gift {
  color: #ec070c;
  font-weight: 700;
}
.bx-header .bx-gift {
  color: #ec070c;
}

/* 主导航 */
.bx-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.bx-nav > a,
.bx-nav summary {
  position: relative;
  color: #4A4138;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  padding: 30px 0;
}
.bx-nav summary::-webkit-details-marker {
  display: none;
}
.bx-nav > a:hover,
.bx-nav summary:hover {
  color: #2B2723;
}
.bx-nav [aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: #B8925A;
}

/* 「关于我们」下拉箭头：小三角随展开翻转（老板 2026-11-29 批注④） */
.bx-caret {
  width: 10px;
  height: 10px;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.18s ease;
}
.bx-item[open] .bx-caret {
  transform: rotate(180deg);
}

.bx-item {
  position: relative;
}
.bx-nav__drop {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 176px;
  background: #FBF8F2;
  border: 1px solid #E2D8C6;
  box-shadow: 0 18px 34px rgba(80,58,30,.16);
  border-radius: 6px;
  padding: 8px;
  display: none;
}
/* 桌面端：悬停/聚焦/点击均可展开；点击开合由 JS 互斥管理，避免多个下拉叠加残留。 */
.bx-item:hover .bx-nav__drop,
.bx-item:focus-within .bx-nav__drop,
.bx-item[open] .bx-nav__drop {
  display: block;
}
.bx-item:hover .bx-caret,
.bx-item:focus-within .bx-caret,
.bx-item[open] .bx-caret {
  transform: rotate(180deg);
}
.bx-nav__drop a {
  display: block;
  padding: 10px 16px;
  color: #4A4138;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
}
.bx-nav__drop a:hover {
  background: #F0E8D9;
  color: #A83A2E;
}
.bx-nav__drop [aria-current="page"] {
  font-weight: 600;
  color: #2B2723;
}

/* 右侧动作区 */
.bx-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.bx-header .bx-ico {
  filter: brightness(0);
}
.bx-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2B2723;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.bx-phone .bx-ico {
  width: 18px;
  height: 18px;
}
.bx-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1;
  padding: 8px 12px;
  color: #2B2723;
  text-decoration: none;
  border: 1px solid #B8925A;
  border-radius: 2px;
  white-space: nowrap;
}
.bx-inquiry .bx-ico {
  width: 15px;
  height: 15px;
}
.bx-inquiry:hover,
.bx-inquiry:focus-visible {
  border-color: #2E2A24;
  color: #2B2723;
}
.bx-inquiry--solid {
  background: #2E2A24;
  border-color: #2E2A24;
  color: #F5F1E9;
}
.bx-inquiry--solid .bx-ico {
  filter: brightness(0) invert(1);
}
.bx-inquiry--solid:hover,
.bx-inquiry--solid:focus-visible {
  background: #3A332A;
  border-color: #3A332A;
  color: #F5F1E9;
}
.bx-inquiry[aria-current="page"] {
  border-color: #2E2A24;
  background: #F0E8D9;
}
.bx-inquiry--solid[aria-current="page"] {
  background: #3A332A;
  color: #F5F1E9;
}
.bx-menu {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #B8925A;
  border-radius: 2px;
  cursor: pointer;
}
.bx-menu .bx-ico {
  width: 24px;
  height: 24px;
}

/* ---------- 页脚 ---------- */
.bx-footer {
  background: #2E2A24;
  color: #B7AC9A;
  padding: 48px 0 24px;
}
.bx-footer__inner {
  width: min(1440px, calc(100% - 144px));
  margin: 0 auto;
}
.bx-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.8fr 1.1fr;
  gap: 36px;
}
.bx-footer__brand .bx-brand {
  margin-bottom: 12px;
}
.bx-footer__brand .bx-brand__name {
  font-size: 22px;
  color: #F5F1E9;
}
.bx-footer__grid h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 14px;
  font-weight: 600;
  color: #F5F1E9;
}
.bx-footer p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #B7AC9A;
}
.bx-footer__grid > div > a {
  display: block;
  margin: 7px 0;
  font-size: 12px;
  color: #D8CFBE;
  text-decoration: none;
}
.bx-footer__grid > div > a:hover {
  text-decoration: underline;
}
.bx-footer__verse strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif, "Songti SC", "SimSun", serif);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: #F5F1E9;
}
.bx-footer__social .bx-footer__qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.bx-footer__social figure {
  margin: 0;
  text-align: center;
}
.bx-footer__social img {
  display: block;
  width: 72px;
  height: 72px;
  padding: 3px;
  background: #fff;
  border: 1px solid #4A4138;
  border-radius: 3px;
  box-sizing: border-box;
  object-fit: contain;
}
.bx-footer__social figcaption {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #B7AC9A;
}

.bx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #4A4138;
  font-size: 11px;
  color: #B7AC9A;
}
.bx-footer__bottom p {
  margin: 0 0 4px;
  font-size: 11px;
  color: #B7AC9A;
}
/* 页脚可见更新时间戳（GEO 审计 2.1③，2026-12-02）：机器可读 <time datetime>，人眼可读日期 */
.bx-footer__updated { margin-top: 8px; }
.bx-footer__updated time { color: #D8BC86; font-variant-numeric: tabular-nums; }
.bx-footer__legal a {
  display: inline;
  margin: 0 12px 0 0;
  font-size: 11px;
  color: #B7AC9A;
  text-decoration: none;
}
.bx-footer__legal a:hover {
  text-decoration: underline;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .bx-header__inner {
    gap: 16px;
  }
  .bx-brand img {
    width: 68px;
  }
  .bx-brand__name {
    font-size: 24px;
  }
  .bx-nav {
    gap: 18px;
    font-size: 15px;
  }
  .bx-actions {
    gap: 14px;
  }
  .bx-phone {
    font-size: 15px;
  }
  .bx-inquiry {
    font-size: 15px;
    padding: 8px 11px;
  }
  .bx-footer__grid {
    gap: 24px;
  }
}

@media (max-width: 1280px) {
  .bx-header__inner {
    height: 76px;
  }
  .bx-menu {
    display: inline-flex;
  }
  .bx-actions {
    margin-left: auto;
  }
  .bx-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin: 0;
    padding: 6px 20px 18px;
    background: #FBF8F2;
    border-top: 1px solid #E2D8C6;
    box-shadow: 0 14px 26px rgba(80,58,30,.18);
    font-size: 16px;
  }
  .bx-nav.bx-nav--open {
    display: block;
  }
  .bx-nav > a,
  .bx-nav summary {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #EFE7D8;
  }
  .bx-nav > a:last-of-type {
    border-bottom: 0;
  }
  .bx-nav [aria-current="page"]::after {
    display: none;
  }
  .bx-nav [aria-current="page"] {
    font-weight: 600;
  }
  .bx-item {
    width: 100%;
  }
  /* 窄屏抽屉内保留 details 点击开合，悬停不触发下拉。 */
  .bx-item:hover .bx-nav__drop,
  .bx-item:focus-within .bx-nav__drop {
    display: none;
  }
  .bx-item[open] .bx-nav__drop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 10px 12px;
  }
  .bx-nav__drop a {
    color: #4A4138;
    padding: 10px 8px;
  }
  .bx-nav__drop a:hover {
    background: #F0E8D9;
  }
}

@media (max-width: 1000px) {
  .bx-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .bx-footer__verse {
    display: none;
  }
  .bx-footer__social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .bx-header__inner,
  .bx-footer__inner {
    width: calc(100% - 36px);
  }
  .bx-header__inner {
    height: 68px;
    gap: 10px;
  }
  .bx-brand img {
    width: 58px;
  }
  .bx-brand__name {
    font-size: 22px;
  }
  .bx-phone span {
    display: none;
  }
  .bx-phone {
    padding: 8px;
    border: 1px solid #B8925A;
    border-radius: 2px;
  }
  .bx-inquiry {
    font-size: 14px;
    padding: 8px 10px;
  }
  .bx-inquiry .bx-ico {
    display: none;
  }
  .bx-footer {
    padding: 36px 0 80px;
  }
  .bx-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }
  .bx-footer__brand {
    grid-column: 1 / -1;
  }
  .bx-footer__social {
    grid-column: 1 / -1;
  }
  .bx-footer__bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  /* 390px 级窄屏放不下「牌匾 + 字标 + 电话 + 提货 + 菜单」，字标让位（牌匾本身已有丙祥茂） */
  .bx-brand__name {
    display: none;
  }
  .bx-brand img {
    width: 52px;
  }
  .bx-header__inner {
    gap: 8px;
  }
  .bx-inquiry {
    font-size: 13px;
    padding: 8px 9px;
  }
}

@media (min-width: 1600px) {
  .bx-header__inner,
  .bx-footer__inner {
    width: min(1440px, calc(100% - 144px));
  }
}

/* ---------- 品牌红：所有「礼」字统一 #ec070c（老板 2026-11-27 指定） ----------
 * 此前正文用 --red(#a4161a)，深色页头/页脚又单独用 #e98c80 粉红，一处一个色。
 * 这里统一覆盖；红底按钮上的「礼」继承白色，否则红字压红底看不清。
 */
.gift,
.gift-character,
.bx-gift,
.header .gift,
.footer .gift,
.site-header .gift-character,
.site-footer .gift-character,
.home-suite-links .gift-character {
  color: #ec070c;
}

.bx-header .bx-gift,
.bx-footer .bx-gift {
  color: #ec070c;
}

/* ---------- 商品页规格参数表（GEO 审计 P0：禁 JS 可见，2026-12-02） ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  background: rgba(251, 248, 242, .8);
  border: 1px solid #E2D8C6;
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px 4px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #9A8E7A;
}
.spec-table th,
.spec-table td {
  padding: 10px 14px;
  border-top: 1px solid #E2D8C6;
  vertical-align: top;
  line-height: 1.7;
}
.spec-table th {
  width: 96px;
  text-align: left;
  font-weight: 600;
  color: #2B2723;
  white-space: nowrap;
}
.spec-table td { color: #6E6558; }
.spec-table tr:first-child th,
.spec-table tr:first-child td { border-top: 0; }
.spec-table a { color: #B8925A; text-decoration: underline; }
/* 品牌声明页（GEO 运营项①，2026-12-02）：提示框与关联声明框 */
.statement-notice {
  max-width: 720px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: #FDF6E3;
  border-left: 4px solid #B8925A;
  border-radius: 4px;
  color: #6E6558;
  font-size: 14px;
  line-height: 1.8;
}
.statement-notice strong { color: #8A6A2E; }
.statement-related {
  max-width: 720px;
  margin-top: 24px;
  padding: 14px 18px;
  background: #FAF6EF;
  border: 1px solid #E2D8C6;
  border-radius: 6px;
  color: #6E6558;
  font-size: 14px;
  line-height: 1.8;
}
.statement-related a { color: #B8925A; text-decoration: underline; }
