
.form-control:focus{
    border-color: #ccced1;
    box-shadow: none;
    outline-color: #ccced1;
    outline-offset: 2px;
    outline-style: solid;
    outline-width: 2px;
}

/* <!-- 列表 --> */
.main-box {
    margin-bottom: 100px;
}

.tool-list {
    margin-top: 2rem;
    margin-bottom: 1rem;
}


.tool-list .tool {
    color: #000;
    background-color: #ffffff;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .3s;
    height: 158px;
    position: relative;

    outline-color: #ccced1;
    outline-offset: 2px;
    outline-style: solid;
    outline-width: 0px;
    outline-width: 1px;
}

.tool-list .tool:hover {
    transform: translateY(-0.5rem);
}

.tool-box {
    width: 100%;
    height: 80%;

    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 10px;
    padding: 10px 10px 0 10px;
    padding: 0 10px 0 10px;

    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.tool-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
}

.tool-head svg {
    vertical-align: middle;
}

.tool-head img {
    width: 42px;
    height: 42px;
    width: 52px;
    height: 52px;
    padding: 1px;
}

.tool-head .tool-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0.8rem;
    flex: 1;
    min-width: 0;
}
.tool-head .tool-info .tool-name {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.tool-head .tool-info .tool-clas{
    display: flex;
    align-items: center;
}
.tool-head .tool-info .tool-clas svg{
    margin-right: 3px;
}
.tool-head .tool-info .tool-clas span{
    font-size: 14px;
    color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
}
.tool-head .tool-info .tool-clas span:first-child{
    margin-right: 10px;
}
.tool-foot {
    font-size: 14px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(0,0,0,.7);
}

.tool-url {
    color: rgba(0,0,0,.5);
    z-index: 999;
}

.tool-bg {
    position: absolute;
    bottom: 12px;
    right: 5px;
    width: 30px;
    height: 30px;
    opacity: 0.5;
}

.tool-bg img{
    width: 100%;
    height: 100%;
}


/* <!-- 详情 --> */
.tool-body {
    margin-top: 2rem;
    margin-bottom: 5rem;
}
.tool-body .tool-content {
    font-style: normal;
}
.tool-body .textarea textarea{
    width: 100%;
    height: 200px;
    border: 1px #dbdeda solid;
    padding: 0.422rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 10px;
    display: block;
}
.tool-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    background: #fbfbfb;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tool-form .form-group {
    margin-bottom: 1.5rem;
}

.tool-form .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #ffffff;
    opacity: 1;
}

/* 工具富文本内容 */
.tool-article {
    max-width: 100%;
    margin-top: 3rem;
    color: rgb(0,0,0,0.5) !important;
}


/* 工具详情页按钮组 */
@media (min-width: 576px){
    .bd-example {
        padding: 1.5rem 0;
        margin-right: 0;
        margin-left: 0;
        border-width: 0.2rem;
    }
}

.bd-example {
    position: relative;
    padding: 1rem 0;
    border: solid #f8f9fa;
    border-width: 0.2rem 0 0;
    text-align: center;
}
.tool-btn-list {
    display: flex;
    gap: 0.5rem;
}
.tool-btn-list .btn{
    margin: 0;
    flex: 1 1 0%;
}

/* 图片上传框 */
.drop-area {
    width: 100%;
    border: 2px dashed #ccc;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden; /* 防止内容溢出 */
    flex: 1; /* 填充剩余空间 */
    aspect-ratio: 16/9; /* 固定宽高比 */
    background: #ffffff;
}

.drop-area:hover,
.drop-area.dragover {
    border-color: #2563eb;
    border-color: #6c757d;
    background-color: #f8f9fa;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.upload-text {
    color: rgb(0,0,0,0.5);
    margin-top: 10px;
    font-size: 1.125rem;
    font-weight: 400;
}