/*body {*/
/*    font-family: Arial, Helvetica, sans-serif;*/
/*    background: #f5f6f7;*/
/*}*/

/*.container {*/
/*    width: 900px;*/
/*    margin: 30px auto;*/
/*    background: #fff;*/
/*    padding: 20px;*/
/*    border-radius: 6px;*/
/*}*/

/* 顶部工具栏 */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 物品矩阵 */
.item-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

/* 单个物品 */
.item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.item img {
    width: 100%;
    display: block;
}

/* 数量角标 */
.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: red;
    color: #fff;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}

/* 总价 */
.total {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
}


.category-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.category-btn {
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #f2f2f2;
    cursor: pointer;
    border-radius: 4px;
}

.category-btn.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}


.record-layout {
    display: flex;
    gap: 16px;
}

.record-main {
    flex: 1;
}

.record-detail {
    width: 300px;
    border-left: 1px solid #eee;
    padding-left: 12px;
    font-size: 14px;
}

.record-detail h3 {
    margin-bottom: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.detail-item.income {
    color: #2e7d32;
}

.detail-item.expense {
    color: #c62828;
}

.detail-name {
    flex: 1;
}

.detail-amount {
    margin-left: 8px;
    white-space: nowrap;
}

