:root {
    --hm-ink: #16343d;
    --hm-text: #2d4a52;
    --hm-muted: #718188;
    --hm-line: #dce8e6;
    --hm-line-strong: #c8ddda;
    --hm-bg: #f4f8f7;
    --hm-card: #ffffff;
    --hm-green: #0d8f80;
    --hm-green-dark: #087367;
    --hm-green-soft: #eaf8f5;
    --hm-coral: #f36d52;
    --hm-coral-soft: #fff2ee;
    --hm-shadow: 0 12px 34px rgba(31, 78, 81, .08);
    --hm-radius: 20px;
    --hm-sans: 'Noto Sans TC', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home-cleaning-match-body {
    margin: 0;
    color: var(--hm-ink);
    font-family: var(--hm-sans);
    background: var(--hm-bg);
}

.home-cleaning-match-page {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 56px;
}

/* 此頁導覽列在桌機縮緊，避免選單擠出畫面 */
.home-cleaning-match-body .solo-global-nav {
    max-width: 1540px;
    gap: 16px;
}
.home-cleaning-match-body .solo-global-menu { gap: 15px; }
.home-cleaning-match-body .solo-global-menu a { font-size: 14px; }
.home-cleaning-match-body .solo-global-brand { font-size: 35px; }
.home-cleaning-match-body .solo-global-actions a,
.home-cleaning-match-body .solo-global-actions button { padding-inline: 15px; }

.hm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 0;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--hm-line);
    border-radius: 24px;
    background: var(--hm-card);
    box-shadow: var(--hm-shadow);
}

.hm-hero-copy { padding: 26px 30px 24px; }
.hm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #91a1a4;
    font-size: .82rem;
    font-weight: 800;
}
.hm-breadcrumb a { color: var(--hm-green-dark); text-decoration: none; }
.hm-breadcrumb b { color: var(--hm-muted); }

.hm-hero-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hm-green-dark);
    font-size: .82rem;
    font-weight: 900;
}
.hm-eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #33bf9a;
    box-shadow: 0 0 0 5px rgba(51, 191, 154, .12);
}
.hm-hero h1 {
    margin: 7px 0 0;
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.04em;
    font-weight: 900;
}
.hm-hero-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--hm-muted);
    font-size: .96rem;
    line-height: 1.7;
    font-weight: 600;
}
.hm-back {
    flex: none;
    margin-top: 4px;
    padding: 10px 14px;
    border: 1px solid var(--hm-line-strong);
    border-radius: 12px;
    color: var(--hm-green-dark);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 900;
    background: #fff;
}
.hm-back:hover { border-color: var(--hm-green); background: var(--hm-green-soft); }

.hm-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.hm-flow span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #75878b;
    font-size: .82rem;
    font-weight: 800;
}
.hm-flow span b {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    color: #688086;
    background: #edf3f2;
    font-size: .78rem;
}
.hm-flow span.active { color: var(--hm-green-dark); }
.hm-flow span.active b { color: #fff; background: var(--hm-green); }
.hm-flow i { width: 24px; height: 1px; background: #cfdcda; }

.hm-service-facts {
    padding: 25px 24px;
    border-left: 1px solid var(--hm-line);
    background: linear-gradient(145deg, #f0faf8, #fbfdfc);
}
.hm-service-name {
    padding-bottom: 17px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--hm-line);
}
.hm-service-name span {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--hm-green-dark);
    background: #dff5ef;
    font-size: .76rem;
    font-weight: 900;
}
.hm-service-name strong { display: block; font-size: 1.2rem; font-weight: 900; }
.hm-service-facts dl { margin: 0; }
.hm-service-facts dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(202, 220, 217, .75);
}
.hm-service-facts dl div:last-child { border-bottom: 0; }
.hm-service-facts dt,
.hm-service-facts dd { margin: 0; font-size: .84rem; font-weight: 800; }
.hm-service-facts dt { color: var(--hm-muted); }
.hm-service-facts dd { color: var(--hm-ink); text-align: right; }

.hm-member-tools {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.5fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--hm-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 78, 81, .06);
}
.hm-member-tools-copy { min-width: 0; padding: 2px 4px; }
.hm-member-tools-copy > span {
    display: block;
    margin-bottom: 3px;
    color: var(--hm-coral);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .06em;
}
.hm-member-tools-copy strong {
    display: block;
    color: var(--hm-ink);
    font-size: 1rem;
    font-weight: 900;
}
.hm-member-tools-copy p {
    margin: 5px 0 0;
    color: var(--hm-muted);
    font-size: .76rem;
    line-height: 1.55;
    font-weight: 650;
}
.hm-member-tools-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}
.hm-member-tool {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 11px;
    align-items: center;
    min-width: 0;
    min-height: 76px;
    padding: 11px 13px;
    border: 1px solid var(--hm-line-strong);
    border-radius: 14px;
    color: var(--hm-ink);
    background: #fbfdfd;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.hm-member-tool:hover {
    transform: translateY(-1px);
    border-color: #8bcfc4;
    background: #f6fcfa;
    box-shadow: 0 8px 18px rgba(13, 143, 128, .08);
}
.hm-member-tool-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    background: var(--hm-green);
    font-size: .86rem;
    font-weight: 900;
}
.hm-member-tool-orders .hm-member-tool-icon { background: var(--hm-ink); }
.hm-member-tool-text { min-width: 0; }
.hm-member-tool-text small,
.hm-member-tool-text strong,
.hm-member-tool-text em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-member-tool-text small {
    color: var(--hm-green-dark);
    font-size: .68rem;
    font-weight: 900;
}
.hm-member-tool-text strong {
    margin-top: 2px;
    font-size: .9rem;
    font-weight: 900;
}
.hm-member-tool-text em {
    margin-top: 3px;
    color: var(--hm-muted);
    font-size: .68rem;
    font-style: normal;
    font-weight: 650;
}
.hm-member-tool > b {
    color: var(--hm-green-dark);
    font-size: 1.05rem;
    text-align: right;
}
.hm-member-tool.is-empty {
    border-style: dashed;
    background: #fafcfc;
}
.hm-member-tool.is-empty .hm-member-tool-icon { color: var(--hm-green-dark); background: var(--hm-green-soft); }
.hm-member-tool.is-empty .hm-member-tool-text small { color: var(--hm-muted); }

.hm-login-required {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 13px 18px;
    border: 1px solid #ffd1c7;
    border-radius: 15px;
    background: #fff8f5;
}
.hm-login-required div { display: flex; flex-wrap: wrap; gap: 8px 13px; }
.hm-login-required strong { color: #d8533c; }
.hm-login-required span { color: #735f59; font-weight: 700; }
.hm-login-required a { color: var(--hm-green-dark); text-decoration: none; font-weight: 900; }

.hm-workspace { display: block; }
.hm-form {
    overflow: hidden;
    border: 1px solid var(--hm-line);
    border-radius: 22px;
    background: var(--hm-card);
    box-shadow: var(--hm-shadow);
}
.hm-hidden-note {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hm-estimate-strip {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 225px;
    gap: 22px;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--hm-line);
    background: #f8fcfb;
}
.hm-estimate-price small {
    display: block;
    margin-bottom: 3px;
    color: var(--hm-muted);
    font-size: .78rem;
    font-weight: 800;
}
.hm-estimate-price strong {
    display: block;
    color: var(--hm-green);
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.025em;
}
.hm-estimate-price span {
    display: block;
    margin-top: 5px;
    color: var(--hm-muted);
    font-size: .78rem;
    font-weight: 700;
}
.hm-live-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    background: #fff;
}
.hm-live-summary div {
    min-width: 0;
    padding: 11px 12px;
    border-right: 1px solid var(--hm-line);
}
.hm-live-summary div:last-child { border-right: 0; }
.hm-live-summary dt,
.hm-live-summary dd { margin: 0; }
.hm-live-summary dt { color: var(--hm-muted); font-size: .7rem; font-weight: 800; }
.hm-live-summary dd {
    overflow: hidden;
    margin-top: 4px;
    color: var(--hm-ink);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hm-price-note {
    padding: 11px 13px;
    border-radius: 13px;
    background: var(--hm-coral-soft);
}
.hm-price-note b { display: block; color: #a74b39; font-size: .78rem; }
.hm-price-note span { display: block; margin-top: 4px; color: #7f625b; font-size: .72rem; line-height: 1.5; font-weight: 700; }

.hm-form-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--hm-line);
    background: #fff;
}
.hm-form-progress a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-right: 1px solid var(--hm-line);
    color: #506b72;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 900;
}
.hm-form-progress a:last-child { border-right: 0; }
.hm-form-progress a:hover { color: var(--hm-green-dark); background: var(--hm-green-soft); }
.hm-form-progress b {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    color: var(--hm-green-dark);
    background: var(--hm-green-soft);
}

.hm-panel {
    scroll-margin-top: 92px;
    padding: 27px 28px 30px;
    border-bottom: 1px solid var(--hm-line);
}
.hm-section-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}
.hm-step {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: var(--hm-green);
    font-weight: 900;
}
.hm-section-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.35; font-weight: 900; }
.hm-section-head p { margin: 4px 0 0; color: var(--hm-muted); font-size: .85rem; line-height: 1.55; font-weight: 600; }

.hm-intent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.hm-choice,
.hm-hour-grid label,
.hm-area-grid label,
.hm-addon-grid label,
.hm-preference-grid label {
    position: relative;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.hm-choice input,
.hm-hour-grid input,
.hm-area-grid input,
.hm-addon-grid input,
.hm-preference-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.hm-choice {
    min-height: 118px;
    padding: 15px;
    border: 1px solid var(--hm-line);
    border-radius: 15px;
    background: #fff;
}
.hm-choice:hover,
.hm-hour-grid label:hover,
.hm-area-grid label:hover,
.hm-addon-grid label:hover,
.hm-preference-grid label:hover { border-color: #8fd1c8; }
.hm-choice.active,
.hm-hour-grid label.active,
.hm-area-grid label.active,
.hm-addon-grid label.active,
.hm-preference-grid label.active {
    border-color: #67c2b6;
    background: #f0fbf8;
    box-shadow: inset 0 0 0 1px rgba(13, 143, 128, .06);
}
.hm-choice span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--hm-green-dark);
    background: var(--hm-green-soft);
    font-size: .72rem;
    font-weight: 900;
}
.hm-choice b { display: block; margin-top: 11px; font-size: .98rem; font-weight: 900; }
.hm-choice small { display: block; margin-top: 5px; color: var(--hm-muted); font-size: .76rem; line-height: 1.5; font-weight: 600; }

.hm-input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.hm-input-grid label,
.hm-memo-label {
    display: grid;
    gap: 7px;
    color: var(--hm-text);
    font-size: .84rem;
    font-weight: 900;
}
.hm-input-grid .span-2 { grid-column: span 2; }
.hm-input-grid input,
.hm-input-grid select,
.hm-memo-label textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--hm-line-strong);
    border-radius: 12px;
    padding: 10px 13px;
    color: var(--hm-ink);
    background: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    outline: none;
}
.hm-input-grid input:focus,
.hm-input-grid select:focus,
.hm-memo-label textarea:focus {
    border-color: var(--hm-green);
    box-shadow: 0 0 0 3px rgba(13, 143, 128, .10);
}

.hm-subsection + .hm-subsection { margin-top: 22px; }
.hm-subsection h3 { margin: 0 0 11px; color: #38555c; font-size: .88rem; font-weight: 900; }
.hm-hour-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.hm-hour-grid label {
    display: grid;
    place-items: center;
    min-height: 80px;
    padding: 11px;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    text-align: center;
    background: #fff;
}
.hm-hour-grid b { font-size: .95rem; }
.hm-hour-grid small { margin-top: 4px; color: var(--hm-muted); font-size: .72rem; font-weight: 600; }

.hm-area-grid,
.hm-addon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.hm-area-grid label,
.hm-addon-grid label {
    min-height: 82px;
    padding: 14px 15px;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    background: #fff;
}
.hm-area-grid span,
.hm-addon-grid span { display: block; font-size: .92rem; font-weight: 900; }
.hm-area-grid small,
.hm-addon-grid small { display: block; margin-top: 5px; color: var(--hm-muted); font-size: .73rem; line-height: 1.45; font-weight: 600; }
.hm-addon-grid small { color: #d65a42; }

.hm-preference-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.hm-preference-grid label {
    padding: 9px 13px;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    background: #fff;
}
.hm-preference-grid span { font-size: .8rem; font-weight: 900; }
.hm-memo-label { margin-top: 20px; }
.hm-memo-label textarea { min-height: 112px; resize: vertical; line-height: 1.65; }

.hm-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: #eef9f6;
}
.hm-form-footer-copy span {
    display: block;
    margin-bottom: 3px;
    color: var(--hm-green-dark);
    font-size: .76rem;
    font-weight: 900;
}
.hm-form-footer-copy strong { display: block; font-size: .98rem; font-weight: 900; }
.hm-form-footer-copy small { display: block; margin-top: 4px; color: var(--hm-muted); font-size: .75rem; font-weight: 600; }
.hm-form-footer button,
.hm-submit-login-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 245px;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    padding: 10px 18px;
    color: #fff;
    background: var(--hm-green);
    box-shadow: 0 10px 24px rgba(13, 143, 128, .18);
    text-decoration: none;
    cursor: pointer;
}
.hm-form-footer button:hover,
.hm-submit-login-btn:hover { background: var(--hm-green-dark); }
.hm-form-footer button span,
.hm-submit-login-btn span { font-size: .9rem; font-weight: 900; }
.hm-form-footer button b,
.hm-submit-login-btn b { font-size: .83rem; font-weight: 900; }
.hm-submit-login-btn { background: var(--hm-coral); box-shadow: 0 10px 24px rgba(243, 109, 82, .18); }
.hm-submit-login-btn:hover { background: #dc5b43; }

@media (max-width: 1500px) {
    .home-cleaning-match-body .solo-global-menu { gap: 11px; }
    .home-cleaning-match-body .solo-global-menu a { font-size: 13px; }
    .home-cleaning-match-body .solo-global-brand { font-size: 32px; }
}

@media (max-width: 1120px) {
    .home-cleaning-match-page { width: min(100% - 28px, 980px); }
    .hm-hero { grid-template-columns: 1fr; }
    .hm-service-facts { border-left: 0; border-top: 1px solid var(--hm-line); }
    .hm-service-facts dl { display: grid; grid-template-columns: repeat(3, 1fr); }
    .hm-service-facts dl div { display: block; border-right: 1px solid var(--hm-line); border-bottom: 0; }
    .hm-service-facts dl div:last-child { border-right: 0; }
    .hm-service-facts dd { margin-top: 4px; text-align: left; }
    .hm-estimate-strip { grid-template-columns: 210px 1fr; }
    .hm-price-note { grid-column: 1 / -1; }
    .hm-live-summary { grid-template-columns: repeat(3, 1fr); }
    .hm-live-summary div:nth-child(3) { border-right: 0; }
    .hm-live-summary div:nth-child(n+4) { border-top: 1px solid var(--hm-line); }
    .hm-live-summary div:nth-child(4) { border-right: 1px solid var(--hm-line); }
    .hm-intent-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-member-tools { grid-template-columns: 1fr; }
    .hm-member-tools-copy p { max-width: 720px; }
}

@media (max-width: 760px) {
    .home-cleaning-match-page { width: min(100% - 20px, 680px); padding-top: 12px; }
    .hm-hero-copy { padding: 22px 20px; }
    .hm-hero-heading { display: block; }
    .hm-back { display: inline-flex; margin-top: 15px; }
    .hm-flow { display: grid; grid-template-columns: repeat(2, 1fr); }
    .hm-flow i { display: none; }
    .hm-service-facts { padding: 20px; }
    .hm-service-facts dl { grid-template-columns: 1fr; }
    .hm-service-facts dl div { display: flex; border-right: 0; border-bottom: 1px solid var(--hm-line); }
    .hm-service-facts dd { margin-top: 0; text-align: right; }
    .hm-member-tools { padding: 13px; }
    .hm-member-tools-actions { grid-template-columns: 1fr; }
    .hm-member-tool { min-height: 72px; }
    .hm-login-required { align-items: flex-start; }
    .hm-estimate-strip { grid-template-columns: 1fr; padding: 18px; }
    .hm-live-summary { grid-template-columns: repeat(2, 1fr); }
    .hm-live-summary div:nth-child(2n) { border-right: 0; }
    .hm-live-summary div:nth-child(n+3) { border-top: 1px solid var(--hm-line); }
    .hm-form-progress span { display: none; }
    .hm-panel { padding: 23px 18px 25px; }
    .hm-intent-grid,
    .hm-input-grid,
    .hm-area-grid,
    .hm-addon-grid { grid-template-columns: 1fr; }
    .hm-input-grid .span-2 { grid-column: auto; }
    .hm-hour-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-form-footer { align-items: stretch; flex-direction: column; }
    .hm-form-footer button,
    .hm-submit-login-btn { width: 100%; min-width: 0; }
}

@media (max-width: 430px) {
    .hm-hero h1 { font-size: 1.8rem; }
    .hm-flow { grid-template-columns: 1fr; }
    .hm-live-summary { grid-template-columns: 1fr; }
    .hm-live-summary div { border-right: 0 !important; border-top: 1px solid var(--hm-line); }
    .hm-live-summary div:first-child { border-top: 0; }
    .hm-hour-grid { grid-template-columns: 1fr; }
    .hm-member-tool { grid-template-columns: 36px minmax(0, 1fr) 18px; padding-inline: 10px; }
    .hm-member-tool-icon { width: 36px; height: 36px; }
    .hm-member-tools-copy p { display: none; }
}
.hm-form-footer-copy em {
    display: inline-flex;
    gap: 6px;
    margin-top: 7px;
    color: #4f6b71;
    font-size: .75rem;
    font-style: normal;
    font-weight: 800;
}
.hm-form-footer-copy em b { color: var(--hm-green-dark); }
