/* ============================================================
   组件样式 —— 导航 / 页脚 / 卡片 / 表单 / 蜂巢装饰
   ============================================================ */

/* ============ 顶部公告条（全站隐藏，与首页沉浸式一致） ============ */
.topbar {
  display: none;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.topbar a:hover { color: var(--bee-yellow); }

.topbar__contact {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.topbar__contact span::before {
  content: "●";
  color: var(--bee-yellow);
  margin-right: 6px;
  font-size: 0.6em;
  vertical-align: middle;
}

/* ============ 主导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header > .container {
  max-width: none;
  padding-left: var(--nav-pad-x);
  padding-right: var(--nav-pad-x);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo —— 全站统一字号与字距 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--bee-black);
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: var(--bee-yellow);
  display: grid;
  place-items: center;
  position: relative;
}

.logo__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bee-yellow);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo__bee {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  color: var(--bee-black);
}

.logo__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  font-weight: 400;
}

/* 主菜单 —— 九牧风：右对齐 + 圆点选中 + 悬停下拉 */
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 0;
  margin-right: clamp(12px, 2vw, 28px);
  min-width: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(10px, 1.4vw, 22px) 0 clamp(18px, 1.8vw, 28px);
}

.nav-item::before {
  content: "";
  position: absolute;
  left: clamp(4px, 0.5vw, 10px);
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -1px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  transition: border-color 0.8s ease;
}

.nav-item:hover::before,
.nav-item.is-active::before {
  border-color: currentColor;
}

.menu__item {
  position: relative;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text);
  padding: 14px 0;
  letter-spacing: 0.04em;
}

/* 去掉旧下划线选中态 */
.menu__item::after {
  display: none;
}

.menu__item:hover,
.nav-item.is-active .menu__item {
  color: var(--bee-black);
}

/* 悬停下拉（九牧式竖列） */
.has-dropdown { position: relative; }

.sub-navs {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  padding-top: 12px;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s, visibility 0.45s;
  z-index: 20;
}

.has-dropdown:hover > .sub-navs,
.has-dropdown:focus-within > .sub-navs {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  transform: none;
}

.sub-navs li {
  margin-bottom: 6px;
}

.sub-navs a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.sub-navs a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.45s ease;
}

.sub-navs a:hover {
  color: var(--bee-black);
}

.sub-navs a:hover::before {
  width: 100%;
}

/* 兼容旧 dropdown（非首页） */
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-3);
  min-width: 560px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown__item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
  align-items: flex-start;
}

.dropdown__item:hover { background: var(--gray-100); }

.dropdown__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bee-yellow);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.dropdown__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bee-black);
}

.dropdown__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 询价按钮 —— 与首页沉浸式 solid 态一致 */
.nav-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 0;
  background: var(--bee-black);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.nav-shop:hover {
  background: var(--bee-yellow);
  border-color: transparent;
  color: var(--bee-black);
}

/* 导航右侧工具 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* 语言切换 —— 全站极简（与首页一致） */
.lang-switch,
.lang-switch--minimal {
  display: flex;
  align-items: center;
  gap: 0;
  border: none;
  background: transparent;
  padding: 0;
}

.lang-switch button,
.lang-switch--minimal button {
  padding: 6px 8px;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  transition: color var(--t-fast);
}

.lang-switch button.is-active,
.lang-switch--minimal button.is-active {
  color: var(--bee-black);
  background: transparent;
}

.lang-switch button:not(.is-active):hover,
.lang-switch--minimal button:not(.is-active):hover {
  color: var(--bee-black);
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--bee-black);
  transition: all var(--t-fast);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 仅移动端显示的菜单项 */
.nav-item--mobile-only { display: none; }

/* 移动端菜单遮罩 */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 98;
  pointer-events: auto;
}

body.nav-open .home-banner__ui,
body.nav-open .home-pager {
  opacity: 0;
  pointer-events: none;
}

/* ============ 页脚 ============ */
.footer {
  background: var(--bee-black);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-8) 0 var(--space-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-dark);
}

.footer__brand .logo { color: var(--white); margin-bottom: var(--space-3); }
.footer__brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; max-width: 320px; }

.footer__col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.footer__col ul li { margin-bottom: 10px; }
.footer__col a { font-size: 0.9rem; transition: color var(--t-fast); }
.footer__col a:hover { color: var(--bee-yellow); }

.footer__contact li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer__contact .ic {
  color: var(--bee-yellow);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__bottom a:hover { color: var(--bee-yellow); }

.footer__social { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  transition: all var(--t-fast);
}
.footer__social a:hover {
  background: var(--bee-yellow);
  border-color: var(--bee-yellow);
  color: var(--bee-black);
}
.footer__social-muted {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

/* ============ 产品卡片 ============ */
.product-card {
  position: relative;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: var(--hover-shadow);
  border-color: transparent;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.product-card:hover .product-card__media::after {
  opacity: 1;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__media img { transform: scale(1.06); }

/* 角标 —— 香槟金细标签 */
.product-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(10, 10, 10, 0.78);
  color: var(--bee-yellow-soft);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 7px 12px;
  border-radius: 0;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-card__body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid transparent;
  transition: border-color var(--t);
}

.product-card:hover .product-card__body {
  border-top-color: rgba(232, 184, 74, 0.45);
}

.product-card__cat {
  margin-bottom: 8px;
}

.product-card__title {
  font-size: 1.15rem;
  color: var(--bee-black);
  margin-bottom: var(--space-2);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.product-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--bee-black);
  text-transform: uppercase;
}

.product-card__more::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width var(--t), transform var(--t-fast);
}

.product-card:hover .product-card__more { color: var(--bee-honey); }
.product-card:hover .product-card__more::after { width: 44px; }

/* ============ 通用卡片 (优势/特点) ============ */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}

.feature-card:hover {
  border-color: var(--bee-yellow);
  box-shadow: var(--hover-shadow);
  transform: translateY(var(--hover-lift));
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: var(--bee-yellow);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}

.feature-card p { font-size: 0.92rem; }

/* ============ 数据墙 ============ */
.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--bee-yellow);
  letter-spacing: 0.02em;
}

.stat__label {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  background: var(--gray-100);
  padding: var(--space-3) 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb li::after { content: "/"; margin-left: var(--space-2); color: var(--gray-300); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--bee-honey); }
.breadcrumb li:last-child { color: var(--bee-black); font-weight: 500; }

.breadcrumb--dark {
  background: var(--surface-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb--dark a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb--dark a:hover {
  color: var(--bee-yellow);
}

.breadcrumb--dark li::after {
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumb--dark li:last-child {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* ============ 表单 ============ */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--bee-black);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--bee-yellow);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
}

textarea.form-control { resize: vertical; min-height: 130px; }

.form-error {
  color: #E53935;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .form-control { border-color: #E53935; }
.form-group.has-error .form-error { display: block; }

.form-success {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid var(--bee-yellow);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  color: var(--bee-black);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: none;
}

.form-success.is-show { display: block; }

/* ============ 响应式：导航移动端 ============ */
@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .nav {
    height: var(--header-h);
  }

  .logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
  }

  .logo__text small {
    letter-spacing: 0.22em;
  }

  .nav-toggle { display: flex; }

  .nav-item--mobile-only { display: block; }

  .menu,
  .nav-actions .lang-switch {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--white);
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transform: translateY(calc(-100% - var(--header-h)));
    transition: transform var(--t);
    align-items: stretch;
    margin-right: 0;
  }

  .menu {
    top: var(--header-h);
    padding: var(--space-4) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
    gap: var(--space-1);
    height: auto;
    max-height: calc(100dvh - var(--header-h) - 56px - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    padding: 0;
    height: auto;
    display: block;
  }

  .nav-item::before { display: none; }

  .menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .menu__item:hover { background: var(--gray-100); }

  .menu__item--cta {
    margin-top: var(--space-2);
    justify-content: center;
    background: var(--bee-black);
    color: var(--white) !important;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .menu__item--cta:hover {
    background: #222;
  }

  .has-dropdown > .menu__item::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 12px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    opacity: 0.45;
    flex-shrink: 0;
  }

  .has-dropdown.is-expanded > .menu__item::after {
    transform: rotate(-135deg);
  }

  .nav-actions {
    gap: var(--space-2);
    position: relative;
    z-index: 101;
  }

  .nav-actions .nav-shop { display: none; }

  .nav-actions .lang-switch {
    top: auto;
    bottom: 0;
    flex-direction: row;
    justify-content: center;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border: none;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    height: auto;
  }

  .has-dropdown:hover .dropdown { display: none; }

  .has-dropdown:hover > .sub-navs {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
  }

  .has-dropdown.is-expanded > .sub-navs {
    pointer-events: auto;
  }

  .menu.is-open,
  .nav-actions .lang-switch.is-open {
    transform: translateY(0);
  }

  .sub-navs {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.32s ease, padding 0.32s ease;
    pointer-events: none;
  }

  .has-dropdown.is-expanded > .sub-navs {
    max-height: 240px;
    padding: 0 16px 10px;
    pointer-events: auto;
  }

  .sub-navs a {
    color: var(--text-muted);
    padding: 10px 0 10px 12px;
  }

  .sub-navs a::before { display: none; }

  .sub-navs a:hover {
    color: var(--bee-black);
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    min-width: auto;
    padding: var(--space-2) 0;
    grid-template-columns: 1fr;
  }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer__bottom { flex-direction: column; text-align: center; }
  .topbar__contact { gap: var(--space-3); font-size: 0.75rem; }
  .topbar__inner > :last-child { display: none; }
}
