@charset "utf-8";

/**
 * 政府信息公开列表页 · 手机端方案 B
 * 仅 max-width:767px 生效；桌面端零改动。
 * 依赖线上结构：.side_info / .info-tree / .col-md-3 + .col-md-9
 */

.gk_path_bar {
  display: none;
}

@media (max-width: 767px) {
  .gk-mobile-row {
    display: flex;
    flex-direction: column;
  }

  .gk_path_bar {
    display: flex;
    align-items: center;
    order: 1;
    position: sticky;
    top: 0;
    z-index: 30;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #d7e6f5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
  }

  .gk_path_bar .gk_path_text {
    min-width: 0;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a5c;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gk_path_bar .gk_path_text em {
    font-style: normal;
    color: #224b7f;
  }

  .gk_path_bar .gk_path_arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    position: relative;
  }

  .gk_path_bar .gk_path_arrow::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 5px 0 5px;
    border-color: #666 transparent transparent transparent;
    transition: transform 0.15s;
  }

  .gk_path_bar.is-open .gk_path_arrow::before {
    transform: rotate(180deg);
  }

  /* 默认收起左侧栏目树，点击吸顶路径后再展开 */
  .gk-mobile-row > .col-md-3 {
    display: none;
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    padding-left: 0;
    padding-right: 0;
    max-height: 58vh;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e5eaf0;
    border-radius: 6px;
    background: #fff;
  }

  .gk-mobile-row > .col-md-3.gk-open {
    display: block;
  }

  .gk-mobile-row > .col-md-9 {
    order: 3;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .gk-mobile-row .side_info {
    margin: 0;
  }

  .gk-mobile-row .info-tree a.gk-cur {
    color: #224b7f;
    font-weight: 700;
  }
}
