/**
 * assets/header/header.css - 全站统一顶部导航栏样式
 * 由 header-loader.js 动态注入的 header-template.html / breadcrumb-template.html 共用
 */



.page-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.header-container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    gap: 16px;
    border-radius: 8px;
    transition: opacity 0.2s;
    white-space: nowrap;
    min-width: 0;
}

.header-brand:hover {
    opacity: 0.85;
}

.header-brand:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.header-brand .logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.header-brand .brand-divider {
    width: 1px;
    height: 40px;
    background: #cbd5e1;
    flex-shrink: 0;
}

.header-brand .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-brand .brand-title {
    font-family: "Source Han Serif SC", "Source Han Serif CN", "Noto Serif CJK SC", "STZhongsong", "华文中宋", "Songti SC", "SimSun", serif;
    font-size: 26px;
    font-weight: 800;
    color: #991b1b;
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3.5px;
    line-height: 1.2;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    filter: drop-shadow(0 1px 1px rgba(185, 28, 28, 0.12));
    transition: all 0.2s ease;
}

@supports not (-webkit-background-clip: text) {
    .header-brand .brand-title {
        color: #991b1b;
        background: none;
    }
}

.header-brand .brand-subtitle {
    font-size: 13px;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-badges img {
    height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* 面包屑导航 */
.breadcrumb-wrap {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumb-inner {
    width: 1200px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-inner a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-inner a:hover {
    text-decoration: underline;
}

.breadcrumb-hotline {
    font-weight: 600;
    color: #C01D02;
}

/* 手机端：只保留左上角 logo 与「现代信息中心」字样，徽章、分隔线全部隐藏，标题单行不换行 */
@media (max-width: 768px) {
    .header-container { padding: 10px 15px; gap: 12px; }
    .header-brand { gap: 10px; }
    .header-brand .logo-img { height: 40px; }
    .header-brand .brand-divider { display: none; }
    .header-brand .brand-title { font-size: 20px; letter-spacing: 2px; }
    .header-brand .brand-subtitle { font-size: 11px; }
    .header-badges { display: none; }
}

/* 窄屏：logo 与「现代信息中心」上下分布，logo 缩小、标题加大 */
@media (max-width: 576px) {
    .header-container { padding: 10px 12px; }
    .header-brand { flex-direction: column; align-items: flex-start; gap: 5px; }
    .header-brand .logo-img { height: 24px; }
    .header-brand .brand-title { font-size: 17px; letter-spacing: 2px; }
}

@media (max-width: 380px) {
    .header-brand .logo-img { height: 20px; }
    .header-brand .brand-title { font-size: 14px; letter-spacing: 1px; }
}
