/* 后台列表页通用样式：PC / 手机壳共用，按 data-device 区分 */

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.page-toolbar .page-title { margin: 0; }
.page-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.page-toolbar-actions .el-input,
.page-toolbar-actions .el-select {
    width: auto;
}

.page-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}
.page-table-wrap .el-table {
    min-width: 640px;
}

.page-pager {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.page-list-cards {
    display: none;
    flex-direction: column;
    gap: 10px;
}
.page-list-card {
    background: var(--saas-surface, #e8ecf0);
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--neu-shadow-sm, 3px 3px 8px #c5cdd5, -3px -3px 8px #fff);
}
.page-list-card-hd {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.page-list-card-title {
    font-size: 15px;
    font-weight: 650;
    color: #1d2a33;
    line-height: 1.35;
    word-break: break-word;
}
.page-list-card-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #8a9aa3;
    line-height: 1.4;
}
.page-list-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: #4a5a64;
    margin: 8px 0 10px;
}
.page-list-card-meta b {
    color: #1d2a33;
    font-weight: 650;
}
.page-list-card-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 8px;
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(197, 205, 213, 0.45);
}
.page-list-card-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: none;
    background: var(--saas-bg, #e8ecf0);
    flex-shrink: 0;
    box-shadow: var(--neu-inset-sm, inset 2px 2px 5px #c5cdd5, inset -2px -2px 5px #fff);
}
.page-list-card-main {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.page-empty-hint {
    padding: 28px 12px;
    text-align: center;
    color: #9aa8b1;
    font-size: 13px;
}

/* —— 手机壳 —— */
body[data-device="mobile"] .page-card {
    padding: 12px;
    border-radius: 12px;
    border: none;
    box-shadow: var(--neu-shadow-sm, 3px 3px 8px #c5cdd5, -3px -3px 8px #fff);
}
body[data-device="mobile"] .page-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
}
body[data-device="mobile"] .page-toolbar .page-title {
    font-size: 16px;
}
body[data-device="mobile"] .page-toolbar-actions {
    width: 100%;
}
body[data-device="mobile"] .page-toolbar-actions .el-input,
body[data-device="mobile"] .page-toolbar-actions .el-select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
}
body[data-device="mobile"] .page-toolbar-actions .el-input {
    width: auto !important;
}
body[data-device="mobile"] .page-toolbar-actions .el-select {
    width: auto !important;
}
body[data-device="mobile"] .page-toolbar-actions .el-button {
    flex: 0 0 auto;
}

body[data-device="mobile"] .page-table-only {
    display: none !important;
}
body[data-device="mobile"] .page-list-cards {
    display: flex;
}
body[data-device="pc"] .page-list-cards {
    display: none !important;
}
body[data-device="pc"] .page-table-only {
    display: block;
}

body[data-device="mobile"] .page-pager {
    justify-content: center;
}
body[data-device="mobile"] .page-pager .el-pagination {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
}
body[data-device="mobile"] .page-pager .el-pagination__total {
    margin-right: 8px;
}

/* 弹窗在手机壳全宽更易操作 */
body[data-device="mobile"] .el-dialog {
    --el-dialog-width: min(96vw, 520px) !important;
    width: min(96vw, 520px) !important;
    margin: 8vh auto !important;
}
body[data-device="mobile"] .el-dialog__body {
    padding: 12px 14px 8px;
}
body[data-device="mobile"] .el-form-item__label {
    width: 72px !important;
}
body[data-device="mobile"] .el-overlay-dialog {
    padding: 0 8px;
}

/* 装修列表 / 应用中心 手机适配（详情见 decorate.css data-device 规则） */
body[data-device="mobile"] .app-center-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
body[data-device="mobile"] .app-center-head .el-input {
    width: 100% !important;
}
body[data-device="mobile"] .app-center-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
body[data-device="mobile"] .app-grid {
    grid-template-columns: 1fr;
}

body[data-device="mobile"] .el-tabs__header {
    margin-bottom: 12px;
}
body[data-device="mobile"] .el-tabs__nav-wrap {
    overflow-x: auto;
}
body[data-device="mobile"] .page-toolbar + .el-tabs .page-toolbar {
    margin-top: 0;
}
