/* ===== FAQ Page Layout ===== */
.faq-page {
    padding-top: 72px;
    background: #FEFEFE;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 32px 0 16px;
}

.breadcrumb-item {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    line-height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item .chevron {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
}

.breadcrumb-item .chevron::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 7.5px;
    width: 5px;
    height: 10px;
    border-right: 1.5px solid var(--gray-text);
    border-bottom: 1.5px solid var(--gray-text);
    transform: rotate(-45deg);
}

.breadcrumb-inactive {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-text);
    line-height: 24px;
}

/* Main Content Layout */
.faq-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 60px;
}

/* Left Column - Article List */
.faq-left {
    width: 800px;
    flex-shrink: 0;
}

.faq-category {
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    height: 172px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.article-thumb {
    width: 206px;
    height: 124px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumb .article-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.article-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.article-info-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-excerpt {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-text);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-date {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-text);
    line-height: 1.4;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-total {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    margin-right: 8px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-dark);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-btn.arrow {
    background: var(--btn-bg);
    border: none;
    font-size: 12px;
}

.page-btn.arrow:hover {
    background: #e0e3e8;
}

.page-ellipsis {
    font-size: 16px;
    color: var(--black);
    padding: 0 4px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 4px;
}

.pagination-info .current {
    color: var(--primary);
    font-weight: 500;
}

.pagination-input {
    width: 48px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    color: var(--text-dark);
}

.pagination-input:focus {
    border-color: var(--primary);
}

.pagination-suffix {
    font-size: 14px;
    color: var(--black);
}

.page-action-btn {
    height: 36px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    background: var(--btn-bg);
    color: var(--black);
    transition: all 0.2s ease;
}

.page-action-btn:hover {
    background: #e0e3e8;
}

.page-action-btn.confirm {
    background: var(--btn-bg);
}

/* Right Column - Recommendations */
.faq-right {
    flex: 1;
    min-width: 0;
    margin-top: 46px;
}

.recommend-panel {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
}

.recommend-header {
    position: relative;
    padding: 24px 24px 0;
}

.recommend-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    /*background: var(--white);*/
}

.recommend-header-content {
    position: relative;
    z-index: 1;
}

.recommend-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.4;
}

.recommend-lines {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.recommend-line-gray {
    height: 2px;
    background: #E1E1E1;
}

.recommend-line-purple {
    height: 2px;
    background: var(--primary);
    width: 50%;
}

.recommend-list {
    padding: 0;
}

.recommend-item {
    padding: 24px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E1E1E1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.recommend-item:last-child {
    border-bottom: none;
}

.recommend-item:hover {
    background: rgba(96, 42, 166, 0.03);
}

.recommend-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommend-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    flex-shrink: 0;
}

.recommend-number.top {
    background: var(--primary);
}

.recommend-number.normal {
    background: var(--gray-text);
}

.recommend-item-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.recommend-item-date {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-text);
    line-height: 1.4;
    text-align: right;
}

/* ===== Responsive: 1200px ===== */
@media (max-width: 1200px) {
    .faq-main {
        flex-direction: column;
    }

    .faq-left {
        width: 100%;
    }

    .faq-right {
        width: 100%;
        margin-top: 0;
    }

    .recommend-panel {
        max-width: 600px;
    }
}

/* ===== Responsive: 900px ===== */
@media (max-width: 900px) {
    .container {
        padding: 0 40px;
    }

    .article-card {
        height: auto;
        min-height: 140px;
    }

    .article-thumb {
        width: 160px;
        height: 100px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-excerpt {
        font-size: 14px;
    }
}

/* ===== Responsive: 600px ===== */
@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .header .container {
        padding: 12px 20px;
    }

    .header-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 0 24px;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    }

    .header-nav.open {
        max-height: 400px;
        opacity: 1;
        padding: 16px 24px;
        gap: 8px;
    }

    .header-nav a {
        padding: 10px 0;
        border-bottom: 1px solid #f0ebf8;
        width: 100%;
        opacity: 1 !important;
        font-size: 16px;
        transform: translateX(-10px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .header-nav.open a {
        transform: translateX(0);
        opacity: 0.8;
    }

    .header-nav.open a:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions .btn-yellow, .header-actions .btn-purple {
        display: none;
    }

    .breadcrumb {
        padding: 20px 0 12px;
    }

    .article-card {
        flex-direction: column;
        height: auto;
        padding: 16px;
    }

    .article-thumb {
        width: 100%;
        height: 160px;
    }

    .article-info-top {
        gap: 8px;
    }

    .article-title {
        font-size: 16px;
        white-space: normal;
    }

    .article-excerpt {
        font-size: 14px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pagination {
        gap: 4px;
    }

    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .page-action-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

    .pagination-input {
        width: 40px;
        height: 32px;
    }

    .floating-cta .pill-btn {
        font-size: 20px;
        padding: 12px 20px;
    }
}

/* ===== Responsive: 375px ===== */
@media (max-width: 375px) {
    .article-thumb {
        height: 140px;
    }
}
