:root {

    --primary-color: #1E3650;
    --text-color: #565767;
    --pc-background-color: #f4f5f5;
    --white-color: #fff;
    --a-text-color: #a3a8ae;
    --nav-item-a-color: #4e5969;
    --nav-item-acitve-color: #55B2A3;
    --nav-item-active-bg-color: #edf8f3;
    --nav-item-normal-bg-color: #f7f8fa;
    --hr-solid-color: #d0d0d5;
    --hr-solid-content-color: #a2a9b6;
    --post-tag-bg: #e5e6eb63;
    --page-item-disable-color: #eeeeee;

    --title-color: #404040;
    --content-text-color: #24292e;
    --meta-text-color: #969696;
    --input-placeholder-color: #c5bfbf;
    --rely-text-color: #8a919f;
    --comment-time-color: #9E9C9C;
    --comment-detail-color: #515767;
    --reply-color: #8a919f;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img,
svg {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
}

h1, p {
    margin: 0;
}

/* page styles
   ========================================================================== */

.container {
    position: relative; /* 用于底部做绝对定位固定 */
    min-height: 100vh; /* 当页面数据量不足以填满页面时，底部也能在屏幕最下方 */
    background: var(--white-color);
}

/* head styles
   ========================================================================== */
.head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    z-index: 9999;
}

.head-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 65em;
    padding: 0.75em 1.5em;
}

.logo-link {
    display: flex;
    justify-content: start;
    align-items: center;
}

.logo-icon {
    width: 3em;
    height: 2em;
    margin-right: 0.5em;
}

.logo-text {
    font-size: 1.5em;
    color: #dec6ad;
}

.menu-icon {
    width: 1.5em;
    height: 1.5em;
    fill: #dec6ad;
}

.menu-btn {
    display: flex;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.search-btn {
    display: none;
}

/**
 * 用于解决 head 固定定位，脱离文档流内容覆盖问题
 */
.empty-content {
    display: block;
    height: 3.5em;
}

/* content-wrap styles
   ========================================================================== */
.content-wrap {
    padding-bottom: 4em; /* 预留 footer 空间 */
}

.hr-solid-content {
    color: var(--hr-solid-content-color);
    border: 0;
    font-size: 12px;
    padding: 1em 0;
    position: relative;
    overflow: hidden;
}

.hr-solid-content::before {
    content: attr(data-content);
    position: absolute;
    padding: 0 1ch;
    line-height: 1px;
    border: solid var(--hr-solid-color);
    border-width: 0 99vw;
    width: fit-content;
    /* for 不支持fit-content浏览器 */
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
}

nav {
    display: none; /* 移动端默认不显示分类列表 */
    overflow: hidden;
}

.nav-list {
    padding: 0.5em 0;
}

.nav-list li {
    padding: 0em 0.5em;
}

.nav-item-a {
    display: flex;
    align-items: center;
    font-size: 1.125em;
    color: var(--primary-color);

    line-height: 1.5em;
    padding: 10px 17px;
    border-radius: 4px;
}

.nav-item-a:not(.item-active):hover{
    background-color: #f9fafa;
}

.item-active{
    background-color: #f1f2f3;
}

.nav-item-a:not(.item-active):hover svg{
    fill: var(--primary-color);
}

.item-active svg{
    fill: var(--primary-color);
}


.my-svg {
    height: 0.937em;
    width: 0.937em;
    margin-right: 0.75em;
    fill: var(--primary-color);
}

/* 移动端功能按钮动画 */
[data-menu-button].is-active .rotate {
    transform: scale(1, .75) translate(1.5em, -1.375em) rotate(23deg);
}

[data-menu-button] .rotate {
    transform: rotate(0);
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #dec6ad;
    background: var(--primary-color);
    text-align: center;
    font-size: 0.75em;
    padding: 1em 0;
}

.footer span{
    display: block;
}

/**
 * pc 端样式
 */
@media (min-width: 55em) {
    .container {
        background: var(--pc-background-color);
    }

    .head {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3.5em;
        height: 3.44em;
    }

    .head-nav {
        display: flex;
        align-items: center;
    }

    .logo {
        margin-right: 2em;
    }

    .menu-btn {
        display: none;
    }

    .search-btn {
        display: flex;
    }

    .nav-main-container {
        display: flex;
        justify-content: center;
        min-width: 75em;
    }

    nav {
        display: block !important;
        width: 14.25em;
        margin-top: 1em;
        background: var(--white-color);
        border-radius: 0.25em;
        margin-right: 0.75em;
        min-height: 100vh;
    }

    .footer span{
        display: inline-block;
    }
}
