/* ============================================================
   Factory Hero 工厂详情页眉 —— 与 factories.html 源码样式一致
   ============================================================ */

.qing-fac-hero {
    --blue: #1b3df5;
    --navy: #0b1a3a;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

.qing-fac-hero *,
.qing-fac-hero *::before,
.qing-fac-hero *::after { box-sizing: border-box; }

.qing-fac-hero .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ---------- 整体 ---------- */
.qing-fac-hero .fac-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}

.qing-fac-hero .fac-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.qing-fac-hero .fac-hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 55%;
    background: linear-gradient(to right, var(--navy), transparent);
    z-index: 1;
}

.qing-fac-hero .fac-hero-inner {
    position: relative;
    z-index: 2;
    padding: 26px 0 30px;
}

/* ---------- 面包屑 ---------- */
.qing-fac-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9fb0d4;
    margin-bottom: 24px;
}
.qing-fac-hero .breadcrumb a {
    color: #9fb0d4;
    text-decoration: none;
}
.qing-fac-hero .breadcrumb a:hover { color: #fff; }
.qing-fac-hero .breadcrumb svg { width: 12px; height: 12px; opacity: .6; }
.qing-fac-hero .breadcrumb .current { color: #fff; }

/* ---------- 工厂信息 ---------- */
.qing-fac-hero .fac-id {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 26px;
}
.qing-fac-hero .fac-logo {
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    overflow: hidden;
}
.qing-fac-hero .fac-logo img { width: 100%; height: 100%; object-fit: contain; }
.qing-fac-hero .fac-logo .lk { font-size: 34px; font-weight: 800; color: #d8232a; line-height: 1; }
.qing-fac-hero .fac-logo .ln { font-size: 11px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }

.qing-fac-hero .fac-meta { padding-top: 4px; }
.qing-fac-hero .fac-name {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.qing-fac-hero .fac-name h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.qing-fac-hero .verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.qing-fac-hero .verified svg { width: 13px; height: 13px; }

.qing-fac-hero .fac-tag {
    font-size: 18px;
    font-weight: 600;
    color: #cdd8ee;
    margin: 8px 0 10px;
}
.qing-fac-hero .fac-loc {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #9fb0d4;
    margin: 0;
}
.qing-fac-hero .fac-loc svg { width: 16px; height: 16px; }

/* ---------- 产品分类 ---------- */
.qing-fac-hero .fac-cats-label {
    font-size: 14px;
    font-weight: 600;
    color: #cdd8ee;
    margin-bottom: 12px;
}
.qing-fac-hero .fac-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.qing-fac-hero .cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #e6ecfa;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: background .2s ease;
    text-decoration: none;
}
.qing-fac-hero .cat-chip:hover { background: rgba(255, 255, 255, .14); }
.qing-fac-hero .cat-chip svg { width: 16px; height: 16px; opacity: .9; }
.qing-fac-hero .cat-chip i { font-size: 14px; opacity: .9; }
.qing-fac-hero .cat-chip.web { margin-top: 12px; }

/* ---------- 响应式（与源码断点一致） ---------- */
@media (max-width: 820px) {
    .qing-fac-hero .fac-hero-bg { width: 100%; opacity: .3; }
    .qing-fac-hero .fac-hero-bg::before {
        width: 100%;
        background: linear-gradient(to right, var(--navy) 30%, rgba(11, 26, 58, .55));
    }
    .qing-fac-hero .fac-name h1 { font-size: 26px; }
}

@media (max-width: 560px) {
    .qing-fac-hero .container { padding: 0 15px; }
    .qing-fac-hero .fac-id { flex-direction: column; gap: 16px; }
    .qing-fac-hero .fac-logo { width: 84px; height: 84px; }
    .qing-fac-hero .fac-name h1 { font-size: 23px; }
}
