/* ============================================================
   cms doorbrand0001 主题 — 导航下拉 + 标签墙（2026-09-30）
   ⚠️ 独立外部 css：模板内 <style> 会被 think-template 二次解析破坏（@media 等）
   （老板 2026-09-30 踩坑后定案：组件样式一律进外部 css，勿内联 @media）
   设计体系：奢居金 #c8a15c / 深咖金字 #4a3b21
   ============================================================ */

/* ---------- 主导航二级下拉（hover） ---------- */
.nav .nav-item-sub { position: relative; }
.nav .nav-item-sub > .nav-link { position: relative; }
.nav-sub-toggle {
  /* ⚠️ 桌面也 absolute(相对 link)：若参与流会撑宽顶级项把导航撞飞（老板 2026-09-30） */
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  color: #c8a15c;
  cursor: pointer;
  pointer-events: none; /* 桌面纯装饰箭头（hover 展开），移动端开放点击 */
}
.nav-sub-toggle .nav-caret { transition: transform .2s; display: block; }

.nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translate(0, 10px);
  min-width: 170px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  border-radius: 6px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: .22s;
  z-index: 200;
}
.nav-item-sub:hover .nav-drop,
.nav-item-sub:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}
.nav-drop a {
  display: block;
  padding: 10px 18px;
  color: #4a3b21;
  font-size: 14px;
  white-space: nowrap;
  transition: .18s;
}
.nav-drop a:hover,
.nav-drop a.active { color: #8a6520; background: rgba(200, 161, 92, .08); }

/* ---------- 标签页标签云（奢居金） ---------- */
.tags-wall { padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; list-style: none; }
.tags-wall-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(200, 161, 92, .35);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #faf6ee);
  color: #4a3b21;
  white-space: nowrap;
  transition: .25s;
}
.tags-wall-item:hover {
  border-color: #c8a15c;
  box-shadow: 0 6px 18px rgba(200, 161, 92, .22);
  transform: translateY(-2px);
  color: #8a6520;
  text-decoration: none;
}
.tw-name { font-size: 15px; font-weight: 600; color: #5b4b2e; }
.tw-count { font-size: 12px; color: #b08d4f; background: rgba(200, 161, 92, .12); padding: 2px 8px; border-radius: 20px; }
.empty-tip { color: #8a8a8a; padding: 60px 0; text-align: center; }

/* ---------- 站内搜索（header 深色导航搜索框 + 结果页再搜表单，2026-09-30） ---------- */
.header-search {
  display: flex;
  align-items: center;
  height: 32px;
  margin-left: 10px;
  border: 1px solid rgba(200, 161, 92, .35);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
  flex-shrink: 0;
}
.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  height: 100%;
  width: 132px;
  padding: 0 4px 0 13px;
  font-size: 12px;
  color: #eee;
}
.header-search input::placeholder { color: #8f8a7d; }
.header-search button {
  border: 0;
  background: transparent;
  color: #c8a15c;
  width: 34px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.header-search button:hover { color: #e5c98a; }
.search-reform {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin-bottom: 30px;
  border: 1px solid rgba(200, 161, 92, .45);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(74, 59, 33, .06);
  overflow: hidden;
}
.search-reform input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 16px;
  font-size: 14px;
  color: #4a3b21;
}
.search-reform button {
  border: 0;
  background: #c8a15c;
  color: #fff;
  width: 48px;
  align-self: stretch;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.search-reform button:hover { background: #8a6520; }

/* ---------- 移动端适配（无 hover → 箭头点击展开/收起子栏目，accordion） ----------
   ⚠️ 断点 768→991（2026-10-01）：中平板 769~991px 已切汉堡面板（style.css），子栏目必须同步走
   accordion，否则触屏无 hover 点不开子菜单；≤768 行为不变 */
@media (max-width: 991px) {
  /* ⚠️ 箭头 absolute 右上、父链接全宽：避免 flex 挤压致下划线短一截（老板 2026-09-30） */
  .nav .nav-item-sub { position: static !important; display: block; }
  /* ⚠️ 箭头 relative 父链接行定位（height:100% 相对容器会随子栏目展开拉长盖到子项，踩坑 2026-09-30） */
  /* ⚠️ display:block 必须有：门业 base .nav-link 是 inline，width 对 inline 无效 → 描边线只覆盖内容宽短一截（default 是 inline-block 故 width 生效，老板 2026-09-30） */
  .nav .nav-item-sub > .nav-link { position: relative; display: block; width: 100% !important; box-sizing: border-box; padding-right: 44px !important; }
  .nav-sub-toggle {
    pointer-events: auto;
    position: absolute;
    top: 0;
    right: 2px;
    transform: none; /* 覆盖 base translateY，钉父链接行顶 */
    width: 44px;
    height: 100%; /* 相对 .nav-link（position:relative）→ 恒停在父链接行高 */
    margin: 0;
    color: #c8a15c;
  }
  .nav-item-sub.open .nav-sub-toggle .nav-caret { transform: rotate(180deg); }
  /* 子菜单默认收起，父项 .open 时展开 */
  .nav-drop {
    display: none;
    position: static !important;
    transform: none;
    opacity: 1 !important;
    visibility: visible !important;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 2px 0 8px;
  }
  .nav-item-sub.open .nav-drop { display: block; }
  .nav-drop a { display: block; padding: 10px 14px 10px 26px; font-size: 14px; color: #5b4b2e; white-space: normal; }
  .nav-drop a:hover,
  .nav-drop a.active { color: #8a6520; background: rgba(200, 161, 92, .10); }
  /* 搜索框移动端：靠右 + 收窄 input（与汉堡按钮并排）
     ⚠️ font-size 16px 必须有：iPad Safari（769~991px 中平板）聚焦 <16px input 自动放大页面 */
  .header-search { margin-left: auto; }
  .header-search input { width: 88px; font-size: 16px; }
  .search-reform { max-width: 100%; }
}