

:root {
  --ak-bg: #e6eef4;
  --ak-surface: #e6eef4;
  --ak-text: #525151;
  --ak-muted: #787878;
  --ak-shadow-dark: #b8bec3;
  --ak-shadow-soft: #ffffff;
  --ak-inset-dark: #d6dde3;
  --ak-inset-soft: #f6ffff;
  --ak-blue: #0a94f2;
  --ak-green-a: #57693b;
  --ak-green-b: #76d450;
  --ak-warn-a: #de4723;
  --ak-warn-b: #db9428;
  --ak-error-a: #12032a;
  --ak-error-b: #b20d24;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  background: var(--ak-bg);
  color: var(--ak-text);
  font-family: dianzhenzt, HarmonyOS, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#app,
.ui.container,
.header {
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

a {
  color: inherit;
}

.ui.container {
  width: 95vw !important;
  max-width: 1680px !important;
}

.ui.inverted.segment,
.ui.menu {
  background: var(--ak-bg);
}

.ui.menu {
  border: none !important;
  box-shadow: 0 0 0 var(--ak-bg) !important;
}

.ui.menu.fixed {
  position: static;
}

.ui.menu .item:before {
  width: 0 !important;
}

.ui.menu .container .item,
.right.menu .positive,
.ak-label {
  color: var(--ak-muted) !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ui.menu .active,
.ui.menu .item.active:hover {
  border: none !important;
  border-radius: 10px !important;
  background: var(--ak-bg) !important;
  box-shadow: inset 5px 5px 16px var(--ak-inset-dark), inset -5px -5px 16px var(--ak-inset-soft) !important;
}

.ui.menu .item.ak-logo,
.ui.menu .item.ak-logo:hover {
  border: none !important;
  background: var(--ak-bg) !important;
  box-shadow: none !important;
}

.nb-menu {
  margin-top: 20px !important;
}

.ak-nav-inner {
  display: flex !important;
  align-items: center;
}

.ak-logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.nb-container {
  min-height: calc(100vh - 80px);
  padding-top: 40px !important;
  padding-bottom: 65px;
  margin-bottom: -47px;
}

.ak-view[hidden],
.ak-notice:empty {
  display: none !important;
}

.ak-notice {
  margin-bottom: 1rem;
}

.ak-alert {
  border-radius: 2px;
  background: var(--ak-bg);
  box-shadow: 7px 7px 15px #cfd6dc, -7px -7px 15px #fdffff;
  padding: 1rem 1.2rem;
  color: var(--ak-muted);
}

.ak-alert.error {
  color: #b20d24;
}

.ak-alert.success {
  color: #1a531b;
}

.ak-accordion {
  margin-bottom: 1rem;
  border: none;
  background: var(--ak-bg);
  box-shadow: 0 0 0 var(--ak-bg);
}

.ak-accordion-title {
  display: block;
  padding: 0.9rem 0 0;
  color: var(--ak-muted);
  cursor: default;
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-group-name {
  display: none;
  align-items: center;
  flex: 0 0 auto;
}

.ak-accordion-title .dropdown.icon {
  transition: transform 180ms ease;
}

.ak-summary-bars {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem 1.35rem;
}

.ak-summary-bar {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.34rem 0.52rem;
  max-width: 100%;
  border: 1px solid rgba(82, 81, 81, 0.12);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: -4px -4px 9px var(--ak-shadow-dark), 4px 4px 9px var(--ak-shadow-soft);
  padding: 0.58rem 0.72rem;
  color: var(--ak-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
}

.ak-summary-bar span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  white-space: nowrap;
}

.ak-country-item {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: var(--ak-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
}

.ak-country-item:hover {
  color: var(--ak-blue);
  background: rgba(10, 148, 242, 0.08);
  transform: translateY(-1px);
}

.ak-country-item.active {
  color: var(--ak-blue);
  background: rgba(10, 148, 242, 0.12);
  box-shadow: inset 2px 2px 4px var(--ak-inset-dark), inset -2px -2px 4px var(--ak-inset-soft);
}

.ak-country-item img {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ak-summary-flag {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ak-accordion.collapsed .ak-accordion-title .dropdown.icon {
  transform: rotate(-90deg);
}

.ak-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.2rem 1.35rem;
  padding: 1.5rem 0 1.6rem;
}

.ak-card-grid[hidden] {
  display: none !important;
}

.ak-card {
  min-width: 0;
  border-radius: 2px;
  background: var(--ak-surface);
  box-shadow: -6px -6px 12px var(--ak-shadow-dark), 6px 6px 12px var(--ak-shadow-soft);
  padding: 1rem;
}

.ak-card.offline {
  opacity: 0.76;
}

.ak-card-header {
  position: relative;
  margin-top: 10px;
  padding-bottom: 5px;
  text-align: center;
  color: var(--ak-text);
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  padding-right: 2rem;
  padding-left: 2rem;
  font-size: 1.28571429em;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.ak-node-name {
  overflow-wrap: anywhere;
  color: var(--ak-text) !important;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 700;
  line-height: 1.28571429em;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-node-link {
  cursor: pointer;
  text-decoration: none;
}

.ak-node-link:hover,
.ak-node-link:focus {
  color: var(--ak-blue) !important;
}

.ak-region {
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  box-shadow: -1px -1px 2px #eeeeee, 1px 1px 2px #000000;
  overflow: hidden;
  object-fit: cover;
  vertical-align: -3px;
  flex: 0 0 auto;
}

.ak-region-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 15px;
  line-height: 19px;
}

.ak-info {
  position: absolute;
  right: 12px;
  top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ak-blue);
  cursor: help;
  appearance: none;
}

.ak-info::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

.ak-popup {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 1.8rem;
  width: min(24rem, 84vw);
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--ak-surface);
  box-shadow: -6px -6px 12px var(--ak-shadow-dark), 6px 6px 12px var(--ak-shadow-soft);
  padding: 0.85rem 1rem;
  color: var(--ak-text);
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.8rem;
  text-align: left;
  text-shadow: none;
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

.ak-info:hover + .ak-popup,
.ak-info:focus + .ak-popup,
.ak-popup:hover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.ak-divider {
  height: 1px;
  margin: 0.85rem 0 5px;
  background: rgba(34, 36, 38, 0.15);
}

.ak-metrics {
  display: grid;
  grid-template-columns: 14.1% minmax(0, 1fr);
  gap: 0 0.56rem;
  align-items: center;
}

.ak-label,
.ak-value {
  margin-top: 0.86em;
  min-height: 1.95rem;
  display: flex;
  align-items: center;
}

.ak-label {
  min-width: 0;
}

.ak-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ak-online-value {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.38rem;
}

.ak-inline-metric,
.ak-info-line,
.ak-hardware {
  display: inline-flex;
  align-items: center;
}

.ak-inline-metric {
  flex-wrap: wrap;
  column-gap: 0.28rem;
  row-gap: 0.18rem;
}

.ak-inline-metric .icon {
  margin: 0 0.05rem 0 0.35rem !important;
  line-height: 1;
}

.ak-inline-metric .icon:first-child {
  margin-left: 0 !important;
}

.ak-info-line {
  flex-wrap: wrap;
  column-gap: 0.72rem;
  row-gap: 0.18rem;
}

.ak-hardware {
  gap: 0.34rem;
  white-space: nowrap;
}

.ak-value:nth-child(8),
.ak-value:nth-child(10),
.ak-value:nth-child(16),
.ak-value:nth-child(18) {
  color: var(--ak-muted) !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-node-tags {
  display: inline-flex;
  flex-flow: row wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  overflow: hidden;
}

.ak-node-tags-inline {
  justify-content: flex-start;
}

.ak-node-tag {
  max-width: min(100%, 11.5rem);
  min-height: 1.5rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(82, 81, 81, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  padding: 0.2rem 0.58rem;
  color: var(--ak-muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
  box-shadow: inset 1px 1px 2px rgba(184, 191, 197, 0.48), inset -1px -1px 2px rgba(255, 255, 255, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ak-node-tag.bill { color: #5d58a6; }
.ak-node-tag.time { color: #347433; }
.ak-node-tag.expired { color: #b20d24; }
.ak-node-tag.remark { color: var(--ak-blue); }
.ak-node-tag.custom { color: #7c4f12; }
.ak-node-tag.more { color: var(--ak-muted); }

.ak-progress {
  width: 100%;
  height: 1.75rem;
  border-radius: 2px;
  background: #eeeeee; box-shadow: none; border: 1px solid #dddddd;
  box-shadow: inset 3px 3px 6px #b8bfc5, inset -3px -3px 6px #faffff;
  overflow: hidden;
}

.ak-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: unset;
  max-width: 100%;
  height: 100%;
  border-radius: 2px;
  padding-right: 0.4em;
  color: rgba(255, 255, 255, 0.95); text-shadow: 1px 0 1px #000000, -1px 0 1px #000000;
  font-weight: 700;
  line-height: 1.65em;
  text-shadow: 1px 0 1px #eeeeee, -1px 0 1px #000000;
  transition: width 300ms ease;
}

.ak-progress.fine .ak-bar {
  background-image: linear-gradient(312deg, #1e88e5, #42a5f5, #64b5f6, #90caf9);
}

.ak-progress.swap-disabled .ak-bar {
  justify-content: center;
  padding-right: 0;
}

.ak-progress.warning .ak-bar {
  background-image: linear-gradient(269deg, #ff9800, #ffb74d, #ffcc80, #ffe0b2);
}

.ak-progress.error .ak-bar {
  background-image: linear-gradient(287deg, #ff9800, #ffb74d, #ffcc80, #ffe0b2);
}

.ak-progress.offline .ak-bar {
  background: #000000;
}

.ak-icon-cpu {
  color: #4a86e8;
}

.ak-icon-memory {
  color: #00ac0d;
}

.ak-icon-disk {
  color: #980000;
}

.ui.inverted.footer.segment {
  color: var(--ak-muted);
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ui.inverted.footer.segment a {
  color: var(--ak-muted);
}

.nezha-primary-btn {
  min-height: 44px;
  background: var(--ak-bg) !important;
  color: var(--ak-muted) !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
  box-shadow: none !important;
}

.ak-empty {
  border-radius: 2px;
  background: var(--ak-bg);
  box-shadow: -6px -6px 12px var(--ak-shadow-dark), 6px 6px 12px var(--ak-shadow-soft);
  padding: 1.2rem;
  color: var(--ak-muted);
  text-align: center;
}

.ak-system-state {
  max-width: 680px;
  margin: 2rem auto 3rem;
  border-radius: 18px;
  background: var(--ak-bg);
  box-shadow: -7px -7px 15px var(--ak-shadow-dark), 7px 7px 15px var(--ak-shadow-soft);
  padding: 2.1rem 1.6rem;
  color: var(--ak-muted);
  text-align: center;
}

.ak-system-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.95rem;
  border-radius: 50%;
  background: var(--ak-bg);
  color: var(--ak-blue);
  font-size: 1.45rem;
  box-shadow: inset 4px 4px 9px var(--ak-inset-dark), inset -4px -4px 9px var(--ak-inset-soft);
}

.ak-system-icon > i.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0;
  line-height: 1;
}

.ak-system-state h1 {
  margin: 0 0 0.65rem;
  color: var(--ak-text);
  font-size: 1.55rem;
  line-height: 1.25;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-system-state p {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

.ak-error-state .ak-system-icon {
  color: #b20d24;
}

.ak-detail-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.35rem 0.25rem 1.5rem;
}

.ak-back {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 2px;
  padding: 0.72rem 0.95rem;
  color: var(--ak-muted) !important;
  font-weight: 700;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-detail-info-card,
.ak-chart-card {
  border-radius: 2px;
  background: var(--ak-surface);
  box-shadow: -6px -6px 12px var(--ak-shadow-dark), 6px 6px 12px var(--ak-shadow-soft);
}

.ak-detail-info-card {
  padding: 1.15rem;
}

.ak-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.2rem 1rem;
}

.ak-detail-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ak-detail-title h1 {
  margin: 0;
  color: var(--ak-text);
  font-size: 1.65rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-detail-uuid {
  flex: 0 1 auto;
  max-width: 100%;
  border-radius: 8px;
  padding: 0.42rem 0.58rem;
  color: var(--ak-muted);
  font-family: Consolas, "Liberation Mono", monospace !important;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.ak-stat-card {
  min-width: 0;
  border-radius: 2px;
  padding: 0.86rem 0.92rem;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-stat-card.wide {
  grid-column: span 2;
}

.ak-stat-title {
  margin-bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--ak-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-stat-title i {
  flex: 0 0 auto;
  margin: 0 !important;
  color: var(--ak-blue);
  line-height: 1;
}

.ak-stat-value {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-height: 1.55rem;
  color: var(--ak-text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ak-stat-sub {
  margin-top: 0.25rem;
  color: var(--ak-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ak-net-down {
  color: #347433;
}

.ak-net-up {
  color: var(--ak-blue);
}

.ak-chart-section,
.ak-chart-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ak-segmented {
  align-self: center;
  display: inline-flex;
  max-width: 100%;
  gap: 0.35rem;
  border-radius: 2px;
  padding: 0.35rem;
  overflow-x: auto;
  background: var(--ak-bg);
  box-shadow: inset 4px 4px 10px var(--ak-inset-dark), inset -4px -4px 10px var(--ak-inset-soft);
}

.ak-segmented-chart {
  gap: 0.75rem;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.ak-segmented-chart button {
  min-width: 92px;
  min-height: 44px;
  background: var(--ak-bg);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-segmented-chart button.active {
  color: var(--ak-blue);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-segmented button {
  min-width: 64px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 0.52rem 0.82rem;
  background: transparent;
  color: var(--ak-muted);
  cursor: pointer;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-segmented button i {
  flex: 0 0 auto;
  margin: 0 !important;
  color: var(--ak-blue);
  line-height: 1;
}

.ak-segmented button.active {
  color: var(--ak-blue);
  box-shadow: 4px 4px 9px #cfd6dc, -4px -4px 9px #fdffff;
}

.ak-segmented-chart button,
.ak-segmented-chart button.active {
  min-width: 92px;
  min-height: 44px;
  background: var(--ak-bg);
}

.ak-segmented-chart button {
  box-shadow: inset 3px 3px 8px var(--ak-inset-dark), inset -3px -3px 8px var(--ak-inset-soft);
}

.ak-segmented-chart button.active {
  color: var(--ak-blue);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.ak-chart-card {
  min-width: 0;
  padding: 1rem;
}

.ak-chart-grid .ak-chart-card {
  padding: 1.15rem 1.2rem 1.05rem;
}

.ak-chart-card.full {
  width: 100%;
}

.ak-chart-head {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ak-chart-head h2 {
  margin: 0;
  color: var(--ak-text);
  font-size: 1.22rem;
  line-height: 1.25;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-chart-head span {
  color: var(--ak-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.ak-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.ak-chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 170px;
}

.ak-chart-grid .ak-chart-wrap svg {
  min-height: 230px;
}

.ak-chart-gridline {
  stroke: rgba(82, 81, 81, 0.16);
  stroke-width: 1;
}

.ak-chart-axis {
  stroke: rgba(82, 81, 81, 0.28);
  stroke-width: 1.15;
}

.ak-chart-axis-label {
  fill: var(--ak-muted);
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
}

.ak-chart-card.full .ak-chart-axis-label {
  font-size: 5.5px;
}

.ak-chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.ak-chart-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  margin-top: -0.2rem;
  color: var(--ak-muted);
  font-size: 0.74rem;
  line-height: 1.2;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
}

.ak-chart-meta span:first-child {
  text-align: left;
}

.ak-chart-meta span:last-child {
  text-align: right;
}

.ak-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: var(--ak-muted);
  font-size: 0.78rem;
}

.ak-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ak-chart-legend i,
.ak-ping-mark {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.ak-chart-loading,
.ak-chart-error,
.ak-chart-empty {
  border-radius: 2px;
  padding: 1rem;
  color: var(--ak-muted);
  text-align: center;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-chart-error {
  color: #b20d24;
}

.ak-ping-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
  margin: 0 0 1rem;
  border-radius: 2px;
  background: var(--ak-bg);
  padding: 1rem;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-ping-item {
  appearance: none;
  border: 0;
  border-radius: 2px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  width: 100%;
  min-width: 0;
  padding: 0.48rem 0.62rem;
  color: inherit;
  cursor: pointer;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-align: left;
  transition: color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ak-ping-item:hover,
.ak-ping-item:focus-visible {
  color: var(--ak-blue);
  outline: none;
}

.ak-ping-item.active {
  background: var(--ak-bg);
  color: var(--ak-blue);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
  transform: translateY(-1px);
}

.ak-ping-text {
  display: block;
  min-width: 0;
}

.ak-ping-mark {
  flex: 0 0 auto;
  width: 0.3rem;
  height: 1.7rem;
  border-radius: 4px;
}

.ak-ping-item strong,
.ak-ping-text > span {
  display: block;
  overflow-wrap: anywhere;
}

.ak-ping-text strong {
  color: var(--ak-text);
  line-height: 1.25;
}

.ak-ping-text > span {
  margin-top: 0.12rem;
  color: var(--ak-muted);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .ui.container {
    width: 95vw !important;
  }

  .nb-menu {
    margin-top: 0 !important;
  }

  .ak-nav-inner {
    gap: 0;
    overflow-x: auto;
  }

  .ui.menu .item {
    min-height: 44px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .right.menu {
    margin-left: auto !important;
  }

  .ak-auth .button {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .nb-container {
    padding-top: 24px !important;
  }

  .ak-accordion-title {
    justify-content: center;
    text-align: center;
  }

  .ak-summary-bars {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .ak-summary-bar {
    justify-content: center;
    text-align: center;
  }

  .ak-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .ak-card {
    border-radius: 2px;
    padding: 1rem;
  }

  .ak-detail-info-card {
    padding: 0.95rem;
  }

  .ak-detail-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.1rem 0.1rem 0.85rem;
  }

  .ak-detail-title h1 {
    font-size: 1.35rem;
  }

  .ak-detail-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .ak-stat-card.wide {
    grid-column: auto;
  }

  .ak-chart-grid {
    grid-template-columns: 1fr;
  }

  .ak-chart-grid .ak-chart-card {
    padding: 1rem 0.82rem 0.95rem;
  }

  .ak-chart-head {
    min-height: 50px;
    margin-bottom: 0.35rem;
  }

  .ak-chart-wrap svg {
    height: 230px;
    min-height: 230px;
  }

  .ak-chart-grid .ak-chart-wrap svg {
    height: 260px;
    min-height: 260px;
  }

  .ak-segmented {
    align-self: stretch;
  }

  .ak-segmented button {
    min-width: 72px;
    flex: 1 0 auto;
  }

  .ak-segmented-load-range {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .ak-segmented-load-range button {
    min-width: 0;
    width: 100%;
    padding-left: 0.48rem;
    padding-right: 0.48rem;
  }

  .ak-segmented-chart {
    align-self: center;
  }

  .ak-ping-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .ak-ping-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.44rem 0.58rem;
  }

  .ak-ping-item:nth-child(2n) {
    border-left: 0;
  }

  .ak-ping-text strong {
    font-size: 0.86rem;
  }

  .ak-ping-text > span {
    font-size: 0.72rem;
  }

  .ak-metrics {
    grid-template-columns: 57px minmax(0, 1fr);
    gap: 0 0.46rem;
  }

  .ak-popup {
    right: -0.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .ak-ping-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .ak-summary-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ak-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ak-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ak-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ak-stat-card.wide {
    grid-column: span 2;
  }
}

/* 国家汇总条：有限显示 + hover 内容切换向下展开（无单独下拉条） */
.ak-country-summary {
  position: relative;
  padding: 0.58rem 0.72rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.ak-country-content {
  position: relative;
  width: 100%;
}

.ak-country-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.ak-country-full {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ak-country-more {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 148, 242, 0.1);
  color: var(--ak-blue);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: default;
  transition: all 120ms ease;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
}

.ak-country-summary:hover .ak-country-compact {
  display: none;
}

.ak-country-summary:hover .ak-country-full {
  display: flex;
}

/* Hover 时轻微视觉扩展效果，渐变阴影表示展开 */
.ak-country-summary:hover {
  box-shadow: 0 4px 12px rgba(10, 148, 242, 0.12);
}

.ak-country-item.expanded {
  width: auto;
  flex-shrink: 0;
}


/* v6 flat pure color override */
:root {
  --ak-bg:#ffffff !important;
  --ak-surface:#ffffff !important;
  --ak-shadow-dark:transparent !important;
  --ak-shadow-soft:transparent !important;
  --ak-inset-dark:transparent !important;
  --ak-inset-soft:#ffffff !important;
}

/* 全局去除视觉效果 */
* {
  box-shadow:none !important;
  text-shadow:none !important;
}

body,
html {
  background:#ffffff !important;
}

/* 顶部导航、底部 */
header,
footer,
nav,
.ak-header,
.ak-footer,
.ak-navbar {
  background:#ffffff !important;
  box-shadow:none !important;
}

/* 首页汇总条、卡片 */
.ak-card,
.ak-summary-bar,
.ak-stat-card,
.ak-country-summary {
  background:#ffffff !important;
  border:1px solid #dddddd !important;
  box-shadow:none !important;
}

/* VPS卡片 */
[class*="card"],
.ak-card {
  box-shadow:none !important;
  background:#ffffff !important;
}

/* 所有按钮和悬停 */
button,
.ak-button,
.ak-country-more,
.ak-tab {
  background:#ffffff !important;
  box-shadow:none !important;
}

/* i悬停详情 */
.ak-popover,
.ak-tooltip,
.ak-info-popup {
  background:#ffffff !important;
  box-shadow:none !important;
}

/* 详情页 */
.ak-chart,
.ak-panel,
.ak-tabs,
.ak-tab-container,
.ak-load,
.ak-delay {
  background:#ffffff !important;
  box-shadow:none !important;
}

/* 时间选择区域 */
.ak-tabs *,
.ak-tab * {
  background:#ffffff !important;
  box-shadow:none !important;
}

/* 进度条 */
.ak-progress {
  background:#eeeeee !important;
  box-shadow:none !important;
}

.ak-bar {
  box-shadow:none !important;
}

/* footer */
footer,
.footer,
[class*="footer"] {
  background:#ffffff !important;
  border-top:1px solid #dddddd !important;
  box-shadow:none !important;
}

/* Strong 4px rules for homepage cards, progress, summary, popup */
.ak-card,
[class*="card"],
.ak-summary-bar,
.ak-stat-card,
.ak-country-summary,
.ak-progress,
.ak-bar,
.ak-popup,
.ak-detail-info-card,
.ak-chart-card {
  border-radius: 4px !important;
}

.ak-popup {
  border: 1px solid #dddddd !important;
}


/* ============================================
   1.1.18 CLEAN FINAL: 统一圆角 + 卡片头部精确对齐
   ============================================ */

/* 全局强制 4px 圆角（精简后唯一来源） */
.ak-card,
.ak-summary-bar,
.ak-progress,
.ak-bar,
.ak-stat-card,
.ak-popup,
.ak-detail-info-card,
.ak-chart-card,
.ak-ping-item,
.ak-segmented button {
  border-radius: 4px !important;
}

/* 国家/地区图标正方形 4px */
.ak-region {
  width: 26px !important;
  height: 26px !important;
  border-radius: 4px !important;
  flex-shrink: 0;
}

/* VPS卡片头部布局 - 最终精确版本 */
.ak-card-header {
  position: relative !important;
  margin-top: 4px !important;
  padding-bottom: 10px !important;
  text-align: left !important;
}

/* 标题行（国家图标 + 系统图标 + 名称） */
.ak-title-line {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.55rem !important;
  padding-top: 1px !important;        /* 关键：向上微调，与 i 图标水平对齐 */
  padding-left: 1rem !important;
  padding-right: 3.8rem !important;
  min-height: 28px !important;
  font-size: 1.15em !important;
}

/* i 悬停图标 - 稳定位置（用户确认满意） */
.ak-info {
  position: absolute !important;
  top: 4px !important;
  right: 12px !important;
  width: 28px !important;
  height: 28px !important;
}

/* Ping 选中效果保持一致圆角 */
.ak-ping-item.active {
  border-radius: 4px !important;
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff !important;
}

/* === 1.1.20 Footer fix: remove unwanted horizontal line above copyright === */
.ui.inverted.footer.segment,
footer,
.footer,
[class*="footer"] {
  border-top: none !important;
  border: none !important;
}

/**
 * Nezha Minimal Clean v4
 */

body {
  background-color: #ffffff !important;
}

/* 卡片 */
.ak-card,
.ak-summary-bar {
  background-color: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* 进度条 */
.ak-progress {
  background: #f5f5f5 !important;
  border: 1px solid #cccccc !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.ak-bar {
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* 时间范围按钮强制无背景 */
.ak-segmented button,
.ak-segmented-chart button {
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  color: #222222 !important;
}

.ak-segmented button.active {
  background-color: #f0f0f0 !important;
  border-color: #999999 !important;
  box-shadow: none !important;
}

/* 返回首页 */
.ak-back {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  color: #222222 !important;
}

/* 顶部导航 */
.ui.menu.nb-menu,
.ak-nav-inner {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.nav-home {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 容器间隙 */
.ak-card-grid,
#homeView,
.ak-view,
.ui.container {
  background-color: transparent !important;
}

.ui.menu {
  background-color: transparent !important;
  box-shadow: none !important;
}


/* v5 pure clean overrides */

/* 去除首页顶部首页/登录区域蓝色背景 */
header,
nav,
.ui.menu,
.ui.menu.nb-menu,
.ak-nav-inner,
#header,
.ak-header {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: #dddddd !important;
}

/* VPS 卡片之间、汇总条之间全部纯色 */
.ak-card,
.ak-summary-bar,
.ak-card-grid,
.ak-card + .ak-card,
.ak-summary-bar + .ak-card {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* VPS 卡片右上角 i 悬停弹层 */
.ak-card .info-popup,
.ak-card .server-info,
.ak-card [class*="popover"],
.ak-card [class*="tooltip"] {
  background: #ffffff !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  border: 1px solid #dddddd !important;
}

/* 详情页整体纯色 */
.ak-detail,
.ak-detail *,
.ak-chart,
.ak-chart-container,
.ak-metric,
.ak-segmented,
.ak-segmented-chart {
  background-image: none !important;
}

.ak-detail,
.ak-chart,
.ak-chart-container,
.ak-metric {
  background: #ffffff !important;
}

/* 负载、延迟、时间范围按钮区域 */
.ak-segmented,
.ak-segmented-chart,
.ak-segmented button,
.ak-segmented-chart button {
  background: #ffffff !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* 直角悬停效果 */
.ak-card:hover,
.ak-summary-bar:hover,
.ak-detail:hover {
  border-radius: 4px !important;
  box-shadow: none !important;
}



/* Nezha Minimal 1.1.20 clean overrides */

/* 纯色扁平化 */
body,
#app,
.ui.container,
.header {
  background: #ffffff !important;
  background-image: none !important;
}

.ak-card,
.ak-summary-bar {
  background: #ffffff !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}

/* VPS 标题行水平对齐 */
.ak-card-header {
  text-align: left !important;
  text-shadow: none !important;
}

.ak-title-line {
  justify-content: flex-start !important;
  align-items: center !important;
  padding-left: 0 !important;
  padding-right: 2rem !important;
}

/* i 悬停图标与国家/VPS名称同一水平线 */
.ak-info {
  top: 0 !important;
  right: 12px !important;
  transform: translateY(0) !important;
}

/* i 弹窗 */
.ak-card .info-popup,
.ak-card .server-info,
.ak-card [class*="popover"],
.ak-card [class*="tooltip"] {
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-radius: 1px !important;
  box-shadow: none !important;
}
