@import url("css/img-row.css");
@import url("css/tab.css");
@import url("css/card-row.css");
@import url("css/library-card.css");
@import url("css/drag-to-move.css");
@import url("css/drag-sort.css");
@import url("css/ref.css");

:root {
    --bg: #fafafa; /*#FAF9F6*/
    --bg-card: #f5f5f5;
    --bg-dark:#212121;
    --text: #424242;/*#333333*/
    --border: #e0e0e0; 
    --theme-color: #212121 /*#B55B39*/
    --theme-hover: #000000; /*#8C3A22*/
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
            Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

strong {
    font-weight: 500;
}

body {
    margin: 80px;
    font-family: var(--font-sans);
    line-height: 1.6;
}
@media (max-width: 600px) {
    body {
        margin: 30px;
        /* 手机端的 margin 变小 */
    }
    pre,
    pre code {
        white-space: pre-wrap;
        /* 保留缩进/换行，同时允许自动换行 */
        overflow-wrap: anywhere;
        /* 很长的单词/连续字符也能断开 */
        word-break: break-word;
        /* 兼容性兜底 */
    }
    .one-unit {
        height: 3rem;
        width: 4rem;
    }
}



html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'TsangerJinKai', sans-serif;
}



/* 字体 */
h1,h2 {
    font-weight: 600;
}

h3,h4 {
    font-weight: 500;
}
p,span {
    font-weight: 300;
}

/* 去掉原点 */
li {
    list-style-type: none;
}

a:link, a:visited {
    color: var(--theme-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 300;
}

a:hover {
    color: var(--theme-hover);
}


/* 分割线 */
hr {
    border: none;
    border-top: 1px solid var(--border) 
}

nav{
    display: flex;
    gap: 30px;
}

.nav-link{
    font-size: 30px;
    font-weight: 400;
}

.nav-link[aria-current="page"] {
    color: var(--theme-hover);
    font-weight: 700;
}

a:link,
a:visited {
    color: var(--theme-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--theme-hover);
}
/* 取消blog-list中a标签的样式 */
.blog-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-list a{
    color: #333333;
    display: block;
}
.blog-list a:hover {
    color: #111;
}
.text-2xs{
    font-size: 12px;
}