/* ============================================================
   头部滚动收缩（桌面端）
   - 只作用于 .site-header 上的 is-slim 状态，不覆盖 common.css 的任何规则
   - 触发：页面下滚 88px 后收成紧凑条（隐藏城市工具条、LOGO 60→42、搜索框变矮、发布按钮变小、导航条 44→38）
   ============================================================ */
@media (min-width: 992px) {

    .site-header { transition: box-shadow .25s ease; }

    .header-toolbar {
        max-height: 40px;
        overflow: hidden;
        transition: max-height .3s ease, opacity .25s ease, border-color .25s ease;
    }
    .header-main { transition: padding .25s ease; }
    .logo-icon  { transition: height .25s ease; }
    .search-input { transition: padding .25s ease, font-size .25s ease; }
    .search-btn   { transition: padding .25s ease, font-size .25s ease; }
    .btn-post     { transition: padding .25s ease, font-size .25s ease, box-shadow .25s ease; }
    .site-nav-inner { transition: height .25s ease; }
    .nav-home, .nav-links a { transition: font-size .2s ease, padding .25s ease; }

    /* ---------- 收缩态 ---------- */
    .site-header.is-slim {
        box-shadow: 0 2px 14px rgba(16, 24, 40, .10);
    }
    .site-header.is-slim .header-toolbar {
        max-height: 0;
        opacity: 0;
        border-bottom-color: transparent;
    }
    .site-header.is-slim .header-main {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .site-header.is-slim .logo-icon { height: 42px; }
    .site-header.is-slim .search-form { box-shadow: 0 3px 12px rgba(59, 109, 246, .12); }
    .site-header.is-slim .search-input {
        padding: 8px 16px;
        font-size: 14px;
    }
    .site-header.is-slim .search-btn {
        font-size: 14px;
        padding: 0 22px;
    }
    .site-header.is-slim .btn-post {
        padding: 9px 18px;
        font-size: 14px;
        box-shadow: 0 3px 10px rgba(245, 63, 63, .22);
    }
    .site-header.is-slim .site-nav-inner { height: 38px; }
    .site-header.is-slim .nav-home {
        font-size: 14px;
        padding: 0 18px;
    }
    .site-header.is-slim .nav-links a { font-size: 14px; }
}
