/* ===== 楼间距日照估算 /tool/house-daylight ===== */

.detail-wrap {
    --hd-teal: #0ea5a4;
    --hd-teal2: #22c1a8;
    --hd-sun: #f59e0b;
    --hd-sun2: #f97316;
    --hd-grad: linear-gradient(135deg, #0ea5a4 0%, #22c1a8 100%);
    --hd-grad-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

/* 头部 */
.hd-head { display: flex; gap: 22px; align-items: center; margin-bottom: 30px; }
.hd-head-icon {
    width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center;
    font-size: 38px; background: var(--hd-grad); color: #fff;
    box-shadow: 0 14px 30px rgba(14, 165, 164, .32);
}
.hd-head-main h1 { margin: 0 0 8px; font-size: 32px; font-weight: 900; letter-spacing: -.02em; color: var(--c-text); }
.hd-head-sub { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--c-sub); max-width: 64ch; }
.hd-head-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* 主体 */
.hd-board { margin-bottom: 40px; }
.hd-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 18px; padding: 22px; }
.hd-card-title { font-size: 16px; font-weight: 800; color: var(--c-text); margin-bottom: 16px; }

.hd-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hd-field { display: flex; flex-direction: column; gap: 6px; }
.hd-field label { font-size: 13px; font-weight: 700; color: var(--c-text); }
.hd-field input, .hd-field select {
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--c-border);
    background: var(--c-bg); color: var(--c-text); font-size: 14px; font-family: inherit;
}
.hd-field input:focus, .hd-field select:focus { outline: 2px solid var(--hd-teal); outline-offset: 1px; border-color: var(--hd-teal); }
.hd-field small { font-size: 11.5px; color: var(--c-muted); }

.hd-calc-btn {
    margin-top: 18px; width: 100%; padding: 13px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--hd-grad); color: #fff; font-size: 15px; font-weight: 800;
    box-shadow: 0 10px 24px rgba(14, 165, 164, .28); transition: .15s;
}
.hd-calc-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }

/* 结果 */
.hd-result { margin-top: 18px; }
.hd-result-hero {
    background: var(--hd-grad); color: #fff; border-radius: 16px; padding: 24px;
    text-align: center; box-shadow: 0 14px 30px rgba(14, 165, 164, .25);
}
.hd-hero-label { font-size: 13px; opacity: .92; }
.hd-hero-time { font-size: 40px; font-weight: 900; margin: 6px 0 4px; letter-spacing: -.02em; }
.hd-hero-sub { font-size: 13.5px; opacity: .95; }

.hd-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.hd-metric { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 12px; padding: 14px; text-align: center; }
.hd-metric .k { font-size: 12px; color: var(--c-muted); }
.hd-metric .v { font-size: 18px; font-weight: 800; color: var(--c-text); margin-top: 4px; }

.hd-verdict { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.7; }
.hd-verdict b { font-weight: 800; }
.hd-verdict.good { background: rgba(14, 165, 164, .12); color: var(--c-text); border: 1px solid rgba(14, 165, 164, .35); }
.hd-verdict.ok { background: rgba(245, 158, 11, .12); color: var(--c-text); border: 1px solid rgba(245, 158, 11, .4); }
.hd-verdict.warn { background: rgba(249, 115, 22, .12); color: var(--c-text); border: 1px solid rgba(249, 115, 22, .4); }
.hd-verdict.bad { background: rgba(239, 68, 68, .12); color: var(--c-text); border: 1px solid rgba(239, 68, 68, .4); }

.hd-ai { margin-top: 18px; border-top: 1px dashed var(--c-border); padding-top: 16px; }
.hd-ai-btn {
    padding: 12px 18px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--hd-grad-warm); color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 8px 20px rgba(249, 115, 22, .28); transition: .15s;
}
.hd-ai-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.hd-ai-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.hd-ai-status { margin-top: 10px; font-size: 13px; color: var(--c-sub); min-height: 18px; }
.hd-ai-result {
    margin-top: 12px; padding: 14px 16px; border-radius: 12px;
    background: var(--c-bg); border: 1px solid var(--c-border);
    font-size: 14px; line-height: 1.85; color: var(--c-sub); white-space: pre-wrap;
}
.hd-ai-result b, .hd-ai-result strong { color: var(--c-text); }

.hd-tip {
    margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--c-sub);
    background: var(--c-bg); border: 1px solid var(--c-border); border-left: 4px solid var(--hd-sun);
    border-radius: 12px; padding: 14px 16px;
}
.hd-tip b { color: var(--c-text); }

/* tabs 内容 */
.hd-block-head { font-size: 19px; font-weight: 800; color: var(--c-text); margin: 0 0 16px; }
.hd-feature-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-bottom: 26px; }
.hd-feature-chip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--c-sub); }
.hd-feature-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hd-teal); flex-shrink: 0; }
.hd-prose { font-size: 15px; line-height: 1.9; color: var(--c-sub); }
.hd-prose b { color: var(--c-text); }

.hd-steps { display: flex; flex-direction: column; gap: 12px; }
.hd-step { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--c-card); border: 1px solid var(--c-border); }
.hd-step-no { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--hd-grad); font-size: 14px; }
.hd-step-body { font-size: 14px; color: var(--c-sub); line-height: 1.7; }
.hd-step-body b { color: var(--c-text); }

.hd-faq { display: flex; flex-direction: column; gap: 10px; }
.hd-faq details { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-card); padding: 0 16px; }
.hd-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14.5px; color: var(--c-text); list-style: none; }
.hd-faq summary::-webkit-details-marker { display: none; }
.hd-faq summary::after { content: "+"; float: right; color: var(--hd-teal); font-size: 20px; line-height: 1; }
.hd-faq details[open] summary::after { content: "−"; }
.hd-faq .hd-faq-a { padding: 0 0 16px; font-size: 13.5px; line-height: 1.8; color: var(--c-sub); }
.hd-faq .hd-faq-a b { color: var(--c-text); }

/* 相关 */
.hd-related { margin-top: 42px; }
.hd-related h2 { font-size: 22px; font-weight: 800; color: var(--c-text); margin: 0 0 16px; }
.hd-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hd-rel-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--c-card); border: 1px solid var(--c-border); text-decoration: none; transition: .18s; }
.hd-rel-item:hover { transform: translateY(-2px); border-color: var(--hd-teal); box-shadow: 0 10px 24px rgba(14, 165, 164, .12); }
.hd-rel-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--c-bg); flex-shrink: 0; }
.hd-rel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hd-rel-body b { font-size: 15px; font-weight: 700; color: var(--c-text); }
.hd-rel-body small { font-size: 12px; color: var(--c-muted); }
.hd-rel-go { margin-left: auto; color: var(--hd-teal); font-weight: 800; }

/* 响应式 */
@media (max-width: 720px) {
    .hd-head { flex-direction: column; align-items: flex-start; }
    .hd-head-badges { justify-content: center; }
    .hd-form { grid-template-columns: 1fr; }
    .hd-metrics { grid-template-columns: 1fr; }
    .hd-feature-chips { grid-template-columns: 1fr; }
}
