
.current-color-card-wrapper{
    text-align: center;
}
.tool-card-upload-wrapper{
    min-height: 311px;
    display: flex;
    flex-direction: column;
}
.tool-card-upload {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tool-card-upload .tool-upload-span{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.current-badge {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: background 0.05s;
}
.color-value-display {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    font-size: 0.8rem;
}
.canvas-wrapper {
    background: radial-gradient(rgba(0, 0, 0, .36) 8%, #f0f2f5 8%) center / 16px 16px repeat;
    border-radius: var(--theme-card-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.magnifier {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(0, 0, 0, 0.2);
    background: #1e293b;
    overflow: hidden;
    backdrop-filter: blur(1px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}
canvas {
    display: block;
    margin: 0 auto;
    border-radius: 1.2rem;
    cursor: none;  /* 隐藏默认光标，由放大镜替代 */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}
.magnifier-canvas {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: block;
    background: #000;
}
.mag-color {
    position: absolute;
    bottom: 4px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    font-family: monospace;
    padding: 2px 6px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 134px);
    gap: 18px;
    justify-items: center;
    padding: 20px;
    justify-content: space-around;
}
.palette-grid .color-top {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    top: -3px;
    left: 14px;
}
.palette-grid .color-top i {
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    opacity: 0;
    cursor: pointer;
    font-size: 20px;
}
.palette-swatch:hover .color-top i {
    opacity: 1;
}
.palette-grid .color-bottom {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.palette-grid .color-bottom .preview {
    width: 100px;
    height: 100px;
    border-radius: 4px;
}

.palette-swatch {
    background-color: #f5f5fb;
    border-radius: 12px;
    padding: 0 10px 10px;
    width: 100%;
}
.palette-grid .color-bottom .code {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 6px;
    color: #666;
}

.palette-grid .color-bottom .code i {
    font-size: 16px;
    cursor: pointer;
}
.palette-grid .color-bottom .code p {
    font-size: 14px;
    letter-spacing:0;

}