/* 玉昌主题 · 头部（对齐 demo 实测：topbar 39px、header 122px、导航间距 48px） */

.yc-topbar {
  background: #1d1d1d;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  letter-spacing: .02em;
}
.yc-topbar-inner {
  max-width: none;
  padding: 0 40px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.yc-topbar-note { white-space: nowrap; }
.yc-topbar-links { display: flex; gap: 22px; }
.yc-topbar-links a { color: rgba(255, 255, 255, .82); font-size: 13px; }
.yc-topbar-links a:hover { color: #fff; }

.yc-header {
  background: #fff;
  border-bottom: 1px solid var(--line, #e8e6e1);
  position: relative;
  z-index: 20;
}
.yc-header-inner {
  padding: 0 40px;
  height: 122px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.yc-logo { display: flex; align-items: center; flex: 0 0 auto; }
.yc-logo img { height: 54px; width: auto; display: block; }

.yc-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.yc-menu { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; }
.yc-menu-item { position: relative; }
.yc-menu-item > a {
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink, #252525);
  text-decoration: none;
}
.yc-menu-item > a::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width .3s cubic-bezier(.215,.61,.355,1);
}
.yc-menu-item:hover > a::after,
.yc-menu-item.is-active > a::after { width: 100%; }

.yc-submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 176px;
  background: #fff;
  border: 1px solid var(--line, #e8e6e1);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s, visibility .25s;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.yc-menu-item:hover .yc-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.yc-submenu li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--body, #535557);
}
.yc-submenu li a:hover { background: #f6f6f4; color: #111; }

.yc-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.yc-search { display: flex; align-items: center; border: 1px solid var(--line, #e8e6e1); height: 40px; }
.yc-search input {
  border: 0;
  outline: 0;
  width: 150px;
  padding: 0 12px;
  font-size: 13px;
  background: transparent;
  color: var(--ink, #252525);
}
.yc-search button {
  border: 0;
  background: transparent;
  width: 40px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink, #252525);
  cursor: pointer;
}
.yc-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink, #252525);
}
.yc-cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink, #252525);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 1024px) {
  .yc-topbar-inner, .yc-header-inner { padding: 0 16px; }
  .yc-header-inner { height: 84px; gap: 16px; }
  .yc-nav { display: none; }
  .yc-search input { width: 110px; }
}

/* 分类入口（原 AmazeUI 红色块）→ 墨黑 */
.goods-category-title,
.all-goods,
.nav-search .goods-category-title {
  background: #1d1d1d !important;
  color: #fff !important;
  border: 0 !important;
}
.goods-category-s, .category-list, .category-items {
  background: #fff !important;
  border: 1px solid var(--line, #e8e6e1) !important;
}
.category-items li a, .goods-category-s a { color: var(--body, #535557) !important; }
.category-items li:hover, .goods-category-s li:hover { background: #f6f6f4 !important; }

/* ---------- 页脚（玉昌主题） ---------- */
.yc-footer {
  background: #fff;
  border-top: 1px solid var(--line, #e8e6e1);
  margin-top: 64px;
}
.yc-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: flex;
  gap: 64px;
}
.yc-footer-brand { flex: 0 0 260px; }
.yc-footer-logo { height: 46px; width: auto; display: block; }
.yc-footer-slogan {
  margin: 16px 0 8px;
  font-size: 14px;
  color: var(--body, #535557);
}
.yc-footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted, #8c8c8c); }
.yc-footer-cols { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.yc-footer-col h4 {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted, #8c8c8c);
  margin: 0 0 14px;
  font-weight: 500;
}
.yc-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.yc-footer-col li a, .yc-footer-col li span { font-size: 14px; color: var(--body, #535557); }
.yc-footer-col li a:hover { color: #111; }
.yc-footer-bottom { border-top: 1px solid var(--line, #e8e6e1); }
.yc-footer-bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted, #8c8c8c);
}
.yc-footer-bottom-inner a { color: var(--muted, #8c8c8c); }
@media (max-width: 1024px) {
  .yc-footer-inner { flex-direction: column; gap: 32px; padding: 36px 16px 24px; }
  .yc-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yc-footer-bottom-inner { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
}
