/* Online translation index and shared language detail template. */
.yz-translation-page {
    padding-top: 4px;
    padding-bottom: 28px;
}

.yz-translation-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px 28px;
    border: 1px solid #dbe6ef;
    border-radius: 9px;
    background: linear-gradient(135deg, #f1f8ff, #fff);
    box-shadow: 0 2px 9px rgba(35, 68, 105, .035);
}

.yz-translation-hero > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
    height: 60px;
    border-radius: 10px;
    background: #dff1ff;
    color: #1685cf;
    font-size: 24px;
}

.yz-translation-hero > div {
    min-width: 0;
    flex: 1;
}

.yz-translation-hero h1 {
    margin: 0;
    color: #203a52;
    font-size: 28px;
}

.yz-translation-hero p {
    margin: 6px 0 0;
    color: #6d8194;
}

.yz-translation-detail .yz-translation-hero p {
    margin: 0 0 5px;
    font-size: 13px;
}

.yz-translation-hero > strong,
.yz-translation-hero > a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #d5e4ef;
    border-radius: 6px;
    color: #3183bb;
    font-weight: 600;
}

.yz-translation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.yz-translation-main {
    min-width: 0;
}

.yz-translation-section,
.yz-translator-card,
.yz-translation-copy,
.yz-translation-side > section,
.yz-translation-side > .layui-card {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(38, 68, 103, .035);
}

.yz-translation-section > header {
    padding: 16px 19px;
    border-bottom: 1px solid #e4ebf1;
}

.yz-translation-section h2,
.yz-translation-side h2,
.yz-translation-copy h2 {
    margin: 0;
    color: #2b465e;
    font-size: 18px;
}

.yz-translation-section header p {
    margin: 4px 0 0;
    color: #93a0ad;
    font-size: 12px;
}

.yz-translation-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 17px 18px 19px;
}

.yz-translation-featured a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e0e8ef;
    border-radius: 7px;
    color: #365269;
}

.yz-translation-featured a:hover {
    border-color: #b9d9ee;
    background: #f7fbfe;
}

.yz-translation-featured i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 7px;
    background: #e8f5ff;
    color: #1684cd;
    font-style: normal;
    font-weight: 700;
}

.yz-translation-featured span,
.yz-translation-featured strong,
.yz-translation-featured small {
    display: block;
    min-width: 0;
}

.yz-translation-featured small {
    overflow: hidden;
    margin-top: 4px;
    color: #98a4af;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yz-translation-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 12px;
    margin: 0;
    padding: 12px 18px 18px;
}

.yz-translation-list li,
.yz-translation-side-list li {
    min-width: 0;
    list-style: none;
}

.yz-translation-list a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 12px 5px;
    border-bottom: 1px dashed #e1e8ee;
    color: #3b566e;
}

.yz-translation-list a:hover {
    color: #1684cc;
}

.yz-translation-list a > i,
.yz-translation-list a > b {
    color: #9caab6;
    font-weight: normal;
}

.yz-translation-list a > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yz-translation-side > section > h2,
.yz-translation-side > .layui-card > .layui-card-header {
    height: auto;
    padding: 15px 17px;
    border-bottom: 1px solid #e4ebf1;
    color: #2b465e;
    font-size: 18px;
}

.yz-translation-side > section > p,
.yz-translation-side > section > ol {
    margin: 0;
    padding: 16px 18px;
    color: #607487;
    line-height: 1.9;
}

.yz-translation-side > section > ol {
    padding-left: 38px;
}

.yz-translator-card {
    padding: 22px;
}

.yz-translator-card .layui-tab {
    margin: 0;
}

.yz-translator-card .layui-tab-title {
    display: flex;
    height: 45px;
    border-bottom-color: #dce6ee;
}

.yz-translator-card .layui-tab-title li {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    color: #5d7183;
    line-height: 45px;
}

.yz-translator-card .layui-tab-title .layui-this {
    color: #1684cc;
    font-weight: 700;
}

.yz-translator-card .layui-tab-content {
    padding: 20px 0 0;
}

.yz-translator-card label {
    display: block;
    margin-bottom: 8px;
    color: #3b566d;
    font-weight: 600;
}

.yz-translator-card textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 210px;
    padding: 14px 15px;
    resize: vertical;
    border: 1px solid #cfdae4;
    border-radius: 7px;
    color: #304a61;
    font: inherit;
    line-height: 1.7;
    outline: none;
}

.yz-translator-card textarea:focus {
    border-color: #4fa2d8;
    box-shadow: 0 0 0 3px rgba(42, 143, 209, .08);
}

.yz-translator-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 12px;
}

.yz-translator-actions small {
    color: #96a2ad;
}

.yz-translator-actions button {
    padding: 10px 17px;
    border: 0;
    border-radius: 6px;
    background: #1688d1;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.yz-translator-actions button:hover {
    background: #0877bd;
}

.yz-translator-actions button:disabled {
    cursor: wait;
    opacity: .72;
}

.yz-translation-result {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #e5ebf0;
}

.yz-translation-result > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #3b566d;
}

.yz-translation-result > div button {
    padding: 5px 10px;
    border: 1px solid #d5e1ea;
    border-radius: 5px;
    background: #fff;
    color: #527086;
    cursor: pointer;
}

.yz-translator-card .yz-translation-result textarea {
    min-height: 150px;
    background: #f7fafc;
}

.yz-translator-note {
    margin: 15px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e5ebf0;
    color: #7f8e9c;
    font-size: 13px;
}

.yz-translation-copy {
    padding: 22px 24px;
}

.yz-translation-copy h2 {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #1688d1;
}

.yz-translation-copy h2:not(:first-child) {
    margin-top: 22px;
}

.yz-translation-copy p {
    margin: 0;
    color: #4f6579;
    line-height: 1.9;
}

.yz-translation-side-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 14px 16px 17px;
}

.yz-translation-side-list a {
    display: block;
    overflow: hidden;
    padding: 8px 7px;
    border-radius: 5px;
    background: #f5f8fb;
    color: #425c72;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .yz-translation-layout {
        grid-template-columns: 1fr;
    }

    .yz-translation-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .yz-translation-side > .layui-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .yz-translation-hero {
        align-items: flex-start;
        padding: 19px 15px;
    }

    .yz-translation-hero > span {
        flex-basis: 48px;
        height: 48px;
        font-size: 19px;
    }

    .yz-translation-hero h1 {
        overflow-wrap: anywhere;
        font-size: 23px;
    }

    .yz-translation-hero > strong,
    .yz-translation-hero > a {
        display: none;
    }

    .yz-translation-featured {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .yz-translation-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 9px 12px 14px;
    }

    .yz-translator-card {
        padding: 15px 13px;
    }

    .yz-translator-card .layui-tab-title li {
        padding: 0 5px;
        font-size: 13px;
    }

    .yz-translator-card textarea {
        min-height: 175px;
    }

    .yz-translator-actions {
        display: block;
    }

    .yz-translator-actions small {
        display: block;
        margin-bottom: 10px;
    }

    .yz-translator-actions button {
        width: 100%;
    }

    .yz-translation-copy {
        padding: 19px 16px;
    }

    .yz-translation-side {
        display: block;
    }
}
