/*
Theme Name: Portfolio
Theme URI: 
Author: Weijie Tao
Author URI: 
Description: portfolio child theme
Version: 1.0
Template: twentytwentyfive
Text Domain: my-custom-child
*/

/*ZH_font*/
@font-face {
    font-family: 'NotoSerifSC';
    src: url('fonts/NotoSerifSC-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700;
    /* 支持从细到粗 */
    font-style: normal;
    /* 同时支持正体和斜体 */
    font-display: swap;
}

body *:lang(zh) {
    font-family: 'NotoSerifSC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}


/*EN_font*/
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

body *:lang(en) {
    font-family: 'IBM Plex Mono', sans-serif;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1c45d8;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1c45d8;
}

h3 {
    font-size: 24px;
    font-weight: 400;
    color: #1c45d8;
}

h4 {
    font-size: 20px;
    font-weight: 400;
    color: #1c45d8;
}

h5 {
    font-size: 16px;
    font-weight: 100;
    color: #1c45d8;
}

h6 {
    font-size: 14px;
    font-weight: 100;
    color: #1c45d8;
}


/* * {
    outline: 1px dashed white;
} */

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
    /* 禁止竖向滚动条 */
    background: #EDECE2;
    /* 或者任何你喜欢的颜色 */
    isolation: isolate;
}

/* 固定悬浮的透明页眉 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    background: transparent;
    mix-blend-mode: difference;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.site-headertitle {
    margin: 0;
    padding: 0;
    font-size: 60px;
    font-style: italic;
    color: #1c45d8;
    z-index: 1000;
    mix-blend-mode: difference;
}

.post-headertitle {
    margin: 0;
    padding: 0;
    font-size: 40px;
    font-style: italic;
    color: #1c45d8;
    z-index: 1000;
}

/* 固定悬浮的透明页脚 */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.social-links {
    display: flex;
    gap: 20px;
}

.icon {
    width: 24px;
    height: 24px;
    color: #1c45d8;
    transition: filter 0.3s;
}

.icon:hover {
    filter: brightness(0.6) sepia(1) hue-rotate(200deg);
}

.wave-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
    color: #1c45d8;
}

#wave-path {
    transition: d 0.1s ease-out;
}

.site-content {
    top: 0;
    bottom: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 500;
    -ms-overflow-style: none;
    /* IE 和 Edge */
}

.site-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari 和 Opera */
}


/* 容器设置：横向滑动 + 锁定高度 */
.post-directory {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    gap: 0px;
    position: relative;
    -ms-overflow-style: none;
    /* IE 和 Edge */
}

.post-directory::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari 和 Opera */
}

/* 每个卡片：固定宽度、高度自适应父容器 */
.post-directory.blur {
    filter: blur(4px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

.post-item {
    flex: 0 0 auto;
    margin-left: 150px;
    margin-right: 150px;
    width: 270px;
    height: 270px;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transition: all 0.3s ease;

}



.post-item.deem {
    opacity: 0.2;
    filter: blur(2px);
    transform: scale(0.95);
    z-index: 1;
}

.post-item:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.05);
    z-index: 10;
}



.post-item a {
    height: 100% !important;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 固定正方形图片区域 */
.post-image {
    position: relative;
    overflow: hidden;
    height: 80%;
}

.post-image-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 100%;
    object-fit: cover;
    transform: translateX(20%);
    will-change: transform;
}

/* 标题样式 */
.post-title {
    margin-top: 10px;
    padding: 0;
    text-align: left;
    font-size: 18px;
    color: #2a2a2a;
}

.popup-search-form {
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #2a2a2a;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2000;
    transition: 0.3s ease;
}

.popup-search-form input {
    padding: 12px 20px;
    border: 0cm;
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    width: 300px;
    color: #EDECE2;
    background-color: transparent;
}

.popup-search-form input::placeholder {
    color: #EDECE2;
    font-size: 18px;
    font-style: italic;
    font-weight: 100;
}

/* 手机端：改为纵向排布 */
@media (max-width: 768px) {

    html,
    body {
        overflow: auto;
    }

    .post-directory {
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .post-item {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
}

.article-bg {
    position: relative;
    height: 100vh;
    /* 填满整个视口高度 */
    overflow: hidden;
    z-index: -1;
    /* 如要让其在下层背景使用 */
}

.article-bg .bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    /* 稍微大一点 */
    height: 110%;
    object-fit: cover;
    filter: blur(10px) brightness(0.7);
    transform: scale(1.1);
    /* ⬅️ 放大一点，遮住白边 */
}

.article-container {

    position: fixed;
    top: 130px;
    bottom: 70px;
    left: 5vw;
    right: 5vw;
    background: #2b2b2b;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;

}

.article-inner {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.article-inner::-webkit-scrollbar {
    display: none;
}

.article-item {
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    margin-right: 20px;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}