/* 文章投票前台样式 */
.vote-wrap {
    margin: 32px 0 8px;
}

.vote-box {
    position: relative;
    margin: 0 0 18px;
    padding: 18px 20px 16px;
    border: 1px solid rgba(18, 35, 71, .10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(18, 35, 71, .05);
    color: #333;
}

.vote-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vote-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: inherit;
}

.vote-title::before,
.vote-title::after {
    display: none;
}

.vote-meta {
    flex: 0 0 auto;
    padding-top: 2px;
    font-size: 12px;
    color: #8a93a6;
    white-space: nowrap;
}

.vote-opts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vote-opts li {
    list-style: none;
}

.vote-opt {
    position: relative;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    background: #fbfcfe;
    transition: border-color .15s, background .15s;
}

.vote-opt:last-child {
    margin-bottom: 0;
}

.vote-opt:hover {
    border-color: #b9c6f5;
}

.vote-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.vote-label input {
    margin: 0;
    flex: 0 0 auto;
}

.vote-opt-text {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.vote-other-input {
    display: block;
    width: calc(100% - 24px);
    margin: 8px 0 0 24px;
    padding: 6px 10px;
    border: 1px solid #dfe3ec;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    outline: none;
    background: #fff;
}

.vote-other-input:focus {
    border-color: #7f9bff;
}

.vote-other-input:disabled {
    background: #f5f6fa;
    cursor: not-allowed;
}

.vote-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.vote-submit {
    padding: 7px 22px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #5b7cfa, #7f9bff);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: opacity .15s;
}

.vote-submit:hover {
    opacity: .88;
}

.vote-submit:disabled {
    opacity: .6;
    cursor: default;
}

.vote-tip {
    font-size: 12px;
    color: #9aa2b5;
}

/* 投票后的结果展示 */
.vote-opt-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.vote-opt-num {
    flex: 0 0 auto;
    font-size: 12px;
    color: #7a8398;
    white-space: nowrap;
}

.vote-bar {
    height: 6px;
    margin-top: 8px;
    border-radius: 3px;
    background: #eef1f7;
    overflow: hidden;
}

.vote-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #5b7cfa, #8aa4ff);
    transition: width .35s ease;
}

.vote-opt-chosen {
    border-color: #8aa4ff;
    background: #f3f6ff;
}

.vote-chosen {
    display: inline-block;
    margin-top: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #e8eeff;
    color: #4d6bfa;
    font-size: 11px;
}

.vote-other-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 8px 0 0 12px;
    border-top: 1px dashed #e3e7f0;
    font-size: 12px;
    color: #6b7488;
}

.vote-other-list li {
    margin: 0 0 4px;
    line-height: 1.5;
    word-break: break-word;
}

.vote-other-list em {
    color: #9aa2b5;
    font-style: normal;
}

.vote-done {
    margin-top: 12px;
    font-size: 12px;
    color: #7a8398;
}

@media (max-width: 640px) {
    .vote-box {
        padding: 14px 14px 12px;
    }

    .vote-head {
        display: block;
    }

    .vote-meta {
        margin-top: 4px;
    }
}
