@@ -641,4 +641,44 @@ select.input option { background: var(--bg-card); }
641641 .stat-grid { grid-template-columns : 1fr 1fr ; }
642642 .card-grid { grid-template-columns : 1fr ; }
643643 .api-key-card { margin-top : 12px ; }
644+ /* 移动端表格卡片化(rant 18:06:09 C:隐藏表头,行 → label:value 卡片,不再横滚) */
645+ .table { display : block; }
646+ .table thead { display : none; }
647+ .table tbody { display : block; }
648+ .table tbody tr {
649+ display : block;
650+ border : 1px solid var (--border );
651+ border-radius : var (--radius-sm );
652+ padding : 4px 12px ;
653+ margin-bottom : 10px ;
654+ background : var (--bg-card );
655+ }
656+ .table tbody tr : nth-child (even) { background : var (--bg-card ); }
657+ .table tbody tr : hover { background : var (--bg-hover ); }
658+ .table tbody td {
659+ display : flex;
660+ align-items : center;
661+ justify-content : space-between;
662+ gap : 10px ;
663+ padding : 7px 0 ;
664+ border-bottom : 1px solid var (--table-row-border );
665+ text-align : right;
666+ white-space : normal;
667+ }
668+ .table tbody tr > td : last-child { border-bottom : none; }
669+ .table tbody td ::before {
670+ content : attr (data-label);
671+ color : var (--text-mute );
672+ font-size : 12px ;
673+ font-weight : 500 ;
674+ flex-shrink : 0 ;
675+ text-align : left;
676+ }
677+ .table tbody td [data-label = "" ]::before { display : none; }
678+ /* 操作按钮整行宽 */
679+ .table tbody td : last-child { flex-wrap : wrap; }
680+ .table tbody td .btn { flex : 1 1 45% ; }
681+ .pager-size { display : none; }
682+ .empty-cell { display : block; text-align : center; }
683+ .empty-cell .empty-state { padding : 8px 0 ; }
644684}
0 commit comments