style.css 4.12 KB
/*
文件名: app/static/css/style.css
职责: 系统页面样式定义,负责 WebUI 的视觉呈现和布局美化。
注意: 不要删除这个注释。
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-item {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-item {
    color: white;
    text-decoration: none;
}
.nav-item:hover, .nav-item.active {
    background-color: #34495e;
}

/* 主体内容布局(全宽,无侧边栏) */
main {
    flex: 1;
    overflow: auto;
}

/* 全宽内容展示区 */
#content-area {
    padding: 20px;
    background-color: #f9f9f9;
    min-height: 100%;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 弹窗样式 (Modal) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 70%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* 详情表格样式 */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th, .detail-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.detail-table th {
    background-color: #fafafa;
    color: #555;
    font-weight: 600;
}

.detail-table tr:hover {
    background-color: #fafafa;
}

/* 任务详情元信息区域 */
#detail-meta {
    background: #f0f5ff;
    padding: 8px 16px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
}
#detail-meta .meta-tag {
    margin-right: 20px;
}
#detail-meta .meta-tag b {
    color: #333;
}

.status-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-success { background-color: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }
.status-failed { background-color: #fff1f0; border: 1px solid #ffa39e; color: #f5222d; }
.status-info { background-color: #e6f7ff; border: 1px solid #91d5ff; color: #1890ff; }

/* ========== 首页导航卡片 ========== */
.page-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 8px;
}
.page-subtitle {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 32px;
}
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-card {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 28px 24px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.25s;
    border: 1px solid #eee;
}
.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #1890ff;
}
.nav-card-icon {
    font-size: 36px;
    margin-bottom: 14px;
    text-align: center;
}
.nav-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
}
.nav-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}