:root {
  color-scheme: light;
  --ink: #102235;
  --muted: #60717f;
  --line: #d8e5ea;
  --panel: #ffffff;
  --soft: #eff8f7;
  --accent: #0f9b98;
  --accent-dark: #08726f;
  --blue: #256bdc;
  --warm: #ff9a16;
  --warm-soft: #fff4df;
  --shadow: 0 18px 44px rgba(18, 46, 64, 0.13);
  --small-shadow: 0 10px 24px rgba(18, 46, 64, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 155, 152, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(255, 154, 22, 0.13), transparent 22rem),
    linear-gradient(180deg, #f7fbfb 0%, #eaf2f1 46rem, #f8fbfb 100%);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.tool-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 28px 24px;
}

.hero,
.diagnosis-card,
.result-card {
  border: 1px solid rgba(216, 229, 234, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(15, 155, 152, 0.14), transparent 48%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(245, 252, 251, 0.94));
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 180px;
  border-radius: 45%;
  background: rgba(37, 107, 220, 0.1);
  content: "";
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-points span {
  padding: 8px 12px;
  border: 1px solid rgba(15, 155, 152, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: var(--small-shadow);
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
  min-height: 214px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(216, 229, 234, 0.86);
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 154, 22, 0.18), transparent 7rem),
    linear-gradient(135deg, #ffffff, #eef9f7);
  box-shadow: var(--small-shadow);
}

.hero-visual strong {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.mini-card {
  display: grid;
  min-height: 64px;
  border: 1px solid rgba(15, 155, 152, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-dark);
  font-weight: 900;
  place-items: center;
}

.diagnosis-card {
  display: grid;
  gap: 24px;
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
}

.progress-area {
  display: grid;
  gap: 9px;
}

.progress-area span {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeaec;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22c0b0);
  transition: width 180ms ease;
}

.question-stage {
  display: grid;
  gap: 16px;
}

.question-number {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e6f7f5;
  color: var(--accent-dark);
  font-weight: 900;
}

.question-stage h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.choices {
  display: grid;
  gap: 12px;
}

.choice-button {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 92px;
  padding: 17px 54px 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 18px rgba(18, 46, 64, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.choice-button::after {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf5f5;
  color: var(--accent-dark);
  content: ">";
  font-weight: 900;
  place-items: center;
  transform: translateY(-50%);
}

.choice-button:hover {
  border-color: rgba(15, 155, 152, 0.5);
  box-shadow: var(--small-shadow);
  transform: translateY(-2px);
}

.choice-button.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, #edfafa, #ffffff);
  box-shadow: inset 0 0 0 2px rgba(15, 155, 152, 0.12), var(--small-shadow);
}

.choice-button.selected::after {
  background: var(--accent);
  color: #fff;
  content: "✓";
}

.choice-button strong {
  font-size: 1.05rem;
}

.choice-button span {
  color: var(--muted);
  line-height: 1.65;
}

.actions {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.primary-button,
.ghost-button {
  min-height: 52px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: var(--small-shadow);
}

.primary-button:hover {
  filter: brightness(0.97);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #33434c;
}

.ghost-button:hover:not(:disabled) {
  border-color: rgba(15, 155, 152, 0.42);
  color: var(--accent-dark);
}

.result-card {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
}

.hidden {
  display: none !important;
}

.result-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(15, 155, 152, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 154, 22, 0.14), transparent 14rem),
    linear-gradient(135deg, #ecf9f8, #ffffff);
}

.result-copy {
  padding: clamp(20px, 3vw, 28px);
}

.result-heading span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(18, 46, 64, 0.07);
}

.result-heading h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}

.result-heading p,
.next-action p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.result-visual {
  display: grid;
  min-height: 230px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent),
    repeating-linear-gradient(135deg, rgba(15, 155, 152, 0.1) 0 10px, transparent 10px 22px);
  place-items: center;
}

.result-mark {
  display: grid;
  width: min(170px, 100%);
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(8, 114, 111, 0.22);
  place-items: center;
}

.result-card[data-type="earning"] .result-mark {
  background: linear-gradient(135deg, #ffb02e, #ff8500);
  box-shadow: 0 18px 36px rgba(255, 133, 0, 0.22);
}

.result-card[data-type="machine"] .result-mark {
  background: linear-gradient(135deg, #256bdc, #0f4ca8);
  box-shadow: 0 18px 36px rgba(37, 107, 220, 0.22);
}

.result-card[data-type="logistics"] .result-mark {
  background: linear-gradient(135deg, #23a36f, #087a58);
  box-shadow: 0 18px 36px rgba(35, 163, 111, 0.22);
}

.result-grid,
.detail-grid {
  display: grid;
  gap: 14px;
}

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

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

.result-grid article,
.detail-grid article,
.avoid-guide,
.next-action,
.recommended-articles {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(18, 46, 64, 0.05);
}

.result-grid h3,
.detail-grid h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

ul {
  margin: 0;
  padding-left: 1.2em;
  color: #33434c;
  line-height: 1.8;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-list span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #eef4f5;
  color: #263640;
  font-size: 0.88rem;
  font-weight: 900;
}

.next-action {
  border-color: rgba(255, 154, 22, 0.38);
  background: var(--warm-soft);
}

.avoid-guide {
  border-color: rgba(15, 155, 152, 0.26);
  background: #f7fbfb;
}

.avoid-guide strong,
.next-action strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.avoid-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.recommended-articles {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(15, 155, 152, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 155, 152, 0.08), transparent 48%),
    #fff;
}

.recommended-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.recommended-heading span {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.recommended-heading h3 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.article-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-link-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 158px;
  overflow: hidden;
  border: 1px solid rgba(15, 155, 152, 0.2);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 46, 64, 0.06);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.article-link-card:hover {
  border-color: rgba(15, 155, 152, 0.6);
  box-shadow: 0 16px 30px rgba(18, 46, 64, 0.13);
  transform: translateY(-3px);
}

.article-number {
  display: grid;
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.28), transparent 3rem),
    linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  place-items: center;
}

.article-link-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.article-link-card strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

.article-link-card span span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-link-card em {
  align-self: end;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
}

.article-link-card em::after {
  content: " >";
}

.article-link-card.is-disabled {
  background: #f9fbfb;
}

.article-link-card.is-disabled:hover {
  border-color: rgba(15, 155, 152, 0.2);
  box-shadow: 0 8px 20px rgba(18, 46, 64, 0.06);
  transform: none;
}

.article-link-card.is-disabled em {
  color: #87939b;
}

.restart-button {
  width: min(280px, 100%);
}

.disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

@media (max-width: 880px) {
  .tool-shell {
    padding: 16px;
  }

  .hero,
  .result-heading {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 430px;
  }

  .hero,
  .diagnosis-card,
  .result-card {
    border-radius: 14px;
  }

  .result-grid,
  .detail-grid,
  .article-link-grid {
    grid-template-columns: 1fr;
  }

  .result-visual {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .tool-shell {
    padding: 12px;
  }

  .hero,
  .diagnosis-card,
  .result-card {
    padding: 16px;
  }

  .hero {
    padding: 20px;
  }

  .lead {
    font-size: 0.98rem;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .ghost-button {
    order: 2;
  }

  .choice-button {
    padding-right: 48px;
  }

  .result-heading {
    border-radius: 14px;
  }

  .result-copy {
    padding: 18px;
  }

  .article-link-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 150px;
  }

  .article-link-body {
    padding: 12px;
  }

  .article-link-card strong {
    font-size: 0.96rem;
  }

  .article-link-card span span {
    font-size: 0.86rem;
  }
}
