
/* ===== Login Page Modern UI ===== */
.login-page {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8edf8 50%, #f5f7fc 100%);
}
.login-left {
  flex: 1;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.login-brand-logo {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(47,128,237,0.15);
}
.login-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #142B4D;
  line-height: 1.2;
}
.login-brand-tag {
  font-size: 13px;
  color: #6F7F95;
  font-weight: 500;
}
.login-headline {
  font-size: 32px;
  font-weight: 800;
  color: #142B4D;
  margin: 0 0 12px 0;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.login-headline-sub {
  font-size: 15px;
  color: #5B6B82;
  line-height: 1.7;
  margin: 0 0 40px 0;
  font-weight: 500;
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.login-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.login-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: #1F2A44;
  margin-bottom: 2px;
}
.login-feature-desc {
  font-size: 13px;
  color: #6F7F95;
  font-weight: 500;
  line-height: 1.5;
}
.login-illustration {
  margin-top: 40px;
  height: 120px;
  background: linear-gradient(135deg, rgba(47,128,237,0.06) 0%, rgba(47,128,237,0.02) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
.login-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(47,128,237,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.login-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #142B4D;
  text-align: center;
  margin: 0 0 6px 0;
}
.login-card-subtitle {
  font-size: 14px;
  color: #6F7F95;
  text-align: center;
  margin: 0 0 32px 0;
  font-weight: 500;
}
.login-form-group {
  margin-bottom: 20px;
}
.login-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1F2A44;
  margin-bottom: 8px;
}
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.login-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 14px 0 44px;
  font-size: 15px;
  font-weight: 500;
  color: #1F2A44;
  background: #FAFBFC;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}
.login-input:focus {
  border-color: #2F80ED;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(47,128,237,0.1);
}
.login-input::placeholder {
  color: #A0AEC0;
  font-weight: 400;
}
.login-eye-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.login-eye-icon:hover {
  opacity: 1;
}
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #5B6B82;
  font-weight: 500;
  cursor: pointer;
}
.login-remember input {
  accent-color: #2F80ED;
  width: 16px;
  height: 16px;
}
.login-forgot {
  font-size: 14px;
  color: #2F80ED;
  font-weight: 600;
  text-decoration: none;
}
.login-forgot:hover {
  text-decoration: underline;
}
.login-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #2F80ED 0%, #1F64E0 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 2px;
}
.login-submit:hover {
  box-shadow: 0 4px 16px rgba(47,128,237,0.3);
  transform: translateY(-1px);
}
.login-submit:active {
  transform: translateY(0);
}
.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #A0AEC0;
  font-size: 13px;
  font-weight: 500;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E8ECF2;
}
.login-divider span {
  padding: 0 16px;
}
.login-footer-link {
  text-align: center;
  font-size: 14px;
  color: #6F7F95;
  font-weight: 500;
}
.login-footer-link a {
  color: #2F80ED;
  font-weight: 600;
  text-decoration: none;
}
.login-footer-link a:hover {
  text-decoration: underline;
}
.login-page-footer {
  margin-top: 32px;
  font-size: 13px;
  color: #A0AEC0;
  font-weight: 500;
  text-align: center;
}

/* Hide sidebar/topbar on login */
.login-page ~ .sidebar,
.login-page + .sidebar {
  display: none !important;
}



/* ===== Modern Sidebar ===== */
.sidebar {
  width: 216px;
  background: linear-gradient(180deg, #2F80ED 0%, #1F64E0 55%, #1858D8 100%);
  color: #fff;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 4px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo-icon svg {
  width: 18px !important;
  height: 18px !important;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  color: rgba(255,255,255,0.96);
  border: 0;
  padding: 0 16px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.22s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.3;
}
.nav-btn .nav-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px;
  min-height: 17px;
  flex-shrink: 0;
  opacity: 0.95;
  display: inline-block;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.10);
}
.nav-btn.active {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}

/* ===== Page Main Title Optimization ===== */
#view-title {
  display: none !important;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #142B4D !important;
  letter-spacing: -0.3px !important;
  margin: 0 0 24px 0 !important;
  padding-left: 16px !important;
  border-left: 4px solid #2F6BFF !important;
  border-radius: 0 4px 4px 0 !important;
}

/* ===== Module Subtitle Styling ===== */
.resource-card-header .section-title,
.card > .section-title,
.card .section-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1F2A44 !important;
  letter-spacing: 0 !important;
}

/* ===== UI Typography & Styling ===== */
body, .sidebar, .main, .card, table, button, input, select, textarea {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Page titles */
.monitor-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #142B4D !important;
}

/* Device name subtitle */
.monitor-subtitle {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #5B6B82 !important;
}

/* Chart card titles */
.chart-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1F2A44 !important;
  margin-bottom: 4px;
}

/* Chart subtitles (range, last update) */
.chart-subtitle {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #5B6B82 !important;
  margin-bottom: 12px;
}

/* Metric cards */
.metric-card .metric-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #5B6B82 !important;
  margin-bottom: 6px;
}
.metric-card .metric-value {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #142B4D !important;
}
.metric-card .metric-unit {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #6F7F95 !important;
  margin-left: 2px;
}

/* Buttons */
/* Sidebar nav buttons */


/* Card body text */
.card, .card td, .card th, .table td, .table th {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1F2A44 !important;
}

/* Table muted text */
.muted {
  color: #6F7F95 !important;
  font-weight: 500 !important;
}

/* Section titles */
.section-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1F2A44 !important;
}

/* Monitor card spacing */
.monitor-card {
  padding: 24px !important;
}

/* Chart canvas spacing from title */
.chart-title + .chart-subtitle + .monitor-canvas-wrap,
.chart-subtitle + .monitor-canvas-wrap {
  margin-top: 8px;
}

/* Grid gap */
.monitor-grid {
  gap: 20px !important;
}

/* Monitor head */
.monitor-head {
  padding: 24px 28px !important;
  margin-bottom: 20px !important;
}

/* Metric cards grid */
.metric-cards {
  gap: 16px !important;
  margin-bottom: 20px !important;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f5f7fb; color: #1f2937; }
.layout { display: flex; min-height: 100vh; }
.main { flex: 1; padding: 20px; }
.topbar { display: none; }
.hint { color: #6b7280; font-size: 13px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 6px 18px rgba(15,23,42,0.06); margin-bottom: 16px; }
.card-title { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.big { font-size: 28px; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.table th { background: #f9fafb; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; background: #eef2ff; color: #3730a3; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.bad { background: #fee2e2; color: #991b1b; }
.tag.warn { background: #fef3c7; color: #92400e; }
.filters { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
input, select, button { padding: 9px 12px; border-radius: 10px; border: 1px solid #d1d5db; }
button.primary { background: #2563eb; color: #fff; border-color: #2563eb; cursor: pointer; }
button.secondary { background: #fff; color: #111827; cursor: pointer; }
button.link { background: transparent; border: 0; color: #2563eb; padding: 0; cursor: pointer; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv .item { background: #f9fafb; padding: 12px; border-radius: 12px; }
pre { white-space: pre-wrap; }
.small { color: #6b7280; font-size: 12px; }
.section-title { font-size: 18px; font-weight: 700; margin: 16px 0 12px; }
.list { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; padding: 10px 12px; background: #f9fafb; border-radius: 10px; }
@media (max-width: 1100px) { .grid-4, .grid-2, .kv { grid-template-columns: 1fr; } .sidebar { width: 180px; } }
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.primary.small {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.mn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.mn-modal {
  width: 560px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.mn-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1f2937;
}
.mn-form-item {
  margin-bottom: 14px;
}
.mn-form-item label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}
.mn-input {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}
select.mn-input {
  padding-right: 32px;
}
.mn-mt8 {
  margin-top: 8px;
}
.mn-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}
.mn-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}
.mn-modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.req {
  color: #ef4444;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f5f7fb; color: #1f2937; }
.layout { display: flex; min-height: 100vh; }
.main { flex: 1; padding: 20px; }
.topbar { display: none; }
.hint { color: #6b7280; font-size: 13px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 6px 18px rgba(15,23,42,0.06); margin-bottom: 16px; }
.card-title { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.big { font-size: 28px; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.table th { background: #f9fafb; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; background: #eef2ff; color: #3730a3; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.bad { background: #fee2e2; color: #991b1b; }
.tag.warn { background: #fef3c7; color: #92400e; }
.filters { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
input, select, button { padding: 9px 12px; border-radius: 10px; border: 1px solid #d1d5db; }
button.primary { background: #2563eb; color: #fff; border-color: #2563eb; cursor: pointer; }
button.secondary { background: #fff; color: #111827; cursor: pointer; }
button.link { background: transparent; border: 0; color: #2563eb; padding: 0; cursor: pointer; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv .item { background: #f9fafb; padding: 12px; border-radius: 12px; }
pre { white-space: pre-wrap; }
.small { color: #6b7280; font-size: 12px; }
.section-title { font-size: 18px; font-weight: 700; margin: 16px 0 12px; }
.list { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; padding: 10px 12px; background: #f9fafb; border-radius: 10px; }
@media (max-width: 1100px) { .grid-4, .grid-2, .kv { grid-template-columns: 1fr; } .sidebar { width: 180px; } }

/* 物理服务器新增模块 */
.ps-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.ps-modal {
  width: 560px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.ps-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1f2937;
}
.ps-form-item {
  margin-bottom: 14px;
}
.ps-form-item label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}
.ps-input {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}
select.ps-input {
  padding-right: 32px;
}
.ps-mt8 { margin-top: 8px; }
.ps-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}
.ps-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}
.ps-modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 物理服务器弹窗样式 */
.dialog-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.dialog-card {
  width: 560px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 18px; padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.dialog-card-lg { width: 620px; max-width: calc(100vw - 32px); }
.dialog-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; color: #1f2937; }
.dialog-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; align-items: start; }
.form-grid label { font-size: 14px; color: #6b7280; padding-top: 8px; }
.input {
  width: 100%; box-sizing: border-box; height: 38px;
  border: 1px solid #cbd5e1; border-radius: 12px; padding: 0 12px;
  outline: none; background: #fff;
}
select.input { padding-right: 32px; }
.mt8 { margin-top: 8px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; }
.checkbox-item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #374151; }

/* 账户下拉与编辑 */
.account-check-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px; padding: 10px 12px;
  border: 1px solid #dcdfe6; border-radius: 8px; background: #fafafa;
}
.check-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #303133; }
.form-help { margin-top: 6px; font-size: 12px; color: #909399; }
.dialog { width: 580px; max-width: calc(100vw - 32px); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.medium-dialog { width: 620px; }
.dialog-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; color: #1f2937; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.dialog-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.edit-btn { color: #409eff; margin-right: 8px; }

/* 账号下拉多选样式 */
select[multiple].input {
  min-height: 80px;
  padding: 4px;
  border-radius: 8px;
  font-size: 13px;
}
select[multiple].input option {
  padding: 4px 8px;
  margin: 1px 0;
  border-radius: 4px;
}
select[multiple].input option:checked {
  background: #409eff;
  color: #fff;
}

.resource-card { margin-bottom: 16px; }
.resource-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.resource-card-actions { display: flex; align-items: center; gap: 8px; }
.resource-count { color: #6b7280; font-size: 13px; margin-bottom: 10px; }
.resource-actions { white-space: nowrap; }
.resource-actions .link { margin-right: 8px; }
.resource-actions .danger { color: #f56c6c; }
.resource-list-page .table { margin-top: 12px; }
.resource-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.resource-filters input, .resource-filters select { min-width: 180px; height: 36px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 8px; background: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.pager-left, .pager-right { display: flex; align-items: center; gap: 8px; }
.muted { color: #9ca3af; text-align: center; }

/* 账户登录模块 */
#top-user-bar { position: fixed; top: 16px; right: 24px; z-index: 999; }
.top-user-inner { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.96); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.user-name { font-weight: 700; }
.user-role { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef3ff; }
.login-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.login-card, .simple-dialog { width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 24px; }
.login-title { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.login-subtitle, .login-tips { color: #6b7280; margin-bottom: 14px; }
.simple-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.28); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.dialog-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; margin-bottom: 6px; color: #374151; }
.form-row input, .form-row select { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.link.danger { color: #d14343; }


/* 告警收件人样式 */
.recipient-section {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 8px 12px; margin-bottom: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.recipient-label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.recipient-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.recipient-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eef2ff; color: #3730a3; padding: 2px 8px; border-radius: 6px; font-size: 13px;
}
.recipient-remove { cursor: pointer; font-weight: bold; font-size: 14px; color: #999; }
.recipient-remove:hover { color: #ef4444; }
.recipient-empty { color: #9ca3af; font-size: 13px; font-style: italic; }
.recipient-add { display: flex; align-items: center; gap: 6px; }

/* ===== 图形页面美化 ===== */
.monitor-page { padding: 24px; }
.monitor-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-radius: 12px; }
.monitor-title { font-size: 22px; font-weight: 600; color: #1d2129; }
.monitor-subtitle { font-size: 13px; color: #86909c; margin-top: 4px; }
.monitor-head-actions { display: flex; gap: 8px; align-items: center; }
.monitor-range-group { display: flex; gap: 4px; }
.monitor-range-group button { padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; border: 1px solid #e5e6eb; background: #fff; color: #4e5969; transition: all 0.15s; }
.monitor-range-group button.primary { background: #3370ff; color: #fff; border-color: #3370ff; }
.monitor-range-group button:hover:not(.primary) { background: #f2f3f5; }
.monitor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.monitor-card { padding: 20px; border-radius: 12px; }
.monitor-card .chart-title { font-size: 15px; font-weight: 600; color: #1d2129; margin-bottom: 4px; }
.monitor-card .chart-subtitle { font-size: 12px; color: #a9aeb8; margin-bottom: 12px; }
.monitor-canvas-wrap { position: relative; height: 260px; width: 100%; }
.metric-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 20px; }
.metric-card { padding: 16px 20px; border-radius: 10px; text-align: center; background: #fafbfc; border: 1px solid #f0f0f0; }
.metric-card .metric-label { font-size: 12px; color: #86909c; margin-bottom: 6px; }
.metric-card .metric-value { font-size: 24px; font-weight: 700; }
.metric-card .metric-unit { font-size: 12px; color: #a9aeb8; margin-left: 2px; }
.icmp-canvas-wrap { position: relative; height: 260px; width: 100%; }

/* ===== Modern UI Overrides for Core Pages ===== */

/* Page Main Title with Blue Bar */
.page-title-bar {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #16324F;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid #2F6BFF;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

/* Modern Card */
.modern-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  border: 1px solid #F1F5F9;
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.modern-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* Card Header */
.modern-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F8FAFC;
}
.modern-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2A44;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modern-card-subtitle {
  font-size: 13px;
  color: #6B7A90;
  font-weight: 500;
}
.modern-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern Table */
.modern-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
}
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.modern-table thead th {
  background: #F8FAFC;
  color: #42526B;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
  white-space: nowrap;
}
.modern-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #F8FAFC;
  color: #1F2A44;
  vertical-align: middle;
}
.modern-table tbody tr:last-child td {
  border-bottom: none;
}
.modern-table tbody tr:hover td {
  background: #F8FAFC;
}

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  color: #FFFFFF;
  background: #94A3B8;
}
.rank-badge.gold { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }
.rank-badge.silver { background: linear-gradient(135deg, #94A3B8, #64748B); }
.rank-badge.bronze { background: linear-gradient(135deg, #CD7F32, #B86B22); }

/* Modern Buttons & Links */
.btn-blue {
  background: #2F6BFF;
  color: #FFFFFF;
  border: none;
  padding: 0 16px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-blue:hover { background: #1B55E0; }
.btn-outline {
  background: #FFFFFF;
  color: #42526B;
  border: 1px solid #E2E8F0;
  padding: 0 12px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: #CBD5E1; background: #F8FAFC; }

.link-blue { color: #2F6BFF; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 13px; }
.link-blue:hover { text-decoration: underline; }
.link-red { color: #FF5A5F; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 13px; }
.link-red:hover { text-decoration: underline; }
.action-spacer { margin: 0 6px; color: #E2E8F0; }

/* Recipient Section */
.recipient-area {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


/* Layout Tweaks */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

/* ====== 外部访问页面样式 ====== */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.link-primary {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}
.link-primary:hover {
  text-decoration: underline;
}
.danger-link {
  color: #FF5A5F !important;
}
.form-row {
  margin-bottom: 14px;
}
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1F2A44;
}
.form-row input[type=text],
.form-row input[type=number] {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #D8E0EC;
  border-radius: 10px;
  box-sizing: border-box;
}
.form-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.external-links-page {
  padding: 22px;
}
.external-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.external-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #E6ECF5;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFF 100%);
}
.external-link-item.is-disabled {
  opacity: 0.6;
}
.external-link-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.external-link-order {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EEF4FF;
  color: #2F6BFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.external-link-content {
  min-width: 0;
}
.external-link-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.external-link-title {
  font-size: 16px;
}
.external-link-url {
  color: #6B7A90;
  font-size: 13px;
  word-break: break-all;
}
.external-link-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #EEF4FF;
  color: #2F6BFF;
  font-size: 12px;
  font-weight: 600;
}
.external-link-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.external-link-actions a {
  color: #2F6BFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.external-link-actions a:hover {
  text-decoration: underline;
}
.text-muted {
  color: #6B7A90;
  font-size: 13px;
}

/* 流量卡片左对齐 */
/* 流量卡片三行布局 */
.traffic-card { text-align: left !important; padding-left: 24px !important; }
.metric-value.traffic-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  line-height: 1.3;
}
.traffic-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.traffic-row .metric-unit {
  font-size: 11px;
  color: #6B7A90;
}
.traffic-row.traffic-total {
  font-weight: 700;
  color: #93C5FD;
  padding-top: 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* 流量重置按钮 */
.traffic-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.traffic-reset-link {
  font-size: 12px;
  color: #93C5FD;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}
.traffic-reset-link:hover {
  background: rgba(147,197,253,0.1);
  color: #60A5FA;
}
.overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.overlay .dialog { width: 400px; }
.overlay .input {
  border: 1px solid #d7dce6; border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none;
}
.overlay .input:focus { border-color: #2f6fed; }

