:root {
  color-scheme: light;
  --ink: #302746;
  --muted: #706a81;
  --paper: #ffffff;
  --canvas: #f5f1fc;
  --line: #e7e0f2;
  --teal: #7251c7;
  --teal-dark: #6040ae;
  --mint: #eee8fc;
  --sun: #e6ad5a;
  --coral: #e37c68;
  --shadow: 0 18px 45px rgba(79, 54, 125, 0.12);
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 0%, rgba(196, 177, 244, 0.48), transparent 25rem),
    radial-gradient(circle at 100% 10%, rgba(255, 213, 217, 0.36), transparent 22rem),
    var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(114, 81, 199, 0.36); outline-offset: 3px; }

.shell { width: min(100%, 720px); min-height: calc(100vh - 50px); margin: 0 auto; padding: 20px 20px 32px; }

.brand-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 24px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, #7650db, #ac8bf0);
  box-shadow: 0 8px 20px rgba(114, 81, 199, 0.24);
}

.history-button { margin-left: auto; }
.text-button, .back-button { border: 0; color: var(--teal-dark); background: transparent; font-weight: 700; }
.text-button { padding: 7px 4px; }

.hero, .assessment, .report { animation: rise 380ms ease-out both; }

.hero {
  overflow: hidden;
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.eyebrow, .section-kicker, .question-dimension {
  margin: 0;
  color: var(--teal);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.eyebrow span { margin-right: 4px; color: var(--sun); }

h1, h2, p { margin-top: 0; }
.hero h1 { margin: 14px 0 14px; font-size: clamp(2rem, 8vw, 3.8rem); line-height: 1.15; letter-spacing: -.045em; }
.hero-copy { max-width: 42rem; margin-bottom: 28px; color: var(--muted); font-size: 1rem; }

.dimension-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 30px; }
.dimension-card { min-height: 136px; padding: 17px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fcfaff; }
.dimension-icon { display: block; margin-bottom: 8px; color: var(--teal); font-size: 1.45rem; line-height: 1; }
.dimension-card b, .dimension-card small { display: block; }
.dimension-card b { font-size: 1rem; }
.dimension-card small { margin-top: 5px; color: var(--muted); font-size: .82rem; }

.unlock-card { padding: 20px; border-radius: 20px; background: linear-gradient(135deg, #eee7fc, #faf7ff); }
.unlock-card label { display: block; margin-bottom: 10px; font-weight: 800; }
.code-row { display: flex; gap: 10px; }
input {
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #d8cde9;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  letter-spacing: .02em;
}
input::placeholder { color: #a49bad; }

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.primary-button { border: 1px solid var(--teal-dark); color: white; background: var(--teal-dark); box-shadow: 0 10px 18px rgba(96,64,174,.20); white-space: nowrap; }
.primary-button:hover { transform: translateY(-1px); background: #4e338f; box-shadow: 0 14px 22px rgba(96,64,174,.26); }
.secondary-button { border: 1px solid #d8cde9; color: var(--teal-dark); background: white; }
.secondary-button:hover { background: #f8f5fd; }
.field-tip, .field-error, .disclaimer { margin: 10px 0 0; font-size: .8rem; }
.field-tip, .disclaimer { color: var(--muted); }
.field-error { color: #b63b33; font-weight: 700; }
.disclaimer { max-width: 37rem; margin-top: 22px; }

.project-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #eed3e3;
  border-radius: 19px;
  background: linear-gradient(135deg, #fff3f7, #fffaf8);
}
.project-title { margin-bottom: 7px; color: #5a3856; font-size: 1.08rem; font-weight: 900; }
.project-copy { margin-bottom: 14px; color: #765f72; font-size: .92rem; }
.wechat-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
  align-items: baseline;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ecd0de;
  border-radius: 13px;
  color: #7d3027;
  text-align: left;
  background: rgba(255,255,255,.68);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.wechat-copy:hover { transform: translateY(-1px); border-color: #d5aac3; background: #fff; }
.wechat-copy > span { color: #775c70; font-size: .82rem; font-weight: 700; }
.wechat-copy strong { color: #bf372f; font-size: 1.12rem; letter-spacing: .035em; }
.wechat-copy small { grid-column: 1 / -1; margin-top: 3px; color: #806d7c; font-size: .75rem; }
.copy-status { min-height: 1.25em; margin: 8px 0 0; color: var(--teal); font-size: .8rem; font-weight: 700; }

.assessment, .report {
  padding: clamp(24px, 5vw, 46px);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.assessment-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--muted); font-size: .92rem; font-weight: 700; }
.back-button { padding: 4px 0; }
.progress-track { height: 8px; overflow: hidden; border-radius: 10px; background: #eee8f5; }
.progress-fill { width: 5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #ad8cf0); transition: width 240ms ease; }
.question-dimension { margin-top: 38px; }
.assessment h2 { margin: 9px 0 26px; font-size: clamp(1.45rem, 5vw, 2.15rem); line-height: 1.34; letter-spacing: -.025em; }
.options { display: grid; gap: 12px; }
.option {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.option:hover { transform: translateY(-1px); border-color: #baa6e5; background: #fcfaff; }
.option.selected { border-color: var(--teal); background: #f0eafd; box-shadow: 0 0 0 2px rgba(114,81,199,.1); }
.option-key { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: var(--teal-dark); background: #eee8f8; font-size: .79rem; font-weight: 900; }
.option.selected .option-key { color: white; background: var(--teal); }
.option-copy { flex: 1; padding-top: 1px; }
.question-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.question-footer .secondary-button { visibility: hidden; }
.question-footer .secondary-button.available { visibility: visible; }

.report h1 { margin: 8px 0 2px; font-size: clamp(2rem, 7vw, 3.15rem); letter-spacing: -.04em; }
.report-date { color: var(--muted); font-size: .86rem; }
.overall-card { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 24px; align-items: center; margin: 28px 0 38px; padding: 26px; border-radius: 22px; color: white; background: linear-gradient(135deg, #583995, #926dd3); }
.score-ring { display: grid; width: 120px; height: 120px; align-content: center; justify-content: center; border: 6px solid rgba(255,255,255,.32); border-radius: 50%; text-align: center; }
.score-ring strong { font-size: 2.1rem; line-height: 1; }
.score-ring span { margin-top: 5px; color: rgba(255,255,255,.75); font-size: .74rem; }
.score-caption { margin-bottom: 5px; color: #e2d4ff; font-size: .8rem; font-weight: 800; letter-spacing: .07em; }
.overall-card h2 { margin: 0 0 7px; font-size: 1.5rem; }
.overall-card p:last-child { margin-bottom: 0; color: rgba(255,255,255,.88); font-size: .92rem; }
.section-heading { margin-bottom: 16px; }
.section-heading h2, .insight-card h2 { margin: 4px 0 0; font-size: 1.35rem; }
.dimension-results { display: grid; gap: 13px; }
.result-row { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fcfaff; }
.result-row-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.result-row h3 { margin: 0; font-size: 1rem; }
.result-row strong { color: var(--teal-dark); font-size: .9rem; }
.result-row p { margin: 7px 0 0; color: var(--muted); font-size: .86rem; }
.mini-track { height: 7px; overflow: hidden; margin-top: 12px; border-radius: 8px; background: #eee8f5; }
.mini-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #b39af0); }
.insight-card { margin-top: 28px; padding: 22px; border-radius: 19px; background: #fff6df; }
.insight-card p:last-child { margin: 9px 0 0; color: #5d5140; }
.report-actions { display: flex; gap: 12px; margin-top: 28px; }
.report-actions > * { flex: 1; }
.report-disclaimer { margin: 18px auto 0; text-align: center; }
.site-footer { padding: 0 20px 24px; color: #91879e; text-align: center; font-size: .78rem; }

[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 550px) {
  .shell { padding: 14px 14px 25px; }
  .brand-bar { padding-bottom: 16px; font-size: .94rem; }
  .hero, .assessment, .report { border-radius: 23px; }
  .hero { padding: 29px 22px; }
  .dimension-card { min-height: 122px; padding: 14px 12px; }
  .code-row { display: grid; }
  .code-row .primary-button { width: 100%; }
  .overall-card { grid-template-columns: 1fr; justify-items: center; gap: 17px; padding: 23px; text-align: center; }
  .score-ring { width: 108px; height: 108px; }
  .report-actions { display: grid; }
}

@media (max-width: 370px) {
  .dimension-grid { grid-template-columns: 1fr; }
  .question-footer { display: grid; }
  .question-footer > * { width: 100%; }
}
