/* ===== 旅行预算计算器 /tool/travel-budget-calc ===== */

.detail-wrap {
    --tb-teal: #14b8a6;
    --tb-teal2: #0ea5e9;
    --tb-orange: #f97316;
    --tb-grad: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
    --tb-grad-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

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

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

.tb-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tb-field { display: flex; flex-direction: column; gap: 6px; }
.tb-field label { font-size: 13px; font-weight: 700; color: var(--c-text); }
.tb-field input, .tb-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;
    width: 100%; box-sizing: border-box;
}
.tb-field input:focus, .tb-field select:focus { outline: 2px solid var(--tb-teal); outline-offset: 1px; border-color: var(--tb-teal); }
.tb-field small { font-size: 11.5px; color: var(--c-muted); }
.tb-inline { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }

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

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

/* 分项占比条 */
.tb-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.tb-bar-row { display: flex; flex-direction: column; gap: 5px; }
.tb-bar-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--c-sub); }
.tb-bar-head b { color: var(--c-text); font-weight: 800; }
.tb-bar-track { height: 10px; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-border); overflow: hidden; }
.tb-bar-fill { height: 100%; border-radius: 999px; background: var(--tb-grad); transition: width .4s ease; }

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

/* AI */
.tb-ai { margin-top: 18px; border-top: 1px dashed var(--c-border); padding-top: 16px; }
.tb-ai-btn {
    padding: 12px 18px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--tb-grad-warm); color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 8px 20px rgba(249, 115, 22, .28); transition: .15s;
}
.tb-ai-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.tb-ai-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.tb-ai-status { margin-top: 10px; font-size: 13px; color: var(--c-sub); min-height: 18px; }
.tb-ai-status.is-ok { color: #10b981; }
.tb-ai-status.is-err { color: #ef4444; }
.tb-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);
}
.tb-ai-result b, .tb-ai-result strong { color: var(--c-text); }
.tb-ai-result .ac-ai-head { margin-bottom: 8px; color: var(--c-text); }
.tb-ai-result .ac-ai-disclaim { margin-top: 10px; font-size: 12px; color: var(--c-muted); }

.tb-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(--tb-orange);
    border-radius: 12px; padding: 14px 16px;
}
.tb-tip b { color: var(--c-text); }

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

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

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

/* 相关 */
.tb-related { margin-top: 42px; }
.tb-related h2 { font-size: 22px; font-weight: 800; color: var(--c-text); margin: 0 0 16px; }
.tb-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tb-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; }
.tb-rel-item:hover { transform: translateY(-2px); border-color: var(--tb-teal); box-shadow: 0 10px 24px rgba(20, 184, 166, .12); }
.tb-rel-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--c-bg); flex-shrink: 0; }
.tb-rel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tb-rel-body b { font-size: 14.5px; color: var(--c-text); }
.tb-rel-body small { font-size: 12px; color: var(--c-muted); }
.tb-rel-go { margin-left: auto; color: var(--tb-teal); font-size: 18px; font-weight: 800; }

@media (max-width: 640px) {
    .tb-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .tb-head-main h1 { font-size: 24px; }
    .tb-form { grid-template-columns: 1fr; }
    .tb-metrics { grid-template-columns: 1fr 1fr; }
    .tb-feature-chips { grid-template-columns: 1fr; }
}
