@charset "UTF-8";
/**
 * 在线工具（online_other / online_crypto 等）统一页面外壳
 * 布局：顶部导航（< 首页 / 分类 / 当前工具） + 水平居中的内容区（限制最大宽度） + 底部版权备案
 * 命名前缀说明：ot_ = online tools，具体工具的样式请放在各自工具的 css 中。
 */

/* ============ 基础 ============ */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #f0f2f5;
    color: #1d2129;
    font-family: Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.ot_app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============ 顶部导航：< 首页 / 分类 / 当前工具 ============ */
.ot_page_nav {
    flex: 0 0 auto;
    padding: 24px 20px 10px;
}

.ot_page_nav__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #86909c;
}

.ot_page_nav__inner a {
    color: #4e5969;
    text-decoration: none;
    transition: color 0.18s;
}

.ot_page_nav__inner a:hover {
    color: #0989E2;
}

.ot_page_nav__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.ot_page_nav__back .fa {
    font-size: 16px;
}

.ot_page_nav__sep {
    color: #c9cdd4;
}

.ot_page_nav__current {
    color: #1d2129;
    font-weight: 600;
}

/* ============ 内容区：水平居中 + 最大宽度 ============ */
.ot_page {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 24px;
    box-sizing: border-box;
}

.ot_workspace {
    display: block;
}

.ot_workspace__inner {
    min-height: 0;
}

/* 工作区标题 */
.ot_workspace__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2129;
}

.ot_workspace__title i {
    color: #0989E2;
}

.ot_workspace__title small {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 400;
    color: #86909c;
}

/* 工作区通用容器美化（兼容工具内部已有的 tailwind 类） */
.ot_workspace__inner .rounded-2xl,
.ot_workspace__inner .rounded-xl,
.ot_workspace__inner .rounded-lg {
    border: 1px solid #eef0f3;
}

.ot_workspace__inner textarea,
.ot_workspace__inner input[type="text"],
.ot_workspace__inner input[type="number"],
.ot_workspace__inner select {
    font-family: inherit;
}

.ot_workspace__inner textarea:focus,
.ot_workspace__inner input:focus,
.ot_workspace__inner select:focus {
    outline: none;
}

.ot_workspace__inner hr {
    border: none;
    border-top: 1px solid #eef0f3;
}

/* ============ 底部版权备案（不设单独背景，跟随页面底色） ============ */
/* 版权与备案号由后台配置（tailData.version），可能包含 p / div / span / a / img 等标签，
   这里统一内联化后用 flex 居中，避免备案图标把行高顶偏 */
.ot_copyright {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 2px 8px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px 34px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    color: #86909c;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.ot_copyright p,
.ot_copyright div,
.ot_copyright span,
.ot_copyright section,
.ot_copyright ul,
.ot_copyright li {
    display: inline;
    margin: 0;
    padding: 0;
    line-height: inherit;
}

.ot_copyright ul,
.ot_copyright li {
    list-style: none;
}

.ot_copyright img {
    height: 14px;
    width: auto;
    max-width: none;
    margin: 0 2px;
    vertical-align: -2px;
}

.ot_copyright a {
    color: #86909c !important;
    text-decoration: none !important;
}

.ot_copyright a:hover {
    color: #0989E2 !important;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .ot_page_nav {
        padding: 16px 12px 8px;
    }

    .ot_page_nav__inner {
        padding: 0 12px;
        font-size: 13px;
    }

    .ot_page {
        padding: 12px 12px 20px;
    }

    .ot_copyright {
        padding: 10px 12px 26px;
        font-size: 12px;
    }
}
