/* ================================================================================
    Kunena 论坛主题化美化 (最终高优先级修正版)
================================================================================
*/

/* --- 1. 整体背景和边框 --- */
div.kfrontend.shadow-lg.rounded.border.section {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* --- 2. 分类列表样式 (核心美化) --- */
table.k-table > tbody > tr.k-category {
    background-color: #fffef8;
    border: 1px solid #e0d5c1;
    display: table;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-collapse: separate;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

table.k-table > tbody > tr.k-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

tr.k-category td {
    border: none !important;
    vertical-align: middle;
}

/* --- 3. 卡片内部元素样式 --- */
.k-category .k-col-category-icon {
    padding-left: 20px !important;
    font-size: 1.5rem;
    width: 60px;
}

.k-category .k-category-title a {
    color: #800000; /* 主题红 */
    font-size: 1.3rem;
    font-weight: bold;
}
.k-category .k-category-title a:hover {
    color: #d4af37; /* 主题金 */
}

.k-category .k-latest-subject a {
    color: #333;
    font-weight: bold;
}
.k-category .k-latest-user a {
    color: #800000;
}

/* --- 4. 顶部面包屑导航和按钮 --- */
.kbreadcrumb .crumb a, a.k-button {
    color: #800000;
}

.klist-actions .k-button {
    background-color: #800000 !important;
    color: white !important;
    border: none !important;
    border-radius: 5px;
    text-shadow: none !important;
}

.klist-actions .k-button:hover {
    background-color: #a00000 !important;
}