/* 第一次上门送礼指南 /css/tools/home-visit-gift-guide.css */

/* 场景选择 */
.hvg-scenes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.hvg-scene-btn {
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 12px;
    padding: 10px 4px 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.hvg-scene-btn .hvg-scene-ico { display: block; font-size: 22px; line-height: 1.3; }
.hvg-scene-btn .hvg-scene-name { display: block; font-size: 11.5px; color: var(--c-text-sub); margin-top: 3px; line-height: 1.4; }
.hvg-scene-btn:hover { border-color: rgba(22, 163, 74, 0.5); }
.hvg-scene-btn.active {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25);
}
.hvg-scene-btn.active .hvg-scene-name { color: #15803d; font-weight: 700; }

/* 结果头部 */
.hvg-head {
    border-radius: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(22, 163, 74, 0.3);
    margin-bottom: 12px;
}
.hvg-head-row { display: flex; align-items: center; gap: 10px; }
.hvg-head-icon { font-size: 30px; line-height: 1; }
.hvg-headline { font-size: 17px; font-weight: 900; color: #15803d; line-height: 1.4; }
.hvg-cond { font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }

/* 提醒 */
.hvg-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.hvg-note {
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
    line-height: 1.7;
}
.hvg-note.is-warn {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #b45309;
}
.hvg-note.is-ok {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #15803d;
}
.hvg-note.is-info {
    background: rgba(13, 148, 136, 0.07);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: var(--c-text-sub);
}

/* 分区小标题 */
.hvg-block-sub {
    font-size: 12.5px;
    font-weight: 800;
    color: #15803d;
    margin: 14px 0 8px;
    letter-spacing: 0.5px;
}
.hvg-block-sub:first-child { margin-top: 2px; }

/* 礼物卡 */
.hvg-gift {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--c-surface-soft);
    margin-bottom: 8px;
}
.hvg-gift-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hvg-gift-no {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #16a34a;
    border-radius: 99px;
    padding: 1px 8px;
    flex-shrink: 0;
}
.hvg-gift-name { font-size: 13.5px; font-weight: 700; color: var(--c-text); line-height: 1.5; flex: 1; min-width: 120px; }
.hvg-gift-price {
    font-size: 13px;
    font-weight: 800;
    color: #15803d;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.hvg-gift-desc { font-size: 12px; color: var(--c-text-muted); line-height: 1.7; margin-top: 4px; }

/* 变体额外建议 */
.hvg-extra {
    border: 1px dashed rgba(22, 163, 74, 0.45);
    border-radius: 12px;
    padding: 4px 14px 10px;
    background: rgba(22, 163, 74, 0.04);
    margin-top: 2px;
}
.hvg-extra .hvg-block-sub { color: #0d9488; }
.hvg-extra-li { font-size: 12.5px; color: var(--c-text-sub); line-height: 1.8; }

/* 禁忌 / 讲究 / 提醒列表 */
.hvg-list { margin: 0; padding-left: 20px; }
.hvg-list li { font-size: 12.5px; line-height: 1.9; color: var(--c-text-sub); }

/* 纯文本区 */
.hvg-textarea {
    width: 100%;
    min-height: 240px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.9;
    font-family: ui-monospace, Menlo, Consolas, "Microsoft YaHei", monospace;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    resize: vertical;
}
.hvg-textarea:focus { outline: none; border-color: rgba(22, 163, 74, 0.5); }
.hvg-text-actions { display: flex; gap: 10px; margin-top: 10px; }
.hvg-text-actions .btn { flex: 1; }

.hvg-toast {
    position: fixed;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 99px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    max-width: 86vw;
    text-align: center;
}
.hvg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

[data-theme="dark"] .hvg-scene-btn.active .hvg-scene-name { color: #4ade80; }
[data-theme="dark"] .hvg-headline { color: #4ade80; }
[data-theme="dark"] .hvg-note.is-warn { color: #fbbf24; }
[data-theme="dark"] .hvg-note.is-ok { color: #4ade80; }
[data-theme="dark"] .hvg-block-sub { color: #4ade80; }
[data-theme="dark"] .hvg-gift-no { background: #16a34a; }
[data-theme="dark"] .hvg-gift-price { color: #4ade80; }
[data-theme="dark"] .hvg-extra .hvg-block-sub { color: #2dd4bf; }
[data-theme="dark"] .hvg-toast { background: rgba(226, 232, 240, 0.95); color: #0f172a; }

@media print {
    .detail-breadcrumb, .calc-layout .calc-card:first-child, .calc-table-card,
    .detail-tabs, .tab-panel, .related, .calc-disclaim, .hvg-text-actions,
    .hvg-toast, .ft-btns, .btn { display: none !important; }
    .hvg-gift, .hvg-extra { break-inside: avoid; }
}

@media (max-width: 640px) {
    .hvg-scenes { grid-template-columns: repeat(3, 1fr); }
    .hvg-headline { font-size: 15px; }
    .hvg-gift-name { min-width: 0; }
}
