/*
Theme Name: Astra Child
Template: astra
Description: Astra 子主题，隐藏作者/日期/文章导航，保留正文，为特色图片添加全局鼠标悬浮放大效果，移除标题下划线，确保图片居中对齐和标题位置固定，支持轮播功能，仅保留 WhatsApp 和 Email 悬浮联系按钮，定位调整以避免覆盖置顶按钮
Version: 1.2.2
*/

/* 隐藏单篇文章页面元数据 */
.single-post .entry-meta,
.single-post .ast-single-post-navigation,
.single-post .ast-author-details,
.single-post .post-navigation,
.single-post .ast-post-nav {
    display: none !important;
}

/* 确保短代码插入的特色图片显示，并添加全局鼠标悬浮效果 */
.wp-post-image {
    display: block !important;
    transition: transform 0.3s ease !important;
}

.wp-post-image:hover {
    transform: scale(1.1) !important;
}

/* custom_post_list 全局样式 */
.custom-post-list .custom-post-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-post-list .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.custom-post-list .custom-post-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease !important;
}

.custom-post-list .custom-post-item img:hover {
    transform: scale(1.1) !important;
}

/* 移除标题链接下划线，增强特异性 */
body .custom-post-list .title a,
.custom-post-list .title a,
.custom-post-list a {
    text-decoration: none !important;
}

/* 轮播样式 */
.custom-post-list.carousel-enabled .carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.custom-post-list.carousel-enabled .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.custom-post-list.carousel-enabled .custom-post-item {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .custom-post-list.carousel-enabled .custom-post-item {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media (min-width: 1025px) {
    .custom-post-list.carousel-enabled .custom-post-item {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* 导航箭头 */
.custom-post-list.carousel-enabled .carousel-prev,
.custom-post-list.carousel-enabled .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.custom-post-list.carousel-enabled .carousel-prev {
    left: 0;
}

.custom-post-list.carousel-enabled .carousel-next {
    right: 0;
}

/* 悬浮联系按钮样式（仅 WhatsApp 和 Email） */
.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    display: flex;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    animation: pulse 2s infinite;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.floating-btn:hover,
.floating-btn:focus {
    transform: scale(1.1);
    outline: none;
}

.floating-btn img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    opacity: 1;
}

@media (max-width: 767px) {
    .floating-contact {
        bottom: 80px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}