/* ==========================================================================
   Boxinhuasheng Knowledge Center Stylesheet
   ========================================================================== */

/* ===== Common Articles Layout ===== */
.article-page { padding: 0 0 60px; }
.article-header-hero {
    background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 100%);
    padding: 50px 0 40px; position: relative; overflow: hidden;
}
.article-header-hero::before {
    content: ''; position: absolute; inset: 0;
    opacity: 0.07;
}
.article-header-hero .inner { position: relative; z-index: 1; }
.article-breadcrumb { margin-bottom: 20px; }
.article-breadcrumb ol { background: transparent; padding: 0; margin: 0; }
.article-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.55); font-size: 0.85rem; text-decoration: none; }
.article-breadcrumb .breadcrumb-item a:hover { color: #f0a500; }
.article-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

.article-cat-badge {
    display: inline-block; background: #c8102e; color: #fff;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; padding: 4px 12px; border-radius: 3px; margin-bottom: 14px;
    text-decoration: none;
}
.article-cat-badge:hover { background: #a00d26; color: #fff; }

.article-h1 {
    font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1.3;
    margin-bottom: 16px; max-width: 860px;
}
.article-meta {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    font-size: 0.83rem; color: rgba(255,255,255,0.6);
}
.article-meta .meta-item { display: flex; align-items: center; gap: 5px; }
.article-meta i { font-size: 0.9rem; }

/* ===== Quick Answer Box ===== */
.quick-answer-box {
    background: #fff8e6; border-left: 4px solid #f0a500;
    border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 36px 0 28px;
}
.quick-answer-box .qa-label {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; color: #c8102e; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.quick-answer-box .qa-label::before {
    content: '⚡'; font-size: 0.85rem;
}
.quick-answer-box p {
    font-size: 1rem; color: #2c3e50; line-height: 1.75; margin: 0; font-weight: 500;
}

/* ===== Cover Image ===== */
.article-cover-wrap { margin-bottom: 32px; }
.article-cover-wrap img {
    width: 100%; border-radius: 10px; display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ===== Article Content Body ===== */
.article-content {
    font-size: 1rem; color: #333; line-height: 1.85;
}
.article-content h2 {
    font-size: 1.45rem; font-weight: 800; color: #1a2332;
    margin: 36px 0 14px; padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}
.article-content h3 {
    font-size: 1.15rem; font-weight: 700; color: #1a2332; margin: 28px 0 10px;
}
.article-content h4 { font-size: 1rem; font-weight: 700; color: #1a2332; margin: 20px 0 8px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.article-content table th { background: #1a2332; color: #fff; padding: 10px 12px; text-align: left; }
.article-content table td { padding: 9px 12px; border-bottom: 1px solid #eee; }
.article-content table tr:nth-child(even) td { background: #f9f9f9; }
.article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 12px 0; }
.article-content blockquote {
    border-left: 4px solid #c8102e; padding: 16px 20px; background: #fef9f9;
    margin: 24px 0; font-style: italic; color: #555;
}

/* ===== Sidebar ===== */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-box {
    background: #fff; border-radius: 10px; padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07); margin-bottom: 24px;
}
.sidebar-box h4 {
    font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: #1a2332; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid #f0a500;
}
.sidebar-about p { font-size: 0.875rem; color: #555; line-height: 1.7; }
.sidebar-about .cert-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sidebar-about .cert-tag {
    font-size: 0.72rem; background: #f0f2f5; padding: 3px 10px; border-radius: 20px;
    color: #555; font-weight: 600;
}
.sidebar-links a {
    display: block; padding: 8px 0; font-size: 0.875rem; color: #333;
    text-decoration: none; border-bottom: 1px solid #f0f2f5;
    display: flex; align-items: center; justify-content: space-between;
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: #c8102e; }
.sidebar-links a i { font-size: 0.75rem; color: #ccc; }

/* ===== FAQ Section ===== */
.faq-section { margin-top: 50px; }
.faq-section h2 {
    font-size: 1.5rem; font-weight: 800; color: #1a2332;
    margin-bottom: 24px; padding-bottom: 10px;
    border-bottom: 2px solid #c8102e; display: inline-block;
}
.faq-item { border: 1px solid #e9ecef; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-question {
    padding: 16px 20px; font-size: 0.95rem; font-weight: 700; color: #1a2332;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    background: #fff; transition: background 0.2s;
}
.faq-question:hover { background: #fafafa; }
.faq-question.open { background: #1a2332; color: #fff; }
.faq-question i { transition: transform 0.3s; font-size: 0.8rem; flex-shrink: 0; margin-left: 10px; }
.faq-question.open i { transform: rotate(180deg); color: #f0a500; }
.faq-answer { display: none; padding: 16px 20px; font-size: 0.9rem; color: #555; line-height: 1.7; background: #fafafa; }

/* ===== Related Articles ===== */
.related-section { margin-top: 50px; padding-top: 30px; border-top: 2px solid #f0f2f5; }
.related-section h2 { font-size: 1.3rem; font-weight: 800; color: #1a2332; margin-bottom: 24px; }
.related-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07); height: 100%;
    transition: all 0.3s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.related-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: #f0f2f5; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-card:hover .thumb img { transform: scale(1.05); }
.related-card .thumb .no-img {
    height: 100%; min-height: 140px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a2332, #2c3e50);
}
.related-card .body { padding: 16px; }
.related-card .body h3 { font-size: 0.9rem; font-weight: 700; color: #1a2332; margin-bottom: 8px; line-height: 1.5; }
.related-card .body h3 a { color: inherit; text-decoration: none; }
.related-card .body h3 a:hover { color: #c8102e; }
.related-card .body .meta { font-size: 0.78rem; color: #999; }

/* ===== Org CTA ===== */
.article-org-cta {
    background: linear-gradient(135deg, #1a2332, #0d1b2a);
    border-radius: 12px; padding: 36px 40px; margin-top: 50px; color: #fff;
}
.article-org-cta h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.article-org-cta p { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 20px; line-height: 1.7; }
.article-org-cta .stats-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.article-org-cta .stat .num { font-size: 1.4rem; font-weight: 900; color: #f0a500; }
.article-org-cta .stat .label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ===== Articles Listing Index Layout ===== */
.articles-hero {
    background: linear-gradient(135deg, #101824 0%, #1a2332 50%, #0d1b2a 100%);
    padding: 75px 0 55px; position: relative; overflow: hidden;
}
.articles-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('/assets/default/images/about-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}
.articles-hero .hero-content { position: relative; z-index: 1; }
.articles-hero h1 { font-size: 2.7rem; font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.25; }
.articles-hero h1 span { color: #f0a500; }
.articles-hero .hero-desc { font-size: 1.08rem; color: rgba(255,255,255,0.8); max-width: 720px; margin: 0 auto 28px; line-height: 1.7; }

.hero-search-box {
    max-width: 620px; margin: 0 auto 30px; display: flex; background: #fff; border-radius: 40px; padding: 5px; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.hero-search-input { flex: 1; border: none; outline: none; background: transparent; padding: 10px 20px; font-size: 0.95rem; color: #333; }
.hero-search-btn {
    background: #c8102e; color: #fff; border: none; border-radius: 30px; padding: 10px 24px; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: background 0.2s; display: flex; align-items: center; gap: 8px;
}
.hero-search-btn:hover { background: #a00c24; }

.hero-trust-bar { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 15px; font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item i { color: #f0a500; }

.article-cat-nav { background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.article-cat-nav .nav-wrap { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.article-cat-nav .nav-wrap::-webkit-scrollbar { display: none; }
.article-cat-nav a {
    white-space: nowrap; padding: 7px 18px; border-radius: 30px; font-size: 0.875rem; font-weight: 600; color: #555;
    background: #fff; border: 1.5px solid #dde1e7; text-decoration: none; transition: all 0.2s;
}
.article-cat-nav a:hover, .article-cat-nav a.active { background: #c8102e; border-color: #c8102e; color: #fff; }

.featured-section { padding: 45px 0 25px; }
.featured-section .section-label {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: #c8102e;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.featured-section .section-label::before { content: ''; width: 28px; height: 3px; background: #c8102e; border-radius: 2px; }
.featured-section .section-title { font-size: 1.8rem; font-weight: 800; color: #1a2332; margin-bottom: 25px; }

.featured-card {
    position: relative; border-radius: 12px; overflow: hidden; height: 360px; display: flex; flex-direction: column; text-decoration: none; color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s;
}
.featured-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.2); }
.featured-card .card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.featured-card:hover .card-img { transform: scale(1.04); }
.featured-card .card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 24px 24px;
    background: linear-gradient(to top, rgba(10,20,35,0.95) 0%, rgba(10,20,35,0.4) 60%, transparent 100%);
}
.featured-card .card-cat {
    display: inline-block; background: #c8102e; color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 3px; margin-bottom: 10px;
}
.featured-card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.featured-card .card-meta { font-size: 0.8rem; color: rgba(255,255,255,0.65); }

.articles-section { padding: 30px 0 60px; }
.articles-section .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; border-bottom: 2px solid #eee; padding-bottom: 14px; }
.articles-section .section-header h2 { font-size: 1.4rem; font-weight: 800; color: #1a2332; margin: 0; }

.article-card {
    background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: all 0.3s;
    height: 100%; display: flex; flex-direction: column; border: 1px solid #edf0f4;
}
.article-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.14); transform: translateY(-3px); border-color: #d1d5db; }
.article-card .card-thumb { overflow: hidden; aspect-ratio: 16/9; background: #f0f2f5; position: relative; }
.article-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .card-thumb img { transform: scale(1.05); }
.article-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card .card-cat-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #c8102e; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.article-card h3 { font-size: 1.05rem; font-weight: 700; color: #1a2332; margin-bottom: 10px; line-height: 1.45; }
.article-card h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.article-card h3 a:hover { color: #c8102e; }
.article-card .card-summary {
    font-size: 0.875rem; color: #666; line-height: 1.6; margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .card-footer-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: #999; border-top: 1px solid #f0f2f5; padding-top: 12px; margin-top: auto; }
.article-card .read-more { color: #c8102e; font-weight: 700; text-decoration: none; font-size: 0.82rem; transition: gap 0.2s; }
.article-card .read-more:hover { color: #a00c24; text-decoration: underline; }

.articles-pagination { text-align: center; margin-top: 40px; }
.articles-pagination .pagination { display: inline-flex; gap: 6px; }
.articles-pagination .pagination li a,
.articles-pagination .pagination li span {
    padding: 8px 16px; border-radius: 6px; border: 1px solid #dde1e7; color: #444; font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.articles-pagination .pagination li.active span { background: #c8102e; border-color: #c8102e; color: #fff; }

/* ===== Category Page Layout ===== */
.cat-hero { background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 100%); padding: 60px 0 40px; position: relative; }
.cat-hero::before { content: ''; position: absolute; inset: 0; background: url('/assets/default/images/about-bg.jpg') center/cover; opacity: 0.07; }
.cat-hero .hero-inner { position: relative; z-index: 1; }
.cat-hero h1 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cat-hero .cat-desc { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 720px; line-height: 1.7; margin-bottom: 0; }

.articles-grid { padding: 50px 0 60px; }
.empty-articles { text-align: center; padding: 80px 20px; color: #999; }
.org-cta-section { background: linear-gradient(135deg, #1a2332, #0d1b2a); padding: 50px 0; }
.org-cta-section h2 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.org-cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }

/* ===== Mobile Responsiveness ===== */
@media (max-width: 991px) {
    .article-h1 { font-size: 1.6rem; }
    .article-sidebar { position: static; }
}
@media (max-width: 768px) {
    .article-h1 { font-size: 1.35rem; }
    .article-org-cta { padding: 24px 20px; }
}
