:root {
  --page: #f4f9f8;
  --paper: #ffffff;
  --surface-soft: #eef8f6;
  --surface-mint: #e7f6f3;
  --ink: #0b0f14;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-2: #9aa3ad;
  --line: #dbe8e6;
  --line-strong: #c9dcda;
  --teal: #008c89;
  --teal-dark: #007b77;
  --teal-soft: #dff4f1;
  --green: #35a86b;
  --green-soft: #e7f6ee;
  --amber: #f2a51a;
  --amber-soft: #fff0d8;
  --red: #ef5b45;
  --red-soft: #ffe4df;
  --shadow-card: 0 10px 30px rgba(23, 63, 61, 0.06);
  --shadow-button: 0 10px 22px rgba(0, 140, 137, 0.22);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  color-scheme: light;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 24px 42px;
  background: linear-gradient(180deg, #feffff 0%, #fbfdfc 60%, #f7fbfa 100%);
  overflow-x: hidden;
}

body[data-current-view="result"] .app-shell {
  background: #eef5f4;
  padding: 12px 10px 24px;
}

body[data-current-view="success"] .app-shell {
  padding: 10px 8px;
}

body[data-current-view="records"] .app-shell {
  background: #eef5f4;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-size: 18px;
  line-height: 1.2;
}

.home-records-btn {
  margin-left: auto;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.target-mark {
  position: relative;
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.target-mark::before,
.target-mark::after {
  position: absolute;
  content: "";
}

.target-mark::before {
  inset: 7px;
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.target-mark::after {
  left: 17px;
  top: 17px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  transform: rotate(-38deg);
  transform-origin: left center;
  box-shadow: 10px -7px 0 -1px var(--teal);
}

.home-hero {
  padding: 66px 8px 38px;
}

.home-hero h1 {
  max-width: 420px;
  font-size: clamp(34px, 7.6vw, 38px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.mobile-title {
  display: none;
}

.home-hero p {
  margin-top: 28px;
  color: #3f4651;
  font-size: 17px;
  line-height: 1.7;
}

.home-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  margin: 0 0 40px;
}

.home-benefits div {
  min-width: 0;
  padding: 0 12px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.home-benefits div:first-child {
  padding-left: 0;
}

.home-benefits div:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-benefits strong {
  display: block;
  margin-top: 14px;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.benefit-icon,
.mini-icon,
.round-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--teal);
}

.benefit-icon {
  width: 58px;
  height: 58px;
}

.icon-svg {
  display: block;
  width: 62%;
  height: 62%;
  overflow: visible;
}

.mini-icon .icon-svg {
  width: 72%;
  height: 72%;
}

.icon-svg path,
.icon-svg circle,
.icon-svg rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.shield-icon::before,
.shield-icon::after,
.bar-icon::before,
.compass-icon::before,
.compass-icon::after,
.list-icon::before,
.list-icon::after,
.pie-icon::before,
.pie-icon::after,
.trend-icon::before,
.trend-icon::after,
.target-small-icon::before,
.target-small-icon::after {
  content: none;
}

.shield-icon,
.bar-icon,
.compass-icon,
.list-icon,
.pie-icon,
.trend-icon,
.alert-icon,
.target-small-icon,
.clipboard-icon,
.document-icon,
.warning-icon {
  position: relative;
}

.shield-icon::before {
  width: 26px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 8px 8px 12px 12px;
  content: "";
  clip-path: polygon(50% 0, 100% 16%, 88% 78%, 50% 100%, 12% 78%, 0 16%);
}

.shield-icon::after {
  position: absolute;
  width: 15px;
  height: 8px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.bar-icon::before {
  width: 6px;
  height: 27px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  box-shadow: -14px 8px 0 currentColor, 14px -6px 0 currentColor;
}

.compass-icon::before {
  width: 30px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
}

.compass-icon::after {
  position: absolute;
  width: 12px;
  height: 12px;
  background: currentColor;
  content: "";
  clip-path: polygon(100% 0, 62% 100%, 0 38%);
  transform: rotate(40deg);
}

.sample-card,
.result-card,
.lead-summary-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.sample-card {
  padding: 22px 18px 24px;
}

.card-title-row,
.report-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row > *,
.report-brand > * {
  min-width: 0;
}

.card-title-row h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.sample-title-main {
  flex: 0 0 auto;
}

.card-title-row h2 .sample-title-example {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.card-title-row i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #9aa3ad;
  border-radius: 50%;
  color: #8b96a1;
  font-size: 12px;
  font-style: normal;
}

.soft-pill,
.outline-pill {
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.soft-pill {
  padding: 9px 12px;
  background: #f2f6f5;
}

.outline-pill {
  padding: 10px 14px;
  border: 1px solid #8bcac8;
  background: #ffffff;
  color: var(--teal);
  font-weight: 700;
}

.gauge {
  position: relative;
  margin: 16px auto 0;
  overflow: visible;
}

.gauge-large {
  width: min(100%, 320px);
  height: 162px;
}

.gauge-result {
  width: min(100%, 238px);
  height: 138px;
}

.gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge-tickmarks,
.gauge-baseline,
.gauge-segment {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.gauge-tickmarks {
  stroke: #c7d6da;
  stroke-width: 7;
  stroke-dasharray: 1 8;
  stroke-linecap: butt;
}

.gauge-baseline {
  stroke: #dbe8e9;
  stroke-width: 2;
  stroke-linecap: round;
}

.gauge-segment {
  stroke-width: 6;
  stroke-linecap: round;
}

.gauge-low {
  stroke: var(--green);
}

.gauge-mid {
  stroke: var(--amber);
}

.gauge-high {
  stroke: var(--red);
}

.gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 12px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9d2d5, #eef3f2);
  transform: translateX(-50%) rotate(-2deg);
  transform-origin: 50% 100%;
}

.result-view[data-risk-level="低风险"] .gauge-result .gauge-needle {
  transform: translateX(-50%) rotate(-42deg);
}

.result-view[data-risk-level="中风险"] .gauge-result .gauge-needle {
  transform: translateX(-50%) rotate(-2deg);
}

.result-view[data-risk-level="高风险"] .gauge-result .gauge-needle {
  transform: translateX(-50%) rotate(42deg);
}

.gauge-result .gauge-needle {
  bottom: 18px;
  height: 74px;
}

.gauge-needle::after {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e6eceb;
  content: "";
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 8px #f8fbfa;
}

.gauge-labels,
.result-gauge-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.gauge-labels {
  margin-top: 4px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.result-gauge-labels {
  width: min(100%, 280px);
  margin: 6px 0 0 auto;
  font-weight: 800;
}

.gauge-labels span,
.result-gauge-labels span {
  display: grid;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
}

.gauge-labels small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.risk-low {
  color: var(--green);
}

.risk-medium {
  color: var(--amber);
}

.risk-high {
  color: var(--red);
}

.showcase {
  padding-top: 22px;
}

.showcase h3 {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 900;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.showcase-grid div {
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.showcase-grid div:last-child {
  border-right: 0;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  background: transparent;
}

.list-icon::before {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
}

.list-icon::after {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
}

.pie-icon::before {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 30px;
  height: 30px;
  border: 4px solid currentColor;
  border-radius: 50%;
  content: "";
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.pie-icon::after {
  position: absolute;
  left: 20px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  content: "";
}

.trend-icon::before {
  position: absolute;
  left: 5px;
  top: 24px;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(-34deg);
  transform-origin: left center;
}

.trend-icon::after {
  position: absolute;
  left: 26px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  content: "";
  transform: rotate(18deg);
}

.showcase-grid strong,
.showcase-grid small {
  display: block;
}

.copy-line {
  display: block;
}

.showcase-grid strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
}

.showcase-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin-top: 34px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--teal) 0%, #0a9b96 100%);
  box-shadow: var(--shadow-button);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.primary-btn span {
  font-size: 36px;
  line-height: 0;
}

.primary-btn:focus-visible,
.back-btn:focus-visible,
.quick-grid button:focus-visible,
.chip-grid label:focus-within,
.custom-industry-field input:focus-visible {
  outline: 3px solid rgba(0, 140, 137, 0.2);
  outline-offset: 3px;
}

.micro-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.4;
}

.clock-icon,
.info-icon,
.lock-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.clock-icon {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.clock-icon::before {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.clock-icon::after {
  position: absolute;
  left: 8px;
  top: 9px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.back-btn {
  width: 42px;
  height: 42px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.back-btn::before {
  display: block;
  width: 24px;
  height: 24px;
  border-left: 4px solid #111827;
  border-bottom: 4px solid #111827;
  content: "";
  transform: translate(10px, 7px) rotate(45deg);
}

.form-head,
.lead-head {
  padding: 0 0 34px 46px;
}

.form-head h1,
.lead-head h1 {
  color: #111827;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 900;
}

.form-head p,
.lead-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.form-head strong {
  color: var(--teal);
  font-size: 22px;
}

.risk-form {
  display: grid;
}

.form-section {
  margin: 0;
  padding: 24px 0 26px;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-section:first-child {
  border-top: 0;
  padding-top: 4px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.section-heading h2,
.section-heading span:not(.field-index) {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.section-heading h2 span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.field-index {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--surface-mint);
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #ffffff;
  color: #111827;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

input[type="text"],
input[type="email"] {
  min-height: 58px;
  padding: 0 16px;
  font-size: 17px;
}

textarea {
  min-height: 118px;
  padding: 16px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.65;
}

input::placeholder,
textarea::placeholder {
  color: #8b96a1;
}

input:focus,
textarea:focus {
  border-color: rgba(0, 140, 137, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 140, 137, 0.1);
}

small[data-error-for] {
  min-height: 18px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.4;
}

.quick-grid,
.chip-grid {
  display: grid;
  gap: 14px;
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.quick-grid button,
.chip-grid label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfa;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

.quick-grid button {
  padding: 0 8px;
  font-size: 15px;
  white-space: nowrap;
}

.quick-grid button.is-selected,
.chip-grid label:has(input:checked) {
  border-color: rgba(0, 140, 137, 0.45);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
}

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

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

.chip-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-industry-field {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.custom-industry-field[hidden] {
  display: none;
}

.custom-industry-field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.textarea-wrap {
  position: relative;
  display: block;
}

.textarea-wrap em {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.hint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.info-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
}

.info-icon::before {
  content: "i";
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.loading-view {
  min-height: calc(100vh - 76px);
}

.scan-hero {
  padding-top: 118px;
  text-align: center;
}

.scan-hero h1 {
  color: #050709;
  font-size: 34px;
  line-height: 1.22;
  font-weight: 900;
}

.scan-hero p {
  margin-top: 18px;
  color: #3f4651;
  font-size: 17px;
  line-height: 1.6;
}

.scan-radar {
  position: relative;
  width: min(76vw, 290px);
  height: min(76vw, 290px);
  margin: 34px auto 34px;
  border: 1px solid #cfe1df;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), #dce9e7 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), #dce9e7 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-radial-gradient(circle, transparent 0 54px, #dce9e7 55px 56px, transparent 57px 100px);
  overflow: hidden;
}

.scan-radar::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    rgba(0, 140, 137, 0.5) 0deg,
    rgba(0, 140, 137, 0.24) 26deg,
    rgba(0, 140, 137, 0) 58deg,
    rgba(0, 140, 137, 0) 360deg
  );
  content: "";
  transform-origin: 50% 50%;
  animation: radar-sweep 2.4s linear infinite;
}

.scan-radar::after {
  position: absolute;
  left: 22%;
  top: 26%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 140, 137, 0.35);
  content: "";
  box-shadow: 162px 108px 0 rgba(0, 140, 137, 0.35), 12px 144px 0 rgba(0, 140, 137, 0.35);
}

@keyframes radar-sweep {
  to {
    transform: rotate(360deg);
  }
}

.scan-center {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal);
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
}

.scan-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.scan-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #111827;
}

.scan-row.is-current {
  border-color: transparent;
  background: var(--surface-soft);
}

.scan-row.is-done {
  color: #1f2937;
}

.scan-row.is-error {
  color: var(--muted);
}

.scan-row > span {
  position: relative;
  width: 26px;
  height: 26px;
  border: 3px solid #a8b2bd;
  border-radius: 50%;
}

.scan-row.is-done > span {
  border-color: var(--teal);
  background: var(--teal);
}

.scan-row.is-done > span::before {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 9px;
  height: 5px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  content: "";
  transform: rotate(-45deg);
}

.scan-row strong {
  font-size: 16px;
  line-height: 1.4;
}

.scan-row em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.scan-row.is-current em {
  padding: 7px 10px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--teal);
  font-weight: 800;
}

.scan-row.is-done em {
  color: var(--teal);
  font-weight: 800;
}

.generation-error {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
}

.generation-error[hidden] {
  display: none;
}

.generation-error strong {
  font-size: 15px;
  line-height: 1.5;
}

.secondary-btn {
  min-height: 44px;
  border: 1px solid rgba(244, 83, 68, 0.35);
  border-radius: 12px;
  background: #ffffff;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
}

.scan-spinner {
  border-color: rgba(0, 140, 137, 0.22) !important;
  border-top-color: var(--teal) !important;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-card {
  margin-bottom: 10px;
  padding: 24px 18px;
}

.level-card {
  padding-top: 18px;
}

.report-brand {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.report-brand .brand-row {
  font-size: 15px;
}

.report-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-width: 2px;
}

.report-brand .target-mark::before {
  inset: 6px;
  border-width: 2px;
}

.report-brand .target-mark::after {
  left: 14px;
  top: 14px;
  width: 18px;
  height: 2px;
}

.level-layout {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 48%);
  gap: 12px;
  align-items: end;
  padding-top: 22px;
}

.level-card h1,
.result-card h2 {
  color: #050709;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.level-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 18px;
}

.level-callout strong {
  color: var(--amber);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.result-view[data-risk-level="低风险"] .level-callout strong {
  color: var(--green);
}

.result-view[data-risk-level="高风险"] .level-callout strong {
  color: var(--red);
}

.hex-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  background: var(--amber-soft);
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  color: var(--amber);
}

.warning-icon::before {
  width: 30px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 8px 8px 12px 12px;
  content: "";
  clip-path: polygon(50% 0, 100% 16%, 88% 78%, 50% 100%, 12% 78%, 0 16%);
}

.warning-icon::after {
  position: absolute;
  color: currentColor;
  content: "!";
  font-size: 27px;
  font-weight: 900;
}

.level-card p {
  color: #374151;
  font-size: 17px;
  line-height: 1.65;
}

.level-card .risk-level-summary {
  margin-bottom: 6px;
  color: #111827;
  font-weight: 800;
}

.risk-list {
  display: grid;
  margin-top: 18px;
}

.risk-row {
  display: grid;
  grid-template-columns: 62px 132px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.risk-row:first-child {
  border-top: 0;
}

.risk-row-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--teal);
}

.risk-row-icon::before {
  position: absolute;
  left: 17px;
  top: 12px;
  width: 21px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 3px;
  content: "";
}

.risk-row-icon::after {
  position: absolute;
  left: 23px;
  top: 21px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  box-shadow: 0 8px 0 currentColor;
}

.risk-row strong {
  display: block;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
}

.risk-row-title {
  min-width: 0;
  padding-top: 4px;
}

.risk-row-copy {
  min-width: 0;
}

.risk-tag {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.risk-row.risk-high .risk-tag {
  background: var(--red-soft);
  color: var(--red);
}

.risk-row.risk-medium .risk-tag {
  background: var(--amber-soft);
  color: #d27b00;
}

.risk-row.risk-low .risk-tag {
  background: var(--green-soft);
  color: var(--green);
}

.risk-row p {
  margin-top: 10px;
  color: #374151;
  font-size: 15px;
  line-height: 1.65;
}

.insight-card {
  display: grid;
  gap: 22px;
}

.insight-block {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.insight-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.round-icon {
  width: 54px;
  height: 54px;
}

.alert-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.level-warning-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.level-warning-icon .icon-svg {
  width: 58%;
  height: 58%;
}

.alert-icon svg {
  width: 34px;
  height: 34px;
}

.alert-icon path,
.alert-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.alert-icon circle {
  fill: currentColor;
  stroke: none;
}

.target-small-icon {
  background: var(--surface-soft);
  color: var(--teal);
}

.target-small-icon .icon-svg {
  width: 58%;
  height: 58%;
}

.target-small-icon::before {
  position: absolute;
  left: 12px;
  top: 31px;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(-34deg);
  transform-origin: left center;
}

.target-small-icon::after {
  position: absolute;
  left: 33px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  content: "";
  transform: rotate(18deg);
}

.shield-icon::before,
.shield-icon::after,
.bar-icon::before,
.compass-icon::before,
.compass-icon::after,
.list-icon::before,
.list-icon::after,
.pie-icon::before,
.pie-icon::after,
.trend-icon::before,
.trend-icon::after,
.target-small-icon::before,
.target-small-icon::after {
  content: none;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
}

.plain-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
}

.amber-list li::before {
  background: var(--amber);
}

.teal-list li::before {
  background: var(--teal);
}

.unlock-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
}

.unlock-card p {
  margin-top: 10px;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
}

.unlock-card .primary-btn {
  min-height: 54px;
  margin-top: 16px;
  font-size: 18px;
}

.lock-illustration {
  width: 82px;
  height: 82px;
  color: var(--teal);
}

.lock-illustration svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.shield-shape {
  fill: #e7f6f3;
  stroke: #cbece7;
  stroke-width: 2;
}

.lock-shackle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 7;
}

.lock-body {
  fill: currentColor;
}

.lock-icon {
  width: 15px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.lock-icon::before {
  position: absolute;
  left: 2px;
  top: -9px;
  width: 7px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.records-view,
.lead-view {
  min-height: calc(100vh - 76px);
}

.records-head,
.lead-head {
  padding-bottom: 40px;
}

.records-head {
  padding-left: 46px;
}

.records-head h1 {
  color: #111827;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 900;
}

.records-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.records-card {
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.records-list {
  display: grid;
  gap: 10px;
}

.record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  width: 100%;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
}

.record-item span,
.record-item strong,
.record-item small {
  min-width: 0;
}

.record-item strong,
.record-item small {
  display: block;
}

.record-item strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 900;
}

.record-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.record-item em {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.record-item em.risk-high {
  background: var(--red-soft);
}

.record-item em.risk-medium {
  background: var(--amber-soft);
}

.record-item em.risk-low {
  background: var(--green-soft);
}

.record-item time {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 13px;
}

.records-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 46px 20px;
  color: var(--muted);
  text-align: center;
}

.records-empty[hidden] {
  display: none;
}

.records-empty strong {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.records-empty p {
  font-size: 15px;
  line-height: 1.6;
}

.lead-summary-card {
  padding: 28px 18px 20px;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.summary-title h2 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.clipboard-icon,
.document-icon {
  background: var(--surface-soft);
  color: var(--teal);
}

.clipboard-icon::before,
.document-icon::before {
  width: 25px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 4px;
  content: "";
}

.clipboard-icon::after,
.document-icon::after {
  position: absolute;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor;
}

.summary-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.summary-table div {
  display: grid;
  grid-template-columns: minmax(92px, 0.62fr) 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.summary-table div:first-child {
  border-top: 0;
}

.summary-table span {
  color: #4b5563;
  font-size: 17px;
}

.summary-table strong {
  justify-self: end;
  color: #374151;
  font-size: 17px;
  line-height: 1.45;
  text-align: right;
}

.summary-table strong.risk-high,
.summary-table strong.risk-medium,
.summary-table strong.risk-low {
  padding: 7px 14px;
  border-radius: 999px;
}

.summary-table strong.risk-high {
  background: var(--red-soft);
  color: var(--red);
}

.summary-table strong.risk-medium {
  background: var(--amber-soft);
  color: #d27b00;
}

.summary-table strong.risk-low {
  background: var(--green-soft);
  color: var(--green);
}

.lead-form {
  display: grid;
  gap: 22px;
  padding-top: 46px;
}

.lead-form label {
  display: grid;
  gap: 12px;
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.lead-form .primary-btn {
  margin-top: 4px;
}

.privacy-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.privacy-lock-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  transform: translateY(-1px);
}

.privacy-lock-icon path,
.privacy-lock-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.success-view {
  min-height: calc(100vh - 20px);
}

.success-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100vh - 20px);
  padding: 70px 32px 44px;
  border-radius: 28px;
  background: #ffffff;
  text-align: center;
}

.success-mark {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 46px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.success-mark::before {
  position: absolute;
  left: 37px;
  top: 43px;
  width: 58px;
  height: 28px;
  border-left: 12px solid currentColor;
  border-bottom: 12px solid currentColor;
  border-radius: 4px;
  content: "";
  transform: rotate(-45deg);
}

.success-mark::after {
  position: absolute;
  left: 10px;
  bottom: -18px;
  width: 108px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 140, 137, 0.1);
  content: "";
}

.success-panel h1 {
  color: #050709;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
}

.success-panel p {
  margin-top: 24px;
  color: #1f2937;
  font-size: 19px;
  line-height: 1.65;
}

.save-note {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  margin-top: 50px;
  padding: 24px 20px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: #1f2937;
  text-align: left;
}

.save-note strong {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

.success-panel .primary-btn {
  align-self: end;
  margin-top: 180px;
}

@media (max-width: 430px) {
  .app-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-current-view="result"] .app-shell {
    padding-right: 8px;
    padding-left: 8px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .home-benefits strong {
    font-size: 14px;
  }

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

  .year-grid label:last-child {
    grid-column: span 2;
  }

  .level-layout {
    grid-template-columns: 1fr;
  }

  .result-gauge-labels {
    margin-right: auto;
  }

  .risk-row {
    grid-template-columns: 54px 1fr;
  }

  .risk-row-copy {
    grid-column: 2;
  }

  .unlock-card {
    grid-template-columns: 70px 1fr;
    gap: 14px;
  }

  .lock-illustration {
    width: 66px;
    height: 66px;
  }
}

@media (min-width: 720px) {
  body {
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .app-shell {
    min-height: min(920px, calc(100vh - 48px));
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 24px 80px rgba(23, 63, 61, 0.12);
    overflow: hidden;
  }
}
