/* 站长工具：沿用全站蓝色工具站视觉，保留各工具原有交互结构。 */
.yz-webmaster-tool {
    padding-bottom: 12px;
}

.yz-webmaster-tool .yz-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    margin-top: 14px;
}

/* Layui 用伪元素清除浮动；在网格布局中必须取消，否则会占掉第一列。 */
.yz-webmaster-tool .yz-tool-layout::before,
.yz-webmaster-tool .yz-tool-layout::after {
    display: none;
    content: none;
}

.yz-webmaster-tool .yz-tool-main,
.yz-webmaster-tool .yz-tool-side {
    float: none;
    width: auto;
    padding: 0;
}

.yz-webmaster-tool .layui-card {
    overflow: hidden;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(31, 78, 121, .035);
}

.yz-webmaster-tool .yz-tool-primary {
    border-top: 3px solid #2f80ed;
}

.yz-webmaster-tool .yz-tool-primary > .layui-card-header:first-child,
.yz-webmaster-tool .yz-tool-heading {
    box-sizing: border-box;
    height: auto;
    min-height: 58px;
    padding: 15px 20px;
    border-bottom: 1px solid #e2eaf3;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    line-height: 1.45;
}

.yz-webmaster-tool .yz-tool-heading h1,
.yz-webmaster-tool .yz-tool-primary h1 {
    margin: 0;
    color: #233f61;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .01em;
}

.yz-webmaster-tool .yz-tool-primary > .layui-card-body {
    padding: 22px;
}

.yz-webmaster-tool .layui-card-header.box__tit,
.yz-webmaster-tool .yz-tool-side .layui-card-header {
    position: relative;
    height: auto;
    min-height: 48px;
    box-sizing: border-box;
    padding: 13px 16px 12px 27px;
    border-bottom: 1px solid #e3eaf2;
    color: #294766;
    line-height: 1.45;
}

.yz-webmaster-tool .layui-card-header.box__tit::before,
.yz-webmaster-tool .yz-tool-side .layui-card-header::before {
    position: absolute;
    top: 16px;
    left: 14px;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: #ff922b;
    content: "";
}

.yz-webmaster-tool .yz-tool-side .layui-card-body {
    color: #536b84;
    font-size: 14px;
    line-height: 1.9;
}

.yz-webmaster-tool textarea.layui-textarea,
.yz-webmaster-tool input.layui-input,
.yz-webmaster-tool select,
.yz-webmaster-tool .layui-select-title input {
    border-color: #cfdceb;
    border-radius: 5px;
}

.yz-webmaster-tool textarea.layui-textarea {
    padding: 12px 14px;
    color: #29425d;
    line-height: 1.7;
    resize: vertical;
}

.yz-webmaster-tool textarea.layui-textarea:focus,
.yz-webmaster-tool input.layui-input:focus {
    border-color: #2f80ed !important;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, .09);
}

.yz-webmaster-tool .layui-btn:not(.layui-btn-primary):not(.layui-btn-disabled) {
    border-radius: 5px;
    background: #2f80ed;
}

.yz-webmaster-tool .layui-btn-primary {
    border-color: #cbd8e7;
    border-radius: 5px;
    color: #385571;
    background: #fff;
}

.yz-webmaster-tool table {
    max-width: 100%;
}

.yz-webmaster-tool img,
.yz-webmaster-detail img {
    max-width: 100%;
    height: auto;
}

.yz-webmaster-tool pre,
.yz-webmaster-tool code,
.yz-webmaster-detail pre,
.yz-webmaster-detail code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.yz-webmaster-detail .layui-card {
    border: 1px solid #dce6f2;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(31, 78, 121, .035);
}

@media (max-width: 991px) {
    .yz-webmaster-tool .yz-tool-layout {
        display: block;
    }

    .yz-webmaster-tool .yz-tool-main,
    .yz-webmaster-tool .yz-tool-side {
        width: 100%;
    }

    .yz-webmaster-tool .yz-tool-side {
        margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .yz-webmaster-tool .yz-tool-layout {
        margin-top: 10px;
    }

    .yz-webmaster-tool .yz-tool-heading h1,
    .yz-webmaster-tool .yz-tool-primary h1 {
        font-size: 20px;
    }

    .yz-webmaster-tool .yz-tool-primary > .layui-card-body {
        padding: 15px;
    }

    .yz-webmaster-tool .layui-btn {
        margin-bottom: 7px;
    }

    .yz-webmaster-tool textarea.layui-textarea {
        min-height: 150px;
    }
}
