body { margin: 0; color: #101828; background: #f3f6fb; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card, .panel { background: #fff; border: 1px solid #e4e7ec; border-radius: 8px; box-shadow: 0 16px 38px rgba(16,24,40,.08); }
.login-card { width: min(420px, 100%); padding: 28px; }
.shell { display: none; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; color: #fff; background: #101828; padding: 22px 16px; }
.sidebar h1 { margin: 0 0 22px; font-size: 22px; }
.nav { display: grid; gap: 8px; }
.nav button, .logout { width: 100%; text-align: left; color: rgba(255,255,255,.82); background: transparent; border-radius: 8px; padding: 12px; }
.nav button.active, .nav button:hover, .logout:hover { color: #fff; background: rgba(255,255,255,.12); }
.logout { position: absolute; left: 16px; bottom: 18px; width: calc(100% - 32px); }
.main { margin-left: 230px; padding: 24px; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.header h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.panel { padding: 18px; margin-bottom: 16px; }
.stat strong { display: block; margin-top: 8px; color: #e43f5a; font-size: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { display: grid; gap: 7px; margin-bottom: 12px; }
label { color: #344054; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 8px; padding: 10px; background: #fff; }
textarea { min-height: 92px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; color: #fff; background: #e43f5a; border-radius: 8px; font-weight: 700; text-decoration: none; }
.btn.alt { background: #14b8a6; }
.btn.dark { background: #344054; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { border-bottom: 1px solid #edf0f5; padding: 10px; text-align: left; vertical-align: top; }
th { color: #475467; background: #f8fafc; white-space: nowrap; }
.tab { display: none; }
.tab.active { display: block; }
.muted { color: #667085; }
.generated { white-space: pre-wrap; max-height: 260px; overflow: auto; padding: 12px; border: 1px dashed #98a2b3; border-radius: 8px; background: #f8fafc; }
@media (max-width: 900px) { .sidebar { position: static; width: auto; } .logout { position: static; width: 100%; margin-top: 12px; } .main { margin-left: 0; } .grid, .form-grid { grid-template-columns: 1fr; } }
