.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-radius: .6em;
    overflow: hidden;
    position: relative;
    display: flex;
}

/*左侧操作栏*/
.album-operate {
    width: 421px;
    background-color: #f8f9ff;
    border-left: solid 1px #e5e5e5;
}

.album-operate > label {
    font-weight: bold;
    display: block;
    text-align: center;
    font-size: 15px;
    line-height: 50px;
}

.menu-operate {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 0 1em;
}

.menu-operate .input-group {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    gap: 0 12px;
}

.menu-operate .input-group > label {
    min-width: 70px;
    text-align: right;
}

/*按钮*/
.btn {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    font-family: var(--font-simple);
}

.btn .ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: ripple-effect 0.6s ease-out forwards;
}

.btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-purple {
    color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248);
    background: transparent;
    width: fit-content;
    display: flex;
    flex: 1;
    height: 39px;
}

.btn-purple svg {
    fill: #fff;
}

.btn-download{
    justify-content: start;
    margin-left: 82px;
}

.btn-download button{
    color: #fff;
    background: rgb(93 79 248);
}

.btn-red {
    color: #fff;
    background-color: rgb(242 55 55 / 95%);
    border-color: rgb(242 55 55 / 95%);
}

.btn-red svg {
    fill: #fff;
}


/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/*下拉框*/
.menu-operate .input-group .custom-select {
    position: relative;
    width: 100%;
}

.menu-operate .input-group .custom-select button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
    gap: 0 6px;
    width: 100%;
    height: 38px;
}

.menu-operate .input-group .select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    white-space: nowrap;
}

.select-dropdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 3px 5px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 13.7px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.select-dropdown li:hover,
.select-dropdown li[aria-selected="true"] {
    background-color: #f5f5f5;
}

.select-dropdown li .check-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    opacity: 0;
    display: block !important;
}

.select-dropdown li[aria-selected="true"] .check-icon {
    opacity: 1;
}

/*范围框*/
.menu-operate .input-group .input-range {
    width: 100%;
    height: 5px;
    background-color: #d6d1ff;
    border-radius: 2px;
}

.menu-operate .input-group .input-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f5f4ff;
    cursor: pointer;
    border: 3px solid #887eff;
    box-shadow: 0 0 3px 3px rgb(226 223 255 / 20%);
}

/*输入框*/
.menu-operate .input-group .input-text {
    display: flex;
    flex: 1;
    height: 40px;
    border: solid 1px #ddd;
    background-color: #fff;
    padding: 0 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, 0.1);
}

.menu-operate .input-group .input-text:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

/*相册模板*/
.menu-operate .input-group .album-options {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    gap: 7px;
}

.menu-operate .input-group .album-options .album-option {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.menu-operate .input-group .album-options .album-option:hover img {
    border: solid 2px #8278ff;
}

.menu-operate .input-group .album-options .album-option input[type="radio"] {
    display: none;
}

.menu-operate .input-group .album-options .album-option input[type="radio"]:checked + img {
    border: solid 2px #8278ff;
}

.menu-operate .input-group .album-options .album-option img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 20%);
    transition: border-color 0.2s;
}

.menu-operate .wechat-label {
    margin-top: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    position: relative;
}

.menu-operate .wechat-label svg {
    width: 17px;
    height: 17px;
    cursor: pointer;
    color: #7f75f8;
}

.menu-operate .wechat-label svg:hover {
    color: #695fdd;
}

.menu-operate .wechat-label svg:hover + .wechat-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.menu-operate .wechat-label .wechat-tooltip {
    position: absolute;
    bottom: 28px;
    left: -38px;
    background-color: #333;
    color: #fff;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12.3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: var(--font-simple);
    line-height: 1.8;
}

.menu-operate .wechat-label a{
    display: flex;
    margin: 1px 6px 0 auto;
    font-size: 13px;
    color: rgb(90 77 248 / 90%);
    padding-bottom: 1px;
    border-bottom: dashed 1px rgb(90 77 248 / 80%);
}

.menu-operate .wechat-label a:hover{
    color: rgb(90 77 248 / 100%);
    border-bottom: dashed 1px rgb(90 77 248 / 100%);
}

/*富文本框*/
.menu-operate .input-textarea {
    border: solid 1px #ddd;
    background-color: #fff;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, 0.1);
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    min-height: 250px;
    line-height: 24px;
    padding: 6px 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 15px;
    resize: none;
    display: block;
}

.menu-operate .input-textarea:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

.album-preview {
    flex: 1;
    margin-bottom: 1em;
}

.album-preview > .label {
    font-weight: bold;
    display: block;
    text-align: center;
    font-size: 15px;
    line-height: 50px;
}

.album-wrapper {
    width: 100%;
    padding: 0 1em;
}

.album-container {
    width: 100%;
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    background-color: var(--main-bg);
}

.album-container .album-template{
    pointer-events: none;     /* 让图片不响应鼠标事件，像"透明"一样被穿透 */
    user-select: none;        /* 禁止选中 */
    -webkit-user-drag: none;   /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE */
    position: relative;
    z-index: 10;
}

.album-container .album-canvas{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .tool-content {
        border-width: 0;
        flex-direction: column;
        box-shadow: none;
    }

    .wechat-preview{
        margin-bottom: 0;
    }

    .wechat-wrapper {
        width: 100%;
        padding: 12px;
    }

    .chat-messages {
        height: 544px;
        padding: 30px 10px;
    }

    .wechat-container .chat-header .header-bg {
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
    }

    .wechat-container .chat-footer .footer-bg{
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .wechat-container .chat-header .header-time {
        top: 8px;
        font-size: 14px;
        text-shadow: none;
    }

    .wechat-container .chat-header .header-signal {
        top: 13px;
        right: 85px;
        width: 15px;
        height: 11px;
    }

    .wechat-container .chat-header .header-network {
        top: 8px;
        right: 62px;
        font-size: 13px;
    }

    .wechat-container .chat-header .header-battery {
        top: 10px;
        right: 25px;
        width: 30px;
        height: 15px;
    }

    .wechat-container .chat-header .header-battery .battery-level {
        position: absolute;
        top: 2.5px;
        left: 2.5px;
        width: 28.5px;
        height: 10px;
        background-color: #000;
        border-radius: 2px;
    }

    .wechat-container .chat-header .header-nickname {
        font-size: 16px;
        top: 39px;
    }

    .chat-messages .message .message-content {
        font-size: 15px;
    }

    .wechat-operate {
        width: 100%;
        border: solid 1px #e5e5e5;
        border-radius: 8px;
    }

    .chat-messages .hongbao .hongbao-content .hongbao-text{
        left: 53px;
        top: 16px;
        font-size: 12px;
    }

    .avatar-img{
        width: 40px;
        height: 40px;
        border-radius: 4px;
    }

    .chat-messages .message .message-content{
        min-height: 40px;
        border-radius: 4px;
        margin-top: 1px;
    }

    .me .message-content::after{
        top: 15px;
    }

    .other .message-content::before{
        top: 15px;
    }

    .wechat-container{
        border-radius: 42px;
    }
}