first commit

This commit is contained in:
mei
2026-08-10 22:56:38 +08:00
commit 2086bd79cc
32 changed files with 14110 additions and 0 deletions
+492
View File
@@ -0,0 +1,492 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.logo {
height: 32px;
margin: 16px;
color: #fff;
font-size: 18px;
font-weight: bold;
text-align: center;
line-height: 32px;
white-space: nowrap;
overflow: hidden;
}
.site-layout-content {
padding: 24px;
min-height: 360px;
}
.dashboard-card {
text-align: center;
cursor: pointer;
transition: all 0.3s;
}
.dashboard-card:hover {
transform: translateY(-4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.stat-number {
font-size: 36px;
font-weight: bold;
margin: 8px 0;
}
.search-bar {
margin-bottom: 16px;
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}
.table-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
gap: 12px;
}
.status-tag-normal { color: #52c41a; }
.status-tag-repairing { color: #faad14; }
.status-tag-scrapped { color: #f5222d; }
.status-tag-unused { color: #d9d9d9; }
.about-page {
max-width: 800px;
margin: 0 auto;
padding: 24px;
}
.about-page h1 {
font-size: 28px;
margin-bottom: 24px;
color: #1890ff;
}
.about-page h2 {
font-size: 20px;
margin: 24px 0 12px;
color: #333;
}
.about-page p {
line-height: 1.8;
color: #666;
margin-bottom: 12px;
}
.about-page ul {
padding-left: 24px;
margin-bottom: 16px;
}
.about-page li {
line-height: 2;
color: #666;
}
.guide-page {
max-width: 800px;
margin: 0 auto;
padding: 24px;
}
.guide-page h1 {
font-size: 28px;
margin-bottom: 24px;
color: #1890ff;
}
.guide-page h2 {
font-size: 20px;
margin: 24px 0 12px;
color: #333;
padding-bottom: 8px;
border-bottom: 2px solid #e8e8e8;
}
.guide-page h3 {
font-size: 16px;
margin: 16px 0 8px;
color: #444;
}
.guide-page p {
line-height: 1.8;
color: #666;
margin-bottom: 12px;
}
.guide-page ol,
.guide-page ul {
padding-left: 24px;
margin-bottom: 16px;
}
.guide-page li {
line-height: 2;
color: #666;
}
.guide-page .tip {
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 4px;
padding: 12px 16px;
margin: 12px 0;
}
.guide-page .warning {
background: #fffbe6;
border: 1px solid #ffe58f;
border-radius: 4px;
padding: 12px 16px;
margin: 12px 0;
}
/* ==================== 登录页样式 ==================== */
.login-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.login-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 0;
overflow: hidden;
}
.login-shape {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.6;
}
.shape-1 {
width: 500px;
height: 500px;
background: #7c3aed;
top: -150px;
right: -100px;
}
.shape-2 {
width: 400px;
height: 400px;
background: #2563eb;
bottom: -100px;
left: -100px;
}
.shape-3 {
width: 300px;
height: 300px;
background: #ec4899;
top: 40%;
left: 30%;
opacity: 0.4;
}
.login-container {
position: relative;
z-index: 1;
width: 100%;
max-width: 420px;
padding: 24px;
}
.login-brand {
text-align: center;
margin-bottom: 32px;
}
.login-logo {
max-width: 260px;
height: auto;
margin-bottom: 12px;
}
.login-subtitle {
color: rgba(255, 255, 255, 0.85);
font-size: 20px;
font-weight: 500;
letter-spacing: 2px;
margin: 0;
}
.login-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
}
.login-title {
text-align: center;
font-size: 24px;
color: #1f2937;
margin-bottom: 8px;
}
.login-desc {
text-align: center;
color: #6b7280;
margin-bottom: 24px;
}
.login-btn {
height: 44px;
font-size: 16px;
border-radius: 8px;
background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
border: none;
}
.login-btn:hover {
background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%) !important;
}
.login-hint {
margin-top: 20px;
padding: 12px;
background: #f3f4f6;
border-radius: 8px;
text-align: center;
color: #6b7280;
font-size: 13px;
}
.login-hint p {
margin: 4px 0;
}
.login-copyright {
text-align: center;
color: rgba(255, 255, 255, 0.5);
font-size: 13px;
margin-top: 24px;
}
/* ==================== 侧边栏 Logo ==================== */
.logo-area {
height: 80px;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo-img {
max-width: 100%;
max-height: 48px;
object-fit: contain;
}
.logo-icon {
width: 40px;
height: 40px;
object-fit: contain;
}
/* ==================== 顶部问候语 ==================== */
.greeting-text {
font-size: 15px;
color: #374151;
font-weight: 500;
}
@media (max-width: 768px) {
.greeting-text {
display: none;
}
}
/* ==================== 移动端布局 ==================== */
.mobile-header {
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
padding: 0 12px !important;
height: 52px;
line-height: 52px;
position: sticky;
top: 0;
z-index: 100;
}
.mobile-title {
color: #fff;
font-size: 17px;
font-weight: 600;
}
.mobile-info-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
background: #f5f7fa;
border-bottom: 1px solid #e8e8e8;
flex-wrap: wrap;
}
.mobile-greeting {
font-size: 14px;
color: #374151;
font-weight: 500;
}
.mobile-content {
padding: 12px;
padding-bottom: 76px; /* 为底部导航留空间 */
background: #f5f7fa;
}
/* 底部导航 */
.bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
display: flex;
background: #fff;
border-top: 1px solid #e8e8e8;
z-index: 100;
padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 8px 0;
border: none;
background: none;
color: #8c8c8c;
font-size: 12px;
cursor: pointer;
transition: color 0.2s;
}
.bottom-nav-item .anticon {
font-size: 20px;
}
.bottom-nav-item.active {
color: #7c3aed;
}
/* ==================== 移动端响应式调整 ==================== */
@media (max-width: 768px) {
.site-layout-content {
padding: 12px;
}
.search-bar {
flex-direction: column;
align-items: stretch;
}
.search-bar .ant-input-affix-wrapper,
.search-bar .ant-select,
.search-bar .ant-btn {
width: 100% !important;
}
.table-toolbar {
flex-direction: column;
align-items: stretch;
}
.table-toolbar .ant-btn {
width: 100%;
}
.about-page,
.guide-page {
padding: 8px;
}
.about-page h1,
.guide-page h1 {
font-size: 22px;
}
.about-page h2,
.guide-page h2 {
font-size: 17px;
}
.about-page pre,
.guide-page pre {
font-size: 12px;
overflow-x: auto;
}
.stat-number {
font-size: 26px;
}
.login-logo {
max-width: 200px;
}
.login-container {
padding: 16px;
}
}
/* 表单网格(桌面2列) */
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0 16px;
}
/* 表单网格(桌面3列) */
.form-grid-3 {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 0 16px;
}
/* 表格在小屏下允许横向滚动 */
@media (max-width: 768px) {
.ant-table {
font-size: 13px;
}
.form-grid,
.form-grid-3 {
grid-template-columns: 1fr;
}
}