:root {
  --cp-blue: #1a4f9c;
  --cp-blue-deep: #0d3a7a;
  --cp-blue-light: #2b6cb8;
  --cp-teal: #1aa39a;
  --cp-red: #c0392b;
  --cp-price: #b33a3a;
  --cp-green: #2e9b4f;
  --cp-gray: #888;
  --cp-text: #222;
  --cp-bg: #f2f3f5;
  --cp-card: #fff;
  --cp-radius: 10px;
  --cp-phone-w: 390px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--cp-text);
  background: #dfe3ea;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.cp-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #dfe3ea;
}

.cp-phone {
  width: 100%;
  max-width: var(--cp-phone-w);
  min-height: 100vh;
  background: var(--cp-bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
}

.cp-nav {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 20;
}

.cp-nav .back,
.cp-nav .home {
  min-width: 64px;
  color: #333;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
}

.cp-nav .back {
  color: #c9a227;
}

.cp-nav .title {
  font-size: 17px;
  font-weight: 600;
}

.cp-nav .home {
  justify-content: flex-end;
  color: #333;
}

.cp-hero {
  position: relative;
  color: #fff;
  padding: 18px 18px 48px;
  background-color: #14539a;
  background-image: linear-gradient(160deg, #0f4a96 0%, #1a63b8 45%, #2470c5 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 40, 90, 0.15), rgba(8, 40, 90, 0.55));
  pointer-events: none;
}

.cp-hero > * {
  position: relative;
  z-index: 1;
}

.cp-stat-card {
  margin: -36px 14px 14px;
  background: #fff;
  border-radius: var(--cp-radius);
  box-shadow: 0 4px 14px rgba(20, 40, 80, 0.1);
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.cp-stat-card .col {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
}

.cp-stat-card .col + .col {
  border-left: 1px solid #eee;
}

.cp-stat-card .num {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.cp-stat-card .label {
  margin-top: 6px;
  font-size: 13px;
  color: #999;
}

.cp-toast {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 99;
  max-width: 80%;
  text-align: center;
}

.cp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cp-icon-menu {
  width: 22px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.cp-icon-menu span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.cp-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #2f6fbf;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  cursor: pointer;
}

.cp-checkbox.on {
  background: #2f6fbf;
}

.cp-checkbox.on::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.cp-source-tag {
  position: fixed;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  color: #999;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 50;
}
