:root {
  --bg: #f6faf6;
  --panel: #fff;
  --text: #1e2a22;
  --muted: #6a786f;
  --line: #dbe8dd;
  --soft: #edf6ef;
  --accent: #6c8d71;
  --accent-strong: #4d6a53;
  --shadow: 0 16px 40px rgba(47,73,55,.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg,#f8fff8,#f6faf6 40%,#f2f7f3);
  color: var(--text);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

.shell {
  margin: 0 auto;
  max-width: 980px;
  padding: 24px 16px 56px;
}

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

.btn-primary {
  background: var(--accent-strong);
  box-shadow: 0 24rpx 60rpx rgba(77,106,83,.18);
  color: #fff;
  border: none;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  font-weight: 700;
  padding: 28px 40px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 8rpx 16rpx rgba(77,106,83,.15);
  transform: scale(0.96);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  font-weight: 700;
  padding: 28px 40px;
  cursor: pointer;
  color: var(--accent-strong);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--soft);
}

.btn-primary.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.index-shell {
  align-items: center;
  background: var(--background);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 40px;
  position: relative;
}

.blob {
  animation: float 10s ease-in-out infinite;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .7;
  position: absolute;
  z-index: 0;
}

.blob-1 {
  animation-delay: 0s;
  background: rgba(151,181,156,.4);
  height: 500px;
  left: -80px;
  top: -100px;
  width: 500px;
}

.blob-2 {
  animation-delay: -5s;
  background: rgba(220,230,222,.8);
  bottom: -150px;
  height: 600px;
  right: -100px;
  width: 600px;
}

@keyframes float {
  0%,100% {
    transform: translate(0,0) scale(1);
  }
  33% {
    transform: translate(30px,-40px) scale(1.05);
  }
  66% {
    transform: translate(-20px,30px) scale(.95);
  }
}

.hero-elegant {
  align-items: center;
  backdrop-filter: blur(24px);
  background: hsla(0,0%,100%,.75);
  border: 1px solid hsla(0,0%,100%,.8);
  border-radius: 48px;
  box-shadow: 0 40px 80px rgba(91,122,98,.08),inset 0 2px 0 #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding: 80px 40px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 10;
}

.badge-up {
  background: rgba(151,181,156,.15);
  border: 1px solid rgba(151,181,156,.2);
  border-radius: 999px;
  color: var(--accent);
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 40px;
  padding: 12px 28px;
}

.h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 36px;
}

.gradient-text {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg,#1b261d,#5b7a62);
  -webkit-background-clip: text;
  background-clip: text;
  color: #304034;
}

.hero-desc {
  color: var(--muted);
  font-size: 30px;
  line-height: 1.8;
  margin-bottom: 72px;
  padding: 0 10px;
}

.hero-actions-single {
  display: flex;
  justify-content: center;
  width: 100%;
}

.animate-pulse {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91,122,98,.4);
  }
  70% {
    box-shadow: 0 0 0 28px rgba(91,122,98,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91,122,98,0);
  }
}

.credits {
  color: hsla(136,9%,55%,.65);
  display: flex;
  flex-direction: column;
  font-size: 24px;
  gap: 12px;
  line-height: 1.6;
  margin-top: 60px;
}

.test-wrap {
  margin-top: 22px;
  padding: 22px;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: hsla(0,0%,100%,.85);
  border-bottom: 1px solid var(--line);
  border-radius: 36px 36px 0 0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: -22px -22px 36px;
  padding: 26px 22px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.progress {
  background: #edf3ee;
  border-radius: 999px;
  flex: 1;
  height: 20px;
  min-width: 240px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  background: linear-gradient(90deg,#97b59c,#5b7a62);
  border-radius: inherit;
  height: 100%;
  transition: width .22s ease;
  width: 0;
}

.progress-text {
  color: var(--muted);
  font-size: 26px;
  white-space: nowrap;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.question {
  background: linear-gradient(180deg,#fff,#fbfdfb);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 36px;
}

.question-meta {
  color: var(--muted);
  display: flex;
  font-size: 24px;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}

.badge {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 12px;
  padding: 12px 20px;
  align-items: center;
  font-size: 24px;
}

.question-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 28px;
  white-space: pre-wrap;
}

.options {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  gap: 24px;
  padding: 28px;
  transition: all .16s ease;
  cursor: pointer;
  display: flex;
}

.option:hover {
  background: #f8fcf9;
  border-color: #bcd0c1;
}

.option.selected {
  background: #f8fcf9;
  border-color: #bcd0c1;
}

.option input[type="radio"] {
  transform: scale(.9);
}

.option-code {
  color: var(--accent-strong);
  font-weight: 800;
  min-width: 44px;
}

.actions-bottom {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
}

.hint {
  color: var(--muted);
  font-size: 26px;
  line-height: 1.7;
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  width: 100%;
}

.result-shell {
  padding-bottom: 80px;
}

.result-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin-top: 24px;
  padding: 22px 22px calc(80px + env(safe-area-inset-bottom));
}

.poster-box {
  background: linear-gradient(135deg,rgba(127,165,134,.1),#fbfdfb,#fff);
  min-height: 560px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 36px;
  margin-bottom: 36px;
  padding: 36px;
}

.poster-image {
  background: hsla(0,0%,100%,.75);
  border-radius: 36px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.poster-caption {
  color: var(--muted);
  font-size: 28px;
  line-height: 1.8;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.type-box {
  background: linear-gradient(180deg,#fff,#fbfdfb);
  border: 1px solid var(--line);
  border-radius: 36px;
  flex-shrink: 0;
  margin-bottom: 36px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.type-kicker {
  color: var(--accent-strong);
  font-size: 24px;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.type-name {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.type-subname {
  color: var(--muted);
  font-size: 28px;
  line-height: 1.8;
  margin-top: 20px;
}

.match {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 28px;
  gap: 16px;
  line-height: 1.4;
  margin-top: 36px;
  padding: 20px 28px;
  font-weight: 700;
}

.analysis-box {
  background: linear-gradient(180deg,#fff,#fbfdfb);
  border: 1px solid var(--line);
  border-radius: 36px;
  flex-shrink: 0;
  margin-bottom: 36px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.p {
  color: #304034;
  font-size: 30px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.dim-box {
  background: linear-gradient(180deg,#fff,#fbfdfb);
  border: 1px solid var(--line);
  border-radius: 36px;
  flex-shrink: 0;
  margin-bottom: 36px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.dim-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dim-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
}

.dim-item-top {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dim-item-name {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
}

.dim-item-score {
  color: var(--accent-strong);
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
}

.note-box {
  background: linear-gradient(180deg,#fff,#fbfdfb);
  border: 1px solid var(--line);
  border-radius: 36px;
  flex-shrink: 0;
  margin-bottom: 36px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.note-box .p {
  color: var(--muted);
  font-size: 26px;
}

.result-actions {
  justify-content: flex-end;
  margin-top: 44px;
  gap: 24px;
  display: flex;
  flex-direction: column;
}

.btn-group-share {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.btn-group-share .btn-primary {
  animation: gentle-pulse 2.5s infinite;
  box-shadow: 0 16px 32px rgba(91,122,98,.25);
  font-weight: 700;
}

@keyframes gentle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91,122,98,.4);
  }
  70% {
    box-shadow: 0 0 0 24px rgba(91,122,98,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91,122,98,0);
  }
}

.snapshot-box {
  display: block;
  width: 100%;
}

@media (max-width: 1200px) {
  .hero-elegant {
    padding: 60px 32px;
  }

  .h1 {
    font-size: 56px;
  }

  .type-name {
    font-size: 52px;
  }

  .poster-box {
    min-height: 480px;
  }
}

@media (max-width: 992px) {
  .shell {
    max-width: 100%;
    padding: 20px 12px 48px;
  }

  .hero-elegant {
    padding: 48px 24px;
    min-height: 55vh;
  }

  .blob-1 {
    height: 400px;
    width: 400px;
  }

  .blob-2 {
    height: 480px;
    width: 480px;
  }

  .h1 {
    font-size: 48px;
  }

  .hero-desc {
    font-size: 28px;
    margin-bottom: 56px;
  }

  .type-name {
    font-size: 44px;
  }

  .question {
    padding: 28px;
    border-radius: 28px;
  }

  .poster-box {
    min-height: 400px;
    padding: 28px;
  }

  .poster-image {
    border-radius: 28px;
  }
}

@media (max-width: 768px) {
  .index-shell {
    padding: 0 24px;
  }

  .hero-elegant {
    padding: 40px 20px;
    min-height: 50vh;
    border-radius: 36px;
  }

  .badge-up {
    font-size: 20px;
    padding: 10px 24px;
    margin-bottom: 32px;
  }

  .h1 {
    font-size: 40px;
    margin-bottom: 28px;
  }

  .hero-desc {
    font-size: 26px;
    line-height: 1.7;
    margin-bottom: 48px;
  }

  .credits {
    font-size: 22px;
    margin-top: 48px;
  }

  .blob {
    filter: blur(60px);
  }

  .blob-1 {
    height: 300px;
    width: 300px;
    left: -60px;
    top: -80px;
  }

  .blob-2 {
    height: 360px;
    width: 360px;
    right: -60px;
    bottom: -100px;
  }

  .test-wrap {
    margin-top: 16px;
    padding: 16px;
  }

  .topbar {
    margin: -16px -16px 28px;
    padding: 20px 16px;
    border-radius: 28px 28px 0 0;
  }

  .progress {
    min-width: 180px;
    height: 16px;
  }

  .progress-text {
    font-size: 22px;
  }

  .question-list {
    gap: 24px;
  }

  .question {
    padding: 24px;
    border-radius: 28px;
  }

  .question-meta {
    font-size: 22px;
    gap: 16px;
    margin-bottom: 16px;
  }

  .badge {
    font-size: 22px;
    padding: 10px 16px;
  }

  .question-title {
    font-size: 28px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .options {
    gap: 16px;
  }

  .option {
    padding: 20px;
    border-radius: 24px;
    gap: 16px;
  }

  .option-code {
    min-width: 36px;
  }

  .actions-bottom {
    margin-top: 28px;
    padding-top: 20px;
  }

  .hint {
    font-size: 24px;
  }

  .btn-group {
    flex-direction: column;
    gap: 16px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 28px;
    padding: 24px 32px;
    border-radius: 24px;
  }

  .type-name {
    font-size: 40px;
  }

  .type-subname {
    font-size: 26px;
  }

  .match {
    font-size: 24px;
    padding: 16px 24px;
    margin-top: 28px;
  }

  .poster-box {
    min-height: 320px;
    padding: 24px;
    border-radius: 28px;
    margin-bottom: 28px;
  }

  .poster-caption {
    font-size: 26px;
  }

  .type-box,
  .analysis-box,
  .dim-box,
  .note-box {
    padding: 28px;
    border-radius: 28px;
    margin-bottom: 28px;
  }

  .h3 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .p {
    font-size: 26px;
    line-height: 1.8;
  }

  .dim-item {
    padding: 22px;
    border-radius: 26px;
  }

  .dim-item-name {
    font-size: 26px;
  }

  .dim-item-score {
    font-size: 24px;
  }

  .note-box .p {
    font-size: 22px;
  }

  .result-actions {
    margin-top: 32px;
  }

  .result-actions .btn-group {
    flex-direction: row;
  }

  .result-actions .btn-primary {
    order: -1;
  }
}

@media (max-width: 480px) {
  .index-shell {
    padding: 0 16px;
  }

  .hero-elegant {
    padding: 32px 16px;
    min-height: 45vh;
    border-radius: 28px;
  }

  .badge-up {
    font-size: 18px;
    padding: 8px 20px;
    margin-bottom: 24px;
  }

  .h1 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .hero-desc {
    font-size: 24px;
    margin-bottom: 40px;
    padding: 0;
  }

  .credits {
    font-size: 20px;
    margin-top: 36px;
  }

  .blob-1 {
    height: 240px;
    width: 240px;
  }

  .blob-2 {
    height: 300px;
    width: 300px;
  }

  .shell {
    padding: 16px 10px 40px;
  }

  .test-wrap {
    margin-top: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .topbar {
    margin: -12px -12px 20px;
    padding: 16px 12px;
  }

  .progress {
    min-width: 120px;
    height: 14px;
  }

  .progress-text {
    font-size: 20px;
  }

  .question-list {
    gap: 18px;
  }

  .question {
    padding: 18px;
    border-radius: 22px;
  }

  .question-meta {
    font-size: 20px;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .badge {
    font-size: 20px;
    padding: 8px 14px;
  }

  .question-title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .options {
    gap: 12px;
  }

  .option {
    padding: 16px;
    border-radius: 20px;
    gap: 12px;
  }

  .option-code {
    min-width: 30px;
    font-size: 14px;
  }

  .option input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  .actions-bottom {
    margin-top: 20px;
    padding-top: 16px;
  }

  .hint {
    font-size: 22px;
    line-height: 1.6;
  }

  .btn-group {
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 26px;
    padding: 20px 24px;
    border-radius: 20px;
  }

  .type-box,
  .analysis-box,
  .dim-box,
  .note-box {
    padding: 22px;
    border-radius: 22px;
    margin-bottom: 22px;
  }

  .type-kicker {
    font-size: 22px;
  }

  .type-name {
    font-size: 32px;
  }

  .type-subname {
    font-size: 24px;
    margin-top: 14px;
  }

  .match {
    font-size: 22px;
    padding: 14px 20px;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .poster-box {
    min-height: 260px;
    padding: 18px;
    border-radius: 22px;
    margin-bottom: 22px;
  }

  .poster-caption {
    font-size: 24px;
    margin-top: 18px;
  }

  .h3 {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .p {
    font-size: 24px;
    line-height: 1.75;
  }

  .dim-list {
    gap: 18px;
  }

  .dim-item {
    padding: 18px;
    border-radius: 22px;
  }

  .dim-item-top {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .dim-item-name {
    font-size: 24px;
  }

  .dim-item-score {
    font-size: 22px;
  }

  .note-box .p {
    font-size: 20px;
  }

  .result-actions {
    margin-top: 24px;
    gap: 16px;
  }

  .result-actions .btn-group {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .h1 {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 22px;
  }

  .question-title {
    font-size: 24px;
  }

  .type-name {
    font-size: 28px;
  }

  .p {
    font-size: 22px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 24px;
    padding: 18px 20px;
  }
}

@media (min-width: 1400px) {
  .shell {
    max-width: 1100px;
  }

  .hero-elegant {
    padding: 100px 60px;
    max-width: 900px;
  }

  .h1 {
    font-size: 72px;
  }

  .hero-desc {
    font-size: 34px;
    max-width: 700px;
  }

  .type-name {
    font-size: 64px;
  }

  .question {
    padding: 44px;
  }

  .question-title {
    font-size: 36px;
  }

  .poster-box {
    min-height: 620px;
  }

  .type-box,
  .analysis-box,
  .dim-box,
  .note-box {
    padding: 44px;
  }

  .h3 {
    font-size: 36px;
  }

  .p {
    font-size: 32px;
  }

  .dim-item {
    padding: 32px;
  }

  .dim-item-name {
    font-size: 30px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1f1a;
    --panel: #2a322a;
    --text: #e8f0e8;
    --muted: #9aa89f;
    --line: #3d4a3d;
    --soft: #3a4a3a;
    --accent: #8ab08a;
    --accent-strong: #a8c8a8;
    --shadow: 0 16px 40px rgba(0,0,0,.3);
  }

  body {
    background: linear-gradient(135deg,#1a201a,#1a1f1a 40%,#1e241e);
  }

  .hero-elegant {
    background: hsla(0,0%,100%,.08);
    border-color: hsla(0,0%,100%,.1);
  }

  .card {
    background: var(--panel);
    border-color: var(--line);
  }

  .question {
    background: linear-gradient(180deg,var(--panel),#252f25);
  }

  .option {
    background: var(--panel);
    border-color: var(--line);
  }

  .option:hover,
  .option.selected {
    background: #2f3a2f;
    border-color: #5a6d5a;
  }

  .poster-box {
    background: linear-gradient(135deg,rgba(138,176,138,.1),#252f25,var(--panel));
  }

  .type-box,
  .analysis-box,
  .dim-box,
  .note-box {
    background: linear-gradient(180deg,var(--panel),#252f25);
  }

  .dim-item {
    background: var(--panel);
  }

  .p {
    color: #c8d8c8;
  }
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}