/* AI 工具内页：左侧介绍，右侧同类工具 */
.td-page { padding-top: 20px; }
.td-crumb { margin-bottom: 14px; }
.td-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.td-main { display: grid; gap: 20px; min-width: 0; }
.td-card {
    padding: 24px 26px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

/* ---------- 头部 ---------- */
.td-hero { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.td-logo {
    width: 72px;
    height: 72px;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: var(--border-light);
    object-fit: cover;
}
.td-logo-initial { display: inline-flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.td-hero-info { min-width: 0; }
.td-hero h1 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.td-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.td-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}
.td-tag i { font-size: 11px; }
.td-tag-hot { background: #FEF3E2; color: #C2410C; }
.td-tag-host { background: var(--border-light); color: var(--text-secondary); font-weight: 500; }
.td-brief { margin-top: 10px; color: var(--text-secondary); font-size: 15px; font-weight: 400; line-height: 1.7; }
.td-actions { display: flex; flex-direction: column; gap: 10px; }
.td-go, .td-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s;
}
.td-go { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(52, 120, 229, .25); }
.td-go:hover { background: var(--primary-hover); color: #fff; }
.td-go i { font-size: 12px; }
.td-back { border: 1px solid var(--border); background: #fff; color: var(--text-secondary); }
.td-back:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 正文 ---------- */
.td-sec-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.td-sec-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.td-content { margin-top: 14px; color: var(--text-secondary); font-size: 15.5px; font-weight: 400; line-height: 1.85; }
.td-content h2 { margin: 24px 0 8px; color: var(--text-primary); font-size: 18px; font-weight: 700; }
.td-content h2:first-child { margin-top: 0; }
.td-content h3 { margin: 16px 0 4px; color: var(--text-primary); font-size: 16px; font-weight: 700; }
.td-content p + p { margin-top: 8px; }
.td-content ul { margin: 6px 0; padding-left: 20px; }
.td-content li + li { margin-top: 4px; }
.td-content strong { color: var(--text-primary); }
.td-pending { margin-top: 10px; color: var(--text-muted); font-size: 14px; }
.td-note {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}

/* ---------- 网站预览：浏览器外框 + 截图，只看不能点 ---------- */
.td-browser {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(36, 50, 71, .08);
    pointer-events: none;
    user-select: none;
}
.td-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid var(--border-light);
    background: #F6F8FC;
}
.td-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E1E7F0; }
.td-browser-bar i:nth-child(1) { background: #F87171; }
.td-browser-bar i:nth-child(2) { background: #FBBF24; }
.td-browser-bar i:nth-child(3) { background: #34D399; }
.td-browser-bar span {
    flex: 1;
    max-width: 320px;
    margin-left: 10px;
    padding: 3px 12px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.td-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.td-preview-note { margin-top: 10px; padding-top: 0; border-top: 0; }

/* ---------- 右侧同类工具 ---------- */
.td-side { position: sticky; top: 84px; min-width: 0; }
.td-related ul { margin-top: 12px; list-style: none; }
.td-related li + li { margin-top: 2px; }
.td-related a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    margin: 0 -10px;
    border-radius: 10px;
    transition: background .15s;
}
.td-related a:hover { background: var(--primary-light); }
.td-related img, .td-rel-initial {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    object-fit: cover;
}
.td-rel-initial { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.td-rel-txt { display: flex; flex-direction: column; min-width: 0; }
.td-rel-txt strong { overflow: hidden; color: var(--text-primary); font-size: 14.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.td-rel-txt em { overflow: hidden; color: var(--text-muted); font-size: 12.5px; font-style: normal; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 980px) {
    .td-layout { grid-template-columns: minmax(0, 1fr); }
    .td-side { position: static; }
}
@media (max-width: 640px) {
    .td-page { padding-top: 12px; }
    .td-card { padding: 18px 16px; border-radius: 14px; }
    .td-hero { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
    .td-logo { width: 56px; height: 56px; border-radius: 14px; }
    .td-logo-initial { font-size: 24px; }
    .td-hero h1 { font-size: 21px; }
    .td-actions { grid-column: 1 / -1; flex-direction: row; }
    .td-go, .td-back { flex: 1; padding: 0 12px; }
    .td-content { font-size: 15px; }
}
