/**
 * 百宝兜 · 通用工具结果区样式
 * 供「小红书 / 知乎 / 视频号 / B站 / 一文多发 …」等新工具共用
 */

/* ============ 结果容器 ============ */
.tk-result { margin-top: 4px; }

.tk-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 12px;
    padding: 0 4px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
}
.tk-meta b { color: #fff; }

/* ============ 卡片 ============ */
.tk-item {
    background: rgba(255, 255, 255, .97);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    transition: box-shadow .15s, transform .15s;
}
.tk-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.tk-item-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tk-index {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: #16baaa;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.tk-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    color: #1f1f1f;
    word-break: break-word;
}

/* ============ 正文 ============ */
.tk-body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.95;
    color: #333;
    word-break: break-word;
}
.tk-body p { margin: 0 0 10px; }
.tk-body p:last-child { margin-bottom: 0; }
.tk-body h4 {
    margin: 14px 0 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #111;
}
.tk-body .tk-quote {
    margin: 10px 0;
    padding: 10px 14px;
    background: #f7fbfa;
    border-left: 3px solid #16baaa;
    border-radius: 6px;
    color: #444;
    font-size: 13.5px;
}
.tk-body ol, .tk-body ul {
    margin: 8px 0;
    padding-left: 22px;
}
.tk-body li { margin: 5px 0; }

/* ============ 标签 ============ */
.tk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.tk-tag {
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 4px;
    background: #f2fbfa;
    border: 1px solid #d9f2ef;
    color: #0e9c8e;
}
.tk-tag.tk-tag-hot {
    background: #fff0f3;
    border-color: #ffd6e0;
    color: #e6355f;
}
.tk-tag.tk-tag-gray {
    background: #f5f5f5;
    border-color: #eaeaea;
    color: #777;
}

/* ============ 操作按钮 ============ */
.tk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}
.tk-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 16px;
    border: 1px solid #d9f2ef;
    background: #fff;
    color: #0e9c8e;
    font-size: 12.5px;
    cursor: pointer;
    transition: all .15s;
}
.tk-btn:hover {
    background: #f2fbfa;
    border-color: #16baaa;
}
.tk-btn.tk-btn-main {
    background: #16baaa;
    border-color: #16baaa;
    color: #fff;
}
.tk-btn.tk-btn-main:hover { background: #0e9c8e; }
.tk-btn.copied {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
}

/* ============ 分段小标题 ============ */
.tk-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}
.tk-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.tk-section-label {
    display: inline-block;
    padding: 1px 9px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: #f2fbfa;
    border: 1px solid #d9f2ef;
    color: #0e9c8e;
    font-size: 11.5px;
}

/* ============ 提示 / 空态 ============ */
.tk-hint {
    background: rgba(255, 255, 255, .1);
    border: 1px dashed rgba(255, 255, 255, .3);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .82);
}
.tk-hint b { color: #fff; }

/* ============ Toast ============ */
.tk-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.96);
    z-index: 99999;
    padding: 11px 22px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 13.5px;
    opacity: 0;
    transition: opacity .18s, transform .18s;
    pointer-events: none;
    max-width: 80vw;
    text-align: center;
}
.tk-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 640px) {
    .tk-item { padding: 14px; }
    .tk-title { font-size: 15px; }
    .tk-actions { gap: 6px; }
    .tk-btn { padding: 5px 11px; font-size: 12px; }
}
