/* ============================================================================
 * 墨星博客文章页顶部信息样式 - 合并自 moxing-top-info 插件 v4.0
 * ============================================================================ */

/* --- 隐藏默认元素 --- */
.article-title,
.breadcrumb {
    display: none;
}

/* --- 主容器 --- */
.head_box_mx {
    color: white;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    margin-top: -20px;
    margin-bottom: 20px;
}

/* --- 文章标题 --- */
.moxing_head_info_post_title {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 1rem 0 1rem 0 !important;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* --- 分类与属性标签容器 --- */
.mxbk_tags-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mulu_one_two {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mulu_one_two span {
    display: inline-flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 250, 0.2);
    color: white;
    padding: 7px 10px;
    margin-right: 5px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.mulu_one_two span:hover {
    background-color: #fff;
    color: var(--focus-color) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mulu_one_two a {
    color: inherit;
    text-decoration: none;
}

/* --- 分类图标 --- */
.mx_category > i {
    margin-right: 5px;
    margin-top: 3px;
}

/* --- 标签 --- */
.mx_tags {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.mx_tags span {
    border-radius: 10px;
    color: white;
    opacity: .8;
    padding: 7px 10px;
    margin-right: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.mx_tags span:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.mx_tags span::before {
    font-size: 14px;
    content: '#';
    color: white;
    font-weight: bold;
    margin-right: 5px;
    opacity: .4;
}

/* --- 底部元信息 --- */
.mx_footer_meta {
    display: flex;
    align-items: center;
    color: var(--mx_text_color);
    font-size: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.mx_footer_meta span {
    margin-right: 5px;
}

.mx_footer_meta a {
    color: var(--mx_text_color);
    text-decoration: none;
}

.marrig {
    margin-right: 5px;
}

/* --- 波浪动画 --- */
.mx_waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    margin-bottom: 0;
    min-height: 50px;
    max-height: 100px;
    z-index: 100;
    overflow: hidden;
}

.parallax > use {
    animation: mx_move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes mx_move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* --- 入场动画 --- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* --- 背景区域 --- */
.moxing_background {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background-color: var(--mx_bg_color);
}

.moxing_background .b-wrap {
    position: absolute;
    left: 50%;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

.moxing_background .img {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    -webkit-transform: rotate(20deg);
    -moz-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    -o-transform: rotate(20deg);
    transform: rotate(20deg);
    -webkit-filter: blur(4px);
    filter: blur(4px);
}

.moxing_background img {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    transform: scale(0.9);
    transition: transform 1s ease;
}

/* 渐变遮罩 - post-header-7e7 变体 */
.post-header-7e7 .moxing_background .b-wrap::after {
    background-image: -webkit-linear-gradient(192.6deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
    background-image: -moz-linear-gradient(192.6deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
    background-image: -o-linear-gradient(192.6deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
    background-image: linear-gradient(257.4deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
}

/* 渐变遮罩 - 默认 */
.moxing_background .b-wrap::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: -webkit-linear-gradient(192.6deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
    background: -moz-linear-gradient(192.6deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
    background: -o-linear-gradient(192.6deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
    background: linear-gradient(257.4deg, rgba(250, 250, 250, 0.2) 2%, var(--mx_bg_color) 80%);
}

/* ============================================================================
 * 响应式断点
 * ============================================================================ */

/* 手机端 (≤767px) */
@media screen and (max-width: 767px) {
    .head_box_mx {
        padding: 20px;
    }

    .mxbk_tags-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .moxing_head_info_post_title {
        text-align: center;
        margin: 10px 0;
        font-size: 2rem;
    }

    .mx_footer_meta {
        justify-content: center;
        padding: 0 5px;
        margin-top: 10px;
    }

    .mx_tags {
        display: none;
    }

    .mx_waves {
        display: block;
    }

    .moxing_background,
    .head_box_mx {
        height: 40vh;
    }
}

/* 平板端 (768px-1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .head_box_mx {
        padding: 50px;
        width: 100%;
    }

    .moxing_background,
    .head_box_mx {
        height: 40vh;
    }
}

/* 桌面端 (≥1025px) */
@media screen and (min-width: 1025px) {
    .head_box_mx {
        padding: 100px;
        width: 100%;
        height: 50vh;
    }

    .mx_footer_meta {
        gap: 5px;
    }

    .mx_waves {
        display: block;
    }

    .moxing_background,
    .head_box_mx {
        height: 50vh;
    }
}
