:host {
  --cast-primary: #397ee8;
  --cast-primary-hover: #2f6fce;
  --cast-primary-soft: #eef5ff;
  --cast-text: #111827;
  --cast-secondary: #8b95a5;
  --cast-border: #e4e7ec;
  --cast-surface: #ffffff;
  display: block;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.report-section {
  margin: 20px 0 16px;
}

.report-title {
  margin: 0 0 16px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.report-field + .report-field {
  margin-top: 16px;
}

.report-label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.report-input-wrapper {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.report-input-wrapper:focus-within {
  outline: 2px solid rgba(24, 144, 255, 0.2);
  border-color: #1890ff;
}

.report-prefix {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.report-input {
  flex: 1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 6px;
  outline: none;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 14px;
}

.report-input::placeholder {
  color: #999;
}

.report-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff4da;
  color: #87551d;
  font-size: 12px;
  line-height: 1.6;
}

.report-hint-icon {
  flex: 0 0 14px;
  margin-top: 2px;
}

.phone-section {
  margin: 16px 0;
}

.phone-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.phone-input,
.verification-code-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--cast-border);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.phone-input:focus,
.verification-code-input:focus {
  outline: 2px solid var(--cast-primary-soft);
  border-color: var(--cast-primary);
}

.verification-code-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.verification-code-input {
  flex: 1;
}

.send-code-button {
  padding: 8px 16px;
  background: var(--cast-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.send-code-button:hover:not(:disabled) {
  background: var(--cast-primary-hover);
}

.send-code-button:disabled {
  background: var(--cast-primary-soft);
  color: #8c8c8c;
  cursor: not-allowed;
}

.cast-overlay {
  align-items: flex-start;
}

.cast-modal {
  max-width: 980px;
  max-height: 96vh;
  border: 0;
  border-radius: 0;
  box-shadow: 0 16px 44px rgba(31, 40, 58, 0.16);
}

.cast-modal:not(.fullscreen) {
  height: 50vh;
  min-height: 700px;
}

.cast-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
}

.close-confirm-container,
.instructions-confirm-container {
  position: relative;
  z-index: 100;
}

.instructions-content {
  color: #7f8793;
  font-size: 13px;
  line-height: 1.75;
}

.instructions-content > p {
  margin: 0;
}

.instructions-content ol {
  margin: 14px 0;
  padding: 0 0 0 22px;
}

.instructions-content li {
  padding: 7px 0 7px 4px;
  border-top: 1px solid #eceef1;
}

.instructions-content li:last-child {
  border-bottom: 1px solid #eceef1;
}

.instructions-content strong,
.instructions-content span {
  display: block;
}

.instructions-content strong {
  color: #242b36;
  font-size: 14px;
}

.instructions-content .instructions-content-note {
  color: #9aa1ac;
}

.close-confirm-message {
  margin-bottom: 16px;
  color: #595959;
  font-size: 16px;
  line-height: 1.5;
}

.cast-scroll-area {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cast-content {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: var(--cast-text);
}

.intro-content {
  background: var(--cast-surface);
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cast-secondary);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cast-primary);
  box-shadow: 0 0 0 4px rgba(57, 126, 232, 0.09);
}

.intro-content h1 {
  margin: 17px 0 7px;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.intro-description,
.privacy-note {
  margin: 0;
  color: var(--cast-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.dimension-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 21px;
  font-size: 12px;
}

.dimension-heading strong {
  color: #111827;
  font-size: 13px;
}

.dimension-heading span {
  color: #9aa2af;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 17px 0 23px;
}

.dimension-card {
  position: relative;
  min-height: 101px;
  padding: 15px 11px 12px;
  overflow: hidden;
  border: 1px solid var(--cast-border);
  border-top: 3px solid var(--dimension-color, var(--cast-primary));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(31, 40, 58, 0.08);
  box-sizing: border-box;
}

.dimension-card:nth-child(1) {
  --dimension-color: #df4038;
}

.dimension-card:nth-child(2) {
  --dimension-color: #dc941b;
}

.dimension-card:nth-child(3) {
  --dimension-color: #397a59;
}

.dimension-card:nth-child(4) {
  --dimension-color: #315880;
}

.dimension-card strong {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #202734;
  font-size: 14px;
  line-height: 1.45;
}

.dimension-card strong span {
  margin: 0;
  color: var(--dimension-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.dimension-card p {
  margin: 5px 0 0;
  color: var(--cast-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.primary-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--cast-primary);
  box-shadow: 0 8px 18px rgba(57, 126, 232, 0.2);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.primary-button:hover {
  background: var(--cast-primary-hover);
  box-shadow: 0 10px 22px rgba(57, 126, 232, 0.26);
}

.primary-button:active {
  transform: scale(0.99);
}

.primary-button:focus-visible,
.answer-option:focus-visible,
.validity-options button:focus-visible,
.quiz-footer button:focus-visible,
.phase-tabs span:focus-visible {
  outline: 3px solid rgba(63, 127, 240, 0.28);
  outline-offset: 2px;
}

.assessment-notice {
  padding: 16px 15px 13px;
  border: 1px solid #e4e6e9;
  border-radius: 8px;
  background: #fafafa;
}

.assessment-notice h2 {
  margin: 0 0 7px;
  color: #181d25;
  font-size: 13px;
  line-height: 1.6;
}

.assessment-notice ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #939ba7;
  font-size: 12px;
  line-height: 1.9;
}

.assessment-notice li {
  position: relative;
  padding-left: 13px;
}

.assessment-notice li::before {
  position: absolute;
  left: 1px;
  content: "·";
  color: #aab0b9;
}

.assessment-notice strong {
  color: #151a21;
  font-weight: 700;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 15px;
  color: #9aa1ac;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  border: 1px solid #d9dde3;
  accent-color: var(--cast-primary);
  cursor: pointer;
  flex: 0 0 auto;
}

.primary-button:disabled {
  background: #dedede;
  box-shadow: none;
  color: #fff;
  cursor: not-allowed;
}

.primary-button:disabled:hover {
  background: #dedede;
  box-shadow: none;
}

.intro-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #99a1ad;
  font-size: 11px;
  line-height: 18px;
}

.quiz-content {
  padding: 27px 20px 24px;
}

.progress-track {
  height: 2px;
  margin-right: 27px;
  overflow: hidden;
  background: var(--cast-border);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--cast-primary);
  transition: width 0.25s ease;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0 13px;
  border-bottom: 1px solid #eceef1;
  color: #202632;
  font-size: 12px;
}

.question-meta strong {
  font-size: 13px;
}

.question-meta > span {
  padding: 3px 8px;
  border: 1px solid #e5e7eb;
  color: #202632;
  line-height: 16px;
}

.phase-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.phase-tabs span,
.validity-hint {
  padding: 6px 10px;
  border: 1px solid var(--cast-border);
  border-radius: 0;
  color: #a2a7af;
  font-size: 12px;
  line-height: 16px;
}

.phase-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.phase-tabs span i {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.phase-tabs span strong {
  font-weight: 600;
}

.phase-tabs > b {
  color: #aab0ba;
  font-size: 13px;
  font-weight: 400;
}

.phase-tabs span.active {
  border-color: var(--cast-primary);
  background: #fff;
  color: var(--cast-primary);
}

.phase-tabs span.active i {
  background: var(--cast-primary);
}

.phase-tabs span.completed {
  color: #a2a7af;
}

.validity-hint {
  display: inline-block;
  margin-top: 14px;
  border-color: var(--cast-primary);
  color: var(--cast-primary);
}

.quiz-content h2 {
  margin: 14px 0 14px;
  font-size: 16px;
  line-height: 1.7;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-option {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 40, 58, 0.08);
  color: #4f5662;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}

.answer-option:hover {
  border-color: #9dbcf5;
  background: #fbfdff;
}

.answer-option.selecting-least:hover {
  border-color: #181818;
  background: #fff;
  box-shadow: none;
}

.answer-option.selecting-least:hover::after {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  background: #181818;
  color: #fff;
  content: "最不符合我";
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.answer-option.selected-most,
.answer-option.selected-most:disabled {
  border-color: var(--cast-primary);
  background: var(--cast-primary-soft);
  box-shadow: 0 0 0 1px rgba(63, 127, 240, 0.08);
  color: #2867d8;
  cursor: default;
  opacity: 1;
}

.option-letter {
  flex: 0 0 16px;
  color: #a5aab3;
  font-family: Georgia, serif;
}

.selected-most .option-letter {
  color: var(--cast-primary);
}

.answer-option.selected-least {
  border-color: #9ba2ad;
  border-style: dashed;
  background: #f7f8fa;
  color: #777f8b;
}

.answer-mark {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  background: var(--cast-primary);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.selected-least .answer-mark {
  background: #8d96a3;
}

.validity-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.validity-options button {
  min-height: 72px;
  padding: 8px 4px;
  border: 1px solid var(--cast-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cast-secondary);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.validity-options button:hover,
.validity-options button.selected {
  border-color: var(--cast-primary);
  background: var(--cast-primary-soft);
  color: var(--cast-primary);
}

.validity-options button.selected strong {
  color: var(--cast-primary);
}

.validity-options strong,
.validity-options span {
  display: block;
}

.validity-options strong {
  margin-bottom: 8px;
  color: var(--cast-text);
  font-size: 18px;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 14px 2px 0;
  border-top: 1px solid #eceef1;
  color: #acb1ba;
  font-size: 12px;
  min-height: 26px;
}

.quiz-footer button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #7e8795;
  font: inherit;
  cursor: pointer;
}

.quiz-footer button:disabled {
  color: #d7dade;
  cursor: default;
}

.quiz-footer .saved-next-button {
  color: var(--cast-primary);
}

.result-content {
  padding: 46px 36px 20px;
}

.result-label {
  color: #a2a8b2;
  font-size: 12px;
}

.result-content > h1 {
  margin: 7px 0 1px;
  font-size: 23px;
  line-height: 1.3;
}

.result-code {
  margin: 0;
  color: #7f91ad;
  font-size: 12px;
  font-weight: 400;
}

.result-tag {
  margin: 12px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8eaed;
  color: #949ba6;
  font-size: 13px;
  line-height: 1.8;
}

.score-list {
  display: grid;
  gap: 15px;
}

.score-row > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 16px;
}

.score-row > div:first-child strong > span {
  color: var(--cast-text);
}

.score-row > div:first-child > span {
  color: #9097a1;
  font-size: 12px;
  font-weight: 400;
}

.score-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: #e9eaec;
  overflow: hidden;
}

.score-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  z-index: 1;
  background: #bfc4cb;
}

.score-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--cast-primary);
}

.job-matches {
  margin-top: 30px;
}

.result-section-label {
  margin-bottom: 7px;
  color: #a2a8b2;
  font-size: 12px;
}

.job-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid #e8eaed;
  color: #3f4651;
  font-size: 13px;
}

.job-match-row strong {
  color: #111722;
  font-size: 13px;
}

.quality-warning {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a0a6af;
  font-size: 12px;
  line-height: 1.7;
}

.quality-warning strong {
  font-weight: 400;
}

.result-content .primary-button {
  margin-top: 26px;
}

@media screen and (max-width: 600px) {
  .cast-overlay {
    padding: 0;
  }

  .cast-modal {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 0;
  }

  .cast-modal.fullscreen {
    min-height: 100%;
    max-height: 100%;
  }

  .cast-content {
    padding: 46px 20px 24px;
  }

  .quiz-content {
    padding-top: 27px;
  }

  .cast-modal.fullscreen .cast-content {
    min-height: 100%;
  }

  .result-content {
    padding: 46px 20px 20px;
  }

  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
  }

  .dimension-card {
    min-height: 92px;
    padding: 14px 12px 12px;
  }

  .dimension-card:hover {
    transform: none;
  }

  .phase-tabs {
    gap: 5px;
  }

  .phase-tabs span {
    padding: 6px 7px;
  }

  .phase-tabs > b {
    display: none;
  }

  .validity-options {
    grid-template-columns: 1fr;
  }

  .validity-options button {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    text-align: left;
  }

  .validity-options strong {
    margin: 0;
  }
}

@media screen and (max-width: 360px) {
  .cast-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .dimension-card {
    min-height: 76px;
  }

  .dimension-card strong {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
  }
}

@media (hover: none) {
  .answer-option.selecting-least:hover {
    border-color: #dfe1e5;
    background: #fff;
    box-shadow: 0 1px 2px rgba(31, 40, 58, 0.08);
  }

  .answer-option.selecting-least:hover::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button,
  .answer-option,
  .dimension-card,
  .progress-track span {
    transition: none;
  }
}
