﻿/* ==========================================================================
   优采产品库站点头部样式（Version/V2025/Master/ProviderHeader.html +
   Master/ProviderNavigate.html 专用）
   --------------------------------------------------------------------------
   版式对齐老站 HealthyHouseList.aspx，样式取自 Dichan.Web/Css/public.css 里的
   头部段落（.topHFBox / .secenTop / .hedbav / .navlist），做了三处调整：
     1) 去掉对 layui.css 栅格的依赖，改用 flex 布局（V2025 页面不引 layui）
     2) 导航不再用 float:left（见文件末尾说明），改为 flex，避免父容器高度塌陷
     3) 类名统一加 pt- 前缀，避免与页面其他模块的通用类名相撞
   ========================================================================== */

/* ---------- 顶部信息条（登录态由 ^_^:WenHeadLogin 替换输出） ---------- */
.topHFBox {
    background: #f4f4f4;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
    color: #666e80;
}

.topHF {
    width: 1200px;
    margin: 0 auto;
}

.topHF a,
.topHF a:link,
.topHF a:visited {
    color: #666e80;
}

.topHF a:hover {
    color: #e60012;
}

/* ^_^:WenHeadLogin 输出的是两个 50% 宽的 div（原来靠 layui 栅格浮动，这里自己实现） */
.pt-top-row::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    overflow: hidden;
}

.pt-top-row > div {
    float: left;
    width: 50%;
    box-sizing: border-box;
}

.pt-top-row > div:last-child {
    text-align: right;
}

/* ---------- LOGO + 搜索 + 掌上优采 ---------- */
.secenTop {
    height: 80px;
    margin-top: 20px;
}

.pt-main {
    width: 1200px;
    margin: 0 auto;
}

.pt-secen-row {
    display: flex;
    align-items: flex-start;
}

.pt-logo-box {
    flex: 0 0 400px;
    max-width: 400px;
}

.pt-logo-link {
    display: flex;
    align-items: center;
    height: 80px;
}

.pt-logo-img {
    display: block;
    height: 48px;
    border: 0;
}

.pt-search-box {
    flex: 0 0 520px;
    max-width: 520px;
    padding-top: 16px;
}

.pt-search-inner {
    display: flex;
    height: 40px;
    border: 1px solid #e60012;
    background: #fff;
    box-sizing: border-box;
}

.pt-search-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    border: 0;
    outline: none;
    font-size: 14px;
    color: #222;
    background: transparent;
    box-sizing: border-box;
    font-family: inherit;
}

.pt-search-input::-webkit-input-placeholder {
    color: #b6bcc6;
}

.pt-search-button {
    flex: 0 0 80px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: #e60012;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.pt-search-button:hover {
    background: #cf0010;
}

.pt-search-hot {
    margin-top: 10px;
    font-size: 12px;
    color: #9e9e9e;
}

.pt-search-hot span {
    margin-right: 20px;
    cursor: pointer;
    position: relative;
    color: #9e9e9e;
}

.pt-search-hot span::after {
    content: "/";
    position: absolute;
    right: -12px;
    top: 0;
    color: #e60012;
}

.pt-search-hot span:last-child::after {
    display: none;
}

.pt-search-hot span:hover {
    color: #e60012;
}

.pt-qrcode-box {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

.pt-qrcode-inner {
    position: relative;
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #eae6e6;
    color: #e60012;
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
}

.pt-qrcode-icon {
    vertical-align: -2px;
    margin-right: 2px;
}

/* 二维码：默认隐藏。
   用 display 控制显隐，不要用 max-height:0 + overflow:hidden ——
   max-height 对替换元素（img）不保险，一旦 class 没挂上（本页 http 引入的编码问题曾把 class 整段吃掉）
   或样式表没加载，344px 的原图会直接撑在页面上，压住导航。元素上另有内联 display:none 兜底。 */
.pt-qrcode-img {
    position: absolute;
    left: -1px;
    top: 100%;
    width: 104px;
    height: 104px;
    display: none;
    border: 0;
    background: #fff;
    z-index: 99;
}

/* !important 是必需的：要盖掉元素上的内联 display:none（作者 !important 优先于内联普通声明） */
.pt-qrcode-inner:hover .pt-qrcode-img {
    display: block !important;
}

/* ---------- 导航（深灰底 + 当前项红底） ---------- */
.hedbav {
    background: #2b2e33;
    height: 34px;
    line-height: 34px;
    margin-top: 30px;
}

.pt-navlist {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pt-nav-item {
    flex: 0 0 auto;
    min-width: 100px;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    position: relative;
}

.pt-nav-item a,
.pt-nav-item .pt-nav-text {
    display: block;
    padding: 0 16px;
    color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 34px;
}

.pt-nav-item:hover {
    background: #3d4249;
}

.pt-nav-item.pt-nav-active,
.pt-nav-item.pt-nav-active:hover {
    background: #e60012;
}

/* 下拉 */
.pt-nav-child {
    position: absolute;
    left: 0;
    top: 34px;
    min-width: 100%;
    white-space: nowrap;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    max-height: 0;
    overflow: hidden;
    transition: max-height ease 300ms;
    z-index: 999;
    text-align: left;
}

.pt-nav-has-child:hover .pt-nav-child {
    max-height: 400px;
}

.pt-nav-child a {
    display: block;
    padding: 0 16px;
    color: #333333;
    font-size: 14px;
    line-height: 36px;
}

.pt-nav-child a:hover {
    color: #e60012;
    background: #f7f7f7;
}

/* ---------- 关于窄屏 ----------
   本页内容区是固定 1200px 布局（library.css 的 .product-library{width:1200px}），老站 HealthyHouseList.aspx 同样如此，
   所以头部也保持固定 1200px：窗口窄于 1200 时整页一起横向滚动，而不是"头部折行、内容横滚"这种半吊子状态。
   （上一版加过 @media (max-width:1240px) 折行，实测反而出现头部与内容区宽度不一致，已撤掉。） */
