/* ========================================================================== */
/* 基础样式重置与设置*/
/* ========================================================================== */

/* 全局重置 */
*,
*:before,
*:after {
    box-sizing: inherit;
}

:root {
    box-sizing: border-box;
    /* 滚动条颜色变量（fehey.com 风格，Sand 色系） */
    --scrollbar-thumb: hsl(50, 2.0%, 55.7%);
    --scrollbar-thumb-hover: hsl(55, 1.7%, 51.9%);
}

/* ========================================================================== */
/* 全局滚动条样式（fehey.com 风格）*/
/* ========================================================================== */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
    border-radius: 9px;
    background-color: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-track-piece {
    display: none;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
    min-height: 50px;
    min-width: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

::-webkit-resizer,
::-webkit-scrollbar-corner {
    display: none;
}

/* 移动端保持滑块原长 */
@media (max-width: 768px) {
    ::-webkit-scrollbar-thumb {
        min-height: auto;
        min-width: auto;
    }
}

body {
    font-family: 'Default', 'Microsoft YaHei', 'tahoma', 'arial';
    padding: 0;
    margin: 0;
}

/* HTML5语义化标签支持 */
article,
aside,
dialog,
footer,
header,
section,
nav,
figure,
menu {
    display: block;
}


/* ========================================================================== */
/* 字体*/
/* ========================================================================== */

@font-face {
    font-family: 'Default';
    src: url(../fonts/Default.woff2);
    font-display: swap;
}

@font-face {
    font-family: '三极素纤简体';
    src: url(../fonts/三极素纤简体.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft-Bold';
    src: url(../fonts/Minecraft-Bold.otf);
    font-display: swap;
}

/* ========================================================================== */
/* 文本元素样式*/
/* ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
    padding: 10px;
    display: block;
    user-select: none;
}

h3 {
    color: rgb(204, 127, 140);
}

li {
    list-style: none;
}

dl {
    display: inline-block;
}

del {
    text-decoration-color: #000000;
    text-decoration-thickness: 8px;
}

br,
p {
    user-select: none;
}

/* ========================================================================== */
/* 代码块样式*/
/* ========================================================================== */

code {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 3px 5px;
    font-family: monospace;
    color: #333;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: auto;
}

/* ========================================================================== */
/* 按钮样式*/
/* ========================================================================== */

button {
    display: block;
    margin: 0 auto;
    border: none;
    cursor: pointer;
    transition: background-color .3s ease-in-out;
}

/* ========================================================================== */
/* 链接样式*/
/* ========================================================================== */

a {
    text-decoration: none;
    transition: all 0.3s ease-in;
    padding: .6rem;
    display: inline-block;
    font-size: 18px;
    line-height: 27px;
}

section a:link {
    color: skyblue;
}

section a:visited {
    color: #BCB399;
}

section a:hover {
    background: rgb(255, 165, 0);
    border-radius: 0.6rem;
    color: white;
}

/* ========================================================================== */
/* 文本选择样式*/
/* ==========================================================================*/

::selection,
::-moz-selection,
::-webkit-selection {
    background: rgb(10, 224, 240);
    color: #333;
}

a::selection {
    color: white;
    background-color: skyblue;
}

span::selection {
    color: rgb(14, 49, 161);
    background-color: rgb(235, 229, 229);
}