| /* app/static/css/responsive.css - 响应式调整 */ | |
| @media (max-width: 768px) { | |
| body { | |
| padding: 15px; | |
| } | |
| .main-wrapper { | |
| padding: 20px; | |
| } | |
| .main-header { | |
| flex-direction: column; /* 标题和按钮垂直堆叠 */ | |
| align-items: flex-start; | |
| margin-bottom: 30px; | |
| } | |
| .main-header h1 { | |
| margin-bottom: 15px; | |
| font-size: 2rem; | |
| } | |
| .card { | |
| padding: 20px; | |
| } | |
| .metrics-grid { | |
| grid-template-columns: 1fr; /* 小屏幕下每行一个指标项 */ | |
| } | |
| .input-area { | |
| flex-direction: column; /* 小屏幕下输入区域垂直布局 */ | |
| align-items: stretch; | |
| } | |
| .input-area button, | |
| .input-area .file-upload-label { | |
| width: 100%; /* 按钮和文件上传标签宽度占满 */ | |
| text-align: center; | |
| } | |
| .message { | |
| max-width: 90%; /* 小屏幕下消息宽度更大 */ | |
| } | |
| .records-section th, | |
| .records-section td { | |
| padding: 8px; | |
| font-size: 0.85rem; | |
| } | |
| } | |