body.light-theme,
:root {
    /* light theme color */
    --color-main: #222;
    --color-background: #fff;
    --color-text-bg: #eaeaea;
    --color-text-hover: #eeeef1;
    --color-memos-id: #536471;
    --color-img-border: #cfd9de;
    --color-tag: #2563eb;
    --color-tag-hover: #54a3ff;
    --color-fg-muted: #576061;
    --color-border-default: #d0d7de;
    --color-border-muted: #d8dee4;
    --color-post-preview: #fff;
    --color-memos-pre-bg: #f3f4f6;;
    
    /* variables for js, must be the same as these in @custom-media queries */
    --phoneWidth: (max-width: 684px);
    --tabletWidth: (max-width: 900px);
}

body.dark-theme {
    /* dark theme colors */
    --color-main: #adbac7;
    --color-background: #1c2128;
    --color-text-bg: #22272e;
    --color-text-hover: #272c32;
    --color-memos-id: #71767b;
    --color-img-border: #292a2d;
    --color-tag: #539bf5;
    --color-link: #539bf5;
    --color-border-muted: #2d333b;
    --color-post-preview: #4a4b50;
    --color-memos-pre-bg: #2d333b;
}

/* 暗色主题Mac风格代码块 */
body.dark-theme .memos__text pre {
    background: #1e1e1e;
    border: 1px solid #333333;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dark-theme .memos__text pre:before {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    border-bottom: 1px solid #404040;
}

body.dark-theme .memos__text pre code {
    color: #e6e6e6;
}

body.dark-theme .memos__text pre .copy-btn {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

body.dark-theme .memos__text pre .copy-btn:hover {
    background: rgba(30, 30, 30, 1);
    color: #ffffff;
}

body.dark-theme .memos__text pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .memos__text pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .memos__text pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (prefers-color-scheme: light) {
    body:not(.dark-theme) {
        /* light theme color */
        --color-main: #222;
        --color-background: #fff;
        --color-text-bg: #eaeaea;
        --color-text-hover: #eeeef1;
        --color-memos-id: #536471;
        --color-img-border: #cfd9de;
        --color-tag: #2563eb;
        --color-tag-hover: #54a3ff;
        --color-fg-muted: #576061;
        --color-border-default: #d0d7de;
        --color-border-muted: #d8dee4;
        --color-post-preview: #fff;
        --color-memos-pre-bg: #f3f4f6;
    }
}

@media (prefers-color-scheme: dark) {
    body:not(.light-theme) {
        /* dark theme colors */
        --color-main: #adbac7;
        --color-background: #1c2128;
        --color-text-bg: #22272e;
        --color-text-hover: #272c32;
        --color-memos-id: #71767b;
        --color-img-border: #292a2d;
        --color-tag: #539bf5;
        --color-link: #539bf5;
        --color-border-muted: #2d333b;
        --color-post-preview: #4a4b50;
        --color-memos-pre-bg: #2d333b;
    }
}
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
    margin: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
        Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei",
        "Microsoft Yahei", "Segoe UI", sans-serif, serif;
    color: var(--color-main);
    background-color: var(--color-background);
    box-sizing: border-box;
    min-width: 200px;
    max-width: 980px;
    margin: 0 auto;
    padding: 45px;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 4px; /* 滚动条宽度 */
}

::-webkit-scrollbar-track {
    background: transparent; /* 滚动条轨道背景 */
}

::-webkit-scrollbar-thumb {
    background: rgba(33, 59, 84, 0.5); /* 滚动条颜色（透明黑色） */
    border-radius: 4px; /* 滚动条圆角 */
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(42, 89, 165, 0.7); /* 鼠标悬停时的颜色 */
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin: 0;
}

.title {
    font-size: 1.5rem;
}

.pages a {
    color: var(--color-main);
    text-decoration: none;
    margin-left: 1rem;
}

.pages a:hover {
    text-decoration: underline;
}

h1 {
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    margin: .67em 0;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    font-weight: 600;
    padding-bottom: .3em;
    font-size: 2em;
    border-bottom: 1px solid var(--color-border-muted);
}

blockquote {
    margin: 1em 0;
    padding: 0 1em;
    color: var(--color-fg-muted);
    border-left: 0.25em solid var(--color-border-default);
}

#main {
    padding-top: 10px;
}

.theme-toggle {
    cursor: pointer;
}

.total {
    text-align: left;
}

.memos {
    min-height: 300px;
    text-align: left;
    width: 100%;
    line-height: 2;
    margin: 2rem 0;
}

.memos a {
    color: var(--color-link);
    text-decoration: none;
}

.memos a:hover {
    text-decoration: underline;
}

.memos ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.memos__content {
    flex-grow: 1;
    margin-left: 50px;
    position: relative;
    max-width: 100%;
    width: 100%;
}

.memos__content:before {
    content: '';
    position: absolute;
    background: url('../img/avatar.png') no-repeat;
    background-size: contain;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    left: -50px;
    top: 10px;
    border: 0;
    object-fit: cover;
}

.memos__text {
    position: relative;
    background: var(--color-text-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.timeline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 1.5rem;
}

.timeline:hover .memos__text:before {
    background: var(--color-text-hover);
    z-index: 1;
}

.timeline:hover .memos__text {
    background: var(--color-text-hover);
}

.memos__text {
    width: 100%;
    overflow-wrap: break-word;
    font-size: 1rem;
    line-height: 1.75rem;
}

.memos__text ul li {
    list-style: none;
}

.memos__text i {
    margin: 0 0.25rem;
}

.memos__text:before {
    content: "";
    position: absolute;
    top: 23px;
    left: -7px;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border-radius: 3px;
    background: var(--color-text-bg);
    z-index: 1;
}

/* Mac浏览器风格代码块容器 */
.memos__text pre {
    position: relative;
    margin: 1.5rem 0;
    max-width: 100%;
    white-space: pre-wrap;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Mac浏览器标题栏 */
.memos__text pre:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, #f7f8fa 0%, #eef0f2 100%);
    border-bottom: 1px solid #d1d5db;
    z-index: 2;
}

/* Mac经典三个点装饰 */
.memos__text pre:after {
    content: '';
    position: absolute;
    top: 12px;
    left: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 
        20px 0 0 #ffbd2e,
        40px 0 0 #28ca42;
    z-index: 3;
}

/* 代码块内容区域 */
.memos__text pre code {
    display: block;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    background: transparent;
    border: none;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #24292f;
    overflow-x: auto;
}

/* 内联代码样式 */
.memos__text code:not(pre code) {
    display: inline-block;
    border-radius: 0.25rem;
    background-color: var(--color-memos-pre-bg);
    padding: 0.125rem 0.375rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-main);
    border: 1px solid var(--color-border-muted);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Mac风格复制按钮 - 默认隐藏 */
.memos__text pre .copy-btn {
    position: absolute;
    top: 8px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 悬停时显示复制按钮 */
.memos__text pre:hover .copy-btn {
    opacity: 1;
    transform: translateY(0);
}

.memos__text pre .copy-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.memos__text pre .copy-btn.copied {
    background: #10b981;
    color: white;
    opacity: 1;
    border-color: #059669;
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Mac风格滚动条 */
.memos__text pre::-webkit-scrollbar {
    height: 8px;
}

.memos__text pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.memos__text pre::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.memos__text pre::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.memos__meta {
    margin: 0;
}

.memos__meta small {
    font-size: 0.8rem;
    font-weight: 500;
    color: #8186a2;
}

.memos__userinfo {
    display: flex;
    font-weight: 700;
    align-items: center;
}

.memos__verify {
    margin-left: 2px;
    max-width: 20px;
    max-height: 20px;
    color: #1d9bf0;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    vertical-align: text-bottom;
    position: relative;
    height: 1.25rem;
    fill: currentcolor;
    display: inline-block;
    flex-shrink: 1;
    margin-left: 4px;
}

.memos__id {
    font-size: 0.875rem;
    overflow-wrap: break-word;
    min-width: 0px;
    box-sizing: border-box;
    color: var(--color-memos-id);
    display: inline;
    white-space: pre-wrap;
    word-wrap: break-word;
    flex-shrink: 1;
    font-weight: 400;
    margin-left: 4px;
}

.resource-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.images-wrapper {
    margin-top: 0.5rem;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .images-wrapper {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

.resimg {
    width: 100%;
    overflow: hidden;
    border-radius: 0.25rem;
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
    -ms-overflow-style: none;
    scrollbar-width: none;
    height: 202px;
}

.timeline img, .resimg img {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    cursor: pointer;
    -o-object-fit: cover;
    object-fit: cover;
}

.tag-span {
    margin: 0 0.25rem;
    color: var(--color-tag);
}

.tag-span:hover {
    color: var(--color-tag-hover);
}

/* 移除加载更多按钮样式 */

.post-preview {
    max-width: 780px;
    height: 210px;
    margin: 1em auto;
    position: relative;
    display: flex;
    background: var(--color-post-preview);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .25);
}

.post-preview--meta {
    width: 75%;
    padding: 25px;
    overflow: hidden;
}

.post-preview--middle {
    line-height: 28px;
}

.post-preview--title {
    font-size: 18px;
    margin: 0 !important;
}

.post-preview--title a {
    text-decoration: none;
}

.post-preview--date {
    font-size: 14px;
    color: #999;
}

.post-preview--excerpt {
    font-size: 14px;
    line-height: 1.825;
}

.post-preview--excerpt p {
    display: inline;
    margin: 0;
}

.post-preview section {
    max-height: 75px;
    overflow: hidden;
}

.post-preview img {
    height: 210px !important;
}

.post-preview--image {
    margin: 0 !important;
    float: right;
    border-radius: 0 !important;
    border-top-right-radius: 2px !important;
    border-bottom-right-radius: 2px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


.rating {
    display: block;
    line-height: 15px;
}

.rating-star {
    display: inline-block;
    width: 75px;
    height: 15px;
    background-repeat: no-repeat;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAClCAYAAAAUAAAYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA5xJREFUeNrs3T9rFEEcxvG7qEQIglaCICKkin9AUEtBKxU7wS61VlYivgWj70TtNFj5BqzE7qxEWwsxKIoYn4UtluFmbm8nczvzm+/BjxyuDwNzu3uXD0+46f7LC5PA45Hm+WTYw1x2LRDc0jzTXB+wqMlsaLPutz8fDFjYZHYauAz3NBvt83XNnyUWNpn1nVm3OsHmsb3EomazzZnVXKMPNcc0xzUnNKc0Rzv/77fms+Z7O3vt9b1eU7bZrNN68l5zcolX4ofmsuZXTdnmMvyi2dR86Bmcac62P6vKrnVubpc0bxYE32nOab45N8YqsvPeDfcD4SOav4HjprPuu+H5BTt9LXDMfNbdLPfT678Fx6vKupt1o/O8+R3pkOaJ5/iktqx7z/qp+aq5q/nY+fczmheaK03Gs7D5rLtZdzSvA6/Ebc2u55j57HQB0TzW7AzkjiKzny6+2hlKNE8juMNcFqKBaIZndRlCNBBNgmx7ZkE0fbLtZkE0EA1EM17WuQwhGogGooFoss6296y52cNO+J6HLJoPaFdbsvA9zGerIxrPh85eWYgGooFoDiQbuAxp0UA0EVmdWbRo+ma1WbRoIBqIZtzsnHdDWjQQDUQD0WSbde5ZS2UhmtqJJtSEiVkXooFoIJre2VATJmZdiKZ2ogk1YSb8oVMvDeUPnSAaiCaPJkzMuhANRAPRQDQpsqEmTMy6EI11oolpwkA0EA1EcyDZmCYMRAPR+LMxTZjqiCamCQPRQDQQzehNGIgGooFoIJpVZ2OaMBBN7USTqgkD0UA0EE3vbKomDERTO9GkasKYJJpUTRiIBqKBaEZvwkA0EA1EA9GkyKZqwkA01olmrCYMRAPRQDR9LkO+0QmiKbAJUyTRjNWEgWggGohm9CYMRAPRQDQQzZDsWE0YiMYC0eTYhIFoIJrKiCbHJgxEY4FocmzCZEs0OTZhIBqIpjKiybEJA9FANBANROPL5tiEgWhKIJoSmzAQDURjjGhKbMJANCUQTYlNmNGIpsQmDEQD0RgjmhKbMBANRAPR1Es0JTZhIJpciMZaEwaigWgKJBprTRiIJheisdaESUo01powEA1EUyDRWGvCQDQQDURjm2isNWEgmlURzWw2q4pZIBqIJkOiCVyGJpkFolkV0ejMMvel28mIRptl7ku3IRqIpjCimfNuaJpZIBqIBqIpm2ice5Z5ZonJupvVkMRu4JW4qXnrOWY++1+AAQBw9BJSCTeN9wAAAABJRU5ErkJggg==);
    overflow: hidden;
}

.allstar10 {
    background-position: 0px 0px;
}

.allstar9 {
    background-position: 0px -15px;
}

.allstar8 {
    background-position: 0px -30px;
}

.allstar7 {
    background-position: 0px -45px;
}

.allstar6 {
    background-position: 0px -60px;
}

.allstar5 {
    background-position: 0px -75px;
}

.allstar4 {
    background-position: 0px -90px;
}

.allstar3 {
    background-position: 0px -105px;
}

.allstar2 {
    background-position: 0px -120px;
}

.allstar1 {
    background-position: 0px -135px;
}

.allstar0 {
    background-position: 0px -150px;
}

.rating-average {
    color: #777;
    display: inline-block;
    font-size: 13px;
    margin-left: 10px;
}

.spotify-wrapper>iframe {
    position: relative;
    height: 152px;
}

@media (max-width: 683px) {

    body {
        padding: 45px 50px 45px 20px;
    }

    .menu,
    .title {
        font-size: 1rem;
    }

    .memos__content {
        margin-left: 0;
    }

    .memos__text:before {
        display: none;
    }

    .memos__userinfo {
        margin-left: 30px;
    }

    .memos__content:before {
        border-radius: 25px;
        height: 25px;
        width: 25px;
        left: 15px;
        top: 15px;
        z-index: 2;
    }

    /* 移除移动端加载按钮样式 */

    .timeline ul li {
        margin-left: 0;
    }

    .timeline ul li div {
        width: calc(100vw - 75px);
        left: 30px;
        max-width: 585px;
    }

    .post-preview {
        width: 95%;
    }

    .post-preview--excerpt {
        display: none;
    }

    .post-preview--middle {
        line-height: 19px;
    }

    /* 移除移动端加载按钮样式 */
    
    /* 移动端Mac风格代码块优化 */
    .memos__text pre {
        margin: 1rem 0;
        border-radius: 8px;
        font-size: 0.8rem;
    }
    
    .memos__text pre:before {
        height: 28px;
    }
    
    .memos__text pre:after {
        top: 10px;
        left: 12px;
        width: 10px;
        height: 10px;
        box-shadow: 
            16px 0 0 #ffbd2e,
            32px 0 0 #28ca42;
    }
    
    .memos__text pre code {
        padding: 2.5rem 1rem 1rem 1rem;
        font-size: 0.8rem;
    }
    
    .memos__text code:not(pre code) {
        font-size: 0.75rem;
        padding: 0.1rem 0.25rem;
        border-radius: 3px;
    }
    
    .memos__text pre .copy-btn {
        top: 6px;
        right: 12px;
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 4px;
    }
}

.video-wrapper {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    width: 100%;
}

.video-wrapper iframe {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

footer {
    padding: 20px 0;
    text-align: center;
}

.hidden {
    display: none !important;
}

.filter{
	display:none;
}
/*鼠标小黑猫光标*/
button {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/work.cur),alias}
p {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/texto.cur),auto}
a {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/ayuda.cur),auto}
a:active {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/work.cur),alias}
body {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/normal.cur),auto}