/* 主容器，限制最大宽度并居中 */
html {
    font-size: 14px !important;
}
.dynamic_weishipin {
    padding: 0px !important;
    width: 100% !important;
}
.weishipin-wrapper {
    background-color: #fff !important;
}
.w-container {
    max-width: 1568px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 头部 ===== */
.w-header {
    background-color: #034ea1;
}
.w-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
}

/* 菜单导航 (参考武汉大学图书馆风格) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-item {
    display: inline-block;
    padding: 8px 0px;
    margin: 0px 10px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    background-color: transparent;
}

.nav-item:hover, .nav-item:focus, .nav-item:active {
    color: #fff;
    text-decoration: none;
}

.nav-item.active {
    color: #ffffff;
    border-bottom: 2px solid #fff;
}



/* ===== 内容区域：四列卡片 ===== */
.category-list {
    margin-top: 24px;
}
.section-title {
    margin: 0px 0 20px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #034ea1;
    border-left: 6px solid #034ea1;
    padding-left: 18px;
    letter-spacing: 0.5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 22px;
    margin-bottom: 60px;
}

/* 卡片容器 — 白色背景，圆角阴影 */
.card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 20, 40, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(3, 78, 161, 0.06);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(3, 78, 161, 0.12);
}

/* 图片区域 — 16:9 比例，展示全部内容（object-fit: contain） */
.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f0f4fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e9edf2;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 完整展示图片，不裁剪 */
    background-color: #f0f4fa;
    /* 留白区域浅色背景 */
    display: block;
    padding: 4px;
    /* 极细内边距，让图片不贴边 */
}

/* 卡片内容：标题、主讲人、发布时间 */
.card-content {
    padding: 18px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: #0b1e2f;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* 将元数据推到底部（主讲人+时间） */
    gap: 6px 10px;
    border-top: 1px dashed #e5eaf0;
    padding-top: 12px;
}

.speaker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: #2c4b6b;
    font-weight: 500;
}

.date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #5e6f82;
}

/* 卡片内主讲人与时间同行（第三列信息） */
.meta-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 14px;
    width: 100%;
}

/* 响应式适配：平板 2列，手机 1列 */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }

    .w-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-item {
        padding: 6px 0px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* 小细节：头部右侧菜单与logo对齐 */
.w-header-inner .nav-menu .nav-item:last-child {
    margin-right: 0;
}


/**微视频详情**/
.video-layout {
    /* max-width: 1200px;
    margin: 0 auto;
	width: 100%; */
}

.video-layout-container {
    display: flex;
    gap: 20px;
}

/* 左侧样式 */
.video-layout-container .layout-left {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}


/* 视频播放器 */
.video-wrapper {
    margin-bottom: 25px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* 文章内容 */
.video-layout-container .post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.video-layout-container .post-body p {
    margin-bottom: 15px;
}

.video-layout-container .post-body img {
    max-width: 100%;
    height: auto;
}



/* 右侧样式 */
.video-layout-container .layout-right {
    width: 400px;
    flex-shrink: 0;
}

.video-layout-container .sidebar-posts {
    /* background: #f8f8f8; */
    /* border-radius: 4px; */
    /* padding: 20px; */
}

.video-layout-container .sidebar-title {
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
	padding: 10px;
}

/* 相关文章列表 */
.video-layout-container .related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-layout-container .related-posts-list li {
    border-bottom: 1px solid #e8e8e8;
    padding: 10px;
}

.video-layout-container .related-posts-list li:last-child {
    border-bottom: none;
}

.video-layout-container .related-posts-list li a {
    /* display: block; */
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.video-layout-container .post-video-nav {
	display: flex;
}

/* 特色图片 */
.video-layout-container .post-video-nav .post-thumbnail {
    width: 110px;
    height: 70px;
    overflow: hidden;
    position: relative;
}

.video-layout-container .post-video-nav .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 占位图样式 */
.video-layout-container .post-video-nav .post-thumbnail.placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-layout-container .post-video-nav .placeholder-content {
    text-align: center;
    color: #999;
}

.video-layout-container .post-video-nav .placeholder-content .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.video-layout-container .related-posts-list li a:hover {
    color: #0066cc;
}

.video-layout-container .related-posts-list li.current-post {
    background: #e8f0fe;
}

.video-layout-container .related-posts-list li.current-post a {
    color: #0066cc;
}

.video-layout-container .post-video-nav .post-video-nav-right {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-left: 10px;
}

.video-layout-container .post-title-text {
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-layout-container .post-date-small {
    display: block;
    font-size: 12px;
    color: #999;
}

/* 空状态提示 */
.video-layout-container .no-posts,
.video-layout-container .no-category {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}
@media (max-width: 768px) {
    .video-layout {
        flex-direction: column;
    }
	.video-layout-container {
		display: block;
	}

	.video-layout-container .layout-left {
		width: 100%;
	}
    
    .video-layout-container .layout-right {
        width: 100%;
    }
    
    .video-layout-container .video-wrapper iframe,
    .video-layout-container .video-wrapper video {
        height: 250px;
    }
    
    .video-layout-container .post-title {
        font-size: 22px;
    }
}
/**end微视频**/