/* 小芽精灵：用户画像无感知采集弹窗样式 */

/* 总容器 */
.xingxy-profile-capture-wrap {
    margin-top: 15px;
    padding: 15px;
    background: var(--muted-border-color, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--muted-border-color, #eaeaea);
    text-align: left;
    display: none;
    /* 默认隐藏，AJAX加载完后显示 */
}

.xingxy-profile-capture-wrap.is-loaded {
    display: block;
    animation: fadeIn 0.4s ease;
}

.xingxy-profile-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

/* --- 原生风盲盒任务横幅 (全新高质感自适应版) --- */
.xingxy-native-banner {
    display: flex;
    align-items: center;
    background: var(--muted-bg, rgba(128,128,128,0.05));
    border: 1px solid var(--muted-border-color, rgba(128,128,128,0.1));
    border-radius: 8px;
    padding: 12px 14px;
    transition: all 0.3s;
}
.xingxy-native-banner:hover {
    border-color: rgba(255, 107, 21, 0.4);
    box-shadow: 0 4px 15px rgba(255, 107, 21, 0.08);
}
.x-nb-icon {
    font-size: 26px;
    margin-right: 14px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.x-nb-content {
    flex: 1;
}
.x-nb-title {
    margin: 0 0 5px 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: var(--main-color, #333) !important;
    line-height: 1.4 !important;
    display: flex;
    align-items: center;
}
.x-nb-tag {
    font-size: 10px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff5e00 100%);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: normal;
}
.x-nb-desc {
    margin: 0 !important;
    font-size: 12px !important;
    color: var(--muted-color, #888) !important;
    line-height: 1.5 !important;
}
.x-nb-highlight {
    color: #ff6b15;
    font-weight: 600;
}

.xingxy-profile-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #ff9a44 0%, #fc6076 100%);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(252, 96, 118, 0.3);
    margin-bottom: 4px;
}

.xingxy-profile-desc {
    font-size: 12px;
    color: var(--muted-color, #999);
}

/* 维度区块 */
.xingxy-profile-dim {
    margin-bottom: 20px;
}

.xingxy-profile-dim-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    /* 改为强制上下堆叠 */
    gap: 8px;
    /* 标题与提示之间的上下间距 */
}

.xingxy-profile-dim-title span:first-child {
    line-height: 1.4;
    width: 100%;
}

.xingxy-profile-dim-title .dim-req {
    font-size: 12px;
    font-weight: normal;
    color: #ff6000;
    background: rgba(255, 96, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    /* 禁止换行 */
    flex-shrink: 0;
    /* 禁止被标题挤压干瘪 */
    align-self: flex-end;
    /* 依靠父级 column 向右看齐 */
}

.xingxy-profile-dim-title .dim-req.is-ok {
    color: #00a65a;
    background: rgba(0, 166, 90, 0.1);
}

/* 步骤式外层控制 */
.xingxy-profile-steps-container {
    position: relative;
    overflow: hidden;
    /* 防止推入特效导致横向滚动条出现 */
}

.xingxy-profile-step {
    display: none;
    /* 默认隐藏步骤 */
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xingxy-profile-step.is-active {
    display: block;
    /* 仅激活的可见 */
}

.xingxy-profile-step.is-hiding {
    display: block;
    animation: slideOutLeft 0.3s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* 选项网格 (图片) 升级为自适应 Wrap 排版 */
.xingxy-profile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

/* 按钮样式 */
.xingxy-profile-next-btn {
    width: 100%;
    margin-top: 20px;
    padding: 10px 15px;
    background: var(--theme-color, #eb5055);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(235, 80, 85, 0.3);
}

.xingxy-profile-next-btn:hover {
    background: var(--theme-color-hover, #d94247);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(235, 80, 85, 0.4);
}

.xingxy-profile-next-btn.disabled,
.xingxy-profile-next-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
    box-shadow: none;
    transform: none;
}

/* 单个选项 */
.xingxy-profile-item {
    position: relative;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    width: 25%;
    /* 大概排四列，如果不到会自动铺开 */
    min-width: 65px;
    max-width: 80px;
}

.xingxy-profile-item.is-icon-item {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    background: var(--body-bg-color, #fff);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--muted-border-color, #eaeaea);
    margin-bottom: 10px;
    text-align: left;
}

/* 选项图片 */
.xingxy-profile-img {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    /* 保证在其自适应的父盒子内完美居中对齐底部的文字 */
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* 增加阴影体现层次 */
    display: block;
    /* 消除底边距问题 */
    background: #f0f0f0;
    /* 防止图片未加裁出底色 */
}

/* 头像类用圆形 */
.dim1-items .xingxy-profile-img {
    border-radius: 50%;
}

/* 图标样式 */
.xingxy-profile-icon {
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: relative;
    margin-right: 12px;
    transition: all 0.2s;
}

/* 文字 */
.xingxy-profile-name {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    color: var(--muted-color, #666);
    white-space: nowrap;
    overflow: visible;
    /* 去掉 hidden 防止部分被截断，允许轻微超出 */
}

.is-icon-item .xingxy-profile-name {
    margin-top: 0;
    font-size: 14px;
    color: var(--focus-color, #333);
}

/* 选中状态 */
.xingxy-profile-item.is-active .xingxy-profile-img {
    border-color: var(--theme-color, #eb5055);
    transform: scale(0.92);
    box-shadow: 0 0 0 2px rgba(235, 80, 85, 0.2);
    /* 发光特效 */
    opacity: 0.95;
}

.xingxy-profile-item.is-icon-item.is-active {
    border-color: var(--theme-color, #eb5055);
    background: rgba(235, 80, 85, 0.05);
    /* 默认主题色底，适配Zibll需用var */
}

.xingxy-profile-item.is-icon-item.is-active .xingxy-profile-icon {
    color: var(--theme-color, #eb5055);
    background: rgba(235, 80, 85, 0.1);
}

.xingxy-profile-item.is-active .xingxy-profile-name {
    color: var(--theme-color, #eb5055);
    font-weight: bold;
}

/* 选中勾号角标 */
.xingxy-profile-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    /* 往左收一点点避免最右侧被容器溢出隐藏切割 */
    background: var(--theme-color, #eb5055);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 更 Q 弹 */
    z-index: 10;
    box-shadow: 0 3px 6px rgba(235, 80, 85, 0.4);
}

.xingxy-profile-badge svg {
    color: inherit;
    /* 隔离外部强覆盖 */
    fill: currentColor;
    display: block;
    /* 避免内联元素的幽灵空白节点导致显示被遮盖或对齐偏移 */
}

.dim1-badge {
    background: transparent !important;
    /* 去除第一维度默认底色背板 */
    box-shadow: none !important;
    /* 去除阴影，留给爱心自身展示 */
    width: 34px;
    height: 34px;
    top: -12px;
    right: -8px;
}

.dim1-badge svg {
    fill: #ff4757;
    /* 强制爱心红色 */
    stroke: #ffffff;
    /* 确保原色基础上描边可用 */
    stroke-width: 1px;
    width: 100%;
    /* 全幅填充放大版容器 */
    height: 100%;
    /* 全幅填充放大版容器 */
}

.is-icon-item .xingxy-profile-badge {
    top: 50%;
    margin-top: -12px;
    right: 15px;
    /* 第三维度横条稍微留点右边距 */
}

.xingxy-profile-item.is-active .xingxy-profile-badge {
    opacity: 1;
    transform: scale(1);
    animation: heartBeat 1.2s ease-in-out infinite;
    /* 增加心跳动画 */
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.is-icon-item.is-active .xingxy-profile-badge {
    transform: translateY(-50%) scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}