:root { --primary: #0066cc; --primary-dark: #0052a3; --success: #28a745; --error: #dc3545; --info: #17a2b8; --text: #212529; --border: #dee2e6; --light-bg: #f8fafc; } * { box-sizing: border-box; } body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; font-size: 15px; line-height: 1.6; color: var(--text); background: #f4f6f9; } .wrap { max-width: 1280px; margin: 0 auto; padding: 0 15px; } /* ==================== 头部 ==================== */ .site-header { background: white; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); position: sticky; top: 0; z-index: 100; } .header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 14px 0; } .site-title a { font-size: 1.45rem; font-weight: 700; color: var(--primary); text-decoration: none; } .site-title a:hover { color: var(--primary-dark); } .nav-block { display: flex; flex-wrap: wrap; gap: 6px; } .nav-primary a, .nav-reports a { padding: 9px 16px; border-radius: 8px; font-size: 0.95rem; transition: all 0.2s ease; } .nav-primary a:hover, .nav-reports a:hover { background: #f1f5f9; color: var(--primary); } .nav-em { font-weight: 600; color: var(--primary) !important; background: #f0f7ff; } .nav-reports-label { font-size: 0.85rem; color: #64748b; margin-right: 8px; align-self: center; } /* ==================== 主内容 & Card ==================== */ .main-content { padding: 25px 0 50px; } .card { background: white; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); padding: 24px; margin-bottom: 28px; } /* ==================== 表单 ==================== */ label { display: block; margin-bottom: 6px; font-weight: 500; color: #374151; } input[type="text"], input[type="number"], input[type="date"], select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; } input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15); } .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 20px; } /* ==================== 按钮 ==================== */ .btn { padding: 10px 20px; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; } .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 102, 204, 0.25); } .btn-secondary { background: #e2e8f0; color: #334155; } .btn-secondary:hover { background: #cbd5e1; } /* ==================== Flash 消息 ==================== */ .flash { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; } .flash-success { background: #d1fae5; color: #166534; border: 1px solid #86efac; } .flash-error { background: #fee2e2; color: #b91c1c; border: 1px solid #f87171; } .flash-info { background: #e0f2fe; color: #0c4a6e; border: 1px solid #67e8f9; } /* ==================== 表格 ==================== */ table { width: 100%; border-collapse: collapse; } th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e2e8f0; } th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 0.9rem; } tr:hover { background: #f8fafc; } .table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 10px; } /* ==================== 其他 ==================== */ .muted { color: #64748b; font-size: 0.92rem; } .site-footer { text-align: center; padding: 25px 0; color: #64748b; font-size: 0.9rem; border-top: 1px solid #e2e8f0; margin-top: 40px; } /* 移动端适配 */ @media (max-width: 640px) { .header-inner { flex-direction: column; align-items: flex-start; } .row { grid-template-columns: 1fr; } }