/* coodot.css - 酷亿点美化插件核心样式 */

/* 1. 基础布局修正 */
body { overflow-x: hidden; }
.article-title, .breadcrumb { display: none; }

/* 2. 头部大图容器 */
.head_box_mx {
    color: white;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    margin-top: -20px;
    margin-bottom: 20px;
    /* 强制全宽补丁 */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

/* 3. 标题与信息样式 */
.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;
}

.category > i { margin-right: 5px; margin-top: 3px; }
.mxbk_tags-container { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

/* 4. 分类与属性按钮 */
.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;
}

/* 5. 标签样式 */
.tags { display: flex; align-items: center; margin-left: 20px; }
.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;
}
.tags span:hover { background-color: rgba(255, 255, 255, 0.3); color: white; padding: 7px 10px; }
.tags span::before { font-size: 14px; content: '#'; color: white; font-weight: bold; margin-right: 5px; opacity: .4; }

/* 6. 底部元数据 */
.mx_footer_meta {
    display: flex;
    align-items: center;
    color: var(--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(--text_color); text-decoration: none; }
.marrig { margin-right: 5px; }

/* 7. 波浪动画 */
.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: 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 move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* 8. 响应式布局 */
@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; }
    .tags { display: none; }
    .mx_waves { display: block; }
    .moxing_background, .head_box_mx { height: 40vh; }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .head_box_mx { padding: 50px; width: 100%; }
    .moxing_background, .head_box_mx { height: 40vh; }
}
@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; }
}

/* 9. 动画与背景图 */
@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(--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;
    transform: rotate(20deg); filter: blur(4px);
}
.moxing_background img {
    position: absolute; right: 0; top: 0; width: 100%; height: 100%;
    display: block; object-fit: cover; transform: scale(0.9); transition: transform 1s ease;
}
.moxing_background .b-wrap::after {
    content: ''; display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(257.4deg, rgba(250, 250, 250, 0.2) 2%, var(--bg_color) 80%);
}