/* ============================================
   pitchfeed module.css
   1. 列表页 Post List (PostListSection)
   ============================================ */
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.posts-grid .card {
    border: 1px solid var(--pf-line); border-radius: var(--pf-radius); overflow: hidden;
    background: #fff; height: 100%; box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.posts-grid .card-img-top { width: 100%; height: 180px; object-fit: cover; }
.posts-grid .card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.posts-grid .card-title a { color: var(--pf-text); }
.posts-grid .card-title a:hover { color: var(--pf-primary); }
.post-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

/* ============================================
   2. Sidebar Widgets (SidebarWidgetsSection)
   ============================================ */
.sidebar-widgets .card {
    border: 1px solid var(--pf-line); border-radius: var(--pf-radius);
    background: #fff; margin-bottom: 1.5rem; box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.sidebar-widgets .card-body { padding: 1.25rem; }
.sidebar-widgets h5 { font-weight: 800; font-size: 1rem; margin-bottom: 1rem; }
.sidebar-widgets h5 i { color: var(--pf-primary); }
.sidebar-widgets .list-group-item {
    border: 0; border-bottom: 1px dashed var(--pf-line); padding: .6rem 0; background: none;
}
.sidebar-widgets .list-group-item a { color: var(--pf-text); font-size: .93rem; line-height: 1.55; }
.sidebar-widgets .list-group-item a:hover { color: var(--pf-primary); }
.sidebar-widgets .badge { background: var(--pf-soft); color: var(--pf-text-2); font-weight: 600; }
.rank-num {
    display: inline-flex; width: 22px; height: 22px; border-radius: 6px; background: var(--pf-soft);
    color: var(--pf-text-2); font-size: .78rem; font-weight: 800; align-items: center;
    justify-content: center; margin-right: .55rem; flex-shrink: 0;
}
.rank-num.top { background: var(--pf-primary); color: #fff; }
.widget-tags a {
    display: inline-block; background: var(--pf-soft); color: var(--pf-text-2); border-radius: 999px;
    padding: .22rem .75rem; font-size: .82rem; margin: 0 .35rem .5rem 0;
}
.widget-tags a:hover { background: var(--pf-primary); color: #fff; }

/* ============================================
   3. Pagination (PaginationSection)
   ============================================ */
.pagination { flex-wrap: wrap; gap: .35rem; }
.pagination .page-link {
    border-radius: 10px; border: 1px solid var(--pf-line); color: var(--pf-text-2);
    min-width: 40px; text-align: center;
}
.pagination .page-item.active .page-link { background: var(--pf-primary); border-color: var(--pf-primary); color: #fff; }
.pagination .page-item.disabled .page-link { color: #cbd5e1; }

/* ============================================
   4. Search Box (SearchBoxSection)
   ============================================ */
.search-box-section { background: var(--pf-soft); }
.search-box-section .input-group-lg .form-control {
    border-radius: 999px 0 0 999px; border: 1px solid var(--pf-line); padding-left: 1.25rem;
}
.search-box-section .input-group-lg .btn {
    border-radius: 0 999px 999px 0; background: var(--pf-primary); color: #fff; border: none; padding-inline: 1.5rem;
}
.search-results-section .search-result mark { background: #fef3c7; color: inherit; padding: 0 .15rem; border-radius: 3px; }
.search-result { border-bottom: 1px dashed var(--pf-line); padding: 1rem 0; }
.search-result h3 { font-size: 1.05rem; font-weight: 700; }
.search-result h3 a { color: var(--pf-text); }
.search-result h3 a:hover { color: var(--pf-primary); }

/* ============================================
   5. FAQ (FaqSection) - <details>/<summary>
   ============================================ */
.faq-section .faq-item {
    background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius);
    padding: 1.1rem 1.35rem; margin-bottom: 1rem; box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.faq-section .faq-item summary {
    font-weight: 700; color: var(--pf-text); cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-section .faq-item summary::-webkit-details-marker { display: none; }
.faq-section .faq-item summary .faq-toggle { color: var(--pf-primary); transition: transform .2s ease; }
.faq-section .faq-item[open] summary .faq-toggle { transform: rotate(45deg); }
.faq-section .faq-q-num { color: var(--pf-primary); font-weight: 800; margin-right: .5rem; }
.faq-section .faq-answer {
    margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--pf-line);
    color: var(--pf-text-2); line-height: 1.8;
}
.faq-list { display: flex; flex-direction: column; }
.faq-aside {
    background: var(--pf-primary); color: #fff; border-radius: var(--pf-radius); padding: 1.75rem;
}

/* ============================================
   6. Author Box (AuthorBoxSection)
   ============================================ */
.author-box {
    display: flex; gap: 1rem; align-items: center; background: var(--pf-soft);
    border-radius: var(--pf-radius); padding: 1.25rem 1.5rem; border-left: 4px solid var(--pf-primary);
}
.author-box img { width: 56px; height: 56px; object-fit: cover; }
.author-box .badge-check { color: var(--pf-primary); }
.main-authors-section { background: var(--pf-soft); }
.author-card {
    background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius);
    padding: 1.5rem; text-align: center; height: 100%;
}
.author-card img.rounded-circle { width: 72px; height: 72px; object-fit: cover; }

/* ============================================
   7. Related Posts (RelatedPostsSection)
   ============================================ */
.related-posts { background: #fff; }
.related-posts h3 { font-weight: 800; font-size: 1.15rem; }
.related-card {
    display: block; border: 1px solid var(--pf-line); border-radius: var(--pf-radius);
    overflow: hidden; background: #fff; height: 100%;
}
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card .related-body { padding: .9rem 1rem 1.1rem; }
.related-card h4 { font-size: .95rem; font-weight: 700; line-height: 1.5; color: var(--pf-text); }
.related-card:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }

/* ============================================
   8. Social Share (SocialShareSection)
   ============================================ */
.social-share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.social-share .btn { border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; }
.social-share .btn-outline-primary { color: var(--pf-primary); border-color: var(--pf-primary); }
.social-share .btn-outline-primary:hover { background: var(--pf-primary); color: #fff; }
.social-share [data-copy-url].copied { background: var(--pf-primary); color: #fff; border-color: var(--pf-primary); }

/* ============================================
   9. Modal (微信二维码)
   ============================================ */
.modal-content { border-radius: 18px; border: 0; }
.modal-body { text-align: center; }

/* ============================================
   10. Error Page (Error404Section)
   ============================================ */
.error-page h1 { font-size: 5rem; font-weight: 900; color: var(--pf-primary); }
.error-page .recommended-links a {
    display: inline-block; background: var(--pf-soft); color: var(--pf-text); border-radius: 999px;
    padding: .3rem .9rem; margin: 0 .4rem .6rem 0; font-size: .85rem;
}
.error-page .recommended-links a:hover { background: var(--pf-primary); color: #fff; }

/* ============================================
   11. 标签页 Tag Center
   ============================================ */
.tag-card {
    display: block; background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius);
    padding: 1rem; text-align: center; height: 100%;
}
.tag-card b { color: var(--pf-text); }
.tag-card small { color: var(--pf-text-2); }
.tag-card:hover { border-color: var(--pf-primary); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.tag-card:hover b { color: var(--pf-primary); }

/* ============================================
   12. 更新流水 Update (UpdateSection)
   ============================================ */
.update-section { background: #fff; }
.update-list { list-style: none; margin: 0; padding: 0; }
.update-list li {
    display: flex; gap: 1rem; align-items: baseline; padding: .85rem 0;
    border-bottom: 1px dashed var(--pf-line);
}
.update-list time { color: var(--pf-text-2); font-size: .82rem; white-space: nowrap; flex-shrink: 0; }
.update-list a { color: var(--pf-text); font-weight: 600; }
.update-list a:hover { color: var(--pf-primary); }
.update-badge {
    background: rgba(245, 158, 11, .14); color: #b45309; border-radius: 6px;
    padding: .1rem .5rem; font-size: .75rem; font-weight: 700; flex-shrink: 0;
}

/* ============================================
   13. 移动端菜单（纯 CSS checkbox，关闭 JS 可用）
   ============================================ */
.pf-nav-check { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pf-menu { display: none; }
.pf-nav-check:checked ~ .pf-menu { display: block; }

/* ============================================
   14. 响应式
   ============================================ */
@media (max-width: 991.98px) {
    .departments-grid { grid-template-columns: 1fr; }
    .hero-split { grid-template-columns: 1fr; }
    .hero-split-img { display: none; }
    .posts-grid, .post-list-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .honor-row { grid-template-columns: 1fr; }
    .hero-section { min-height: 320px; }
    .timeline-card img { width: 78px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
}
