/*
Theme Name: LinFood 蔺宝堂
Theme URI: https://www.linfood.com
Description: 1:1 复刻 LinFood 蔺宝堂官网
Version: 1.0
Author: MR陈
*/

/* 引入原始 CSS */

/* 分页导航样式 */
.pagination-custom .button {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.pagination-custom .button:hover {
    background: #f5f5f5;
}
.pagination-custom .button-primary {
    background: #8bc34a;
    color: #fff;
    border-color: #8bc34a;
}
.pagination-custom .button-primary:hover {
    background: #7cb342;
}
.pagination-custom .button-default {
    background: #fff;
}
.pagination-custom .dots {
    display: inline-block;
    padding: 8px 4px;
    color: #999;
}

/* ========== 留言模态框样式 ========== */
.linfood-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.linfood-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: linfoodModalIn 0.3s ease;
}
@keyframes linfoodModalIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.linfood-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 15px;
    border-bottom: 1px solid #eee;
}
.linfood-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}
.linfood-modal-close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.linfood-modal-close:hover {
    color: #333;
}
.linfood-modal-body {
    padding: 20px 24px 30px;
}
.linfood-form-group {
    margin-bottom: 18px;
}
.linfood-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}
.linfood-form-group input,
.linfood-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.linfood-form-group input:focus,
.linfood-form-group textarea:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 2px rgba(139,195,74,0.15);
}
.linfood-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========== 文章卡片：统一缩略图尺寸（370:321 等比裁切） ========== */
.lf-card-figure {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 86.76%;
    overflow: hidden;
    background: #f2f2f2;
}
.lf-card-figure > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.lf-card-body {
    padding: 15px 0;
}
.lf-card-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lf-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
