/* ==========================================
   FAQ Page Styles
   依赖全局 Token：style.css 中的 :root 变量
   ========================================== */

/* ------------------------------------------
   横幅 Banner
   ------------------------------------------ */
.faq-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: clamp(150px, 25vw, 350px);
}

.faq-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.faq-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.faq-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

.faq-banner-content h1 {
    color: #ffffff;
    margin: 0;
    font-size: clamp(20px, 4vw, 40px);
    position: relative;
}

/* 双栏、侧栏吸附与手机顺序：与产品页共用 template-parts/layout/catalog-with-sidebar.php + products.css */

/* ------------------------------------------
   主内容：FAQ 卡片网格
   ------------------------------------------ */
.tin-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tin-faq-card {
    background: #fff;
    border: 1px solid #eee;
    height: 270px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    text-decoration: none !important;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tin-faq-card:hover {
    border-color: #F08200;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.tin-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    margin-top: 5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tin-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3em;
    min-height: 3.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.tin-faq-card:hover .tin-title {
    color: #F08200;
}

.tin-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.5em;
    margin-bottom: 10px;
    min-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.tin-read-btn {
    background-color: #F08200;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 5px;
    text-transform: uppercase;
    border: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 12px;
}

.tin-read-btn:hover {
    background-color: #d67300;
}

/* ------------------------------------------
   分页
   ------------------------------------------ */
.app-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 10px;
}

.app-page-links {
    display: flex;
    gap: 5px;
}

.p-btn {
    width: 34px;
    height: 34px;
    background: #f5f5f5;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
}

.p-btn:hover {
    background: #F08200;
    color: #fff;
}

.p-btn.current {
    background: #F08200;
    color: #fff;
    cursor: default;
}

.p-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* 上一页/下一页在边界：默认与灰底按钮一致；悬停与可点按钮同为橙色（点击仍不跳转） */
.p-btn.p-btn-nolink:hover {
    background: #F08200;
    color: #fff;
}

.app-total-text {
    color: #888888;
    font-size: 14px;
    font-weight: 400;
}

/* 无内容时的提示区 */
.faq-empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* ------------------------------------------
   响应式：唯一断点 991.98px（侧栏行为由 products.css + products.js）
   ------------------------------------------ */
@media screen and (max-width: 991.98px) {

    .tin-faq-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: var(--card-gap);
    }
}
