/* 官网错误页样式（templates/error/404.html 与 error/error.html）。
   视觉与全站一致：全部取站点 token，输入框对齐站内表单（#ddd 边 / #fafafa 底 / 聚焦主题蓝），
   按钮 4px 小圆角与表单提交按钮（联系页、询价页）同规范，高度统一 48px 便于移动端触控。
   方向属性使用逻辑属性，Arabic RTL 下由 dir="rtl" 自动镜像。 */

.err {
    padding: 88px 0 120px;
}

.err__hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* 小标题：复用站点 .eyebrow 的字级与字距，仅按主题色取值 */
.err__hero .eyebrow {
    color: var(--site-primary-hover);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0;
}

.err__title {
    font-size: 46px;
    margin: 14px 0 16px;
}

.err__desc {
    font-size: 16px;
    color: var(--site-muted);
    line-height: 1.7;
}

/* 搜索区：桌面横向（输入框伸缩 + 按钮定宽），移动端纵向通栏 */
.err__search {
    display: flex;
    gap: 10px;
    max-width: 540px;
    margin: 30px auto 0;
}

.err__search-input {
    flex: 1;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    color: #323232;
    background: #fafafa;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.err__search-input:focus {
    border-color: var(--site-primary);
    background: #fff;
}

.err__search-btn {
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    background: var(--site-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.err__search-btn:hover {
    background: var(--site-primary-hover);
}

/* 动作按钮：主按钮复用站点 .button，次级按钮用中性描边 */
.err__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.err__actions .button {
    margin-top: 0;
    height: 48px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
}

.err__ghost {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 4px;
    border: 1px solid var(--site-neutral-200);
    color: var(--site-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

.err__ghost:hover {
    border-color: var(--site-primary);
    color: var(--site-primary-hover);
    background: var(--site-tint-50);
}

@media screen and (max-width: 640px) {
    .err {
        padding: 48px 0 72px;
    }

    .err__title {
        font-size: 32px;
    }

    /* 纵向 flex 下 flex:1 会把 height 覆盖成 flex-basis:0，输入框被压瘪（实测仅 18px 高），
       必须显式取消 flex 增长并保留固定高度。 */
    .err__search {
        flex-direction: column;
    }

    .err__search-input {
        flex: 0 0 auto;
        height: 48px;
    }

    .err__search-btn {
        width: 100%;
    }

    .err__actions {
        flex-direction: column;
    }

    .err__actions .button,
    .err__ghost {
        width: 100%;
        justify-content: center;
    }
}
