/**
 * 星野爱小黑屋插件样式
 */

/* 小黑屋页面特定样式 */
.xypro_describe {
    position: relative;
    border: 1px dashed #dcdfe6;
    line-height: 26px;
    margin-top: 10px;
}

.xypro_describe_title {
    position: absolute;
    top: 0;
    left: 8px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: var(--main-bg-color);
    padding: 0 5px;
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xypro_describe_content {
    color: #606266;
    padding: 18px 15px 0;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: scroll;
}

/* 隐藏滚动条但允许滚动 */
#xy_hide::-webkit-scrollbar {
    display: none;
}

/* 表格样式 */
.yq {
    max-width: 100%;
    table-layout: fixed;
    color: #909399;
    margin-bottom: 18px;
    border-top: 1px solid #ebeef5;
    border-left: 1px solid #ebeef5;
}

.yq thead th {
    font-weight: 500;
    background: #ebeef5;
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
}

.yq_link td {
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* 响应式调整 */
@media screen and (max-width: 700px) {
    .yq {
        width: 600px !important;
    }
}

/* 小部件样式 */
.xy-widget-title {
    position: relative;
    padding: 0 0 14px 20px !important;
    margin-top: 5px;
    border-bottom: 1px solid #f5f6f7;
    font-size: 16px;
    font-weight: 600;
    color: #18191a;
    width: 100%;
}

.xy-widget-title:after {
    left: 12px !important;
}

.xy-widget-title:before,
.xy-widget-title:after {
    position: absolute;
    transform: skewX(-15deg);
    content: '';
    width: 3px;
    height: 16px;
    background: var(--theme-color);
    top: 0;
    left: 4px;
    bottom: 10%;
    transition: .4s;
}

.xy_tc_mb-5 {
    text-align: center;
    margin-bottom: -5px;
}

.font-hidden {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.box-body .notop {
    margin: 0 -10px;
    padding: 70px 0;
    background: url(https://5era.cn/pic/小黑屋.gif);
    background-size: contain;
    background-repeat: no-repeat;
    color: #fff;
    text-shadow: 0 0 8px #dd3030;
    font-weight: 700;
    background-position-x: center;
    background-position-y: center;
}

.box-body .notop h3 {
    font-size: 55px;
}

/* 移动端卡片样式 */
.zib-ban-cards {
    display: none;
}

.zib-ban-card {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid rgba(136, 136, 136, 0.1);
    transition: all 0.2s;
}

.zib-ban-card.active-card {
    border-left: 3px solid var(--theme-color, #fb2121);
}

.zib-ban-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(136, 136, 136, 0.2);
}

.zib-ban-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.zib-ban-card .status-badge {
    background-color: var(--theme-color, #fb2121);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.zib-ban-card .card-body {
    font-size: 14px;
}

.zib-ban-card .item {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
}

.zib-ban-card .item-label {
    width: 80px;
    color: #888;
    flex-shrink: 0;
}

.zib-ban-card .item-value {
    flex: 1;
}

.zib-ban-card .active-card .item-value {
    color: var(--theme-color, #fb2121);
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .zib-ban-table {
        display: none;
        /* 隐藏表格 */
    }

    .zib-ban-cards {
        display: block;
        /* 显示卡片 */
    }

    .box-body .notop {
        padding: 40px 0;
        /* 移动端减小顶部图片高度 */
        background: url(https://5era.cn/pic/小黑屋.gif) no-repeat center center;
        background-size: contain;
        max-height: 150px;
        margin-bottom: 15px;
    }
}