/* 工具箱·统一页面样式（开发工具/时间工具共用；配合 home/tools/_layout.blade.php） */
.tl_h1 { font-size: 24px; color: #333; text-align: center; margin: 6px 0 4px; }
.tl_sub { font-size: 13px; color: #888; text-align: center; margin: 0 0 18px; line-height: 1.7; }
.tl_card {
    background: #fff; border-radius: 10px; padding: 20px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06); max-width: 900px; margin: 0 auto;
}
.tl_card.wide { max-width: 1100px; }
.tl_row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.tl_label { color: #666; font-size: 14px; }
.tl_btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
textarea.tl_io {
    width: 100%; min-height: 160px; border: 1px solid #dfe3ea; border-radius: 6px;
    padding: 12px; font-size: 14px; line-height: 1.6; background: #fbfcfe;
    font-family: Consolas, Monaco, monospace; resize: vertical; box-sizing: border-box;
}
.tl_out {
    width: 100%; min-height: 160px; border: 1px solid #eef1f5; border-radius: 6px;
    padding: 12px; font-size: 14px; line-height: 1.6; background: #f7f9fc;
    font-family: Consolas, Monaco, monospace; word-break: break-all; white-space: pre-wrap; box-sizing: border-box;
}
.tl_hint { color: #e5744a; font-size: 13px; margin: 8px 0; min-height: 18px; text-align: center; }
.tl_hint.ok { color: #17a673; }
.tl_col { flex: 1; min-width: 260px; }
/* 结果行（键值对，如日期格式/命名风格） */
.tl_kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0f2f6; gap: 12px; }
.tl_kv:last-child { border-bottom: none; }
.tl_kv_k { color: #889; font-size: 13px; flex: none; }
.tl_kv_v { color: #0068c1; font-weight: 700; font-size: 15px; cursor: pointer; user-select: none; text-align: right; word-break: break-all; font-family: Consolas, Monaco, monospace; }
/* 科普知识 */
.tl_knowledge {
    max-width: 900px; margin: 22px auto 0; background: #fff; border-radius: 10px;
    padding: 18px 22px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.tl_know_t { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid #0068c1; }
.tl_know_item { margin-bottom: 14px; }
.tl_know_item:last-child { margin-bottom: 0; }
.tl_know_h { font-size: 14px; font-weight: 700; color: #0068c1; margin-bottom: 4px; }
.tl_know_p { font-size: 13px; color: #666; line-height: 1.85; }
/* 更多工具互链 */
.tl_cats { max-width: 900px; margin: 26px auto 0; }
.tl_cats_t { font-size: 16px; font-weight: 700; color: #333; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.tl_cats_t::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: #0068c1; }
.tl_cats_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tl_cat {
    background: #fff; border: 1px solid #eef1f5; border-radius: 8px; padding: 12px 8px;
    text-align: center; font-size: 14px; color: #444; transition: all .2s;
}
.tl_cat:hover { border-color: #0068c1; color: #0068c1; box-shadow: 0 2px 10px rgba(0, 104, 193, .12); }
.tl_cat.cur { border-color: #0068c1; color: #0068c1; background: #eef5fc; font-weight: 700; }
@media screen and (max-width: 800px) {
    .tl_cats_grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 480px) {
    .tl_cats_grid { grid-template-columns: repeat(2, 1fr); }
}
