:root { color-scheme: light; --bg: #f5f7fb; --panel: #ffffff; --panel-soft: #f8fafc; --text: #152033; --muted: #687386; --line: #dbe3ee; --brand: #1b7f79; --brand-strong: #0f5f5a; --accent: #c9861b; --danger: #c2413a; --warning: #b7791f; --success: #16835f; --shadow: 0 14px 36px rgba(27, 39, 62, 0.08); } * { box-sizing: border-box; } body { margin: 0; min-width: 1120px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; } button, input, select, textarea { font: inherit; } button { cursor: pointer; } .login-page { min-height: 100vh; display: grid; place-items: center; padding: 48px; background: linear-gradient(135deg, rgba(27, 127, 121, 0.12), transparent 38%), linear-gradient(315deg, rgba(201, 134, 27, 0.12), transparent 42%), var(--bg); } .login-panel { width: 420px; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); } .login-panel h1 { margin: 0; font-size: 24px; line-height: 1.2; } .login-panel p { margin: 10px 0 24px; color: var(--muted); line-height: 1.7; } .field-stack { display: grid; gap: 16px; } .field { display: grid; gap: 7px; } .field label { color: #364257; font-weight: 650; } .field input, .field select, .field textarea { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; color: var(--text); background: #fff; outline: none; } .field textarea { min-height: 98px; resize: vertical; } .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 127, 121, 0.12); } .btn { min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 13px; background: #fff; color: var(--text); font-weight: 650; } .btn:hover { border-color: #b8c6d9; } .btn.primary { border-color: var(--brand); background: var(--brand); color: #fff; } .btn.primary:hover { border-color: var(--brand-strong); background: var(--brand-strong); } .btn.danger { border-color: rgba(194, 65, 58, 0.24); color: var(--danger); } .btn.small { min-height: 32px; padding: 5px 10px; font-size: 13px; } .shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; } .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #101827; color: #eef5ff; } .brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .brand h1 { margin: 0; font-size: 20px; line-height: 1.2; } .brand p { margin: 7px 0 0; color: rgba(238, 245, 255, 0.62); line-height: 1.5; } .nav { flex: 1; padding: 14px 10px; overflow-y: auto; } .nav-section { margin: 13px 10px 7px; color: rgba(238, 245, 255, 0.48); font-size: 12px; font-weight: 700; } .nav button { width: 100%; min-height: 38px; border: 0; border-radius: 6px; margin: 2px 0; padding: 8px 11px; background: transparent; color: rgba(238, 245, 255, 0.78); text-align: left; font-weight: 650; } .nav button:hover, .nav button.active { background: rgba(255, 255, 255, 0.1); color: #fff; } .sidebar-footer { padding: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .sidebar-footer .btn { width: 100%; border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; } .main { min-width: 0; padding: 24px; } .topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; } .topbar h2 { margin: 0; font-size: 24px; line-height: 1.2; } .topbar p { margin: 7px 0 0; color: var(--muted); } .user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; } .avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(27, 127, 121, 0.12); color: var(--brand-strong); font-weight: 800; } .status-line { min-height: 22px; margin-top: 12px; color: var(--muted); line-height: 1.6; } .status-line.error { color: var(--danger); } .status-line.success { color: var(--success); } .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; } .kpi { min-height: 104px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 18px rgba(27, 39, 62, 0.04); } .kpi .label { color: var(--muted); font-weight: 650; } .kpi .value { margin-top: 13px; font-size: 32px; line-height: 1; font-weight: 820; } .grid-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr); gap: 16px; align-items: start; } .panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 18px rgba(27, 39, 62, 0.04); } .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); } .panel-header h3 { margin: 0; font-size: 17px; } .panel-body { padding: 18px; } .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .filters { display: flex; align-items: center; gap: 8px; } .filters input, .filters select { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; background: #fff; } .table-wrap { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; } .table th, .table td { border-bottom: 1px solid var(--line); padding: 11px 10px; text-align: left; vertical-align: top; } .table th { color: #4b586f; font-size: 12px; background: var(--panel-soft); white-space: nowrap; } .table td { line-height: 1.5; } .table tr:hover td { background: #fbfcfe; } .muted { color: var(--muted); } .badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 9px; background: #edf2f7; color: #42526b; font-size: 12px; font-weight: 760; white-space: nowrap; } .badge.published, .badge.contacted { background: rgba(22, 131, 95, 0.11); color: var(--success); } .badge.draft, .badge.pending { background: rgba(183, 121, 31, 0.12); color: var(--warning); } .badge.disabled, .badge.closed, .badge.archived { background: rgba(104, 115, 134, 0.13); color: #526071; } .empty { padding: 34px 20px; color: var(--muted); text-align: center; } .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; } .section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .content-card { min-height: 132px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); } .content-card h3 { margin: 0 0 8px; font-size: 16px; } .content-card p { margin: 0; color: var(--muted); line-height: 1.6; } .notice { padding: 12px 14px; border: 1px solid rgba(27, 127, 121, 0.24); border-radius: 8px; background: rgba(27, 127, 121, 0.07); color: #245d5a; line-height: 1.7; }