/* 微信 · 消息提示音（独立样式；布局对齐「设置 / 聊天美化」） */

.wechat-message-tone-page {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    flex-direction: column;
    background: #f2f2f2;
    z-index: 107;
    overflow: hidden;
    transform: translateX(104%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.wechat-message-tone-page.show {
    display: flex;
    transform: translateX(0);
}

.wechat-message-tone-list {
    display: block;
}

.wechat-message-tone-empty {
    display: none;
    padding: 18px 16px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    text-align: center;
}

.wechat-message-tone-empty.is-visible {
    display: block;
}

.wechat-message-tone-char-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wechat-message-tone-char-row .wechat-settings-row-main {
    flex: 1;
    min-width: 0;
}

.wechat-message-tone-char-row .wechat-settings-row-actions {
    margin-top: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 52%;
}

.wechat-message-tone-char-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wechat-message-tone-char-status {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wechat-message-tone-char-status.is-set {
    color: #07c160;
}

.wechat-message-tone-char-row .wechat-settings-btn {
    padding: 7px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.wechat-message-tone-char-row .wechat-settings-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 挂在「我」页时，对齐设置页冷色毛玻璃主题 */
#wechat-me-page .wechat-message-tone-page {
    background:
        radial-gradient(circle at 14% 6%, rgba(255, 255, 255, 0.78), transparent 32%),
        radial-gradient(circle at 86% 14%, rgba(111, 129, 148, 0.14), transparent 36%),
        linear-gradient(180deg, #f8f6f0 0%, #eceff1 58%, #f9f7f1 100%) !important;
    color: var(--wechat-cool-text, #243040) !important;
}

#wechat-me-page .wechat-message-tone-page .wechat-settings-header {
    max-width: none !important;
    min-height: 58px;
    padding: 12px 16px !important;
    background: rgba(var(--wechat-cool-cream-rgb, 248, 246, 240), 0.72) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.60) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 24px rgba(68, 82, 98, 0.05) !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

#wechat-me-page .wechat-message-tone-body {
    padding: 16px 14px max(24px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

#wechat-me-page .wechat-message-tone-page .wechat-settings-intro {
    color: var(--wechat-cool-text-soft, #6b7785) !important;
    padding: 12px 14px;
    margin-bottom: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.40);
    box-shadow: 0 6px 16px rgba(68, 82, 98, 0.05);
    backdrop-filter: blur(14px) saturate(1.06);
    -webkit-backdrop-filter: blur(14px) saturate(1.06);
}

#wechat-me-page .wechat-message-tone-page .wechat-settings-card {
    padding: 6px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.42) !important;
    border: 1px solid rgba(255, 255, 255, 0.60) !important;
    box-shadow: var(--wechat-cool-shadow, 0 10px 28px rgba(68, 82, 98, 0.08)) !important;
    backdrop-filter: blur(20px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.08) !important;
}

#wechat-me-page .wechat-message-tone-char-row {
    margin: 8px 6px !important;
    padding: 15px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    border-radius: 18px !important;
    background: var(--wechat-cool-glass, rgba(255, 255, 255, 0.55)) !important;
    box-shadow: var(--wechat-cool-shadow-soft, 0 6px 16px rgba(68, 82, 98, 0.05)) !important;
    backdrop-filter: blur(16px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}

#wechat-me-page .wechat-message-tone-char-name {
    color: var(--wechat-cool-text, #243040) !important;
    font-weight: 700 !important;
}

#wechat-me-page .wechat-message-tone-char-status {
    color: var(--wechat-cool-text-soft, #6b7785) !important;
}

#wechat-me-page .wechat-message-tone-char-status.is-set {
    color: var(--wechat-cool-blue-deep, #3d6f99) !important;
    font-weight: 700;
}

#wechat-me-page .wechat-message-tone-empty {
    color: var(--wechat-cool-text-soft, #6b7785) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    #wechat-me-page .wechat-message-tone-page,
    #wechat-me-page .wechat-message-tone-page .wechat-settings-card,
    #wechat-me-page .wechat-message-tone-char-row {
        background: #f8f6f0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wechat-message-tone-page {
        transition: none !important;
    }
}

@media (max-width: 360px) {
    .wechat-message-tone-char-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .wechat-message-tone-char-row .wechat-settings-row-actions {
        max-width: 100%;
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
}
