/* ========================================
   思妙商标分类系统1.0 - 列表模式样式
   左右两栏：左产品，右已选
   ======================================== */

.list-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    font-size: 14px;
    color: #333;
}

/* 顶部搜索栏 */
.list-topbar {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    padding: 15px;
    display: flex;
    align-items: center;
}

.list-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.list-select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    background: #fff;
    cursor: pointer;
}

.list-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    min-width: 300px;
    flex: 1;
    max-width: 400px;
}

.list-btn-search {
    height: 36px;
    padding: 0 24px;
    background: #ff5722;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.list-btn-search:hover {
    background: #f4511e;
}

/* 主体：左右两栏 */
.list-body {
    display: flex;
    gap: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
    min-height: 500px;
}

.list-panel {
    display: flex;
    flex-direction: column;
}

.list-left {
    width: 60%;
    border-right: 1px solid #e5e5e5;
}

.list-right {
    width: 40%;
    background: #fafafa;
}

/* 表格公共 */
.list-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.list-table-header,
.selected-table-header {
    background: #d9edf7;
}

.list-table-header th,
.selected-table-header th {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #bce8f1;
    white-space: nowrap;
}

.list-table-body,
.selected-table-body {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.list-table-body td,
.selected-table-body td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
}

.list-table-body tr,
.selected-table-body tr {
    cursor: pointer;
    transition: background 0.15s;
}

.list-table-body tr:hover,
.selected-table-body tr:hover {
    background: #f5f7fa;
}

.list-table-body tr.checked {
    background: #e6f7ff;
}

/* 列宽 */
.th-seq, .td-seq { width: 50px; }
.th-check, .td-check { width: 40px; }
.th-name, .td-name { width: auto; }
.th-cls, .td-cls { width: 60px; }
.th-group, .td-group { width: 90px; }
.th-code, .td-code { width: 100px; }

.td-name { text-align: left; padding-left: 12px !important; }

.td-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
}

/* 分页 */
.list-pagination {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
    color: #333;
}

.page-item {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    user-select: none;
}

.page-item:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.page-item.active {
    background: #fff;
    color: #c00000;
    border-color: #c00000;
    font-weight: bold;
}

.page-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* 添加按钮 */
.list-btn-add {
    margin: 12px auto;
    display: block;
    padding: 8px 28px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.list-btn-add:hover {
    background: #40a9ff;
}

/* 右侧已选区 */
.selected-count {
    padding: 12px;
    text-align: right;
    color: #ff5722;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.count-num {
    font-weight: bold;
}

.selected-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.list-btn-export {
    padding: 8px 24px;
    background: #009688;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.list-btn-export:hover {
    background: #26a69a;
}

.list-btn-clear {
    padding: 8px 24px;
    background: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.list-btn-clear:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* 说明 */
.list-instructions {
    padding: 15px;
    margin: 10px 15px 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.inst-title {
    color: #009688;
    font-weight: bold;
    margin-bottom: 8px;
}

.list-instructions p {
    margin: 5px 0;
}

/* 空状态 */
.empty-row td {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .list-body {
        flex-direction: column;
    }
    .list-left, .list-right {
        width: 100%;
        border-right: none;
    }
    .list-search {
        flex-wrap: wrap;
    }
    .list-input {
        min-width: 120px;
        flex: 1;
    }
    .list-btn-search {
        flex: none;
    }
}
