html, body { margin: 0; background: #f4f5f7; color: #1f2329; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; }
.login-title { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.login-sub { color: #8a8f99; margin: 0 0 24px; font-size: 13px; }

.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e6e8eb; display: flex; align-items: center; padding: 0 16px; gap: 12px; position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.topbar .brand img { width: 22px; height: 22px; }
.topbar .spacer { flex: 1; }

.page { max-width: 820px; margin: 0 auto; padding: 16px; }
.page-wide { padding: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; gap: 8px; flex-wrap: wrap; }
.section-head h2 { font-size: 18px; margin: 0; }

.ticket-item { background: #fff; border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid #e6e8eb; cursor: pointer; }
.ticket-item:hover { border-color: #c9cdd4; }
.ticket-item .t-title { font-weight: 500; font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ticket-item .t-meta { color: #8a8f99; font-size: 12px; margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }

.content-box { white-space: pre-wrap; word-break: break-word; line-height: 1.7; }
.reply { padding: 12px 0; border-top: 1px solid #f0f1f3; }
.reply .r-head { font-size: 12px; color: #8a8f99; margin-bottom: 4px; }
.reply.admin .r-head b { color: #2f6fed; }

.urgent-box { border: 1px solid #f3c5c6; background: #fff5f5; border-radius: 8px; padding: 10px 12px; }
.urgent-box .hint { color: #8a8f99; font-size: 12px; margin-top: 4px; line-height: 1.5; }

.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.admin-aside { width: 200px; background: #fff; border-right: 1px solid #e6e8eb; flex-shrink: 0; }
.admin-aside .el-menu { border-right: none; }
.admin-main { flex: 1; min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid #e6e8eb; border-radius: 8px; padding: 14px 16px; }
.stat .v { font-size: 26px; font-weight: 600; }
.stat .k { color: #8a8f99; font-size: 13px; }
.stat.danger .v { color: #e5484d; }

.alerting-row { background: #fff1f0 !important; }
.muted { color: #8a8f99; font-size: 12px; }

@media (max-width: 760px) {
  .admin-layout { flex-direction: column; }
  .admin-aside { width: 100%; border-right: none; border-bottom: 1px solid #e6e8eb; }
  .admin-aside .el-menu--vertical { display: flex; overflow-x: auto; }
  .admin-aside .el-menu-item { flex-shrink: 0; }
}
