.aiinkeduser-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    /* 将内边距改为 2px */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 28px;
    /* 将高度改为 20px */
}

.aiinkeduser-info-item {
    display: flex;
    align-items: center;

    margin-right: 2px;
    /* 将右边距改为 2px */
}

.aiinkedchakra-icon {
    width: 26px;
    /* 将图标宽度改为 16px */
    height: 26px;
    /* 将图标高度改为 16px */
    margin-right: 2px;
    /* 将图标右边距改为 2px */

}

span {
    font-family: "DM Sans Variable", sans-serif;
    font-size: 16px;
    /* 设置字体大小为 16px */
    font-weight: bold;
    /* 设置字体加粗 */
    color: #333;
    /* 设置字体颜色为深灰色 */
}

/* 更新与两个按钮相关的样式 */
.down-share-buttons {
    display: none;
    /* 初始隐藏 */
    position: absolute;
    /* 绝对定位 */
    top: 10px;
    /* 距离顶部 10px */
    right: 10px;
    /* 距离右侧 10px */
    z-index: 100;
    /* 确保按钮在图片上方 */
}

.down-share-buttons button {
    margin-left: 5px;
    /* 按钮之间的间距 */
    padding: 5px 10px;
    /* 按钮内边距 */
    background-color: transparent;
    /* 按钮背景颜色改为透明 */
    color: white;
    /* 按钮文字颜色 */
    border: whitesmoke;
    /* 去掉边框 */
    border-radius: 5px;
    /* 圆角 */
    cursor: pointer;
    /* 鼠标指针样式 */
    display: inline-flex;
    /* 使用 Flexbox 布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
}

.down-share-buttons button:hover {
    background-color: #6f7070;
    /* 鼠标悬停时的背景颜色 */
}

/* 按钮图标的样式 */
.chakra-button__icon {
    display: inline-flex;
    align-self: center;
    flex-shrink: 0;
    margin-inline-start: 0px;
    margin-right: 8px;
    /* 调整图标和文本之间的间距 */
}

.chakra-icon {
    width: 16px;
    height: 16px;
}

/* 默认样式 */
.down-share-buttons button svg path {
    fill: white;
    /* 默认图标颜色为白色 */
    stroke: white;
    /* 默认描边颜色为白色 */
}

#image-modal {
    display: none;
    /* 默认隐藏弹窗 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}

/* 定义缺失的 CSS 变量 ,以下为button css*/
:root {
    --aiinked25svg-sizes-3-5: 24px;
    --aiinked25svg-sizes-10: 40px;
    --aiinked25svg-colors-chakra-border-color: #ccc;
    --aiinked25svg-colors-whiteAlpha-900: #fff;
    --aiinked25svg-radii-full: 9999px;
    --aiinked25svg-radii-lg: 8px;
    --aiinked25svg-space-6: 12px;
    --aiinked25svg-space-12: 24px;
    --aiinked25svg-space-2: 4px;
    --aiinked25svg-space-10: 20px;
    --aiinked25svg-shadows-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --aiinked25svg-zIndices-modal: 1000;
    --aiinked25svg-colors-gray-700: #2d3748;
    --aiinked25svg-colors-white: #fff;
    --aiinked25svg-colors-light: #f7fafc;
    --aiinked25svg-colors-silver: #c0c0c0;
    /* 银色 */
}

/* 图标样式 */
.aiinked25svg-icon {
    width: var(--aiinked25svg-sizes-3-5);
    height: var(--aiinked25svg-sizes-3-5);
    display: inline-block;
    line-height: 1em;
    flex-shrink: 0;
    color: currentcolor;
    vertical-align: middle;
}

/* 按钮样式 */
.aiinked25svg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    white-space: nowrap;
    vertical-align: middle;
    outline: transparent solid 2px;
    outline-offset: 2px;
    line-height: 1.5rem;
    border-radius: var(--aiinked25svg-radii-full);
    font-weight: 600;
    transition: all 0.2s ease;
    height: 2.5rem;
    font-size: 0.875rem;
    padding-inline-start: var(--aiinked25svg-space-12);
    padding-inline-end: var(--aiinked25svg-space-12);
    background: rgba(25, 25, 25, 0.5);
    color: var(--aiinked25svg-colors-whiteAlpha-900);
    padding: 0;
    min-width: var(--aiinked25svg-sizes-10);
    width: var(--aiinked25svg-sizes-10);
    filter: grayscale(100%) contrast(1) brightness(1.5);
    border: none;
    cursor: pointer;
    margin-right: 10px;
    /* 按钮之间的间距 */
}

/* 按钮悬停效果 */
.aiinked25svg-button:hover {
    background: rgba(25, 25, 25, 0.25);
    /* 变浅 50% */
}

/* 按钮点击效果 */
.aiinked25svg-button:active {
    transform: scale(1.2);
    /* 放大 1.2 倍 */
}

/* 对齐容器 */
.aiinked25svg-align-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-inline-start: var(--aiinked25svg-space-6);
    padding-inline-end: var(--aiinked25svg-space-6);
    flex-direction: row;
    /* 改为横向排列 */
    padding: 0;
    pointer-events: auto;
}

/* 提示文本样式 */
.aiinked25svg-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(35, 35, 35, 0.8);
    /* 背景与大背景一致，透明度 0.8 */
    color: var(--aiinked25svg-colors-silver);
    /* 文本颜色为银色 */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* 按钮悬停时显示提示文本 */
.aiinked25svg-button:hover .aiinked25svg-tooltip {
    opacity: 1;
}



/* 确保 modal-content 的宽度和位置正确 */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 512px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    /* 添加2px的外框线 */
    border-radius: 12px;
    /* 添加12px的圆角 */
    z-index: 1;
    /* 确保图片在容器上方 */
}

/* 调整 aiinked25svg-container 的样式 */
.aiinked25svg-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    /* 使用绝对定位 */
    width: 80%;
    /* 宽度与图片一致 */
    max-width: 512px;
    /* 最大宽度与图片一致 */
    top: calc(50% + 26%);
    /* 放置在图片正下方 */
    left: 50%;
    transform: translateX(-50%);
    /* 水平居中 */

    /* --- 关键修改：使容器完全透明 --- */
    background: transparent;
    /* 将背景设置为透明 */
    box-shadow: none;
    /* 移除阴影 */
    /* --------------------------------- */

    border-radius: var(--aiinked25svg-radii-lg);
    padding: 20px;
    margin-top: 0;
    /* 与图片的间隙为0 */
    z-index: 9998;
    /* 置于最顶层 */

    /* 移除或注释掉原有的 background 属性 */
    /* background: var(--aiinked25svg-colors-gray-700); */
    /* background: rgba(45, 55, 72, 0.0); */
}

/* 调整 aiinked25svg-align-container 的样式 */
.aiinked25svg-align-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-inline-start: var(--aiinked25svg-space-6);
    padding-inline-end: var(--aiinked25svg-space-6);
    flex-direction: row;
    /* 改为横向排列 */
    padding: 0;
    pointer-events: auto;
}

/* 容器样式，确保内容居中 */
.aiinked-login-register-box {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border: 0px solid #ddd;
    border-radius: 5px;
    max-width: 300px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    /* 背景颜色，可选 */
}

/* 登录和注册容器样式 */
.aiinked-login-register-container {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-width: 300px;
    width: 100%;
    /* 确保宽度占满父容器 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* 添加阴影效果 */
    margin: 0 auto;
    /* 确保水平居中 */
}

/* 提示文本样式 */
.aiinked-login-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

/* 按钮通用样式 */
.aiinked-login-button,
.aiinked-register-button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    /* 文字颜色为白色 */
    background-color: rgba(0, 0, 0, 0.6);
    /* 60% 透明度的暗黑色 */
    transition: background-color 0.3s ease;
    /* 添加过渡效果 */
}

/* 按钮悬停效果 */
.aiinked-login-button:hover,
.aiinked-register-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    /* 悬停时透明度加深 */
}

.modal-content {
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 12px;
    z-index: 1;

    /* 新增自适应图片的核心代码 */
    max-width: 80vw;
    /* 基于视口宽度的最大限制 */
    max-height: 90vh;
    /* 基于视口高度的最大限制 */
    width: auto;
    /* 保持原始宽度比例 */
    height: auto;
    /* 保持原始高度比例 */
    object-fit: contain;
    /* 关键属性：保持比例完整显示图片 */

    /* 可选阴影增强视觉效果 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 如果模态框容器需要限制尺寸 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow: auto;
    /* 允许滚动以防图片过大 */
}

/* 全局样式，避免 margin 干扰 */
body {
    margin: 20px;
}

/* 0. 最外层整体卡片容器 */
.card-wrapper {
    display: inline-block;
    border-radius: 20px;
    /* 确保文本框和图片容器的圆角过渡自然 */
}

/* 1. 图片容器部分 */
.outer-container {
    width: 245px;
    height: 245px;
    background-color: #A9A9A9;
    border-radius: 20px 20px 0 0;
    padding: 10px;
    position: relative;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. 中间大图容器样式 (保持不变) */
.main-image-wrapper {
    max-width: 215px;
    max-height: 215px;
    overflow: hidden;
    border: 5px solid white;
    border-radius: 15px;
}

/* 3. 右下角缩略图容器样式 (保持不变) */
.thumbnail-wrapper {
    width: 60px;
    height: 60px;
    border: 5px solid white;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    right: 15px;
    bottom: 10px;
    z-index: 10;
    box-sizing: border-box;
}


.copy-icon:hover {
    color: #fff;
}

/* ---------------------------------------------------- */
/* 6. 完整 Prompt 提示框样式 (核心改动) */
/* ---------------------------------------------------- */
.full-prompt-tooltip {
    /* 浮动标签页的基础样式 */
    background-color: #000;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);

    /* 尺寸和文本样式 */
    width: auto;
    /* 宽度根据内容自动调整 */
    min-width: 600px;
    /* 最小宽度限制为 600px */
    /* 可以比文本框更宽 */
    min-height: 50px;
    white-space: normal;
    /* 允许文本换行 */
    word-wrap: break-word;
    /* 允许长单词换行 */
    line-height: 1.4;
    font-size: 14px;

    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);

    /* 默认隐藏提示框，并使用过渡实现平滑显示 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;

    z-index: 30;
    /* 确保提示框在所有元素的最上层 */
}

/* 7. 鼠标悬停显示效果 */
.text-box:hover .full-prompt-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 8. 箭头指示 (可选：让它看起来更像一个标签页或提示框) */
.full-prompt-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    /* 箭头定位在提示框底部 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
    /* 黑色三角形 */
}

/* ---------------------------------- */
/* 4. 文本显示框容器 (关键修改) */
/* ---------------------------------- */
.text-box {
    width: 245px;
    height: 50px;
    /* 足够容纳两行文字 */
    background-color: #333;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 14px;

    /* REMOVE: 移除以下单行截断属性 */
    /* overflow: hidden; */
    /* white-space: nowrap; */
    /* text-overflow: ellipsis; */

    position: relative;
    border-radius: 0 0 20px 20px;
    z-index: 20;
    cursor: pointer;
}

/* 新增或修改：确保 truncated-text 可以多行截断 */
.truncated-text {
    color: #fff;
    /* 确保文本颜色是白色的，与背景形成对比 */
    display: -webkit-box;
    /* 启用弹性盒子布局 */
    -webkit-line-clamp: 2;
    /* 限制为 2 行 */
    -webkit-box-orient: vertical;
    /* 垂直方向 */
    overflow: hidden;
    text-overflow: ellipsis;
    /* 显示省略号 */

    /* 留出右侧空间给复制图标 */
    width: calc(100% - 25px);
    /* 确保它在复制图标的左边 */
}


/* --- 复制图标 (Copy Icon) 基础样式和定位 --- */
.text-box {
    position: relative;
    /* 确保绝对定位的父级 */
}


.copy-icon {
    /* 定位和层级 */
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 1000;
    /* 确保在最顶层 */
    cursor: pointer;
    padding: 6px;
    /* 增大点击区域 */

    /* 视觉效果 */
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;

    /* 添加平滑的过渡效果，让动态变化更自然 */
    transition: transform 0.1s ease-out, background-color 0.1s ease-out;
}

/* --- 按下动态效果 (The "Active" State) --- */

.copy-icon:active {
    /* 效果一：轻微缩小 (Push-in effect) */
    transform: scale(0.9);

    /* 效果二：背景色变深，模拟按下去的感觉 */
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- 复制成功提示 (方案一的 CSS 辅助) --- */
.copy-feedback {
    /* 这个是配合 JS 方案一添加的临时“Copied!”文本样式 */
    /* 确保它比图标有更高的 z-index */
    z-index: 1001;
}