a3report.css 6.35 KB
/* ==========================================================================
   A3 报告页面样式:整体风格参照年度方针管理看板截图(蓝色标题栏 + 灰底表头)
   ========================================================================== */

* {
    box-sizing: border-box;
}

body.a3-page {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: #303133;
    background: #f0f2f5;
    line-height: 1.5;
}

/* ---------- 顶部页头 ---------- */
.a3-header {
    background: linear-gradient(90deg, #1e6fd9 0%, #2b8ae6 100%);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.a3-header-title {
    display: flex;
    align-items: center;
}

.a3-header-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #ffd04b;
    margin-right: 10px;
    border-radius: 2px;
}

.a3-header-title h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.a3-header-title h1 small {
    font-size: 13px;
    font-weight: normal;
    opacity: 0.85;
    margin-left: 6px;
}

.a3-header-actions .btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.a3-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.a3-header-actions .btn-primary {
    background: #ffd04b;
    color: #1e6fd9;
    border-color: #ffd04b;
    font-weight: 600;
}

.a3-header-actions .btn-primary:hover {
    background: #ffdb70;
}

/* ---------- 卡片区块 ---------- */
.a3-card {
    background: #fff;
    margin: 14px 20px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.a3-card-title {
    background: #1e6fd9;
    color: #fff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.a3-card-title-bar {
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #ffd04b;
    margin-right: 8px;
    border-radius: 2px;
}

.a3-card-title-btn {
    margin-left: auto;
}

/* ---------- 表单网格 ---------- */
.a3-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
    padding: 14px 18px;
}

.a3-form-item {
    display: flex;
    flex-direction: column;
}

.a3-form-item-full {
    grid-column: 1 / -1;
}

.a3-form-item label {
    font-size: 12px;
    color: #606266;
    margin-bottom: 4px;
    font-weight: 500;
}

.a3-form-item label .req {
    color: #f56c6c;
    margin-left: 2px;
}

.a3-form-item input[type="text"],
.a3-form-item input[type="number"],
.a3-form-item input[type="date"],
.a3-form-item select,
.a3-form-item textarea {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    background: #fff;
    color: #303133;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}

.a3-form-item input:focus,
.a3-form-item select:focus,
.a3-form-item textarea:focus {
    border-color: #1e6fd9;
}

.a3-form-item textarea {
    resize: vertical;
    min-height: 56px;
}

/* ---------- 表格 ---------- */
.a3-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.a3-table thead th {
    background: #f5f7fa;
    color: #303133;
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #e4e7ed;
    white-space: nowrap;
}

.a3-table tbody td {
    padding: 6px 8px;
    border: 1px solid #ebeef5;
    vertical-align: middle;
}

.a3-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.a3-table tbody tr:hover {
    background: #ecf5ff;
}

.a3-table input[type="text"],
.a3-table input[type="number"],
.a3-table input[type="date"],
.a3-table select,
.a3-table textarea {
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    background: #fff;
    outline: none;
    font-family: inherit;
}

.a3-table input:focus,
.a3-table select:focus,
.a3-table textarea:focus {
    border-color: #1e6fd9;
}

.a3-table .empty-tip {
    text-align: center;
    color: #909399;
    padding: 20px;
    background: #fff;
}

.a3-table .row-index {
    text-align: center;
    color: #606266;
    font-weight: 500;
}

.a3-table .op-cell {
    text-align: center;
    white-space: nowrap;
}

.a3-list-table td.ellipsis {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    background: #fff;
    color: #606266;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.15s;
    font-family: inherit;
}

.btn:hover {
    color: #1e6fd9;
    border-color: #c6e2ff;
    background: #ecf5ff;
}

.btn-primary {
    background: #1e6fd9;
    color: #fff;
    border-color: #1e6fd9;
}

.btn-primary:hover {
    background: #2b8ae6;
    color: #fff;
    border-color: #2b8ae6;
}

.btn-danger {
    background: #fff;
    color: #f56c6c;
    border-color: #fbc4c4;
}

.btn-danger:hover {
    background: #f56c6c;
    color: #fff;
    border-color: #f56c6c;
}

.btn-mini {
    padding: 3px 10px;
    font-size: 12px;
}

.a3-header-actions .btn,
.a3-footer .btn {
    margin-left: 8px;
}

/* ---------- 底部按钮区 ---------- */
.a3-footer {
    padding: 14px 20px 24px;
    text-align: center;
}

.a3-footer .btn {
    min-width: 96px;
    padding: 8px 20px;
    font-size: 14px;
}

/* ---------- 只读(查看)模式视觉降级 ---------- */
body.a3-page[data-mode="view"] input:disabled,
body.a3-page[data-mode="view"] select:disabled,
body.a3-page[data-mode="view"] textarea:disabled {
    background: #f5f7fa;
    color: #606266;
    cursor: not-allowed;
    border-color: #e4e7ed;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .a3-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .a3-form-grid {
        grid-template-columns: 1fr;
    }

    .a3-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}