/* =====================================================================
   贵州黄氏酒厂 · 全站统一头部（顶栏 / logo + 搜索 + 二维码 / 居中导航）
   所有页面（index + 5 个子页）共用本文件，类名统一 .hd- 前缀
   ===================================================================== */

.hd{
  position:relative;
  background:#fff;
  --hd-blue:#c0272d;
  --hd-blue-d:#8c171d;
  --hd-text:#302f2d;
  --hd-sub:#91918d;
}
.hd-wrap{max-width:1200px;margin:0 auto;padding:0 20px;}
.hd a{text-decoration:none;}

/* ---------- 顶栏 ---------- */
.hd-top{background:#f6f6f4;border-bottom:1px solid #e7e7e4;font-size:12px;color:var(--hd-sub);line-height:34px;}
.hd-top .hd-wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.hd-top-l,.hd-top-r{display:flex;align-items:center;min-width:0;white-space:nowrap;}
.hd-top a{color:var(--hd-sub);padding:0 8px;}
.hd-top a:hover{color:var(--hd-blue);}
.hd-top .sp{color:#a1a19b;padding:0 2px;}
.hd-top .tel{color:#575752;font-weight:600;letter-spacing:.3px;}
.hd-top .follow{padding:0 4px 0 8px;}
.hd-top .dot{display:inline-block;width:13px;height:13px;border-radius:50%;margin-left:5px;vertical-align:-2px;}
.hd-top .dot.g{background:#b23941;}
.hd-top .dot.r{background:#d8352a;}

/* ---------- 主栏：logo / 搜索 / 二维码 ---------- */
.hd-main{padding:16px 0 14px;}
.hd-main .hd-wrap{display:flex;align-items:center;gap:54px;}
.hd-logo{flex:0 0 auto;}
.hd-logo img{display:block;width:236px;height:auto;}

.hd-search{flex:1 1 auto;max-width:520px;min-width:0;}
.hd-search form{display:flex;height:40px;border:1px solid var(--hd-blue);background:#fff;}
.hd-search input{
  flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;
  padding:0 14px;font-size:14px;color:var(--hd-text);
}
.hd-search input::placeholder{color:#aeaea8;}
.hd-search button{
  flex:0 0 86px;border:0;background:var(--hd-blue);color:#fff;
  font-size:15px;letter-spacing:3px;cursor:pointer;
}
.hd-search button:hover{background:var(--hd-blue-d);}
.hd-hot{margin-top:8px;font-size:12px;color:#ababa7;line-height:1.6;}
.hd-hot a{color:#ababa7;margin-right:12px;}
.hd-hot a:hover{color:var(--hd-blue);}

.hd-qr{display:flex;gap:16px;margin-left:auto;flex:0 0 auto;}
.hd-qr>div{text-align:center;}
.hd-qr img{display:block;width:76px;height:76px;background:#fff;border-radius:3px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;}
.hd-qr span{display:block;margin-top:5px;font-size:11px;color:#ababa7;}
.hd-qr{align-items:flex-start;}
.hd-tel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:76px;width:110px;padding:0 6px;background:#f8f8f6;border:1px solid #f3f4f3;border-radius:6px;box-sizing:border-box;transition:.2s;}
.hd-tel:hover{background:#ebeceb;border-color:#dcdcd8;}
.hd-tel-ico{display:flex;align-items:center;justify-content:center;}
.hd-tel-ico svg{width:20px;height:20px;stroke:#c0272d;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.hd-tel-lb{font-size:10.5px;color:#93938d;letter-spacing:0;line-height:1;white-space:nowrap;}
.hd-tel-no{font-size:12.5px;font-weight:800;color:#c0272d;letter-spacing:0;line-height:1.2;font-variant-numeric:tabular-nums;text-decoration:none;white-space:nowrap;}
.hd-tel-no:hover{color:#8c171d;}

.hd-burger{display:none;}

/* ---------- 导航 ---------- */
.hd-nav{background:#fff;border-top:1px solid #f0f0ef;border-bottom:1px solid #eaebe8;}
.hd-nav .hd-wrap{display:flex;justify-content:center;align-items:center;height:52px;gap:0;overflow-x:auto;scrollbar-width:none;}
.hd-nav .hd-wrap::-webkit-scrollbar{display:none;}
.hd-nav a{
  position:relative;flex:0 0 auto;height:52px;line-height:52px;padding:0 22px;
  font-size:16px;color:var(--hd-text);white-space:nowrap;
}
.hd-nav a:hover{color:var(--hd-blue);}
.hd-nav a.is-active{color:var(--hd-blue);font-weight:600;}
.hd-nav a.is-active::after{
  content:"";position:absolute;left:22px;right:22px;bottom:-1px;height:3px;
  background:var(--hd-blue);border-radius:2px;
}

/* ---------- 中屏 ---------- */
@media (max-width:1280px){
  .hd-logo img{width:214px;}
  .hd-search{max-width:440px;}
}

/* ---------- 平板 / 手机 ---------- */
@media (max-width:992px){
  .hd-top{line-height:32px;}
  .hd-top .hide-s{display:none;}
  .hd-top-r{display:none;}
  .hd-top a{padding:0 6px;}

  .hd-main{padding:10px 0 12px;}
  .hd-main .hd-wrap{flex-wrap:wrap;gap:10px;position:relative;}
  .hd-logo img{width:180px;}
  .hd-qr{display:none;}
  .hd-search{flex:0 0 100%;max-width:none;order:3;}
  .hd-search form{height:38px;}
  .hd-search button{flex:0 0 74px;font-size:14px;letter-spacing:2px;}
  .hd-hot{margin-top:6px;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .hd .hd-burger{
    display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
    order:0;flex:0 0 auto;
    width:42px;height:38px;border:1px solid #a1a19b;border-radius:6px;background:#fff;
    margin:0 0 0 auto;padding:0;cursor:pointer;
  }
  .hd .hd-burger i{display:block;width:18px;height:2px;border-radius:2px;background:var(--hd-blue);transition:.2s;}
  .hd .hd-burger[aria-expanded="true"] i:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .hd .hd-burger[aria-expanded="true"] i:nth-child(2){opacity:0;}
  .hd .hd-burger[aria-expanded="true"] i:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .hd-nav{display:none;}
  .hd-nav.is-open{
    display:block;position:absolute;left:0;right:0;top:100%;z-index:70;
    background:#fff;border-top:1px solid #f0f0f0;
    box-shadow:0 14px 28px rgba(20,20,20,.14);
  }
  .hd-nav.is-open .hd-wrap{display:block;height:auto;overflow:visible;padding:0;}
  .hd-nav.is-open a{
    display:block;height:46px;line-height:46px;padding:0 20px;
    border-bottom:1px solid #f1f1f0;font-size:15px;
  }
  .hd-nav.is-open a.is-active{background:#fcfcfb;}
  .hd-nav.is-open a.is-active::after{display:none;}
}

@media (max-width:576px){
  .hd-wrap{padding:0 12px;}
  .hd-logo img{width:156px;}
  .hd-main{padding:8px 0 10px;}
  .hd-hot{display:none;}
}

/* 导航「联系我们（免费拿样）」后缀 */
.hd-nav a.nav-kf .nf{font-size:12px;color:#c0272d;letter-spacing:0;margin-left:1px;}
.hd-nav a.nav-kf:hover .nf{color:#9e1b21;}
