/*
 * @Project         : 横向统计信息优化版 (全新3列平衡布局)
 * @Url             : 蛙言资源网 kun66.cn
 * @Modifier        : Gemini
 */

/* --- 桌面端布局 (3列) --- */
.kun66-info-item {
    display: grid;
    grid-gap: 15px;
    /* MODIFIED: Re-architected to a more stable 3-column layout */
    grid-template-columns: repeat(3, 1fr); /* <--- 核心修改点 1: 采用3列布局 */
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    height: 280px;
    margin-bottom: 15px;
}

/* --- 明确定义每个模块的位置和大小 --- */

/* 日期模块 (左侧) */
.kun66-sjcs-item {
    grid-column: 1 / 2; /* <--- 核心修改点 2: 占据第1列 */
    grid-row: 1 / 3;    /* 占据两行的高度 */
    width: 100%;
    height: 100%;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 5%);
    background-color: var(--main-bg-color);
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
}

/* 文章模块 (中间第一排) */
.kun66-wz-item {
    grid-column: 2 / 3; /* <--- 核心修改点 3: 占据中间一列 */
    grid-row: 1 / 2;    /* 占据第一排 */
    display: grid;
    grid-gap: 15px;     /* 子项间距 */
    grid-template-columns: repeat(2, 1fr);
    overflow: unset !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 运行时间模块 (中间第二排) */
.kun66-yxsj-item {
    grid-column: 2 / 3; /* <--- 核心修改点 4: 占据中间一列 */
    grid-row: 2 / 3;    /* 占据第二排 */
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 5%);
    background-color: var(--main-bg-color);
    padding: 5px;
    box-sizing: border-box;
}

/* 时钟模块 (右侧) */
.kun66-sjcs-item2 {
    grid-column: 3 / 4; /* <--- 核心修改点 5: 占据第3列 */
    grid-row: 1 / 3;    /* 占据两行的高度 */
    width: 100%;
    height: 100%;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 5%);
    background-color: var(--main-bg-color);
    box-sizing: border-box;
}


/* --- 通用内部样式 (无需修改) --- */
.kun66-i-num { font-size: 20px; font-weight: 600; }

.kun66-wz-sty {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--main-bg-color);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 5%);
}

.kun66-sjcj-m { position: relative; font-size: 20px; font-weight: 700; text-align: center; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; }
.kun66-sjcj-content { text-align: center; margin-top: 10px; }
.kun66-meo-item { width: 100%; max-width: 282px; height: 120px; margin: 0 auto; }
.kun66-meo-item>img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
svg.icon.fa-2x { margin-top: 15px; }


/* --- 手机端/小屏幕布局 --- */
@media screen and (max-width: 959px) {
    .kun66-info-item {
        grid-gap: 10px;
        grid-template-columns: 1fr; /* 手机端变为单列布局 */
        grid-template-rows: auto;
        height: auto;
        padding: 10px;
    }
    
    /* 恢复所有模块的自动布局和尺寸 */
    .kun66-sjcs-item, .kun66-wz-item, .kun66-yxsj-item, .kun66-sjcs-item2 {
        grid-column: auto;
        grid-row: auto;
    }
    
    /* MODIFIED: 使用 'order' 属性来重新排列手机端的显示顺序 */
    .kun66-wz-item { order: 1; }      /* 文章模块最先显示 */
    .kun66-yxsj-item { order: 2; }    /* 运行时间第二 */
    .kun66-sjcs-item { order: 3; }    /* 日期模块第三 */
    .kun66-sjcs-item2 { display: none; } /* 时钟依然隐藏 */

    .kun66-i-num { font-size: 20px; }
    .kun66-sjcj-m { font-size: 16px; }
}

/* Other styles */
.enlighter-default .enlighter { max-height: 400px; overflow-y: auto !important; }
.posts-item .item-heading>a { font-weight: bold; color: unset; }
@media (max-width: 640px) { .meta-right .meta-view { display: unset !important; } }