/* ===== 分类页 & 搜索页特有样式 ===== */

.category-wrapper {
    max-width: 1440px;
    margin: 40px auto;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左侧栏（覆盖 core.css 默认宽度） */
.category-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 右侧栏 */
.category-main {
    flex: 1;
    min-width: 0;
}

/* ===== 文章列表 ===== */
.post-list-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    align-items: flex-start;
}
.post-list-thumb {
    width: 33.33%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}
.post-list-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.post-list-content {
    flex: 1;
}
.post-list-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}
.post-list-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
}
.post-list-content h3 a:hover {
    color: #e67e22;
}
.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}
.post-meta span:not(:last-child)::after {
    content: '|';
    margin-left: 10px;
    color: #ccc;
}
.post-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}
.read-more {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 18px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}
.read-more:hover {
    background: #e67e22;
}

/* 底部分页导航 */
.pagination-links {
    margin-top: 40px;
    text-align: center;
    clear: both;
}
.pagination-links .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 3px;
}
.pagination-links .page-numbers.current {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

/* ===== 推荐产品横栏 ===== */
.recommended-products {
    background: #f9f9f9;
    padding: 60px 0;
    margin-top: 60px;
}
.recommended-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}
.products-grid-rec {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.product-card-rec {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.product-card-rec:hover {
    transform: translateY(-5px);
}
.product-card-rec .img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.product-card-rec .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-rec .prod-body {
    padding: 15px;
}
.product-card-rec h4 {
    margin: 0 0 10px;
    font-size: 16px;
}
.product-card-rec h4 a {
    color: #1a1a1a;
    text-decoration: none;
}
.product-card-rec h4 a:hover {
    text-decoration: underline;
}
.product-card-rec p {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

/* ===== FAQS 网格（FAQS 分类页特有） ===== */
.faqs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
}
.faq-question {
    margin: 0 0 10px;
    font-size: 17px;
}
.faq-question a {
    color: #1a1a1a;
    text-decoration: none;
}
.faq-question a:hover {
    color: #e67e22;
}
.faq-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.faq-item .faq-question::before {
    content: 'Q';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.faq-item .faq-answer::before {
    content: 'A';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.faq-item .faq-answer {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    margin-top: 15px;
}
.faq-item .faq-question {
    margin-bottom: 0;
}

/* ===== 侧边栏联系表单 ===== */
.contact-sidebar-block {
    margin-top: 40px;
    padding-top: 30px;
}
.sidebar-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.sidebar-contact-form input,
.sidebar-contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #f7f8f9;
}
.sidebar-contact-form input:focus,
.sidebar-contact-form textarea:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
    outline: none;
}
.sidebar-contact-form textarea {
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}
.sidebar-contact-form button {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: block;
    margin-left: auto;
}
.sidebar-contact-form button:hover {
    background: #cf6d1a;
    transform: translateY(-2px);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .category-wrapper {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
    }
    .products-grid-rec {
        grid-template-columns: repeat(2, 1fr);
    }
    .faqs-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .category-wrapper {
        margin: 20px auto;
    }
    .post-list-item {
        flex-direction: column;
    }
    .post-list-thumb {
        width: 100%;
    }
    .products-grid-rec {
        grid-template-columns: 1fr;
    }
    .faqs-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .sidebar-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sidebar-contact-form button {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}