.ai-monitor-page {
  background: #fff;
}

.ai-monitor-hero {
  overflow: hidden;
  padding: 135px 0 80px;
}

.ai-monitor-hero-bg {
  background: linear-gradient(134deg, #fff 11.23%, #e7f7ff 64%, #def8f1 100%);
}

.ai-monitor-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.ai-monitor-hero-copy {
  width: 46%;
}

.ai-monitor-kicker,
.ai-section-head span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(1, 122, 255, 0.1);
  color: #017aff;
  font-size: 14px;
  font-weight: 600;
}

.ai-monitor-hero h1 {
  margin-top: 18px;
  font-size: 56px;
  line-height: 1.15;
  color: #1e2026;
  font-weight: 700;
}

.ai-monitor-desc {
  max-width: 530px;
  margin-top: 22px;
  color: #4d5562;
  font-size: 18px;
  line-height: 1.8;
}

.ai-monitor-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.ai-monitor-primary,
.ai-monitor-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}

.ai-monitor-primary {
  color: #fff;
  background: linear-gradient(90deg, #017aff 0%, #13b8d6 100%);
  box-shadow: 0 12px 24px rgba(1, 122, 255, 0.22);
}

.ai-monitor-hero-panel {
  position: relative;
  width: 46%;
  min-height: 360px;
}

.monitor-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(1, 122, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(23, 54, 112, 0.12);
}

.monitor-card-main {
  width: 88%;
  margin-left: auto;
  padding: 34px;
}

.monitor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.monitor-card-head span,
.monitor-card-small span {
  color: #686c73;
  font-size: 15px;
}

.monitor-card-head strong {
  color: #017aff;
  font-size: 58px;
  line-height: 1;
}

.monitor-meter {
  height: 9px;
  margin: 26px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef6;
}

.monitor-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f45ff, #20c997);
}

.monitor-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.monitor-grid-mini div {
  padding: 18px 12px;
  border-radius: 8px;
  background: #f6f9ff;
}

.monitor-grid-mini b {
  display: block;
  color: #1e2026;
  font-size: 24px;
}

.monitor-grid-mini span {
  display: block;
  margin-top: 5px;
  color: #7b8290;
  font-size: 13px;
}

.monitor-card-small {
  position: absolute;
  width: 150px;
  padding: 20px;
}

.monitor-card-small b {
  display: block;
  margin-top: 10px;
  color: #1e2026;
  font-size: 28px;
}

.monitor-card-a {
  left: 4px;
  top: 56px;
}

.monitor-card-b {
  right: 16px;
  bottom: 18px;
}

.api-service-hero .ai-monitor-kicker {
  background: rgba(1, 122, 255, 0.12);
}

.api-service-hero .ai-monitor-primary {
  min-width: 118px;
}

.api-service-hero .monitor-card-main {
  min-height: 250px;
}

.api-service-hero .monitor-card-small {
  width: 152px;
}

.api-service-hero .api-card-caption {
  display: block;
  margin-top: 10px;
  color: #7b8290;
  font-size: 13px;
}

.ai-monitor-tabs {
  padding-top: 34px;
}

.ai-monitor-tool,
.ai-monitor-values {
  padding: 70px 0;
}

.ai-section-head {
  margin-bottom: 34px;
  text-align: center;
}

.ai-section-head h2 {
  max-width: 760px;
  margin: 14px auto 0;
  color: #1e2026;
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
}

.ai-monitor-console {
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(17, 34, 68, 0.08);
}

.ai-monitor-console {
  padding: 34px 38px 38px;
}

.monitor-step + .monitor-step {
  margin-top: 34px;
}

.monitor-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #0f172a;
}

.monitor-step-title span {
  color: #2738ff;
  font-size: 17px;
  font-weight: 700;
}

.monitor-step-title strong {
  font-size: 17px;
  font-weight: 700;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  min-width: 118px;
  padding: 0 17px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #121826;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
}

.platform-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.platform-chip.active {
  border-color: #2d44ff;
  background: #f3f6ff;
  box-shadow: 0 8px 18px rgba(45, 68, 255, 0.1);
}

.monitor-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  color: #1e2026;
  font-size: 16px;
  outline: none;
  transition: all .2s;
}

.monitor-input:focus {
  border-color: #2d44ff;
  box-shadow: 0 0 0 3px rgba(45, 68, 255, 0.1);
}

.brand-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 46px;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #017aff;
  font-size: 14px;
}

.brand-tag button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  color: #017aff;
  background: rgba(1, 122, 255, 0.12);
  cursor: pointer;
}

.brand-input {
  flex: 1;
  min-width: 260px;
}

.monitor-tip {
  margin-top: 14px;
  color: #566174;
  font-size: 14px;
}

.monitor-tip:before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 1px solid #2738ff;
  border-radius: 50%;
  color: #2738ff;
  font-size: 10px;
  font-weight: 700;
}

.monitor-submit {
  width: 100%;
  height: 48px;
  margin-top: 30px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, #017aff 0%, #13b8d6 100%);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 25px rgba(1, 122, 255, 0.18);
}

.ai-monitor-records {
  padding: 70px 0;
  background: #f7fbff;
}

.record-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.record-bar-text {
  color: #566174;
  font-size: 14px;
}

.record-bar-btn {
  height: 40px;
  padding: 0 18px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #017aff;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.record-list {
  display: grid;
  gap: 16px;
}

.record-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.record-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #4d5562;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.record-filter button b {
  color: inherit;
  font-weight: 700;
}

.record-filter button.active {
  border-color: #017aff;
  color: #017aff;
  background: #edf4ff;
  box-shadow: 0 8px 18px rgba(1, 122, 255, 0.1);
}

.record-batch-list {
  display: grid;
  gap: 12px;
}

.record-batch {
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 34, 68, 0.05);
  overflow: hidden;
}

.record-batch-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 78px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.record-batch-main {
  min-width: 0;
}

.record-batch-main strong {
  display: block;
  color: #1e2026;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-batch-main p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: #7b8290;
  font-size: 13px;
}

.record-batch-main span {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-batch-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.record-stat {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #566174;
  background: #f3f6fb;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.record-stat.is-pending {
  color: #017aff;
  background: #edf4ff;
}

.record-stat.is-success {
  color: #1a8f5d;
  background: #e7f9ef;
}

.record-stat.is-miss {
  color: #c57a08;
  background: #fff5e8;
}

.record-stat.is-error {
  color: #d33d3d;
  background: #fdecec;
}

.record-toggle {
  height: 34px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #017aff;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.record-toggle:hover {
  border-color: #017aff;
  background: #f7fbff;
}

.record-detail {
  padding: 0 22px 20px;
  border-top: 1px solid #eef2f7;
  overflow-x: auto;
}

.record-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
}

.record-table th {
  height: 42px;
  color: #7b8290;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.record-table td {
  padding: 13px 12px 13px 0;
  border-top: 1px solid #eef2f7;
  color: #4d5562;
  font-size: 13px;
  line-height: 1.6;
  vertical-align: top;
}

.record-table th:nth-child(1) {
  width: 110px;
}

.record-table th:nth-child(2) {
  width: 120px;
}

.record-table th:nth-child(3) {
  width: 120px;
}

.record-table th:nth-child(5) {
  width: 145px;
}

.record-table th:nth-child(6) {
  width: 110px;
}

.record-platform-name {
  color: #1e2026;
  font-size: 13px;
  font-weight: 700;
}

.record-result-text {
  display: block;
  max-height: 42px;
  overflow: hidden;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.record-action-link {
  color: #017aff;
  font-size: 13px;
  font-weight: 600;
}

.record-table .record-muted {
  display: inline-flex;
  margin-top: 0;
  color: #7b8290;
  font-size: 13px;
  font-weight: 400;
}

.record-table-empty {
  color: #7b8290;
  text-align: center;
}

.record-card {
  padding: 22px 24px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 34, 68, 0.06);
}

.record-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.record-card-head strong {
  color: #1e2026;
  font-size: 20px;
  font-weight: 700;
}

.record-card-head p {
  margin-top: 8px;
  color: #686c73;
  font-size: 14px;
  line-height: 1.6;
}

.record-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.record-status.is-pending {
  color: #017aff;
  background: #edf4ff;
}

.record-status.is-success {
  color: #1a8f5d;
  background: #e7f9ef;
}

.record-status.is-miss {
  color: #c57a08;
  background: #fff5e8;
}

.record-status.is-error {
  color: #d33d3d;
  background: #fdecec;
}

.record-card-body {
  display: grid;
  grid-template-columns: 1.2fr .9fr 160px;
  gap: 16px;
  align-items: start;
}

.record-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.record-info div {
  min-height: 72px;
  padding: 14px;
  border-radius: 8px;
  background: #f7faff;
}

.record-info span,
.record-result span {
  display: block;
  color: #7b8290;
  font-size: 12px;
}

.record-info b {
  display: block;
  margin-top: 8px;
  color: #1e2026;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
}

.record-result {
  padding: 14px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #f9fbff;
}

.record-result p {
  margin-top: 8px;
  color: #4d5562;
  font-size: 14px;
  line-height: 1.7;
  min-height: 68px;
}

.record-link,
.record-muted {
  display: inline-flex;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.record-link {
  color: #017aff;
}

.record-muted {
  color: #7b8290;
}

.record-thumb {
  display: block;
  width: 160px;
  aspect-ratio: 160 / 110;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3fb;
}

.record-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8290;
  font-size: 13px;
}

.record-empty {
  padding: 26px;
  border: 1px dashed #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #7b8290;
  text-align: center;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.value-card {
  min-height: 250px;
  padding: 28px 24px;
  border-radius: 8px;
  background: linear-gradient(0deg, #fff -36.47%, #def1ff 87.06%);
}

.value-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.value-card h3 {
  margin-top: 20px;
  color: #1e2026;
  font-size: 22px;
  font-weight: 700;
}

.value-card p {
  margin-top: 12px;
  color: #686c73;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .ai-monitor-hero h1 {
    font-size: 46px;
  }

  .ai-section-head h2 {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .ai-monitor-hero-inner {
    display: block;
  }

  .ai-monitor-hero-copy,
  .ai-monitor-hero-panel {
    width: 100%;
  }

  .ai-monitor-hero-panel {
    margin-top: 40px;
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ai-monitor-hero {
    padding: 95px 0 44px;
  }

  .ai-monitor-hero h1 {
    font-size: 36px;
  }

  .ai-monitor-desc {
    font-size: 15px;
  }

  .ai-monitor-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-monitor-primary {
    width: 100%;
  }

  .monitor-card-main {
    width: 100%;
    padding: 24px;
  }

  .monitor-card-small {
    position: static;
    display: inline-block;
    width: calc(50% - 8px);
    margin-top: 14px;
  }

  .monitor-grid-mini,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .ai-monitor-tool,
  .ai-monitor-records,
  .ai-monitor-values {
    padding: 46px 0;
  }

  .ai-section-head h2 {
    font-size: 24px;
  }

  .ai-monitor-console {
    padding: 22px 16px;
  }

  .record-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .record-bar-btn {
    width: 100%;
  }

  .record-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .record-filter button {
    width: 100%;
  }

  .record-batch-summary {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .record-batch-main strong {
    white-space: normal;
  }

  .record-batch-main p {
    display: grid;
  }

  .record-batch-main span {
    max-width: 100%;
  }

  .record-batch-stats {
    justify-content: flex-start;
  }

  .record-toggle {
    width: 100%;
  }

  .record-detail {
    padding: 0 18px 18px;
  }

  .record-card {
    padding: 18px;
  }

  .record-card-head {
    flex-direction: column;
  }

  .record-card-body {
    grid-template-columns: 1fr;
  }

  .record-info {
    grid-template-columns: 1fr;
  }

  .record-thumb {
    width: 100%;
  }

  .platform-chip {
    width: calc(50% - 7px);
    min-width: 0;
  }
}
