/* =====================================================================
   应用站前台样式（PC + 手机自适应）
   ===================================================================== */
.site-body { background: #fff; color: #24292f; }

.site-navbar {
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #eaecef;
    padding-top: .55rem; padding-bottom: .55rem;
}
.site-navbar .navbar-brand { font-weight: 700; color: #2f6fed; display: flex; align-items: center; gap: 6px; }
.site-navbar .navbar-brand i { font-size: 20px; }
.site-navbar .nav-link { color: #475467; font-size: 14.5px; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: #2f6fed; }
.site-search { max-width: 260px; }

.site-main { min-height: 62vh; }

.site-hero {
    background: linear-gradient(135deg, #2f6fed 0%, #5b8def 55%, #7aa5f5 100%);
    color: #fff; padding: 62px 0 56px; position: relative; overflow: hidden;
}
.site-hero h1 { font-size: 34px; font-weight: 700; line-height: 1.3; }
.site-hero p { opacity: .92; font-size: 15px; max-width: 620px; }
.site-hero .site-hero-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.site-hero::after {
    content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
    background: rgba(255,255,255,.08); border-radius: 50%;
}

.site-section { padding: 46px 0; }
.site-section.alt { background: #f8fafc; }
.site-section-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.site-section-sub { color: #6b7280; font-size: 14px; margin-bottom: 26px; }

.site-card {
    border: 1px solid #eaecef; border-radius: 12px; background: #fff;
    transition: transform .18s ease, box-shadow .18s ease; height: 100%;
    overflow: hidden;
}
.site-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,24,40,.10); }
.site-card-cover { height: 148px; background: linear-gradient(135deg,#e8eefc,#f4f7fe); display: flex; align-items: center; justify-content: center; font-size: 38px; color: #2f6fed; }
.site-card-body { padding: 16px; }
.site-card-title { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.site-card-text { color: #6b7280; font-size: 13px; line-height: 1.6; }
.site-card-meta { color: #9aa4b2; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

.site-article-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f0f2f5; }
.site-article-item:last-child { border-bottom: 0; }
.site-article-thumb { width: 132px; height: 88px; flex: 0 0 132px; border-radius: 8px; background: linear-gradient(135deg,#e8eefc,#f4f7fe); display: flex; align-items: center; justify-content: center; color: #2f6fed; font-size: 26px; overflow: hidden; }
.site-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-article-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.site-article-summary { color: #6b7280; font-size: 13.5px; line-height: 1.65; }
.site-article-meta { color: #9aa4b2; font-size: 12px; margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }

.site-detail-title { font-size: 25px; font-weight: 700; line-height: 1.4; }
.site-detail-meta { color: #9aa4b2; font-size: 12.5px; margin: 10px 0 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.site-content { font-size: 15.5px; line-height: 1.9; color: #303540; word-break: break-word; }
.site-content img { max-width: 100%; border-radius: 8px; }
.site-content h2, .site-content h3 { margin-top: 26px; font-weight: 700; }
.site-content pre { background: #f6f8fa; padding: 14px; border-radius: 8px; overflow: auto; }

.site-sidebar-card { border: 1px solid #eaecef; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.site-sidebar-card h6 { font-weight: 700; margin-bottom: 12px; }
.site-cat-list { list-style: none; padding: 0; margin: 0; }
.site-cat-list li { padding: 6px 0; border-bottom: 1px dashed #eef1f5; font-size: 14px; }
.site-cat-list li:last-child { border-bottom: 0; }
.site-cat-list a { color: #475467; display: flex; justify-content: space-between; }
.site-cat-list a:hover, .site-cat-list a.active { color: #2f6fed; }
.site-tag-cloud { display: flex; gap: 8px; flex-wrap: wrap; }
.site-tag-cloud a { background: #f2f4f7; border-radius: 20px; padding: 3px 12px; font-size: 12.5px; color: #475467; }
.site-tag-cloud a:hover { background: #2f6fed; color: #fff; }

.site-footer { background: #101828; color: #98a2b3; padding: 34px 0 18px; margin-top: 20px; }
.site-footer h6 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #98a2b3; }
.site-footer a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,.1); }

.site-pager { display: flex; justify-content: center; padding: 22px 0 6px; }
.site-pager .pagination { margin: 0; }

.site-empty { text-align: center; padding: 60px 12px; color: #9aa4b2; }
.site-empty i { font-size: 46px; display: block; opacity: .4; margin-bottom: 10px; }

/* 手机版 */
@media (max-width: 767.98px) {
    .site-hero { padding: 40px 0 34px; }
    .site-hero h1 { font-size: 24px; }
    .site-hero p { font-size: 14px; }
    .site-section { padding: 30px 0; }
    .site-section-title { font-size: 18px; }
    .site-article-item { flex-direction: column; gap: 10px; }
    .site-article-thumb { width: 100%; flex: none; height: 160px; }
    .site-detail-title { font-size: 20px; }
    .site-content { font-size: 15px; }
    .site-search { max-width: 100%; margin: 10px 0; }
}
