/* ============================================================
   yjg111.com — 昊予宝科技重庆有限公司
   全局主题（靛蓝 · 珊瑚橙 · 冷白）
   作用域：顶部信息条 / 深色吸顶主头部 / 移动抽屉 / CTA 卡 / 深色页脚
   命名空间：hy_    （不影响通用 zh_ 组件样式）
   ============================================================ */

/* ---------- 品牌标识 ---------- */
.hy_brand { display: flex; align-items: center; gap: 11px; flex: none; }
.hy_brand_mark {
    width: 42px; height: 42px; flex: none;
    display: block; border-radius: 27%;
    box-shadow: 0 6px 16px rgba(47, 75, 216, .35);
    transition: transform .25s;
}
.hy_brand:hover .hy_brand_mark { transform: translateY(-1px) rotate(-4deg); }
.hy_brand_txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hy_brand_txt b { font-size: 16.5px; font-weight: 700; color: #fff; letter-spacing: .2px; white-space: nowrap; }
.hy_brand_txt i { font-size: 11px; font-style: normal; color: rgba(255, 255, 255, .48); letter-spacing: 2.2px; }

/* ---------- ① 顶部信息条（浅色，与旧版深色顶条相反） ---------- */
.hy_topline {
    background: var(--zh-bg-light);
    border-bottom: 1px solid var(--zh-border);
    font-size: 12.5px; color: var(--zh-text-muted);
}
.hy_topline_in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 38px; }
.hy_topline_l, .hy_topline_r { display: flex; align-items: center; gap: 14px; white-space: nowrap; min-width: 0; }
.hy_topline_l span { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.hy_topline i { color: var(--zh-primary); font-size: 12px; }
.hy_topline a { color: var(--zh-text-muted); transition: color .2s; }
.hy_topline a:hover { color: var(--zh-primary); }
.hy_join {
    display: inline-flex; align-items: center; gap: 5px;
    height: 24px; padding: 0 12px;
    background: var(--zh-accent); color: #fff !important;
    border-radius: var(--zh-radius-pill); font-weight: 600; font-size: 12px;
}
.hy_join:hover { background: var(--zh-accent-dark); }
.hy_bar_sep { width: 1px; height: 12px; background: var(--zh-border); flex: none; }

/* ---------- ② 主头部（深墨蓝 · 吸顶 · 导航内嵌） ---------- */
.hy_head {
    position: sticky; top: 0; z-index: 950;
    background: var(--zh-dark);
    box-shadow: 0 6px 24px rgba(14, 19, 48, .16);
}
.hy_head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--zh-primary) 0%, var(--zh-accent) 55%, var(--zh-primary) 100%);
}
.hy_head_in { display: flex; align-items: center; gap: 18px; height: 72px; }

.hy_nav {
    flex: 1 1 auto; display: flex; align-items: center; gap: 2px;
    overflow-x: auto; scrollbar-width: none; height: 100%;
}
.hy_nav::-webkit-scrollbar { display: none; }
.hy_nav a {
    position: relative; display: flex; align-items: center;
    height: 100%; padding: 0 12px;
    white-space: nowrap; font-size: 14.5px; font-weight: 500;
    color: rgba(255, 255, 255, .78); transition: color .2s;
}
.hy_nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    width: 0; height: 3px; border-radius: 2px; background: var(--zh-accent); transition: width .25s;
}
.hy_nav a:hover { color: #fff; }
.hy_nav a:hover::after { width: 22px; }
.hy_nav a.on { color: #fff; font-weight: 700; }
.hy_nav a.on::after { width: 26px; }

.hy_head_r { flex: none; margin-left: auto; display: flex; align-items: center; gap: 10px; }

.hy_search {
    display: flex; align-items: center;
    height: 38px; width: 192px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--zh-radius-pill);
    overflow: hidden; transition: all .25s;
}
.hy_search:focus-within { width: 250px; background: #fff; border-color: var(--zh-accent); }
.hy_search input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    padding: 0 8px 0 16px; font-size: 13.5px; color: #fff;
}
.hy_search:focus-within input { color: var(--zh-text-primary); }
.hy_search input::placeholder { color: rgba(255, 255, 255, .45); }
.hy_search:focus-within input::placeholder { color: var(--zh-text-tertiary); }
.hy_search button {
    flex: none; width: 40px; height: 100%; border: 0; cursor: pointer;
    background: transparent; color: rgba(255, 255, 255, .7); font-size: 14px; transition: color .2s;
}
.hy_search button:hover { color: var(--zh-accent); }
.hy_search:focus-within button { color: var(--zh-primary); }

.hy_cart {
    position: relative; width: 38px; height: 38px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--zh-radius-full);
    background: rgba(255, 255, 255, .09);
    color: #fff; font-size: 15px; transition: all .2s;
}
.hy_cart:hover { background: var(--zh-accent); color: #fff; transform: translateY(-1px); }
.hy_cart em {
    position: absolute; top: -4px; right: -4px;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    background: var(--zh-accent); color: #fff;
    font-size: 10px; font-style: normal; font-weight: 700;
    border-radius: var(--zh-radius-pill); border: 2px solid var(--zh-dark);
}
.hy_cart:hover em { background: #fff; color: var(--zh-accent); }

.hy_login {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 16px;
    background: linear-gradient(120deg, var(--zh-primary), #4A63E8);
    color: #fff; font-size: 13.5px; font-weight: 600;
    border-radius: var(--zh-radius-pill);
    transition: all .2s;
}
.hy_login:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47, 75, 216, .4); }

.hy_burger {
    display: none; width: 38px; height: 38px; flex: none; cursor: pointer;
    border: 0; border-radius: var(--zh-radius-full);
    background: rgba(255, 255, 255, .09); color: #fff; font-size: 15px;
}

/* ---------- ③ 移动端抽屉 ---------- */
.hy_mask { position: fixed; inset: 0; background: rgba(8, 11, 33, .55); z-index: 3000; display: none; }
.hy_mask.active { display: block; }
.hy_drawer {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
    background: #fff; z-index: 3001; transition: right .3s ease;
    overflow-y: auto; padding: 20px;
}
.hy_drawer.active { right: 0; }
.hy_drawer_top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hy_drawer_top b { font-size: 15px; color: var(--zh-text-primary); }
.hy_drawer_x {
    width: 34px; height: 34px; border: 0; border-radius: var(--zh-radius-full);
    background: var(--zh-bg-light); color: var(--zh-text-secondary); font-size: 14px; cursor: pointer;
}
.hy_drawer_search { display: flex; height: 40px; margin-bottom: 16px; border-radius: var(--zh-radius-pill); overflow: hidden; }
.hy_drawer_search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; font-size: 13.5px; background: var(--zh-bg-light); }
.hy_drawer_search button { width: 46px; border: 0; background: var(--zh-primary); color: #fff; cursor: pointer; }
.hy_drawer_links { margin: 0; padding: 0; list-style: none; }
.hy_drawer_links li { margin-bottom: 4px; }
.hy_drawer_links a { display: block; padding: 11px 14px; border-radius: var(--zh-radius-sm); font-size: 14.5px; color: var(--zh-text-secondary); }
.hy_drawer_links a:hover, .hy_drawer_links a.on { background: var(--zh-primary-light); color: var(--zh-primary); font-weight: 600; }
.hy_drawer_hr { height: 1px; background: var(--zh-border); margin: 14px 0; }
.hy_drawer_tel { margin-top: 16px; padding: 14px; background: var(--zh-bg-light); border-radius: var(--zh-radius-md); }
.hy_drawer_tel small { display: block; font-size: 11.5px; color: var(--zh-text-tertiary); margin-bottom: 3px; }
.hy_drawer_tel b { font-size: 18px; color: var(--zh-primary); }

/* ---------- ④ 入驻 CTA（圆角卡片，压在页脚上沿） ---------- */
.hy_cta_wrap { padding-top: var(--zh-section-gap); margin-bottom: -54px; position: relative; z-index: 2; }
.hy_cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    padding: 30px 38px;
    border-radius: var(--zh-radius-xl);
    background: linear-gradient(115deg, var(--zh-accent) 0%, #FF8C4B 46%, var(--zh-primary) 142%);
    box-shadow: 0 18px 44px rgba(255, 106, 61, .28);
}
.hy_cta::before {
    content: ""; position: absolute; right: -40px; bottom: -90px;
    width: 240px; height: 240px; border-radius: var(--zh-radius-full);
    background: rgba(255, 255, 255, .12);
}
.hy_cta::after {
    content: ""; position: absolute; right: 120px; top: -70px;
    width: 150px; height: 150px; border-radius: var(--zh-radius-full);
    background: rgba(255, 255, 255, .08);
}
.hy_cta_txt { position: relative; z-index: 1; min-width: 0; }
.hy_cta_txt h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: #fff; }
.hy_cta_txt p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.hy_cta_btn {
    position: relative; z-index: 1; flex: none;
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 28px;
    background: #fff; color: var(--zh-accent-dark);
    font-size: 15px; font-weight: 700;
    border-radius: var(--zh-radius-pill);
    transition: transform .2s, box-shadow .2s;
}
.hy_cta_btn:hover { color: var(--zh-accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* ---------- ⑤ 页脚（深墨蓝，与旧版浅灰页脚相反） ---------- */
.hy_foot { background: var(--zh-dark); color: rgba(255, 255, 255, .52); padding-top: 92px; }
.hy_foot_grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 38px; }
.hy_foot_desc { margin: 16px 0 20px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .42); }
.hy_foot_contact p {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px;
    font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .5);
}
.hy_foot_contact i { margin-top: 4px; color: var(--zh-accent); font-size: 12px; flex: none; }

.hy_foot_col h5 { margin: 0 0 18px; font-size: 15px; font-weight: 700; color: #fff; }
.hy_foot_col ul { margin: 0; padding: 0; list-style: none; }
.hy_foot_col li { margin-bottom: 11px; }
.hy_foot_col a { display: inline-block; font-size: 13px; color: rgba(255, 255, 255, .45); transition: all .2s; }
.hy_foot_col a:hover { color: var(--zh-accent); transform: translateX(3px); }

.hy_foot_tel { font-size: 25px; font-weight: 800; color: var(--zh-accent); letter-spacing: .5px; line-height: 1.2; }
.hy_foot_service p { margin: 8px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.hy_foot_badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hy_foot_badges span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; font-size: 11.5px;
    background: rgba(255, 255, 255, .07); border-radius: var(--zh-radius-pill);
    color: rgba(255, 255, 255, .55);
}
.hy_foot_badges i { color: var(--zh-accent); font-size: 11px; }

.hy_copy {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0; text-align: center;
    font-size: 12.5px; line-height: 2; color: rgba(255, 255, 255, .38);
}
.hy_copy a { color: rgba(255, 255, 255, .48); }
.hy_copy a:hover { color: var(--zh-accent); }
.hy_copy_sep { margin: 0 9px; color: rgba(255, 255, 255, .18); }
.hy_copy_addr { display: block; color: rgba(255, 255, 255, .28); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .hy_search { width: 172px; }
    .hy_nav a { padding: 0 11px; font-size: 14px; }
}
@media (max-width: 1080px) {
    .hy_nav { display: none; }
    .hy_burger { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 992px) {
    .hy_foot_grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .hy_topline_in { height: 34px; font-size: 12px; }
    .hy_topline_l span:not(:first-child), .hy_topline_l .hy_bar_sep { display: none; }
    .hy_head_in { height: 60px; gap: 10px; }
    .hy_brand_mark { width: 36px; height: 36px; }
    .hy_brand_txt b { font-size: 14.5px; }
    .hy_brand_txt i { display: none; }
    .hy_search, .hy_login { display: none; }
    .hy_cta_wrap { padding-top: 40px; margin-bottom: -46px; }
    .hy_cta { flex-direction: column; align-items: flex-start; padding: 24px 22px; border-radius: var(--zh-radius-lg); }
    .hy_cta_txt h3 { font-size: 17.5px; }
    .hy_foot { padding-top: 78px; }
    .hy_foot_grid { grid-template-columns: 1fr; gap: 26px; }
}
