/* ========== Blog Page ========== */

/* Banner */
.blog-banner {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, rgb(0,80,156) 0%, rgb(0,40,100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/img/blog-banner.jpg') center/cover no-repeat;
    opacity: 0.25;
}
.blog-banner-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}
.blog-banner-text h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.blog-banner-text p {
    font-size: 16px;
    opacity: 0.85;
    margin: 0;
}

/* List Section */
.blog-list-section {
    padding: 64px 0 80px;
    background: #f5f7fa;
}

/* Blog Item — 奇左偶右 */
.blog-item {
    display: flex;
    align-items: center;
    gap: 48px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-item:hover {
    box-shadow: 0 8px 40px rgba(0,80,156,0.13);
    transform: translateY(-2px);
}

/* 偶数：图片在右 */
.blog-item.even {
    flex-direction: row-reverse;
}

.blog-item-img {
    flex: 0 0 420px;
    height: 280px;
    overflow: hidden;
    position: relative;
}
.blog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.blog-item:hover .blog-item-img img {
    transform: scale(1.04);
}

.blog-item-body {
    flex: 1;
    padding: 36px 40px 36px 0;
}
.blog-item.even .blog-item-body {
    padding: 36px 0 36px 40px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.blog-date {
    font-size: 13px;
    color: rgb(0,80,156);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.blog-date i { font-size: 12px; }

.blog-item-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-item-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    background: rgb(0,80,156);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.blog-read-more:hover { background: rgb(0,60,120); color: #fff; }

/* Empty */
.blog-empty {
    text-align: center;
    padding: 80px 0;
    color: #aaa;
    font-size: 15px;
}
.blog-empty i { font-size: 40px; display: block; margin-bottom: 14px; }

/* ========== Blog Detail ========== */
.blog-detail-section {
    padding: 60px 0 80px;
    background: #f5f7fa;
}

.blog-detail-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.blog-detail-cover {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.blog-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-detail-body {
    padding: 44px 52px;
}

.blog-detail-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 14px;
    line-height: 1.3;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-detail-date {
    font-size: 13px;
    color: rgb(0,80,156);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-detail-content {
    font-size: 15px;
    color: #333;
    line-height: 1.85;
}
.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3 {
    color: #1a2332;
    margin: 28px 0 14px;
    font-weight: 700;
}
.blog-detail-content p { margin-bottom: 16px; }
.blog-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}
.blog-detail-content ul,
.blog-detail-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.blog-detail-content li { margin-bottom: 6px; }

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 36px;
    padding: 10px 24px;
    border: 1.5px solid rgb(0,80,156);
    color: rgb(0,80,156);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-back-btn:hover {
    background: rgb(0,80,156);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-item { flex-direction: column !important; }
    .blog-item-img { flex: none; width: 100%; height: 220px; }
    .blog-item-body,
    .blog-item.even .blog-item-body { padding: 24px 24px; }
    .blog-banner-text h1 { font-size: 28px; }
    .blog-detail-body { padding: 28px 24px; }
    .blog-detail-cover { height: 250px; }
    .blog-detail-title { font-size: 22px; }
}
