/* ============================================================================
   Taoify Theme Kit —— 仅顶栏（自动生成，不要手改）
   ----------------------------------------------------------------------------
   来源：Asset/theme-kit/kit.css
   生成：php Web/tools/sync_kit_header.php

   用途：会员中心等「不自带 theme-kit 全局重置」的页面，需要和首页一样的顶栏，
         但又不能整份引入 kit.css（会把页面自己的字号/间距/margin 全冲掉）。

   包含：.tk-hd 顶栏、.tk-wrap 栅格、.tk-brand、.tk-nav + .tk-sub、.tk-search、
         .tk-hd__act / .tk-ico、.tk-user 下拉、.tk-burger + .tk-drawer 移动端抽屉，
         .tk-hd / .tk-drawer 作用域内的 button / input / form / a 复位，
         以及它们在各断点下的规则。
   不含：body / html / img / h1-h6 / p 等全局重置，也不含商品卡、页脚、
         底部 tabbar 等其它组件（a / button / input 的复位只保留顶栏作用域那份，
         不会波及会员页自己的表单）。

   主题色：变量挂在 :root，页面可以用 .hp-body{--tk-accent:…} 覆盖成店铺主色。
   ============================================================================ */

:root {
--tk-max: 1240px;
  --tk-gutter: 24px;
  --tk-tap: 44px;

  --tk-r-lg: 24px;
  --tk-r: 18px;
  --tk-r-sm: 12px;
  --tk-r-pill: 999px;

  
  --tk-accent: #B4633F;
  --tk-accent-hover: #9E5334;
  --tk-accent-soft: #F6EBE4;
  --tk-accent-ink: #FFFFFF;

  --tk-paper: #FBF9F6;
  --tk-card: #FFFFFF;
  --tk-surface: #F4F0E9;
  --tk-surface-2: #EAE4DA;

  --tk-ink: #201D1A;
  --tk-ink-2: #57514A;
  --tk-ink-3: #8C8479;

  --tk-line: #E9E3D9;
  --tk-line-2: #D6CCBE;

  --tk-ok: #2F6B4F;
  --tk-ok-soft: #EAF3ED;
  --tk-warn: #9A6415;
  --tk-warn-soft: #FBF1DF;
  --tk-danger: #B3453A;
  --tk-danger-soft: #FBEDEB;

  --tk-sh-1: 0 1px 2px rgba(32, 29, 26, .04), 0 10px 30px -18px rgba(32, 29, 26, .28);
  --tk-sh-2: 0 2px 6px rgba(32, 29, 26, .06), 0 22px 56px -28px rgba(32, 29, 26, .34);

  --tk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", Roboto, Arial, sans-serif;

  --tk-ease: cubic-bezier(.22, .61, .36, 1);
}

.tk-wrap {
width: 100%;
  max-width: var(--tk-max);
  margin: 0 auto;
  padding-inline: var(--tk-gutter);
}

.tk-hd {
position: sticky;
  top: 0;
  z-index: 300;
  background: color-mix(in srgb, var(--tk-paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .24s var(--tk-ease), background-color .24s var(--tk-ease);
}

.tk-hd.is-stuck {
border-bottom-color: var(--tk-line);
  background: color-mix(in srgb, var(--tk-paper) 96%, transparent);
}

.tk-hd :where(button), .tk-drawer :where(button) {
font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.tk-hd :where(input), .tk-drawer :where(input) {
font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  min-height: 0;
  padding: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.tk-hd :where(form) {
margin: 0;
}

.tk-hd :where(a), .tk-drawer :where(a) {
color: inherit;
  text-decoration: none;
}

.tk-hd__inner {
display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.tk-brand {
display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  min-height: var(--tk-tap);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.tk-brand img {
max-height: 30px;
  width: auto;
}

.tk-brand__mark {
width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--tk-accent);
  color: var(--tk-accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.tk-nav {
display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.tk-nav__item {
position: relative;
}

.tk-nav__link {
display: flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--tk-ink-2);
  white-space: nowrap;
  transition: background-color .18s var(--tk-ease), color .18s var(--tk-ease);
}

.tk-nav__link:hover, .tk-nav__item:hover>.tk-nav__link, .tk-nav__item:focus-within>.tk-nav__link {
background: var(--tk-surface);
  color: var(--tk-ink);
}

.tk-nav__caret {
width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .55;
  transition: transform .2s var(--tk-ease);
}

.tk-nav__item:hover .tk-nav__caret {
transform: rotate(225deg) translateY(-1px);
}

.tk-sub {
position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  padding: 8px;
  background: var(--tk-card);
  border: 1px solid var(--tk-line);
  border-radius: 14px;
  box-shadow: var(--tk-sh-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s var(--tk-ease), transform .18s var(--tk-ease), visibility .18s;
}

.tk-nav__item:hover .tk-sub, .tk-nav__item:focus-within .tk-sub {
opacity: 1;
  visibility: visible;
  transform: none;
}

.tk-sub a {
display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--tk-ink-2);
  white-space: nowrap;
  transition: background-color .16s var(--tk-ease), color .16s var(--tk-ease);
}

.tk-sub a:hover {
background: var(--tk-surface);
  color: var(--tk-ink);
}

.tk-search {
display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  width: 224px;
  flex-shrink: 0;
  padding-inline: 4px 4px;
  background: var(--tk-card);
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-r-pill);
  transition: border-color .2s var(--tk-ease), box-shadow .2s var(--tk-ease), width .24s var(--tk-ease);
}

.tk-search:focus-within {
border-color: var(--tk-accent);
  box-shadow: 0 0 0 3px var(--tk-accent-soft);
}

.tk-search input {
flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding-inline: 12px 4px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  outline: none;
}

.tk-search input::placeholder {
color: var(--tk-ink-3);
}

.tk-hd .tk-search input, .tk-drawer .tk-search input {
width: auto;
  min-height: 0;
  height: 100%;
  padding: 0 4px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13.5px;
  color: inherit;
}

.tk-search button {
width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tk-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s var(--tk-ease), transform .18s var(--tk-ease);
}

.tk-search button:hover {
background: var(--tk-accent);
}

.tk-search button svg {
width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}

.tk-hd__act {
display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tk-ico {
position: relative;
  width: var(--tk-tap);
  height: var(--tk-tap);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tk-ink-2);
  transition: background-color .18s var(--tk-ease), color .18s var(--tk-ease);
}

.tk-ico:hover {
background: var(--tk-surface);
  color: var(--tk-ink);
}

.tk-ico svg {
width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-ico--search {
display: none;
}

.tk-ico__badge {
position: absolute;
  top: 6px;
  inset-inline-end: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--tk-accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--tk-paper);
}

.tk-user {
position: relative;
}

.tk-user__btn {
display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--tk-tap);
  padding: 0 10px 0 4px;
  border-radius: var(--tk-r-pill);
  font-size: 13.5px;
  color: var(--tk-ink-2);
  transition: background-color .18s var(--tk-ease);
}

.tk-user__btn:hover {
background: var(--tk-surface);
}

.tk-user__btn img, .tk-user__avatar {
width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tk-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-ink-2);
}

.tk-user__btn span {
max-width: 7em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-user__drop {
position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 176px;
  padding: 8px;
  background: var(--tk-card);
  border: 1px solid var(--tk-line);
  border-radius: 14px;
  box-shadow: var(--tk-sh-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s var(--tk-ease), transform .18s var(--tk-ease), visibility .18s;
}

.tk-user:hover .tk-user__drop, .tk-user:focus-within .tk-user__drop {
opacity: 1;
  visibility: visible;
  transform: none;
}

.tk-user__drop a {
display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--tk-ink-2);
}

.tk-user__drop a:hover {
background: var(--tk-surface);
  color: var(--tk-ink);
}

.tk-user__drop .tk-user__out {
color: var(--tk-danger);
}

.tk-user__drop .tk-user__out:hover {
background: var(--tk-danger-soft);
  color: var(--tk-danger);
}

.tk-burger {
display: none;
  width: var(--tk-tap);
  height: var(--tk-tap);
  border-radius: var(--tk-r-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.tk-burger span {
display: block;
  width: 19px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--tk-ink);
  transition: transform .22s var(--tk-ease), opacity .18s var(--tk-ease);
}

.tk-burger[aria-expanded="true"] span:nth-child(1) {
transform: translateY(6.6px) rotate(45deg);
}

.tk-burger[aria-expanded="true"] span:nth-child(2) {
opacity: 0;
}

.tk-burger[aria-expanded="true"] span:nth-child(3) {
transform: translateY(-6.6px) rotate(-45deg);
}

.tk-drawer {
position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}

.tk-drawer.is-open {
display: block;
}

.tk-drawer__mask {
position: absolute;
  inset: 0;
  background: rgba(24, 21, 18, .42);
  opacity: 0;
  transition: opacity .24s var(--tk-ease);
}

.tk-drawer.is-open .tk-drawer__mask {
opacity: 1;
}

.tk-drawer__panel {
position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(84vw, 340px);
  background: var(--tk-paper);
  display: flex;
  flex-direction: column;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-102%);
  transition: transform .28s var(--tk-ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

[dir="rtl"] .tk-drawer__panel {
transform: translateX(102%);
}

.tk-drawer.is-open .tk-drawer__panel {
transform: none;
}

.tk-drawer__top {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--tk-line);
}

.tk-drawer__close {
width: var(--tk-tap);
  height: var(--tk-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tk-r-sm);
  color: var(--tk-ink-2);
}

.tk-drawer__close svg {
width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.tk-drawer__group {
padding: 10px 0;
  border-bottom: 1px solid var(--tk-line);
}

.tk-drawer__group:last-of-type {
border-bottom: 0;
}

.tk-drawer__label {
display: block;
  padding: 4px 10px 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tk-ink-3);
}

.tk-drawer__link {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 10px;
  border-radius: var(--tk-r-sm);
  font-size: 15px;
  color: var(--tk-ink);
}

.tk-drawer__link:active {
background: var(--tk-surface);
}

.tk-drawer__link i {
font-style: normal;
  color: var(--tk-ink-3);
  font-size: 13px;
}

.tk-drawer__sub {
display: flex;
  flex-direction: column;
  padding-inline-start: 10px;
}

.tk-drawer__sub a {
display: flex;
  align-items: center;
  min-height: 42px;
  padding-inline: 10px;
  border-inline-start: 1px solid var(--tk-line-2);
  font-size: 14px;
  color: var(--tk-ink-2);
}

@media (max-width: 991px) {
  :root {
  --tk-gutter: 18px;
  }
  
  .tk-hd__inner {
  height: 58px;
      gap: 10px;
  }
  
  .tk-burger {
  display: inline-flex;
  }
  
  .tk-nav, .tk-search {
  display: none;
  }
  
  .tk-brand {
  font-size: 17px;
      margin-inline-end: auto;
  }
  
  .tk-hd__act {
  gap: 0;
  }
  
  .tk-ico--search {
  display: inline-flex;
  }
  
  .tk-user__btn span {
  display: none;
  }
  
  .tk-user__btn {
  padding: 0;
      gap: 0;
      background: none;
  }
  
  .tk-user__btn:hover {
  background: none;
  }
}
