/* ============================================
   OneOne Lite 幫助中心樣式 - 簡潔版
   ============================================ */

/* 主要容器 */
.help-center-wrapper {
    padding: 10px 0;
    min-height: 60vh;
    background: #fff;
}

.help-center-wrapper .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   頁面標題區塊
   ============================================ */
.help-header {
    text-align: center;
    margin-bottom: 50px;
}

.help-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.help-subtitle {
    font-size: 16px;
    color: #666;
}

/* ============================================
   分類卡片
   ============================================ */
.help-categories {
    margin-bottom: 60px;
}

.help-categories .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.help-categories .col-12,
.help-categories .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.help-category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 140px;
}

.help-category-card:hover {
    border-color: #E31C25;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.category-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   熱門文章區塊 - 新聞列表風格
   ============================================ */
.help-popular-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.btn-view-more {
    background: #E31C25;
    border: none;
    color: #fff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-more:hover {
    background: #C41920;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(227, 28, 37, 0.3);
}

.popular-articles-list {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.popular-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.popular-article-item:last-child {
    border-bottom: none;
}

.popular-article-item:hover {
    background: #fafafa;
}

.popular-article-item .article-title {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    margin: 0;
    flex: 1;
}

.popular-article-item:hover .article-title {
    color: #E31C25;
}

.popular-article-item .article-date {
    font-size: 13px;
    color: #999;
    margin: 0;
    flex-shrink: 0;
    margin-left: 20px;
}

/* 文章數量標籤 */
.article-count {
    display: inline-block;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ============================================
   聯絡客服區塊
   ============================================ */
.help-contact-section {
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
}

.contact-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.btn-contact {
    background: #E31C25;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-contact:hover {
    background: #C41920;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(227, 28, 37, 0.3);
}

/* ============================================
   麵包屑導航
   ============================================ */
.help-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.help-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.help-breadcrumb a:hover {
    color: #E31C25;
}

.help-breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.help-breadcrumb .current {
    color: #000;
}

/* ============================================
   分類頁面樣式
   ============================================ */
.category-header {
    margin-bottom: 40px;
    text-align: center;
}

.category-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.category-page-desc {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.articles-list {
    margin-bottom: 25px;
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-list-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.article-list-item:hover {
    border-color: #E31C25;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-list-link {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
}

.article-list-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-list-title {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    margin: 0;
    flex: 1;
}

.article-list-item:hover .article-list-title {
    color: #E31C25;
}

.article-list-date {
    font-size: 13px;
    color: #999;
    margin: 0;
    flex-shrink: 0;
    margin-left: 20px;
}

/* ============================================
   文章詳情頁樣式
   ============================================ */
.help-article-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 24px;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.article-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #999;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-body {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-top: 24px;
    margin-bottom: 12px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: #000;
    font-weight: 600;
}

.faq-section {
    margin: 24px 0;
}

.faq-item {
    background: #fafafa;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.faq-question {
    margin-bottom: 8px;
}

.faq-question strong {
    font-size: 14px;
}

.faq-answer {
    color: #666;
    font-size: 14px;
}

.faq-answer p {
    margin: 0;
}

.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.article-helpful {
    text-align: center;
    margin-bottom: 24px;
}

.helpful-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.helpful-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-helpful {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-helpful:hover {
    border-color: #E31C25;
    color: #E31C25;
}

.btn-helpful.active {
    background: #E31C25;
    border-color: #E31C25;
    color: #fff;
}

.related-articles {
    margin-top: 32px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-article-item {
    display: block;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    transition: background 0.2s ease;
}

.related-article-item:hover {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    color: #E31C25;
}

/* ============================================
   分頁樣式 - 覆蓋 Bootstrap 預設樣式
   ============================================ */
.help-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.help-pagination .pagination {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-pagination .page-item {
    list-style: none;
}

/* 一般狀態 */
.help-pagination .pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 1;
}

/* hover 狀態 */
.help-pagination .pagination .page-item .page-link:hover {
    border-color: #E31C25 !important;
    color: #E31C25 !important;
    background-color: #fff !important;
    z-index: 2;
}

/* focus 狀態 */
.help-pagination .pagination .page-item .page-link:focus {
    box-shadow: none !important;
    border-color: #E31C25 !important;
    color: #E31C25 !important;
    background-color: #fff !important;
    z-index: 2;
}

/* active 狀態 */
.help-pagination .pagination .page-item.active .page-link,
.help-pagination .pagination .page-item.active .page-link:hover,
.help-pagination .pagination .page-item.active .page-link:focus {
    background-color: #E31C25 !important;
    border-color: #E31C25 !important;
    color: #fff !important;
    cursor: default;
    z-index: 3;
}

/* disabled 狀態 */
.help-pagination .pagination .page-item.disabled .page-link,
.help-pagination .pagination .page-item.disabled .page-link:hover,
.help-pagination .pagination .page-item.disabled .page-link:focus {
    background-color: #f9f9f9 !important;
    border-color: #e0e0e0 !important;
    color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
    z-index: 1;
}

/* ============================================
   文章詳細頁 - 附加樣式
   ============================================ */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.article-body blockquote {
    background: #f5f5f5;
    border-left: 4px solid #E31C25;
    padding: 16px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.article-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #E31C25;
}

.article-body pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #333;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-body table th,
.article-body table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.article-body table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 768px) {
    .help-title {
        font-size: 24px;
    }

    .help-subtitle {
        font-size: 14px;
    }

    .help-category-card {
        padding: 18px;
    }

    .category-title {
        font-size: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .popular-article-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .popular-article-item .article-date {
        margin-left: 0;
        margin-top: 4px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .btn-contact {
        margin-top: 16px;
    }

    .help-article-content {
        padding: 24px 20px;
    }

    .article-page-title {
        font-size: 22px;
    }

    .article-meta-bar {
        flex-direction: column;
        gap: 6px;
    }

    .helpful-buttons {
        flex-direction: column;
    }

    .article-list-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-list-date {
        margin-left: 0;
        margin-top: 4px;
    }
}
