.darkMode {
    --header-color: #303436;
    --bg-color: #121212;
    --click-bg-color: #414141;
    --text-color: #e0e0e0;
    --cut-line-color: #485666;
    --sp-text-color: #7bcaff;
    --primary-color: #bb86fc;
    --secondary-color: #03dac6;
    --card-bg: #1e1e1e60;
    --inv: 100%;
}

.lightMode {
    --header-color: #cde3ff;
    --bg-color: #f5f5f5;
    --click-bg-color: #ebebeb;
    --text-color: #333333;
    --cut-line-color: #cbe3ff;
    --sp-text-color: #455358;
    --primary-color: #6200ee;
    --secondary-color: #018786;
    --card-bg: #ffffff60;
    --inv: 0%;
}
@font-face {
    font-family: 'EnglishFont';
    src: local("Comic Sans MS");
    unicode-range: U+0020-007F;
}

@font-face {
    font-family: 'ChineseFont';
    src: local("YouYuan");
    unicode-range: U+4E00-9FFF;
}

body {
    font-family: Segoe UI, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    font-family: 'EnglishFont', 'ChineseFont', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, span, li {
    font-weight: 500;
    transition: all 0.3s ease-out;
}
p, li {
    animation: show 1s forwards;
}
.emojiBlack{
    filter: grayscale(100%) contrast(200%) invert(var(--inv));
}
.emojiWhite {
    filter: grayscale(100%) contrast(200%) invert(calc(100% - var(--inv)));
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: static;
}

section {
    background-color: var(--card-bg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.socialLinks {
    list-style: none;
    padding: 0;
}

.socialLinks li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

#headerBox {
    position: static;
    width: calc(100% - 64px);
    left: 0;
    top: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 32px;
    padding-right: 32px;
}

header {
    position: fixed;
    text-align: center;
    width: calc(100% - 64px);
    left: 0;
    top: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 32px;
    padding-right: 32px;
    background-color: var(--header-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0.9;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

#headerLeft {
    text-align: left;
    height: 0;
    transform: translateY(-6px);
}

#headerRight {
    text-align: right;
}

#themeToggle {
    padding-top: 0;
    width: 47.5px;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease-out;
}

#themeToggle:hover {
    width: 150px;
}

.sun {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 0 0 3px #ffffff,
        0 0 0 6px transparent,
        0 0 0 9px #ffffff;
    transform: scale(0.5) rotate(180deg) translate(8px, -12px);
    transition: all 0.3s ease;
}

.moon {
    display: inline-block;
    width: 20px;
    height: 24px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 
        8px -8px 0 #ffffff,
        10px -5px 0 2px #ffffff;
    transform: scale(0.7) rotate(180deg) translate(-6px, -4px);
    transition: all 0.3s ease;
}
.title {
    text-align: center;
}

.mark {
    width: 18px;
    transform: translateY(3px);
}

.markBig {
    width: 32px;
    transform: translateY(3px);
    cursor: pointer;
}

footer {
    text-align: center;
    opacity: 0.5;
}

.copy {
    color: var(--sp-text-color);
    transition: color 0.3s;
    cursor: pointer;
}
.copy:hover {
    color: var(--primary-color);
}

.tips {
    position: fixed;
    bottom: 20px;
    right: -200px;
    padding: 10px 20px;
    background-color: #4caf4fc2;
    color: white;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.tipsShow {
    right: 20px;
    opacity: 1;
}

.subTitle {
    border-bottom: var(--cut-line-color) solid 2px;
    animation: showTitle 0.75s forwards;
}

@keyframes showTitle {
    0% {
        opacity: 0;
        transform: translateX(-100%);
        clip-path: inset(0 0 0 100%);
        width: 0;
    }
    100% {
        opacity: 100%;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
        width: 100%;
    }
}

h2{
    display: inline;
}

@keyframes show {
    0% {
        transform: translateY(5px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.curtain {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.curtain::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 0 0 9999px #000;
    animation: roundHide 2s forwards;
    pointer-events: none;
}

.curtainDiv {
    width: 100%;
    height: 0;
    white-space: nowrap;
    opacity: 0.75;
}

.curtainRound {
    position: relative;
    background-color: var(--click-bg-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: roundHide 1s forwards;
    pointer-events: none;
    overflow: hidden;
}

@keyframes roundHide {
    0% {
        width: 0;
        padding-bottom: 0;
        opacity: 1;
    }
    100% {
        width: 200%;
        padding-bottom: 200%;
        opacity: 0;
    }
}

.tagWeb, .tagJs, .tagHtml, .tagCpp, .tagC, .tagCp,.tagOther {
    display: inline-block;
    padding: 0;
    margin: 5px;
    color: #ffffff;
    border-style: solid;
    border-width: 0;
    border-radius: 5px;
    cursor: pointer;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    font-size: 12.5px;
    overflow: hidden;
    white-space: nowrap;
    width: 20px;
}
.tagWeb {
    background-color: rgba(71, 185, 71, 0.835);
}
.tagJs {
    background-color: rgba(216, 201, 68, 0.835);
}
.tagHtml {
    background-color: rgba(255, 92, 80, 0.835);
}
.tagCpp {
    background-color: rgba(80, 112, 255, 0.835);
}
.tagC {
    background-color: rgba(118, 80, 255, 0.835);
}
.tagCp {
    background-color: rgba(80, 255, 168, 0.835);
}
.tagOther {
    background-color: rgba(99, 99, 99, 0.835);
}

#bgImg {
    --pageY: 0;
    z-index: -1;
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        url('background.svg');
    background-repeat: 
        repeat;
    
    background-size: 
        auto 100%;
    
    background-position: 
        50% var(--pageY);
    opacity: 0.2;
    filter: invert(calc(100% - var(--inv))) drop-shadow(0 0 5px #ffffff17);
    transition: filter 0.3s ease-in-out;
}

#mouseTips {
    transition: opacity 0.3s ease-in-out;
    position: fixed;
    width: auto;
    height: auto;
    padding: 5px;
    border-style: solid;
    border-radius: 5px;
    border-width: 0;
    background-color: var(--bg-color);
    opacity: 0;
    pointer-events: none;
}

#mainTitle {
    white-space: nowrap;
    animation: showMainTitle 1.5s forwards;
    font-size: large;
}

@keyframes showMainTitle {
    0% {
        opacity: 0;
        transform: scale(2);
        font-size: 30px;
    }
    100% {
        opacity: 1;
        font-size: large;
    }
    
}