/* 隐私设置弹窗样式 */
/* 遮罩层 */
.privacy-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

/* 弹窗主体 */
.privacy-dialog {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.privacy-dialog-closing {
    animation: slideDown 0.2s ease-in !important;
}

/* 头部区域 */
.privacy-header {
    background: linear-gradient(135deg, rgb(102 204 234) 0%, rgb(101 197 201) 100%);
    padding: 24px 20px;
    position: relative;
}

.privacy-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-header-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-title {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.privacy-subtitle {
    margin: 4px 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.privacy-close-btn {
    cursor: pointer;
    fill: white;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.privacy-close-btn:hover {
    opacity: 1;
}

/* 列表区域 */
.privacy-list {
    padding: 8px 0;
}

.privacy-item {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.privacy-item:hover {
    background: #f8f9fa;
}

.privacy-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

/* 图标通用样式 */
.privacy-icon-box {
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 各个颜色的渐变 */
.privacy-icon-box.likes {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.privacy-icon-box.favorites {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.privacy-icon-box.following {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.privacy-icon-box.followers {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.privacy-icon-box.visitors {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.privacy-item-text {
    flex: 1;
}

.privacy-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2px;
}

.privacy-item-desc {
    font-size: 12px;
    color: #95a5a6;
}

/* 开关组件 */
.privacy-switch {
    position: relative;
    width: 48px;
    height: 28px;
    background: #ddd;
    border-radius: 14px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.privacy-switch.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.privacy-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 底部提示 */
.privacy-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-footer-text {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.5;
}

/* 动画定义 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* 用户选择弹窗（选人弹窗）样式 */
.user-picker-dialog {
    min-width: 400px;
}

.user-search-box {
    padding: 10px 0;
    margin-bottom: 10px;
}

/* 
.user-search-input:focus {
    border-color: #ff5473;
} */

.user-list {
    margin-top: 10px;
}

.no-users {
    text-align: center;
    padding: 40px 0;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    gap: 12px;
}

.user-item:hover {
    background-color: #f5f5f5;
}

.user-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff5473;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-desc {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

     @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .privacy-dialog-closing {
            animation: slideDown 0.2s ease-in !important;
        }

        @keyframes slideDown {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0;
                transform: translateY(20px);
            }
        }

        .privacy-switch.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        }

        .privacy-modal-mask {
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .settings-page {
            animation: slideInRight 0.3s ease-out;
        }

        .settings-page-exit {
            animation: slideOutRight 0.25s ease-in;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
            }

            to {
                transform: translateX(0);
            }
        }

        @keyframes slideOutRight {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(100%);
            }
        }

        .user-picker-dialog {
            min-width: 400px;
        }

        .user-search-box {
            padding: 10px 0;
            margin-bottom: 10px;
        }

        .user-search-input {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }

        /* .user-search-input:focus {
            border-color: #ff5473;
        } */

        .user-list {
            margin-top: 10px;
        }

        .no-users {
            text-align: center;
            padding: 40px 0;
        }

        .user-item {
            display: flex;
            align-items: center;
            padding: 12px 8px;
            cursor: pointer;
            border-radius: 8px;
            transition: background-color 0.2s;
            gap: 12px;
        }

        .user-item:hover {
            background-color: #f5f5f5;
        }

        .user-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #ff5473;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .user-info {
            flex: 1;
            min-width: 0;
        }

        .user-name {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-desc {
            font-size: 12px;
            color: #999;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
               .success-toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #4CAF50;
            color: white;
            padding: 16px;
            border-radius: 8px;
            z-index: 10000;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
        }

        .success-toast.visible {
            opacity: 1;
            transform: translate(-50%, 10px);
        }

        .sign-dialog-mask {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            animation: fadeIn 0.3s ease-out;
        }

        .sign-dialog {
            width: 360px;
            max-width: 90%;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
            overflow: hidden;
            animation: slideUp 0.3s ease-out;
            display: flex;
            flex-direction: column;
        }

        .sign-dialog-closing {
            animation: slideDown 0.2s ease-in !important;
        }

        .sign-dialog-header {
            padding: 14px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #f1f1f1;
        }

        .sign-dialog-title {
            font-size: 16px;
            font-weight: 600;
            color: #1d2129;
        }

        .sign-dialog-close-btn {
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            color: #999;
        }

        .sign-dialog-body {
            padding: 12px 16px 8px;
            max-height: 420px;
            overflow-y: auto;
        }

        .sign-section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
            font-weight: 500;
            color: #1d2129;
            margin-bottom: 8px;
        }

        .sign-section-sub {
            font-size: 12px;
            color: #86909c;
        }

        .sign-emoji-list {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
        }

        .sign-emoji-item {
            flex: 1;
            background: #fff7e6;
            border-radius: 12px;
            padding: 6px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }

        .sign-emoji-item .sign-emoji-icon {
            font-size: 20px;
            margin-bottom: 2px;
        }

        .sign-emoji-item .sign-emoji-label {
            font-size: 12px;
            color: #ad6800;
        }

        .sign-emoji-item.active {
            background: #ffd591;
            border-color: #fa8c16;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(250, 140, 22, 0.2);
        }

        .sign-input-wrap {
            margin-top: 6px;
        }

        .sign-input {
            width: 100%;
            min-height: 64px;
            border-radius: 10px;
            border: 1px solid #e5e6eb;
            padding: 8px 10px;
            font-size: 13px;
            resize: vertical;
            outline: none;
            box-sizing: border-box;
        }

        .sign-input:focus {
            border-color: #1890ff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15);
        }

        .sign-rank-list {
            margin-top: 4px;
        }

        .sign-rank-empty {
            font-size: 12px;
            color: #c0c4cc;
            padding: 10px 0;
            text-align: center;
        }

        .sign-rank-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #f2f3f5;
        }

        .sign-rank-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sign-rank-no {
            width: 18px;
            height: 18px;
            border-radius: 9px;
            background: #ff9a2e;
            color: #fff;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sign-rank-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .sign-rank-info {
            display: flex;
            flex-direction: column;
            max-width: 150px;
        }

        .sign-rank-name {
            font-size: 13px;
            color: #1d2129;
            margin-bottom: 2px;
        }

        .sign-rank-desc {
            font-size: 12px;
            color: #4e5969;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sign-rank-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.sign-rank-money {
    font-size: 12px;
    color: #ff9a2e;
    font-weight: 500;
}

.sign-dialog-footer {
    padding: 10px 16px 12px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    justify-content: flex-end;
}

.sign-confirm-btn {
    min-width: 96px;
    height: 32px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #ff9a2e 0%, #ff5f6d 100%);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 122, 69, 0.35);
}

.sign-emoji-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.sign-rule-btn {
    border: none;
    background: transparent;
    font-size: 12px;
    color: #1890ff;
    cursor: pointer;
}

.sign-rule-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 11000;
    animation: fadeIn 0.3s ease-out;
}

.sign-rule-dialog {
    width: 100%;
    max-width: 480px;
    background: #fffbe6;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
    padding: 16px 20px 20px;
    box-sizing: border-box;
}

.sign-rule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sign-rule-title {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.sign-rule-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.sign-rule-body {
    padding: 4px 0 12px;
}

.sign-rule-subtitle {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #8c8c8c;
}

.sign-rule-content {
    font-size: 12px;
    color: #595959;
    line-height: 1.6;
}

.sign-rule-footer {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.sign-rule-confirm {
    width: 100%;
    max-width: 260px;
    height: 34px;
    border-radius: 17px;
    border: none;
    background: #ffd666;
    color: #262626;
    font-size: 14px;
    cursor: pointer;
}