* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; color: #17202a; background: #f4f6f8; }
a { color: #0b65c2; text-decoration: none; }
a:hover { text-decoration: underline; }
.page { max-width: 1180px; margin: 0 auto; padding: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.topbar strong { display: block; font-size: 22px; }
.topbar span { display: block; color: #637083; margin-top: 4px; }
.topbar nav { display: flex; gap: 14px; }
.panel { background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(18, 38, 63, .04); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: #f8fafc; border: 1px solid #e4e9f0; border-radius: 8px; padding: 14px; }
.stat b { display: block; font-size: 24px; margin-bottom: 4px; }
.muted { color: #657386; }
.form-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; }
label { color: #2e3b4e; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e3; border-radius: 6px; padding: 10px 11px; font: inherit; background: #fff; }
textarea { min-height: 90px; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 10px 14px; font: inherit; color: #fff; background: #1565c0; cursor: pointer; }
button.secondary, .button.secondary { background: #52616f; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #e5ebf2; vertical-align: top; }
th { color: #506174; font-weight: 600; background: #f8fafc; }
.flash { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.flash.info { background: #eef6ff; border-color: #bfdcff; }
.flash.ok { background: #ecfdf3; border-color: #b8e7c8; }
.flash.error { background: #fff1f0; border-color: #ffc9c4; }
.code { font-family: Consolas, monospace; background: #f6f8fa; padding: 2px 5px; border-radius: 4px; }
@media (max-width: 820px) { .page { padding: 16px; } .topbar { align-items: flex-start; flex-direction: column; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-row { grid-template-columns: 1fr; } table { display: block; overflow-x: auto; } }
