/*
Theme Name: Puock
Theme URI: https://github.com/Licoy/wordpress-theme-puock
Author: Licoy
Author URI: https://github.com/Licoy/wordpress-theme-puock
Description: 支持暗黑与白天模式的自适应多风格主题！
Version: 2.10.2
Tags: 高颜值, 自适应, 暗黑模式, 多模块, SEO, 无刷新加载
*/
:root {
    --bg-color: #070707;
    --nav-bg: rgba(255, 255, 255, 0.75);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --radius-card: 20px;
    --content-max-width: 860px;
}



/*
 * 文章列表布局与卡片
 */
.article-list {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/*
 * 毛玻璃卡片
 */
.index-post-content-glass {
    position: absolute;
    z-index: 2;

    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: auto; 
    
    padding: 24px;
    border-radius: 20px;
    
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    
    display: flex;
    flex-direction: column;
}

/* 
 * 分类标签 (BUSINESS / TECHNOLOGY) 
 */
.index-post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* 
 *标题样式 
 */
.index-post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: #ffffff;
}

/* 
 * 摘要 
 */
.index-post-excerpt {
    display: none; 
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: auto;
}

/* 
 * 卡片底部信息
 */
.index-post-meta-bottom {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgb(255, 255, 255);
    margin-top: auto; /* 推至最底部对齐 */
    justify-content: space-between;
    width: 100%;
    

}

.index-post-meta-bottom {
    display: inline-flex;
    align-items: center;
    gap: 6px; 
}

.index-post-meta-bottom svg {
    vertical-align: middle;
    
    font-size: 13px;
}

/*
.index-meta-item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin-left: 14px;
    vertical-align: middle;
}
*/

/*
 * 文章列表
 */
.article-list {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.index-post-card {
    position: relative;
    width: 100%;
    height: 230px; 
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.index-post-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* 
 * 背景图片处理
 */
.index-post-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    filter: contrast(1.05) saturate(1.1) brightness(1.02);
    -webkit-filter: contrast(1.05) saturate(1.1) brightness(1.02);
  
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.index-post-card:hover .post-bg {
    transform: scale(1.04);
}

.index-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.75) 100__
    );
    z-index: 2;
    
    background: transparent !important;
    mix-blend-mode: normal;
}

.index-post-content {
    position: relative;
    z-index: 3;
    color: var(--text-white);
}

/* 
 *标题样式 
 */
.index-post-title {
    font-family: "Noto Serif SC";font-variation-settings: normal;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.index-post-excerpt {
    font-size: 15px;
    color: var(--text-white);
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 
 * Ajax不刷新更新文章列表 
 */
.pagination-wrapper {
    margin: 56px 0;
    text-align: center;
    width: 100%;
}

.page-pagination {
    display: none !important; 
}

.ajax-load-status {
    display: block !important;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 2px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    width: 100%;
    max-width: 380px;
    height: 48px;
    border-radius: 8px;
    
    background: #0f172a;
    color: #ffffff !important;
    border: 1px solid #0f172a;
    outline: none;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-load-more:hover {
    background: #ffffff;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.ajax-load-status .status-loading,
.ajax-load-status .status-nomore {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 16px;
    height: 16px;
}
.spinner .path {
    stroke: #94a3b8;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

@media (min-width: 768px) {
    .main-content {
        padding: 20px 24px;
    }
    .index-post-card {
        height: 235px;
        padding: 40px 36px;
    }
    .index-post-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .index-post-content-glass {
        width: 70%;
        max-width: 1000px;
        top: 5px;
        bottom: 5px;
        padding: 32px;
        border-radius: 20px;
        background: rgba(20, 22, 28, 0.65); 
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.09); 

    }

    /* 奇数文章靠左 */
    .index-post-card:nth-child(odd) .index-post-content-glass {
        left: 5px;
        right: auto;
    }

    /* 偶数文章靠右 */
    .index-post-card:nth-child(even) .index-post-content-glass {
        right: 5px;
        left: auto;
    }
    
    .index-post-title {
        font-size: 26px;
    }
}



