/*
 Theme Name:   Yia Child
 Description:  Yia 子主题
 Author:       Edward Meng
 Template:     yia
 Version:      1.0.0
*/


.yia-radius .widget {
    border-radius: 0px !important;
}

.yia-radius .yia-rds8 {
    border-radius: 0px !important;
}

.yia-top-box {
    border-radius: 0px !important;
}

.yia-radius .post-list.layout-default .post-item:first-child {
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.yia-radius .post-list.layout-default .post-item:last-child {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

/* .post-list.layout-default .post-item {
    margin-bottom: 15px !important;
} */



.post-list.layout-default .post-item {
    transition: background-color 0.25s ease;
    box-sizing: border-box;
    overflow: hidden; /* 防止内容放大溢出 */
}

.post-list.layout-default .post-item:hover {
    background-color: #fafafa;
    cursor: pointer;
}





body .widget.yia-fix-top::after {
    background-color: unset !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body .widget.yia-fix-top {
    box-shadow: none !important;
}

.yia-recent-comment .item-avatar {
    border-radius: 0px !important;
}

.yia-radius .yia-nodata, .yia-radius .yia-top-box, .yia-radius .yia-notice-box {
    border-radius: 0px !important;
}

.comments-list .comment-main .item-avatar{
    border-radius: 0px !important;
}
.comments-container .comment-respond{
    max-width: 100% !important;
}

.post-list.layout-default .yia-cat-item{
    margin-right: 0px !important;
    border-radius: 0px !important;
}

.post-list.layout-default .post-info .meta-item i {
    font-size: 15px !important;
}

.post-list.layout-default .yia-cat-item .cat-icon {
    border-radius: 0px !important;
}

.yia-radius .yia-rds8, .yia-radius .layout-events{
    border-radius: 0px !important;
}

.post-list.layout-default .post-item .post-content{
    font-size: 16px !important;
}

/*-------------------文章右侧播放按钮-----------------------------------*/

div.my-video {
    display: flex;        /* 使用 Flexbox 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center;  /* 垂直居中 */
}

div.my-video div.item {
    display: flex;        /* 使用 Flexbox 布局 */
    flex-direction: column; /* 设置子元素垂直排列 */
    align-items: center;  /* 子元素在交叉轴上（这里是垂直轴）居中 */
    margin-left: 15px;         /* 子元素之间的间隔 */
    margin-right: 15px;         /* 子元素之间的间隔 */
}

div.my-video div.item img {
    /*width: 32px;*/
    height:32px;
}





/*-------------------文章标题前缀右对齐-----------------------------------*/
/* 标题容器：设置弹性布局，让子元素左右分布 */
.yia-title-wrap {
    position: relative;       /* 兼容旧浏览器备选方案 */
    display: flex;            /* 弹性布局 */
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center;      /* 垂直居中（可选，让标题和prefix对齐） */
    width: 100%;              /* 占满整行宽度，确保右对齐生效 */
}

/* 标题文本容器：左对齐（默认） */
.yia-title-text {
    flex: 1;                  /* 占满除prefix外的剩余空间 */
}

/* Prefix容器：右对齐 */
.yia-title-prefix {
    margin-left: 10px;        /* 与标题文本保持间距（可选） */
    white-space: nowrap;      /* 防止prefix换行 */
    text-align: right;        /* 兜底的右对齐 */
}

/* 兼容旧浏览器（如IE）的备选样式（可选） */
.yia-title-wrap .yia-title-prefix {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.yia-title-wrap .yia-title-text {
    padding-right: 80px; /* 根据prefix长度调整，避免重叠 */
}

