/* 工具 09 · 破冰话题生成器
   独立视觉：薄荷绿抽签卡片堆，天蓝点缀，卡片轻微旋转 + 悬停浮起，含书签收藏夹。 */
.ib {
    --a1: #269b83; --a1b: #3f96cf; --a1s: #e4f5ef; --a1i: #1b7a66;
    --a2: #6fd7b8; --a2b: #7dc0f0; --a2s: rgba(111, 215, 184, .15); --a2i: #a1e7d0;
    --h15-h1: clamp(31px, 3.8vw, 44px);
}
.ib .ib-h1 { font-family: var(--h15-font-serif); font-weight: 700; letter-spacing: .03em; }
.ib-hero {
    background:
        radial-gradient(520px 230px at 12% -10%, rgba(63, 150, 207, .18), transparent 70%),
        radial-gradient(560px 240px at 88% 0%, rgba(38, 155, 131, .16), transparent 72%),
        linear-gradient(125deg, #f3fbf8 0%, #eaf6fb 100%);
    border-color: #d4ebe5;
}
.ib-hero::before { background: linear-gradient(180deg, var(--a1), var(--a1b)); }
:root[data-theme="dark"] .ib .ib-hero { background: linear-gradient(125deg, #10231f 0%, #10222c 100%); border-color: #23443c; }
.ib-cards-deco { position: absolute; right: 36px; top: 30px; width: 130px; height: 100px; pointer-events: none; }
.ib-cards-deco i { position: absolute; width: 66px; height: 88px; border: 2px solid rgba(38, 155, 131, .3); border-radius: 12px; background: rgba(255, 255, 255, .35); }
.ib-cards-deco i:nth-child(1) { left: 0; top: 8px; transform: rotate(-14deg); }
.ib-cards-deco i:nth-child(2) { left: 30px; top: 2px; transform: rotate(3deg); border-color: rgba(63, 150, 207, .35); }
.ib-cards-deco i:nth-child(3) { left: 58px; top: 10px; transform: rotate(15deg); }
@media (max-width: 620px) { .ib-cards-deco { display: none; } }
.ib-quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ib-quick-f { display: grid; gap: 4px; min-width: 126px; }
.ib-quick-f > span { font-size: var(--h15-fs-12); font-weight: 700; color: var(--h15-ink-2); }
.ib-go { padding-left: 24px; padding-right: 24px; }

.ib-desk { display: grid; grid-template-columns: 262px minmax(0, 1fr) 226px; gap: 16px; align-items: start; }
@media (max-width: 1120px) { .ib-desk { grid-template-columns: 262px minmax(0, 1fr); } .ib-favs { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ib-desk { grid-template-columns: 1fr; } .ib-favs { grid-column: auto; } }
.ib-avoid { display: grid; gap: 7px; padding: 12px; border-radius: 11px; background: var(--h15-card-2); }
.ib-esc { margin-top: 16px; }

.ib-cards { padding: 16px; border: 1px solid var(--h15-line); border-radius: 18px; background: var(--h15-card); box-shadow: var(--h15-shadow); }
.ib-cards-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ib-cards-title { font-size: var(--h15-fs-15); font-weight: 750; }
.ib-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 13px; min-height: 260px; align-content: start; }
.ib-card-grid .h15-empty { grid-column: 1 / -1; margin-top: 70px; }
.ib-card {
    position: relative; display: flex; flex-direction: column; min-height: 168px; padding: 15px 15px 12px;
    border: 1px solid rgba(38, 155, 131, .25); border-radius: 14px;
    background: linear-gradient(150deg, #f6fffb 0%, #e8f6fb 100%);
    box-shadow: 0 4px 12px rgba(23, 87, 74, .1);
    transform: rotate(var(--tilt, -1deg)); transition: transform .16s, box-shadow .16s;
}
.ib-card:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 12px 26px rgba(23, 87, 74, .17); }
:root[data-theme="dark"] .ib .ib-card { background: linear-gradient(150deg, #142a26 0%, #142633 100%); border-color: rgba(111, 215, 184, .3); }
.ib-card-n { font-family: var(--h15-font-num); font-size: var(--h15-fs-11); font-weight: 800; color: var(--h15-accent-ink); letter-spacing: .08em; }
.ib-card-t { flex: 1; margin: 12px 0 14px; font-family: var(--h15-font-serif); font-size: 17px; font-weight: 700; line-height: 1.7; color: var(--h15-ink); }
.ib-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.ib-card-meta span { padding: 2px 8px; border-radius: 999px; background: var(--h15-card); color: var(--h15-ink-3); font-size: var(--h15-fs-11); }
:root[data-theme="dark"] .ib .ib-card-meta span { background: rgba(255, 255, 255, .06); }
.ib-card-actions { display: flex; justify-content: space-between; gap: 6px; }
.ib-card-actions button { padding: 3px 9px; border: 1px solid var(--h15-line); border-radius: 999px; background: var(--h15-card); color: var(--h15-ink-2); font-family: inherit; font-size: var(--h15-fs-11); cursor: pointer; }
.ib-card-actions button:hover { border-color: var(--h15-accent); color: var(--h15-accent-ink); }
.ib-card-actions button.is-fav { color: var(--h15-accent-ink); border-color: var(--h15-accent); font-weight: 700; }

.ib-fav-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.ib-fav-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--h15-line-2); font-size: var(--h15-fs-12); line-height: 1.7; color: var(--h15-ink-2); }
.ib-fav-list li:last-child { border-bottom: 0; }
.ib-fav-list button { border: 0; background: transparent; color: var(--h15-ink-3); cursor: pointer; }
.ib-ai { margin-top: 20px; }
.ib-ai-box { margin-top: 12px; padding: 15px 17px; border: 1px solid var(--h15-line); border-radius: 12px; background: var(--h15-card-2); white-space: pre-wrap; font-size: var(--h15-fs-14); line-height: 1.9; }
.ib-faq .h15-faq-q { font-family: var(--h15-font-serif); }
.ib-list-pre { margin: 0; white-space: pre-wrap; font-size: var(--h15-fs-14); line-height: 2; }
