/* 这里是KONG_空的个人主页 */

/* 引入字体文件，声明：使用了小米MiSans字体 */
@font-face {
    font-family: 'MiSansVF';
    src: url('fonts/MiSansVF.woff2') format('woff2'),
         url('fonts/MiSansVF.ttf') format('truetype');
    font-display: swap;
}

/* CSS全局变量 */
/* 请在var.css中定义 */

/* body样式 */
body {
    font-family: 'MiSansVF',sans-serif;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: default;
    transition: all 0.3s ease;
}

/* 全局文本选中样式 */
::selection {
    background-color: var(--selection-color);
    color: var(--bg-color);
}

/* 页面顶部的线 */
.topLine {
    width: 100%;
    height: 10px;
    background-color: var(--theme-color);
}

/* app样式 */
.app {
    width: 100%;
    max-width: 800px;
}

/* 页面header */
.header {
    width: calc(100% - 20px);
    height: 100px;
    margin: 20px 10px 15px 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* 头像 */
.header-hp {
    width: 30%;
    max-width: 100px;
    height: 100px;
    box-sizing: border-box;
    border: 5px solid var(--theme-color);
    border-radius: 100px;
    background-color: var(--theme-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-hp img {
    width: 100px;
    height: 100px;
    user-select: none;
    -webkit-user-drag: none;
}

/* 两文字容器 */
.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-text-name {
    font-size: clamp(16px, 11vw, 30px);
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    color: var(--theme-color);
    white-space: nowrap;
}

.header-text-saying {
    font-size: clamp(12px,4vw,16px);
    font-weight: 300;
    font-variation-settings: 'wght' 300;
}

/* 个人简介 */
.personalInfo {
    margin: 0 10px;
    font-size: 15px;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
}

/* main */
.main {
    width: calc(100% - 20px);
    margin: 30px 10px;
}

.main-container {
    width: 100%;
    margin-bottom: 15px;
}

.main-title {
    font-size: 20px;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
}

.main-items {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.main-item {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    box-sizing: border-box;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

/* 页脚 */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 300;
    font-variation-settings: 'wght' 300;
    margin-bottom: 20px;
}

/* 网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--body-bg-color);
    background-image: 
        /* 主网格线 */
        linear-gradient(rgba(100, 100, 100, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 100, 100, 0.08) 1px, transparent 1px),
        /* 次网格线 */
        linear-gradient(rgba(120, 120, 120, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 120, 120, 0.05) 1px, transparent 1px);
    
    background-size: 
        60px 60px,  /* 主网格大小 */
        60px 60px,
        20px 20px,  /* 次网格大小 */
        20px 20px;
    
    /* 微妙的网格移动动画 */
    animation: gridMove 120s linear infinite;
}

[data-theme="dark"] body::before {
    background-image: 
        linear-gradient(rgba(200, 200, 200, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(220, 220, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 220, 220, 0.05) 1px, transparent 1px);
}

@keyframes gridMove {
    0% {
        background-position: 
            0 0,
            0 0,
            10px 10px,
            10px 10px;
    }
    100% {
        background-position: 
            800px 800px,
            800px 800px,
            810px 810px,
            810px 810px;
    }
}
/* ↑↑↑网格背景↑↑↑ */

/* 超链接样式 */
a {
    text-decoration: none;
    color: var(--text-color);
}

a:visited {
    color: var(--text-color);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 100px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-color);
}

/* main里面的按钮 */
.main-btn-img {
    width: 15px;
    height: 15px;
    margin-right: 4px;
    border-radius: 4px;
    -webkit-user-drag: none;
}