.recommender-page {
  --recommender-accent: #b0522e;
  --recommender-accent-deep: #873c24;
  --recommender-accent-soft: #ead6ca;
  --recommender-ink: #1d1b18;
  --recommender-muted: #6f6960;
  background: var(--editorial-cream);
}

.recommender-page .recommender-main {
  min-height: calc(100vh - 72px);
  padding: 38px 0 108px;
}

.recommender-page .recommender-heading {
  margin: 0 0 22px;
}

.recommender-page .recommender-heading h1 {
  margin: 0 0 7px;
  color: var(--recommender-ink);
  font-size: clamp(2.9rem, 3.7vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.recommender-page .recommender-heading p {
  margin: 0;
  color: var(--recommender-ink);
  font-size: 1.08rem;
  line-height: 1.55;
}

.recommender-page .recommender-composer {
  display: grid;
  grid-template-columns: minmax(300px, 365px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.recommender-page .recommender-portrait {
  width: 100%;
  margin: 0;
  aspect-ratio: 55 / 84;
  overflow: hidden;
}

.recommender-page .recommender-portrait img {
  width: calc(100% + 12px);
  max-width: none;
  height: auto;
  display: block;
  transform: translate(-12px, -2px);
}

.recommender-page .recommendation-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px 38px 36px;
  border: 0;
  background: #ede3d6;
}

.recommender-page .choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.recommender-page .choice-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--recommender-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
}

.recommender-page .choice-group legend::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--recommender-accent);
  content: "";
}

.recommender-page .choice-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 11px;
  padding-left: 19px;
}

.recommender-page .choice-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  color: var(--recommender-ink);
  background: transparent;
  cursor: pointer;
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.recommender-page .choice-option:hover {
  color: var(--recommender-accent-deep);
  background: rgba(176, 82, 46, 0.08);
}

.recommender-page .choice-option:has(input:checked) {
  color: var(--recommender-accent-deep);
  background: var(--recommender-accent-soft);
}

.recommender-page .choice-option:has(input:focus-visible) {
  outline: 2px solid rgba(176, 82, 46, 0.45);
  outline-offset: 2px;
}

.recommender-page .choice-option input {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.recommender-page .choice-list--budget .choice-option,
.recommender-page .choice-option span:where(:lang(en)) {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.recommender-page .field-error {
  margin: 8px 0 0 19px;
  color: var(--recommender-accent-deep);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.recommender-page .selection-summary {
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 11px 16px;
  border-radius: 14px;
  color: #6f594c;
  background: #f2eae1;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.78rem;
  line-height: 1.25;
}

.recommender-page .selection-summary[hidden] {
  display: none;
}

.recommender-page .selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.recommender-page .selection-chip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #a89282;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.recommender-page .recommendation-submit {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 1px;
  padding: 9px 18px 9px 20px;
  border: 0;
  border-radius: 999px;
  color: #fffaf4;
  background: var(--recommender-accent);
  cursor: pointer;
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 160ms ease, transform 160ms ease;
}

.recommender-page .recommendation-submit:hover {
  background: var(--recommender-accent-deep);
  transform: translateY(-1px);
}

.recommender-page .recommendation-submit svg {
  width: 25px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

body.match-modal-open {
  overflow: hidden;
}

.match-modal[hidden] {
  display: none;
}

.match-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(35, 29, 25, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.match-modal.is-open {
  opacity: 1;
}

.match-modal-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: 84vh;
  position: relative;
  overflow: auto;
  border-radius: 14px;
  color: #2b2825;
  background: #faf7f1;
  box-shadow: 0 20px 60px rgba(35, 29, 25, 0.16);
  opacity: 0;
  transform: translateY(8px) scale(0.975);
  transition: opacity 180ms ease, transform 180ms ease;
}

.match-modal.is-open .match-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.match-modal-close {
  width: 30px;
  height: 30px;
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 50%;
  color: #2b2825;
  background: rgba(250, 247, 241, 0.88);
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
}

.match-modal-preview {
  height: 300px;
  margin: 16px 16px 0;
  overflow: hidden;
  border-radius: 7px;
  background: transparent;
}

.match-modal-preview > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 26%;
  transform: none;
}

.match-modal-preview--weekend > img {
  object-position: 50% 56%;
}

.match-modal-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #7b726a;
  background: linear-gradient(135deg, #eee5da, #ded2c5);
  font-size: 0.96rem;
}

.match-modal-placeholder small {
  font-size: 0.75rem;
}

.match-modal-content {
  padding: 22px 24px;
}

.match-modal-eyebrow {
  margin: 0 0 6px;
  color: var(--recommender-accent);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.match-modal-content h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.18;
}

.match-modal-reason {
  max-width: 560px;
  margin: 0;
  color: #5f5953;
  font-size: 15px;
  line-height: 1.6;
}

.match-modal-conditions {
  margin: 12px 0 0;
  color: #7d746c;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.match-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.match-modal-primary {
  width: 190px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fffaf4;
  background: var(--recommender-accent);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.match-modal-primary:hover {
  color: #fffaf4;
  background: var(--recommender-accent-deep);
}

.match-modal-primary.is-disabled {
  color: #f8f3ed;
  background: #bdb2a9;
  cursor: not-allowed;
}

.match-modal-secondary {
  padding: 5px 0;
  border: 0;
  color: #6f665f;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  text-decoration-color: rgba(111, 102, 95, 0.38);
  text-underline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .match-modal,
  .match-modal-dialog {
    transition: none;
  }
}

@media (max-width: 900px) {
  .recommender-page .recommender-composer {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: 26px;
  }

  .recommender-page .recommendation-form {
    gap: 23px;
    padding-inline: 28px;
  }
}

@media (min-width: 768px) {
  .recommender-page .recommendation-form {
    gap: 0;
    padding: 34px 38px 32px;
    background: #faf7f1;
  }

  .recommender-page .choice-group + .choice-group {
    margin-top: 24px;
  }

  .recommender-page .choice-group legend::before {
    width: 7px;
    height: 7px;
    background: #b87861;
  }

  .recommender-page .choice-option {
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 3px;
    color: #2b2825;
  }

  .recommender-page .choice-option:hover {
    color: #a95635;
    background: rgba(169, 86, 53, 0.07);
  }

  .recommender-page .choice-option:has(input:checked) {
    color: #a95635;
    background: #e8d8cc;
  }

  .recommender-page .selection-summary {
    min-height: 0;
    margin-top: 22px;
    padding: 0;
    border-radius: 0;
    gap: 0;
    color: #8a8179;
    background: transparent;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .recommender-page .selection-summary::before {
    color: rgba(43, 38, 32, 0.4);
    content: "当前选择：";
  }

  .recommender-page .selection-chip {
    gap: 0;
  }

  .recommender-page .selection-chip + .selection-chip::before {
    margin: 0 7px;
    content: "·";
  }

  .recommender-page .selection-chip svg {
    display: none;
  }

  .recommender-page .recommendation-submit {
    width: 184px;
    margin-top: 16px;
    padding-inline: 22px;
  }

}

@media (max-width: 700px) {
  .recommender-page .recommender-main {
    padding: 38px 0 72px;
  }

  .recommender-page .recommender-heading h1 {
    font-size: 2.65rem;
  }

  .recommender-page .recommender-heading p {
    font-size: 0.96rem;
  }

  .recommender-page .recommender-composer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .recommender-page .recommender-portrait {
    width: min(76%, 360px);
  }

  .recommender-page .recommendation-form {
    padding: 28px 22px 30px;
  }

  .recommender-page .choice-list {
    padding-left: 0;
  }

  .recommender-page .choice-option {
    padding-inline: 12px;
  }

  .match-modal {
    padding: 14px;
  }

  .match-modal-dialog {
    width: min(100%, 520px);
    max-height: 84vh;
  }

  .match-modal-preview {
    height: 220px;
  }

  .match-modal-content {
    padding: 20px 22px 22px;
  }

  .match-modal-actions {
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }

  .match-modal-primary {
    width: min(190px, 100%);
  }
}

@media (min-width: 701px) {
  .match-modal-dialog {
    max-width: calc(100vw - 80px);
  }

  .match-modal-preview {
    height: 300px;
  }
}
