/**
 * JWT 解析/生成工具
 * 页面外壳（顶部导航、居中容器、底部版权行）由 ../../tools-page.css 提供，
 * 本文件只保留该工具的专属样式。
 */

/* 代码 / 密文区域统一使用等宽字体，便于查看与复制 */
#otWorkspace textarea,
#otWorkspace pre,
#otWorkspace code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

/* 全局消息提示框 */
.ot_notification {
    top: 20px;
    right: 16px;
    z-index: 100;
    transform: translateX(calc(100% + 24px));
    pointer-events: none;
}

@media (max-width: 900px) {
    .ot_notification {
        top: 16px;
        right: 12px;
    }
}

/* 补齐页面使用到的自定义工具类 */

/* 统一的过渡效果 */
.transition-all-300 {
    transition: all 300ms ease-in-out;
}

/* 错误提示抖动动画（与 showError 配合使用） */
@keyframes ot-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.animate-shake {
    animation: ot-shake 0.4s ease-in-out;
}

/* ============ 底部 JWT 相关知识模块 ============ */
.ot_knowledge__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    display: flex;
    align-items: center;
}

/* 知识卡片 */
.ot_knowledge__card {
    background: #f7f9fb;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 18px 20px;
    box-sizing: border-box;
}

/* 卡片标题：适度缩小，与图标对齐 */
.ot_knowledge__card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    line-height: 1.4;
}

/* 卡片正文 */
.ot_knowledge__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #4e5969;
}

/* 卡片内列表 */
.ot_knowledge__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.8;
    color: #4e5969;
}

.ot_knowledge__list li {
    margin-bottom: 4px;
}

.ot_knowledge__list li:last-child {
    margin-bottom: 0;
}

/* 标准声明表格 */
.ot_knowledge__table {
    border-collapse: collapse;
    width: 100%;
}

.ot_knowledge__table thead tr {
    background: #eef2f6;
}

.ot_knowledge__table th,
.ot_knowledge__table td {
    border-bottom: 1px solid #eef0f3;
}

.ot_knowledge__table tbody tr:last-child td {
    border-bottom: none;
}

.ot_knowledge__table tbody tr:hover td {
    background: #f0f7fc;
}
