:root {
    /* Theme: neutral ink + warm accent.
       Swap --primary / --accent to re-theme the whole site. */
    --primary: #1f2328;
    --accent:  #b4552d;
    --bg:      #faf9f7;
    --text:    #333940;
    --muted:   #5c6470;
}

body {
    background-color: var(--bg)!important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-display: swap;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

ul > li {
    display: inline-block;
    margin: 5px 5px 5px 5px;
    /* You can also add some margins here to make it look prettier */
}

/* my layui */
.layui-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(31, 35, 40, 0.10);
    backdrop-filter: blur(10px);
}

body {
    padding-top: 70px; /* Adjust this value based on your header's actual height */
}

/* publications */
.publications {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.recent h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 45px;
    text-align: center;
    letter-spacing: -0.025em;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 18px;
    display: inline-block;
    width: 100%;
}

.publication {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 32px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31, 35, 40, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.publication-image img {
    width: 220px;
    height: auto;
    margin-right: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.publication:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.publication-details {
    flex-grow: 1;
}

.publication-details h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-details .authors {
    color: var(--muted);
    font-style: normal;
    font-size: 1rem;
    margin: 10px 0;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-details .authors strong {
    color: var(--primary);
    font-weight: 600;
}

.publication-details .venue {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    margin: 10px 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-details .button {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 8px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.publication-details .button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(180, 85, 45, 0.25);
}

.publication-image.no-image {
    /* You can set a default size or other styles as needed */
    width: 240px;
    height: auto;
    background: transparent; /* Assuming your website background is what you want to show */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .publication {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        margin-bottom: 35px;
    }

    .publication-image img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
        margin-right: 0;
    }

    .publication-details {
        flex-grow: 0;
    }

    .about {
        margin-top: 20px;
        margin-bottom: 40px;
        border-radius: 8px;
    }

    .about_left, .about_right {
        padding: 30px 20px;
    }

    .about_portrait {
        width: 180px;
        height: 180px;
    }

    .recent h1 {
        font-size: 2rem;
    }

    .recent {
        padding: 40px 15px;
    }
}
/* my art */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-auto-rows: 10px;
    gap: 2px;
    margin-top: 70px; /* Adjust the value to create space from the header */
    margin-left: 60px; /* Adjust the value to create space from the left side of the screen */
    margin-right: 60px; /* Adjust the value to create space from the right side of the screen */
    margin-bottom: 30px; /* Adjust the value to create space from the bottom */
}

.artwork {
    break-inside: avoid;
    page-break-inside: avoid;
    position: relative;
    overflow: hidden;
}

.artwork img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.artwork-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    font-size: 0.8em;
}

.artwork:hover .artwork-info {
    opacity: 1;
}


/* index */
.about {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 100%;
    margin-bottom: 60px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(31, 35, 40, 0.05);
    overflow: hidden;
}

.about_left {
    margin-top: 0;
    text-align: center;
    padding: 50px 30px;
    position: relative;
    background: linear-gradient(135deg, #faf8f5 0%, #f2eee8 100%);
}

.about_left_icon {
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 10px;
}

.about_portrait {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(31, 35, 40, 0.15);
    border: 4px solid #fff;
    margin-bottom: 25px;
}

.about_left > h1 {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 8px;
}

.about_left > h2 {
    margin-left: 10%;
    width: 80%;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: var(--muted);
    font-size: 1.5rem;
}

.about_right {
    padding: 50px 40px;
    position: relative;
    background-color: #fff;
}

.about_right > h1 {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.about_right > h2 {
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
    line-height: 1.75;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.about_right > h2 p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

.about_right > h2 a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.about_right > h2 a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.recent {
    background-color: #ffffff;
    padding: 50px 20px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.recent-inner {
    margin: 0;
    padding: 0;
}

/* 404.html */
.intro {
    text-align: center;
    margin-top: 20%;
    margin-bottom: 20%;
}

.intro > h1 {
    font-weight: 600;
    font-size: 4rem;
    letter-spacing: -0.25px;
    line-height: 1.125;
    color: var(--primary);
    margin-bottom: 20px;
}

.intro > h2 {
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: var(--muted);
}

/* Single */

.single-card {
    margin-top: 10px;
}

@media only screen and (max-width: 768px){
    .single-card {
        margin-left: -3%;
        margin-right: -3%;
        margin-top: 10px;
    }
}

.single-content {
    margin-top: 20px;
    padding-top: 20px;
    margin-right: 5%;
    margin-left: 5%;
    position:relative;
}

.single-title {
    background-color: #FFFFFF;
    /* margin-top: 20px; */
    padding-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
    line-height: 1.125;
}

.single-related {
    font-size: 20;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
}
/* Lists */

.list-card {
    margin-top: 20px;
    margin-bottom: 10px;
}

.list-title {
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: var(--muted);
    vertical-align: middle;
}

.list-title-pic {
    max-height:300px;
    max-width:500px;
}

.list-show {
    background-color: #ffffff;
}

.list-show-title {
    text-align: center;
    margin-top: 100px;
}

@media only screen and (max-width: 768px) {

    .list-show {
        display: none;
    }

    .list-show-title {
        text-align: center;
        margin-top: 20px;
    }
}

.tags-card {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Pager */
.pager {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* nav */

.nav_container {
    border-radius: 0px;
    height: 64px;
}

.layui-nav {
    background-color: transparent;
}

.layui-nav .layui-nav-item {
    margin: 0 8px;
}

.layui-nav .layui-nav-item a {
    padding: 0 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.layui-nav .layui-nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.nav-self-logo {
    margin-left: 10px;
    width: 200px;
    height: 100%;
    line-height: 60px;
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.5px;
}

.layui-nav .layui-nav-item a {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: opacity 0.3s ease;
}

.layui-nav .layui-nav-item a:hover {
    opacity: 0.8;
}


@media only screen and (max-width: 768px) {
    #nav_big {
        display: none;
    }

    #nav_small {
        display: inline-block;
    }
    
}

@media only screen and (min-width: 768px) {
    #nav_big {
        display: inline-block;
    }

    #nav_small {
        display: none;
    }
}

/* Footer */
footer {
    /* background-color: #393D49; */
    background-color: var(--primary);
    padding: 20px 0 20px;

    text-align: center;
    border-bottom: var(--border-width) solid var(--accent);
    font-family: 'TT Commons',Arial,Helvetica,sans-serif;
    font-size: 0.85rem;
    font-display: swap;
    color: #ffffff;
}

.copyright {
    border-bottom: var(--border-width) solid var(--accent);
    font-family: 'TT Commons',Arial,Helvetica,sans-serif;
    font-size: 0.85rem;
    font-display: swap;
    color: #ffffff;
    margin-top: 10px;
}

.footer-url {
    color: #c2c2c2;
}


.footer-url:hover {
    color: #f2f2f2;
    text-decoration: underline;
}

.self-notice {
    /* height: 40px; */
}

.self-notice-text {
    /* top: 50%;
    transform: translate(0, -50%); */
    margin-top: 10px;
    margin-bottom: 10px;
    /* margin-left:30px;
    margin-right: 30px; */
}

.self-elem-quote {
    margin-bottom:10px;
    padding:15px;
    line-height:22px;
    border-left:4px solid #009688;
    border-radius:0 2px 2px 0;
    /* background-color:#f2f2f2 */
}

.self-elem-quote-bg-red {border-left-color: #FF5722!important;}
.self-elem-quote-bg-orange {border-left-color: #FFB800!important;}
.self-elem-quote-bg-green {border-left-color: #009688!important;}
.self-elem-quote-bg-cyan {border-left-color: #2F4056!important;}
.self-elem-quote-bg-blue {border-left-color: #1E9FFF!important;}
.self-elem-quote-bg-black {border-left-color: #393D49!important;}
.self-elem-quote-bg-gray {border-left-color: #666!important;}
