:root {
  --bg: #06111c;
  --panel: rgba(10, 24, 39, 0.92);
  --panel-soft: rgba(13, 30, 46, 0.86);
  --line: rgba(106, 222, 255, 0.16);
  --line-strong: rgba(106, 222, 255, 0.34);
  --text: #e8f4ff;
  --muted: #88a7bc;
  --primary: #6adeff;
  --secondary: #37baff;
  --success: #4adfa3;
  --warning: #f4c66a;
  --danger: #ff7b88;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1280px;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(55, 186, 255, 0.16), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(74, 223, 163, 0.14), transparent 22%),
    linear-gradient(180deg, #030911 0%, #07111b 46%, #030a12 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(106, 222, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 222, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 96%);
}

.hover-tip-target {
  cursor: help;
}

.hover-fulltext-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(106, 222, 255, 0.24);
  background: rgba(5, 16, 27, 0.96);
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: normal;
}

.hover-fulltext-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 40px), 1500px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(4, 11, 18, 0.78);
  border-bottom: 1px solid rgba(106, 222, 255, 0.08);
}

.nav-bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--primary));
  box-shadow: 0 0 16px rgba(106, 222, 255, 0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  padding: 30px 0 56px;
}

.hero-section,
.page-section,
.content-section {
  padding-bottom: 22px;
}

.hero-shell,
.wide-shell,
.admin-shell,
.trace-shell,
.result-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 24, 39, 0.94), rgba(7, 17, 28, 0.96));
  box-shadow: var(--shadow);
}

.hero-shell::before,
.wide-shell::before,
.admin-shell::before,
.trace-shell::before,
.result-shell::before {
  content: "";
  position: absolute;
  inset: -36% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 222, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.hero-shell,
.admin-shell,
.trace-shell,
.wide-shell,
.result-shell {
  padding: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 18px;
}

.trace-grid-layout {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 18px;
}

.overview-grid,
.stats-grid,
.feature-grid,
.support-grid,
.admin-kpis,
.trace-kpis,
.trace-side-grid {
  display: grid;
  gap: 16px;
}

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

.stats-grid {
  margin-top: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.admin-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

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

.trace-side-grid {
  grid-template-columns: 1fr;
}

.badge,
.muted-pill,
.eyebrow,
.status-badge,
.code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.eyebrow {
  color: #cbf4ff;
  background: rgba(106, 222, 255, 0.08);
  border: 1px solid rgba(106, 222, 255, 0.15);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(74, 223, 163, 0.8);
}

.badge,
.code-badge {
  color: #d6f7ff;
  background: rgba(106, 222, 255, 0.08);
  border: 1px solid rgba(106, 222, 255, 0.14);
}

.muted-pill {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-badge {
  color: #c8fbe6;
  background: rgba(74, 223, 163, 0.08);
  border: 1px solid rgba(74, 223, 163, 0.14);
}

.status-badge.pending {
  color: #ffe9b7;
  background: rgba(244, 198, 106, 0.08);
  border-color: rgba(244, 198, 106, 0.14);
}

.status-badge.error {
  color: #ffd5db;
  background: rgba(255, 123, 136, 0.08);
  border-color: rgba(255, 123, 136, 0.14);
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: 3.8rem;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.08rem;
}

.mini-panel span,
.feature-card p,
.support-card p,
.trace-empty p,
.summary-card p,
.panel-list p,
.trace-side-card p,
.trace-kpi-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}

.feature-card h3,
.support-card h3,
.summary-card strong,
.trace-side-card strong,
.trace-detail-card strong {
  display: block;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.28;
}

.feature-card,
.support-card,
.summary-card,
.trace-side-card,
.trace-kpi-card {
  min-height: 144px;
}

.lead,
.section-copy,
.toolbar-copy,
.mini-panel span,
.feature-card p,
.support-card p,
.trace-empty p,
.summary-card p,
.panel-list p,
.trace-side-card p {
  color: var(--muted);
  line-height: 1.82;
  font-size: 14px;
}

.lead {
  margin-top: 16px;
  max-width: 58ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(55, 186, 255, 0.28), rgba(106, 222, 255, 0.12));
  border-color: rgba(106, 222, 255, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #d8eefb;
}

.btn-danger {
  background: rgba(255, 123, 136, 0.08);
  border-color: rgba(255, 123, 136, 0.14);
  color: #ffd5db;
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.mini-panel,
.feature-card,
.support-card,
.table-shell,
.summary-card,
.panel-list,
.trace-side-card,
.trace-detail-card,
.trace-kpi-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-panel,
.feature-card,
.support-card,
.summary-card,
.panel-list,
.trace-side-card,
.trace-kpi-card {
  padding: 18px;
}

.mini-panel strong,
.trace-kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.85rem;
}

.meter {
  margin-top: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.bars {
  margin-top: 18px;
  height: 96px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.bars i {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(106, 222, 255, 0.96), rgba(55, 186, 255, 0.24));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 64ch;
}

.table-shell {
  padding: 20px;
}

.table-toolbar,
.card-heading,
.toolbar,
.table-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.table-status,
.form-hint {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow: visible;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 14px;
}

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

.table th,
.table td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  vertical-align: top;
}

.table th {
  color: #d6f3ff;
  background: rgba(255, 255, 255, 0.03);
}

.table td {
  color: var(--muted);
}

.table tr:last-child td {
  border-bottom: 0;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.form-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #d2e8f8;
  font-size: 14px;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(106, 222, 255, 0.08);
}

.inline-form,
.search-inline,
.form-actions,
.action-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-inline {
  min-width: 360px;
}

.summary-list,
.panel-list {
  display: grid;
  gap: 12px;
}

.summary-card strong,
.panel-list strong,
.trace-side-card strong,
.trace-detail-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.trace-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.trace-detail {
  display: block;
}

.trace-result-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.trace-detail-grid {
  display: grid;
  gap: 12px;
}

.trace-detail-card {
  padding: 16px;
}

.trace-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trace-item:last-child {
  border-bottom: 0;
}

.trace-item span {
  color: var(--muted);
  font-size: 14px;
}

.trace-item strong {
  font-size: 15px;
}

.site-footer {
  padding: 10px 0 36px;
  color: rgba(136, 167, 188, 0.9);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
