@charset "UTF-8";
/* ==========================================================================
   GK Mobile Header —— v.geekfei.cn（eunice 主题）
   只作用于手机/平板（≤991px），桌面左侧栏完全不受影响
   1) 品牌栏  2) 分类快捷条  3) 搜索面板  4) 抽屉遮罩与抽屉美化
   ========================================================================== */

@media only screen and (max-width: 991.98px) {

  /* ---------- 变量 ---------- */
  .gk-mh,
  .gk-chips,
  .header-area {
    --gk-bar-h: 56px;
    --gk-chip-h: 40px;
    --gk-ink: #ffffff;
    --gk-ink-2: rgba(255, 255, 255, .70);
    --gk-ink-3: rgba(255, 255, 255, .40);
    --gk-line: rgba(255, 255, 255, .09);
    --gk-accent: #ef8b64;
    --gk-accent-2: #f5ab86;
    --gk-bg: #131313;
  }

  /* ======================================================================
     1. 品牌栏
     ====================================================================== */
  .header.mobil-view.gk-mh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    padding: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--gk-line);
    background: linear-gradient(180deg, #1b1b1b 0%, #101010 100%);
    z-index: 999;
    box-sizing: border-box;
    transition: box-shadow .26s ease, background-color .26s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .header.mobil-view.gk-mh.is-solid {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .48);
  }

  .gk-mh-bar {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 14px;
    box-sizing: border-box;
  }

  /* 品牌区 */
  .gk-mh-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: var(--gk-ink);
    overflow: hidden;
  }
  .gk-mh-mark {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    -webkit-user-select: none;
    user-select: none;
    filter: drop-shadow(0 2px 5px rgba(239, 139, 100, .22));
  }
  .gk-mh-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1;
  }
  .gk-mh-name {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--gk-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gk-mh-sub {
    margin-top: 4px;
    font-family: "Dosis", "Helvetica Neue", Arial, sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .30em;
    text-transform: uppercase;
    color: var(--gk-ink-3);
    white-space: nowrap;
    overflow: hidden;
  }

  /* 右侧按钮 */
  .gk-mh-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, .84);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    float: none;
    opacity: 1;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .gk-mh-btn:active,
  .gk-mh-btn:focus {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    outline: none;
  }
  .gk-mh-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
  }

  /* 汉堡三线 */
  .gk-burger {
    display: block;
    width: 18px;
    height: 14px;
    position: relative;
  }
  .gk-burger i {
    position: absolute;
    left: 0;
    display: block;
    width: 18px;
    height: 1.8px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .18s ease, width .28s ease;
  }
  .gk-burger i:nth-child(1) { top: 0; }
  .gk-burger i:nth-child(2) { top: 6px; width: 13px; }
  .gk-burger i:nth-child(3) { top: 12px; }

  .nav-view-btn.close .gk-burger i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-view-btn.close .gk-burger i:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .nav-view-btn.close .gk-burger i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* ======================================================================
     2. 搜索面板
     ====================================================================== */
  .gk-mh-sbox {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    padding: 9px 12px 11px;
    background: #1b1b1b;
    border-bottom: 1px solid var(--gk-line);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .5);
    transform: translateY(-118%);
    opacity: 0;
    visibility: hidden;
    z-index: 1004;
    transition: transform .3s cubic-bezier(.3, .9, .3, 1), opacity .2s ease, visibility .2s;
  }
  .gk-mh.is-search .gk-mh-sbox {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .gk-sbox-form {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 6px 0 11px;
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    box-sizing: border-box;
  }
  .gk-sbox-ic {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .38);
    flex: 0 0 auto;
  }
  .gk-sbox-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 4px;
    margin: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: normal;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .gk-sbox-input::placeholder {
    color: rgba(255, 255, 255, .32);
  }
  .gk-sbox-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
  }
  .gk-sbox-go {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gk-accent-2) 0%, var(--gk-accent) 100%);
    color: #1b1207;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
  }

  /* ======================================================================
     3. 分类快捷条
     ====================================================================== */
  .gk-chips {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: 40px;
    background: #0f0f0f;
    border-bottom: 1px solid var(--gk-line);
    z-index: 998;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
    will-change: transform;
  }
  .gk-chips.is-hidden,
  body.gk-nav-open .gk-chips {
    transform: translateY(-100%);
    opacity: 0;
  }
  .gk-chips-in {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gk-chips-in::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  .gk-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 27px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: var(--gk-ink-2);
    font-size: 12.5px;
    line-height: 1;
    letter-spacing: .04em;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .gk-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .26);
  }
  .gk-chip.is-on {
    border-color: transparent;
    background: linear-gradient(135deg, var(--gk-accent-2) 0%, var(--gk-accent) 100%);
    color: #1b1207;
    font-weight: 700;
    box-shadow: 0 2px 9px rgba(239, 139, 100, .24);
  }
  .gk-chip-more {
    border-style: dashed;
    border-color: rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .5);
  }

  /* ======================================================================
     4. 抽屉遮罩 + 抽屉美化
     ====================================================================== */
  .gk-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .58);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    transition: opacity .26s ease, visibility .26s;
  }
  .gk-mask.is-on {
    opacity: 1;
    visibility: visible;
  }
  body.gk-nav-open {
    overflow: hidden;
  }

  /* 抽屉本体（手机端才可见） */
  .header-area {
    background: #0c0c0c;
    -webkit-box-shadow: -18px 0 44px rgba(0, 0, 0, .55);
    box-shadow: -18px 0 44px rgba(0, 0, 0, .55);
    border-left: 1px solid rgba(255, 255, 255, .07);
  }
  .header-area .header-content {
    background: transparent;
    padding: 74px 20px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header-area .header {
    border-bottom: 0;
    padding: 0 0 14px;
    margin-bottom: 4px;
  }
  .header-area .logo-img img {
    max-width: 132px;
    height: auto;
  }
  .header-area .logo-text {
    font-size: 22px;
    letter-spacing: .16em;
    color: #fff;
  }
  .header-area nav.navbar.main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .header-area #mainnavmenu > li {
    border-bottom: 1px solid rgba(255, 255, 255, .055);
  }
  .header-area #mainnavmenu > li:last-child {
    border-bottom: 0;
  }
  .header-area #mainnavmenu > li > a {
    display: block;
    padding: 11px 2px;
    font-size: 13.5px;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    transition: color .18s ease, padding-left .18s ease;
  }
  .header-area #mainnavmenu > li > a:hover,
  .header-area #mainnavmenu > li.current_page_item > a,
  .header-area #mainnavmenu > li.current-menu-item > a {
    color: var(--gk-accent);
    padding-left: 6px;
  }
  .header-area footer.footer {
    position: static;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    margin-top: 14px;
  }
  .header-area footer.footer .copyright-text,
  .header-area footer.footer .copyright-text p {
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .34);
  }
  /* 手机抽屉不再显示主题默认英文版权行（桌面左侧栏保留） */
  .header-area footer.footer .copyright-text {
    display: none;
  }
  .header-area footer.footer {
    padding-bottom: 10px;
  }

  /* ======================================================================
     5. 内容让位（栏 56 + 分类条 40）
     ====================================================================== */
  .main-content-area {
    padding-top: 96px;
  }

  /* 登录后台时的下移补偿 */
  body.admin-bar .header.mobil-view.gk-mh { top: 46px; }
  body.admin-bar .gk-chips { top: 102px; }
  body.admin-bar .gk-mh-sbox { top: 56px; }
}

/* 超窄屏（≤360px）微调 */
@media only screen and (max-width: 360.98px) {
  .gk-mh-name { font-size: 15px; letter-spacing: .12em; }
  .gk-mh-brand { gap: 7px; }
  .gk-mh-bar { padding-left: 11px; }
  .gk-chip { padding: 0 10px; font-size: 12px; }
}
