/* Header 模块 - 所有 header 变体共用的基础样式 */
.mod-header { text-align: center; padding: 40px 20px; }
.mod-header__brand { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.mod-header__logo { height: 48px; width: auto; }
.mod-header__name { font-size: 24px; font-weight: 800; color: var(--dark, #111); }
.mod-header__slogan { color: var(--primary, #2563eb); margin-top: 10px; font-size: 15px; }
/* v1 搜索框：与 brand/slogan 一同居中堆叠，把原本只有两行内容的空旷 header 撑起来 */
.mod-header__search { max-width: 420px; margin: 16px auto 0; width: 100%; }
.mod-header__search-input {
    width: 100%; box-sizing: border-box; padding: 10px 16px; font-size: 14px;
    border: 1px solid var(--color-tint-border, #e5e7eb); border-radius: var(--radius-base, 8px);
    background: var(--color-tint, #fff); color: var(--text-heading, #111); outline: none;
}
.mod-header__search-input::placeholder { color: var(--text-meta, #999); }
.mod-header__search-input:focus { border-color: var(--color-primary, #2563eb); }

/* 变体01专属修饰：无 */

/* ===== header02: 左Logo横向单行布局 ===== */
.mod-header--v2 { text-align: left; padding: calc(var(--spacing-unit, 8px) * 2) 20px; display: flex; align-items: center; gap: calc(var(--spacing-unit, 8px) * 3); flex-wrap: wrap; }
.mod-header__row-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mod-header__row-logo { height: 32px; width: auto; border-radius: var(--radius-base, 6px); }
.mod-header__row-name { font-family: var(--font-family, inherit); font-size: 20px; font-weight: 800; color: var(--text-heading, var(--color-dark, #111)); }
.mod-header__row-slogan { font-family: var(--font-family, inherit); font-size: 13px; color: var(--color-primary, var(--primary, #2563eb)); padding-left: calc(var(--spacing-unit, 8px) * 2); border-left: 1px solid #e5e7eb; }

/* ===== header03: 文字强调型 ===== */
.mod-header--v3 { text-align: left; padding: calc(var(--spacing-unit, 8px) * 3) 20px; }
.mod-header__text-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mod-header__text-icon { height: 28px; width: auto; }
.mod-header__text-name-large { font-family: var(--font-family, inherit); font-size: 30px; font-weight: 900; color: var(--text-heading, var(--color-dark, #111)); letter-spacing: .5px; }
.mod-header__text-slogan-small { font-family: var(--font-family, inherit); font-size: 12px; color: var(--text-meta, #9ca3af); margin: 4px 0 0; }

/* ===== header04: 分割线并列型 ===== */
.mod-header--v4 { text-align: left; padding: calc(var(--spacing-unit, 8px) * 2.5) 20px; display: flex; align-items: center; gap: calc(var(--spacing-unit, 8px) * 2); flex-wrap: wrap; }
.mod-header__divided-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mod-header__divided-logo { height: 36px; width: auto; }
.mod-header__divided-name { font-family: var(--font-family, inherit); font-size: 22px; font-weight: 800; color: var(--text-heading, var(--color-dark, #111)); }
.mod-header__divided-line { display: inline-block; width: 1px; height: 24px; background: #d1d5db; }
.mod-header__divided-slogan { font-family: var(--font-family, inherit); font-size: 14px; color: var(--color-primary, var(--primary, #2563eb)); }

/* ===== header05: 藏蓝红配色横向布局 ===== */
.mod-header--v5 { background: var(--color-dark, #1e2a44); display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; flex-wrap: wrap; gap: 8px; }
.mod-header__brand--v5 { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mod-header__logo--v5 { height: 32px; width: auto; }
.mod-header__name--v5 { color: #e2384d; font-weight: 700; font-size: 18px; }
.mod-header__slogan--v5 { color: rgba(255,255,255,.7); font-size: 13px; margin: 0; }

/* ===== header06: 深色紫蓝渐变，合体导航版 ===== */
.mod-header--v6 { background: var(--color-dark, #0d0d14); padding: 14px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.mod-header__brand--v6 { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.mod-header__logo--v6 { height: 32px; width: 32px; border-radius: 8px; object-fit: cover; }
.mod-header__name--v6 { color: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; }
.mod-header__nav--v6 { display: flex; gap: 20px; flex: 1; }
.mod-header__navlink--v6 { color: rgba(255,255,255,.65); text-decoration: none; font-size: 14px; white-space: nowrap; transition: color .2s; }
.mod-header__navlink--v6:hover { color: #fff; }
.mod-header__navlink--v6.is-active { color: #c4b5fd; font-weight: 600; }
.mod-header__search--v6 { flex-shrink: 0; }
.mod-header__search-input--v6 { background: rgba(255,255,255,.08); border: none; color: #fff; padding: 7px 14px; border-radius: 20px; font-size: 13px; width: 140px; }
.mod-header__search-input--v6::placeholder { color: rgba(255,255,255,.4); }
.mod-header__mobile-toggle--v6 { display: none; background: none; border: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; }
.mod-header__mobile-toggle--v6 span { width: 20px; height: 2px; background: #c4b5fd; display: block; }
.mod-header__mobile-list--v6 { display: none; }
@media (max-width: 768px) {
    .mod-header--v6 { flex-wrap: wrap; }
    .mod-header__nav--v6, .mod-header__search--v6 { display: none; }
    .mod-header__mobile-toggle--v6 { display: flex; margin-left: auto; }
    .mod-header--v6.is-open .mod-header__mobile-list--v6,
    .mod-header__mobile-list--v6.is-open-target { display: block; }
}

/* ===== header06 修复: 导航栏改为紧贴品牌区右侧，不再撑满留白 ===== */
.mod-header--v6 { justify-content: space-between; }
.mod-header__nav--v6 { flex: 0 1 auto; margin-left: auto; margin-right: 16px; }

/* ===== header06 修复3: 导航绝对定位,真正相对页面居中,不受Logo/搜索框有无影响 ===== */
.mod-header--v6 { position: relative; display: flex; justify-content: space-between; }
.mod-header__nav--v6 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }

/* ===== header08: 深蓝配橙黄，合体导航版（配套hero.stats_dashboard） ===== */
.mod-header--v8 { position: relative; background: var(--color-dark, #181430); display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.mod-header__brand--v8 { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.mod-header__logo--v8 { height: 26px; width: 26px; border-radius: 50%; object-fit: cover; }
.mod-header__name--v8 { color: #f5a623; font-weight: 700; font-size: 15px; white-space: nowrap; }
.mod-header__nav--v8 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 18px; }
.mod-header__navlink--v8 { color: rgba(255,255,255,.6); text-decoration: none; font-size: 12px; white-space: nowrap; }
.mod-header__navlink--v8.is-active { color: #f5a623; border-bottom: 2px solid #f5a623; padding-bottom: 2px; }
.mod-header__search--v8 { flex-shrink: 0; }
.mod-header__search-input--v8 { background: rgba(255,255,255,.08); border: none; color: #fff; padding: 6px 12px; border-radius: 16px; font-size: 12px; width: 100px; }
.mod-header__mobile-toggle--v8 { display: none; background: none; border: none; flex-direction: column; gap: 4px; cursor: pointer; }
.mod-header__mobile-toggle--v8 span { width: 18px; height: 2px; background: var(--color-tint, #f5a623); display: block; }
.mod-header__mobile-list--v8 { display: none; }
@media (max-width: 768px) {
    .mod-header__nav--v8, .mod-header__search--v8 { display: none; }
    .mod-header__mobile-toggle--v8 { display: flex; }
}

/* ===== header08 修复: 补充遗漏的手机端菜单展开CSS规则 ===== */
.mod-header--v8.is-open .mod-header__mobile-list--v8 { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-dark, #181430); padding: 10px 20px; gap: 12px; z-index: 10; }
.mod-header--v8.is-open .mod-header__mobile-list--v8 a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.mod-header--v8.is-open .mod-header__mobile-list--v8 a.is-active { color: #f5a623; font-weight: 600; }
