:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #182230;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #1677ff;
  --primary-2: #0f5fe0;
  --green: #16a34a;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

.wrap {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.18);
}

.btn:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.btn-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-light:hover {
  background: #f8fafc;
  color: var(--text);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

.status-line {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  word-break: break-all;
}

#status-text {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.progress {
  width: 100%;
  height: 12px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 18px;
  position: relative;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #6aa9ff);
  transition: width .25s ease;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metrics > div {
  background: #f8fbff;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
}

.metrics span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.metrics strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
}

.metrics em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  font-size: 14px;
  transition: all .2s ease;
}

.chip:hover {
  border-color: rgba(22, 119, 255, 0.35);
  color: var(--primary);
  transform: translateY(-1px);
}

.chip.active {
  background: rgba(22, 119, 255, 0.1);
  border-color: rgba(22, 119, 255, 0.28);
  color: var(--primary);
  font-weight: 700;
}

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

.record-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 16px;
}

.record-card-tech {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.tech-glow {
  position: absolute;
  inset: -40px -40px auto auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(22,119,255,.10) 0%, rgba(22,119,255,0) 70%);
  pointer-events: none;
}

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

.record-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.record-time {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.record-badge {
  min-width: 58px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

.metric-box {
  background: #f8fbff;
  border: 1px solid #e8eef7;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.metric-box span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.metric-box strong {
  display: inline-block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.metric-box em {
  display: inline-block;
  margin-left: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.record-foot {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

.muted {
  color: var(--muted);
  padding-left: 18px;
}

.muted li {
  margin: 6px 0;
}

.testing {
  outline: 2px solid rgba(22, 119, 255, 0.18);
  animation: pulse .45s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

footer {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto 24px;
  text-align: center;
  color: #667085;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 960px) {
  .metrics,
  .gridcards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 16px);
    padding-top: 10px;
  }

  .hero,
  .panel {
    padding: 16px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .metrics,
  .gridcards,
  .record-metrics {
    grid-template-columns: 1fr;
  }

  .record-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .chip {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .metrics strong {
    font-size: 24px;
  }
}