/* 网址评分样式 - 一秒互联公司 www.yimiaonet.com */
.site-go .yms-rating-entry {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 5px 13px;
    border: 1px solid rgba(250, 82, 82, .28);
    background: #fff;
    color: #4b515a;
    vertical-align: middle;
    box-shadow: 0 7px 18px rgba(35, 38, 47, .07);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.site-go .yms-rating-entry:hover,
.site-go .yms-rating-entry:focus-visible {
    color: #3e434b;
    border-color: #fa5252;
    box-shadow: 0 10px 24px rgba(250, 82, 82, .15);
    transform: translateY(-2px);
}

.yms-rating-entry__star {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fff2e8;
    color: #ff8a36;
    font-size: 17px;
    line-height: 1;
}

.yms-rating-entry__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.yms-rating-entry__copy strong {
    font-size: 13px;
    font-weight: 600;
}

.yms-rating-entry__copy small {
    margin-top: 3px;
    color: #9aa0a8;
    font-size: 10px;
}

body.yms-rating-open {
    overflow: hidden;
}

.yms-rating-modal[hidden] {
    display: none !important;
}

.yms-rating-modal {
    position: fixed;
    z-index: 100080;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.yms-rating-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 31, 38, .58);
    backdrop-filter: blur(7px);
    animation: yms-rating-fade .25s ease both;
}

.yms-rating-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(820px, 100%);
    max-height: min(880px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(41, 45, 54, .08);
    border-radius: 8px;
    outline: none;
    background: #fff;
    box-shadow: 0 28px 80px rgba(22, 25, 31, .28);
    animation: yms-rating-dialog-in .42s cubic-bezier(.2, .85, .25, 1) both;
}

.yms-rating-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #eef0f3;
}

.yms-rating-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #fa5252;
    font-size: 12px;
    font-weight: 600;
}

.yms-rating-dialog__header h2 {
    margin: 0;
    color: #292d34;
    font-size: 20px;
    line-height: 1.4;
}

.yms-rating-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #727982;
    font: 300 25px/1 Arial, sans-serif;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.yms-rating-close:hover {
    background: #fa5252;
    color: #fff;
    transform: rotate(90deg);
}

.yms-rating-overview {
    display: grid;
    grid-template-columns: 1.2fr .9fr 1.2fr;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    background: #fafbfc;
}

.yms-rating-score {
    display: flex;
    gap: 14px;
    align-items: center;
}

.yms-rating-score__ring {
    position: relative;
    display: grid;
    place-content: center;
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: conic-gradient(#fa5252 var(--yms-score-progress), #e9ecef 0);
    text-align: center;
}

.yms-rating-score__ring::before {
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    background: #fff;
    content: '';
}

.yms-rating-score__ring span,
.yms-rating-score__ring small {
    position: relative;
    z-index: 1;
}

.yms-rating-score__ring span {
    color: #292d34;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.yms-rating-score__ring small {
    margin-top: 3px;
    color: #a0a6ae;
    font-size: 10px;
}

.yms-rating-stars {
    overflow: hidden;
    width: 89px;
    color: #dfe2e6;
    font-size: 18px;
    letter-spacing: 0;
    white-space: nowrap;
}

.yms-rating-stars span.is-active {
    color: #ff9b42;
}

.yms-rating-stars::after {
    display: none;
}

.yms-rating-score p {
    margin: 5px 0 0;
    color: #9298a1;
    font-size: 12px;
}

.yms-rating-score p strong {
    color: #555b64;
}

.yms-rating-indexes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.yms-rating-indexes > div {
    min-width: 0;
    padding: 11px 8px;
    border-left: 2px solid #fa5252;
    background: #fff;
}

.yms-rating-indexes strong,
.yms-rating-indexes span {
    display: block;
}

.yms-rating-indexes strong {
    color: #343941;
    font-size: 20px;
    line-height: 1.2;
}

.yms-rating-indexes > div > span {
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #969ca4;
    font-size: 10px;
}

.yms-rating-distribution {
    display: grid;
    gap: 5px;
}

.yms-rating-distribution__row {
    display: grid;
    grid-template-columns: 27px minmax(60px, 1fr) 29px;
    gap: 7px;
    align-items: center;
    color: #848b94;
    font-size: 10px;
}

.yms-rating-distribution__track {
    height: 5px;
    overflow: hidden;
    border-radius: 3px;
    background: #e6e9ed;
}

.yms-rating-distribution__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ff9b42;
    transition: width .7s cubic-bezier(.2, .8, .2, 1);
}

.yms-rating-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 46px;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.yms-rating-tabs button {
    position: relative;
    border: 0;
    background: #fff;
    color: #8b9199;
    font-size: 13px;
    cursor: pointer;
}

.yms-rating-tabs button::after {
    position: absolute;
    right: 30%;
    bottom: -1px;
    left: 30%;
    height: 2px;
    background: #fa5252;
    content: '';
    opacity: 0;
    transform: scaleX(.2);
    transition: opacity .2s ease, transform .25s ease;
}

.yms-rating-tabs button.is-active {
    color: #343941;
    font-weight: 600;
}

.yms-rating-tabs button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.yms-rating-panels {
    min-height: 290px;
    overflow-y: auto;
}

.yms-rating-panel {
    padding: 20px 24px;
    animation: yms-rating-panel-in .25s ease both;
}

.yms-rating-panel[hidden] {
    display: none !important;
}

.yms-rating-form fieldset {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.yms-rating-form legend,
.yms-review-field > span {
    display: block;
    margin-bottom: 8px;
    color: #444a52;
    font-size: 13px;
    font-weight: 600;
}

.yms-rating-form legend small,
.yms-review-field > span small {
    color: #a3a9b0;
    font-size: 10px;
    font-weight: 400;
}

.yms-star-picker {
    display: flex;
    width: max-content;
    gap: 5px;
}

.yms-star-picker button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #dfe2e6;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: color .16s ease, transform .16s ease;
}

.yms-star-picker button.is-active,
.yms-star-picker button.is-preview {
    color: #ff9b42;
}

.yms-star-picker button:hover {
    transform: translateY(-3px) scale(1.08);
}

.yms-rating-hint {
    display: inline-block;
    margin: 5px 0 0 8px;
    color: #9ca2aa;
    font-size: 11px;
}

.yms-rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yms-rating-tags label {
    margin: 0;
    cursor: pointer;
}

.yms-rating-tags input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.yms-rating-tags span {
    display: block;
    padding: 6px 10px;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    color: #707780;
    font-size: 11px;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.yms-rating-tags input:checked + span {
    border-color: #fa5252;
    background: #fff3f3;
    color: #e64949;
}

.yms-review-field {
    position: relative;
    display: block;
    margin: 0 0 14px;
}

.yms-review-field textarea {
    display: block;
    width: 100%;
    min-height: 94px;
    resize: vertical;
    padding: 11px 13px 25px;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    outline: none;
    background: #fafbfc;
    color: #434950;
    font: inherit;
    line-height: 1.7;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.yms-review-field textarea:focus {
    border-color: #fa5252;
    box-shadow: 0 0 0 3px rgba(250, 82, 82, .1);
}

.yms-review-field > small {
    position: absolute;
    right: 10px;
    bottom: 7px;
    color: #abb0b7;
    font-size: 10px;
}

.yms-rating-confirm {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    color: #737a83;
    font-size: 11px;
    cursor: pointer;
}

.yms-rating-confirm input {
    margin-top: 2px;
    accent-color: #fa5252;
}

.yms-rating-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 16px;
}

.yms-rating-submit-row p {
    flex: 1;
    margin: 0;
    color: #e64949;
    font-size: 11px;
}

.yms-rating-submit-row button {
    min-width: 128px;
}

.yms-rating-submit-row button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.yms-rating-login,
.yms-existing-rating,
.yms-review-empty {
    padding: 30px 15px;
    text-align: center;
}

.yms-rating-login__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff2e8;
    color: #ff913d;
    font-size: 24px;
}

.yms-rating-login h3,
.yms-existing-rating h3 {
    margin: 0 0 6px;
    color: #363c44;
    font-size: 16px;
}

.yms-rating-login p,
.yms-existing-rating p,
.yms-review-empty {
    color: #939aa3;
    font-size: 12px;
}

.yms-existing-rating__stars {
    margin-bottom: 9px;
    color: #ff9b42;
    font-size: 23px;
}

.yms-existing-rating__review {
    max-width: 560px;
    margin: 12px auto 0 !important;
    color: #5f6670 !important;
    line-height: 1.75;
}

.yms-review-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.yms-review-toolbar strong {
    color: #454b54;
    font-size: 13px;
}

.yms-review-toolbar select {
    height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #69717a;
    font-size: 11px;
}

.yms-review-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #eff1f3;
}

.yms-review-item__avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #656c75;
    font-size: 14px;
    font-weight: 600;
}

.yms-review-item__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yms-review-item__head strong {
    color: #444a52;
    font-size: 12px;
}

.yms-review-item__head time {
    margin-left: auto;
    color: #a6abb2;
    font-size: 10px;
}

.yms-review-item__stars {
    color: #ff9b42;
    font-size: 12px;
    white-space: nowrap;
}

.yms-review-item p {
    margin: 7px 0 0;
    color: #606771;
    font-size: 12px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.yms-review-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.yms-review-item__tags span,
.yms-existing-rating__tags span {
    display: inline-block;
    margin: 3px;
    padding: 3px 7px;
    border-radius: 3px;
    background: #fff3f3;
    color: #e85959;
    font-size: 9px;
}

.yms-load-more {
    display: block;
    margin: 16px auto 2px;
    padding: 7px 18px;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    background: #fff;
    color: #747b84;
    font-size: 11px;
    cursor: pointer;
}

.yms-rating-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 24px;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
}

.yms-rating-dialog__footer p {
    margin: 0;
    color: #9ba1a9;
    font-size: 9px;
    line-height: 1.55;
}

.yms-rating-dialog__footer a {
    flex: 0 0 auto;
    color: #8d949d;
    font-size: 9px;
    white-space: nowrap;
}

.yms-rating-burst {
    position: fixed;
    z-index: 100100;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fa5252;
    pointer-events: none;
    animation: yms-rating-burst .65s ease-out both;
}

@keyframes yms-rating-fade {
    from { opacity: 0; }
}

@keyframes yms-rating-dialog-in {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes yms-rating-panel-in {
    from { opacity: 0; transform: translateY(5px); }
}

@keyframes yms-rating-burst {
    to {
        opacity: 0;
        transform: translate(var(--yms-burst-x), var(--yms-burst-y)) scale(.2);
    }
}

@media (max-width: 767px) {
    .site-go .yms-rating-entry {
        margin-top: 8px;
    }

    .yms-rating-modal {
        place-items: end center;
        padding: 0;
    }

    .yms-rating-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 8px 8px 0 0;
        animation-name: yms-rating-sheet-in;
    }

    .yms-rating-dialog__header {
        padding: 17px 16px 13px;
    }

    .yms-rating-dialog__header h2 {
        max-width: calc(100vw - 90px);
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .yms-rating-overview {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 15px 16px;
    }

    .yms-rating-distribution {
        grid-column: 1 / -1;
    }

    .yms-rating-score__ring {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
    }

    .yms-rating-score__ring span {
        font-size: 20px;
    }

    .yms-rating-panel {
        padding: 17px 16px;
    }

    .yms-rating-dialog__footer {
        align-items: flex-start;
        padding: 9px 16px;
    }
}

@keyframes yms-rating-sheet-in {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
    .yms-rating-overview {
        grid-template-columns: 1fr;
    }

    .yms-rating-distribution {
        grid-column: auto;
    }

    .yms-rating-indexes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yms-rating-dialog__footer {
        display: block;
    }

    .yms-rating-dialog__footer a {
        display: inline-block;
        margin-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yms-rating-modal *,
    .yms-rating-entry,
    .yms-rating-burst {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
