[v-cloak] {
  display: none;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
  background: #f5f7fa;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2329;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(180deg, #eef3ff 0%, #f8fafc 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-title {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  color: #101828;
}

.full-width {
  width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e4e7ec;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-meta {
  text-align: right;
  font-size: 13px;
}

.muted {
  color: #667085;
}

.app-main {
  padding: 20px;
}

.main-alert {
  margin-bottom: 16px;
}

.top-menu {
  margin-bottom: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eaecf0;
  padding: 0 8px;
  overflow-x: auto;
}

.top-menu.el-menu--horizontal > .el-menu-item {
  height: 52px;
  line-height: 52px;
}

.view-block {
  display: block;
}

.mt16 {
  margin-top: 16px;
}

.mb12 {
  margin-bottom: 12px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar .el-input,
.toolbar .el-select,
.toolbar .el-date-editor {
  width: 220px;
}

.inline-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form .el-input,
.inline-form .el-select {
  width: 260px;
}

.action-row {
  margin-top: 12px;
}

.qr-preview {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.line-chart-wrap {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
}

.line-chart {
  width: 100%;
  height: 320px;
  display: block;
}

.line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-peak {
  stroke: #f59e0b;
}

.line-last {
  stroke: #3b82f6;
}

.line-min {
  stroke: #10b981;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend-peak {
  background: #f59e0b;
}

.legend-last {
  background: #3b82f6;
}

.legend-min {
  background: #10b981;
}

.muted-block {
  margin-bottom: 12px;
  color: #667085;
  line-height: 1.6;
}

.mono-cell,
.mono {
  font-family: Consolas, "Courier New", monospace;
}

.doc-content {
  color: #1f2329;
}

.doc-content .doc-section + .doc-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eaecf0;
}

.doc-content h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.doc-content p,
.doc-content li {
  line-height: 1.7;
}

.doc-content code {
  font-family: Consolas, "Courier New", monospace;
}

.doc-content pre {
  margin: 12px 0;
  padding: 12px;
  background: #101828;
  color: #f8fafc;
  border-radius: 10px;
  overflow-x: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
}

.doc-content th,
.doc-content td {
  padding: 10px 8px;
  border-bottom: 1px solid #eaecf0;
  text-align: left;
  vertical-align: top;
}

.el-card {
  border-radius: 14px;
}

@media (max-width: 960px) {
  .app-header {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar .el-input,
  .toolbar .el-select,
  .toolbar .el-date-editor,
  .inline-form .el-input,
  .inline-form .el-select {
    width: 100%;
  }
}
