/* 基础样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f5f7fa; } .container { max-width: 1400px; margin: 0 auto; padding: 20px; } /* 头部样式 */ header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #ddd; } header h1 { color: #2c3e50; font-size: 28px; } header h1 i { color: #3498db; margin-right: 10px; } .header-actions { display: flex; gap: 10px; } /* 按钮样式 */ .btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.3s ease; text-align: center; } .btn i { margin-right: 5px; } .btn-primary { background-color: #3498db; color: white; } .btn-primary:hover { background-color: #2980b9; } .btn-secondary { background-color: #95a5a6; color: white; } .btn-secondary:hover { background-color: #7f8c8d; } .btn-success { background-color: #27ae60; color: white; } .btn-success:hover { background-color: #219653; } .btn-info { background-color: #17a2b8; color: white; } .btn-info:hover { background-color: #138496; } .btn-danger { background-color: #e74c3c; color: white; } .btn-danger:hover { background-color: #c0392b; } .btn-sm { padding: 5px 10px; font-size: 12px; } /* 控制面板 */ .dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; } .stats-card, .filter-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .stats-card h3, .filter-card h3 { margin-bottom: 15px; color: #2c3e50; font-size: 18px; } /* 筛选表单 */ .filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; } .form-group { margin-bottom: 15px; flex: 1; min-width: 150px; } .form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; } .form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } /* 主内容区 */ main { background: white; border-radius: 8px; padding: 25px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } main h2 { margin-bottom: 20px; color: #2c3e50; font-size: 22px; } /* 表格样式 */ .table-responsive { overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; font-size: 14px; } .data-table th { background-color: #f8f9fa; padding: 12px 15px; text-align: left; font-weight: 600; color: #2c3e50; border-bottom: 2px solid #dee2e6; } .data-table td { padding: 12px 15px; border-bottom: 1px solid #dee2e6; } .data-table tbody tr:hover { background-color: #f8f9fa; } .actions { display: flex; gap: 5px; } /* 状态徽章 */ .status-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; } .status-待执行 { background-color: #f1c40f; color: #000; } .status-处理中 { background-color: #3498db; color: white; } .status-已批准 { background-color: #27ae60; color: white; } .status-已拒绝 { background-color: #e74c3c; color: white; } .status-已完成 { background-color: #95a5a6; color: white; } /* 空状态 */ .empty-state { text-align: center; padding: 50px 20px; color: #7f8c8d; } .empty-state i { margin-bottom: 20px; color: #bdc3c7; } .empty-state h3 { margin-bottom: 10px; color: #7f8c8d; } /* 详情页面 */ .detail-page { position: relative; } .detail-actions { margin-bottom: 20px; } .detail-form { display: flex; flex-direction: column; gap: 25px; } .form-section { background-color: #f9f9f9; padding: 20px; border-radius: 6px; border-left: 4px solid #3498db; } .form-section h3 { margin-bottom: 15px; color: #2c3e50; font-size: 18px; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px; } .form-row:last-child { margin-bottom: 0; } .form-group input[readonly] { background-color: #f8f9fa; color: #6c757d; } .metadata { background-color: white; padding: 15px; border-radius: 4px; border: 1px solid #ddd; } .metadata p { margin-bottom: 5px; } /* 导入页面 */ .import-instructions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 30px; } .instruction-card, .import-form-card { background: white; border-radius: 8px; padding: 25px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .instruction-card ul { padding-left: 20px; margin: 15px 0; } .instruction-card li { margin-bottom: 8px; } .sample-data { margin-top: 20px; padding: 15px; background-color: #f8f9fa; border-radius: 4px; } .sample-data h4 { margin-bottom: 10px; color: #2c3e50; } .sample-data pre { background-color: #2c3e50; color: #ecf0f1; padding: 15px; border-radius: 4px; overflow-x: auto; font-size: 12px; margin-bottom: 10px; } .note { font-style: italic; color: #7f8c8d; font-size: 14px; } .note i { color: #f1c40f; margin-right: 5px; } .file-help { font-size: 12px; color: #7f8c8d; margin-top: 5px; } .result-area { margin-top: 20px; } /* 警告框 */ .alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; border-left: 4px solid transparent; } .alert-success { background-color: #d4edda; border-color: #c3e6cb; color: #155724; } .alert-danger { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; } .alert-info { background-color: #d1ecf1; border-color: #bee5eb; color: #0c5460; } /* 模态框 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; } .modal-content { background-color: white; padding: 30px; border-radius: 8px; max-width: 500px; width: 90%; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .modal-content h3 { margin-bottom: 15px; color: #2c3e50; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } /* 加载指示器 */ .spinner { display: inline-block; padding: 10px 20px; background-color: #f8f9fa; border-radius: 4px; color: #6c757d; margin-left: 10px; } .back-to-home { text-align: center; margin-top: 30px; } /* 页脚 */ footer { text-align: center; padding-top: 20px; border-top: 1px solid #ddd; color: #7f8c8d; font-size: 14px; } /* 响应式设计 */ @media (max-width: 768px) { .container { padding: 10px; } header { flex-direction: column; align-items: flex-start; } .header-actions { margin-top: 15px; width: 100%; } .header-actions .btn { flex: 1; text-align: center; } .dashboard { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .filter-form { flex-direction: column; } .import-instructions { grid-template-columns: 1fr; } }