:root {
  --yp-bg: #f5f7fb;
  --yp-card: #ffffff;
  --yp-line: #e6ebf3;
  --yp-text: #172033;
  --yp-muted: #697489;
  --yp-primary: #2367ff;
  --yp-primary-dark: #1557e8;
  --yp-success: #10b981;
  --yp-warning: #f59e0b;
  --yp-danger: #ef4444;
  --yp-shadow: 0 14px 36px rgba(25, 45, 100, 0.08);
}

html {
  background: var(--yp-bg);
}

body.yp-test-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, var(--yp-bg) 100%);
  color: var(--yp-text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.yp-test-page:before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(35, 103, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 103, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
  content: "";
}

body.yp-test-page .yp-test-shell {
  width: min(860px, calc(100% - 28px));
  padding-top: 44px;
  padding-bottom: 44px;
}

body.yp-test-page .center-block {
  width: 100%;
}

body.yp-test-page .page-header {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

body.yp-test-page .page-header h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  color: var(--yp-text);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: 0;
}

body.yp-test-page .page-header h4:before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yp-primary);
  color: #fff;
  font-family: "Glyphicons Halflings";
  font-size: 17px;
  content: "\e177";
  box-shadow: 0 12px 24px rgba(35, 103, 255, 0.18);
}

body.yp-test-page .page-header h4 > a {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(35, 103, 255, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--yp-primary);
  font-size: 13px;
  font-weight: 800;
}

body.yp-test-page .page-header small {
  color: inherit;
  font-size: inherit;
}

body.yp-test-page .panel {
  overflow: hidden;
  border: 1px solid var(--yp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--yp-shadow);
}

body.yp-test-page .panel:before {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--yp-primary), #00a4ff, var(--yp-success));
  content: "";
}

body.yp-test-page .panel-primary {
  border-color: var(--yp-line);
}

body.yp-test-page .panel-body {
  padding: 26px;
}

body.yp-test-page .panel-footer {
  border-top: 1px solid var(--yp-line);
  background: #fff;
  color: #9aa4b5;
  font-size: 12px;
}

body.yp-test-page .form-group {
  margin-bottom: 14px;
}

body.yp-test-page .input-group {
  width: 100%;
}

body.yp-test-page .input-group-addon {
  min-width: 46px;
  border-color: var(--yp-line);
  border-radius: 9px 0 0 9px;
  background: #f8fafd;
  color: var(--yp-primary);
}

body.yp-test-page .form-control {
  height: 46px;
  border-color: var(--yp-line);
  border-radius: 0 9px 9px 0;
  background: #fff;
  color: var(--yp-text);
  box-shadow: none;
}

body.yp-test-page .form-control:focus {
  border-color: rgba(35, 103, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(35, 103, 255, 0.12);
}

body.yp-test-page #captcha {
  width: 100%;
  margin: 4px 0 16px !important;
  padding: 14px;
  border: 1px solid var(--yp-line);
  border-radius: 10px;
  background: #f8fafd;
}

body.yp-test-page .alert {
  margin: 4px 0 0;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.09);
  color: #047857;
  font-weight: 800;
}

body.yp-test-page .btn-group-justified {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

body.yp-test-page .btn-group-justified > .btn-group {
  display: block !important;
  width: auto !important;
}

body.yp-test-page .btn {
  min-height: 46px;
  border-radius: 9px;
  font-weight: 850;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.yp-test-page .btn-default {
  width: 100%;
  border: 1px solid rgba(35, 103, 255, 0.24);
  background: #fff;
  color: #334155;
}

body.yp-test-page .btn-default:hover,
body.yp-test-page .btn-default:focus {
  border-color: rgba(35, 103, 255, 0.42);
  background: #f3f7ff;
  color: var(--yp-primary);
  box-shadow: 0 10px 22px rgba(35, 103, 255, 0.12);
  transform: translateY(-1px);
}

body.yp-test-page .btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: -5px;
}

@media (max-width: 640px) {
  body.yp-test-page .yp-test-shell {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  body.yp-test-page .page-header h4 {
    align-items: flex-start;
    flex-direction: column;
    font-size: 20px;
  }

  body.yp-test-page .page-header h4 > a {
    width: 100%;
    text-align: center;
  }

  body.yp-test-page .panel-body {
    padding: 18px;
  }

  body.yp-test-page .btn-group-justified {
    grid-template-columns: 1fr;
  }
}
