.control-sphere {
    flex: 1;
    /* background: linear-gradient(145deg, #3498db, #2980b9); */
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.control-sphere::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -30px;
    left: -30px;
}

.control-sphere::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -20px;
    right: -20px;
}

.quarter-circle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgb(249, 115, 22), rgb(220, 95, 15));
    border-radius: 0 100% 0 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.quarter-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.quarter-circle:active {
    transform: scale(0.95);
}

.inner-circle {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}





.control-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    z-index: 100;
}

/* 轻量级提示样式 */
.light-toast {
    position: fixed;
    bottom: 25px; /* 位于control-wrapper上方 */
    left: 100px;
    /* background-color: rgba(0, 0, 0, 0.8); */
    color: rgb(249, 115, 22);
    padding: 12px 16px;
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */
    z-index: 101; /* 高于control-wrapper */
    /* max-width: 300px; */
    opacity: 0.6;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.light-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: bold;
    font-size: 14px;
}

.toast-message {
    font-size: 12px;
    line-height: 1.4;
}

.quarter-circle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background-color: #3b82f6;
    border-radius: 0 100% 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quarter-circle:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.quarter-circle.active {
    transform: scale(0.95);
    background-color: #1d4ed8;
}


.sphere-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    /* 比quarter-circle大10px */
    height: 70px;
    background-color: rgba(249, 115, 22, 0.05);
    border-radius: 0 100% 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    opacity: 1;
    /* 默认显示，作为边框效果 */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
    color: rgb(26, 35, 126);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    transform-origin: bottom left;
    /* 以左下角为变换中心 */
}

/* 关闭按钮样式 */
.close-button {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background-color: white;
    color: rgb(249, 115, 22);
    border: 2px solid rgb(249, 115, 22);
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* 大幅提高z-index确保在最上层 */
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    /* 确保按钮可点击 */
    pointer-events: none;
}

.sphere-content.expanded .close-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* 展开时启用点击事件 */
    /* 添加动画效果使按钮更醒目 */
    animation: fadeInScale 0.3s ease;
}

/* 添加出现动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-button:hover {
    background-color: #fff;
    color: rgb(249, 115, 22);
    transform: scale(1.2);
}

.close-button:active {
    transform: scale(0.95);
}

.sphere-content.expanded {
    width: 70vw;
    height: 70vh;
    background-color: white;
    border: 2px solid rgb(249, 115, 22);
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.content-container {
    /* width: 98%; */
    height: 98%;
    /* background: linear-gradient(45deg, #ffeb3b, #ffc107); */
    /* display: flex; */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 8px;
    display: none;
    /* 初始状态隐藏 */
    overflow-y: auto;
    padding: 10px;
    /* 隐藏滚动栏但保留滚动功能 */
    -ms-overflow-style: none;
    /* IE和Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Chrome、Safari和Opera */
.content-container::-webkit-scrollbar {
    display: none;
}

.image-container {
    width: 100%;
    /* max-width: 500px; */
    margin-bottom: 20px;
    text-align: center;
}

.loading-hint {
    position: relative;
    font-size: 10px;
    color: #ccc;
    text-align: center;
    /* padding: 3px 8px; */
    /* background: rgba(0, 0, 0, 0.5); */
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 2px;
    margin-bottom: -5px;
    z-index: 10;
    display: none; /* 默认隐藏 */
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

.detail-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: white;
    color: #666;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    margin: 0;
    display: none;
    /* 初始状态隐藏 */
}

.detail-button:hover {
   background-color: white;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.sphere-content h2 {
    margin: 0;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.sphere-content.expanded h2 {
    font-size: 20px;
    opacity: 1;
    transform: scale(1);
    margin-bottom: 10px;
}

.sphere-content p {
    margin: 0;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease 0.1s;
    line-height: 1.3;
}

.sphere-content.expanded p {
    font-size: 14px;
    opacity: 1;
    transform: scale(1);
}

/* 图片对比布局样式 */
.comparison-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.image-wrapper {
    position: relative;
    width: 49%;
    /* max-width: 240px; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

.source-image, .translated-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.source-image:hover, .translated-image:hover {
    transform: scale(1.02);
}

.info-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

/* quotes-info样式 - 固定在sphere-content右下角的小字 */
.quotes-info {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 8px;
    color: rgb(249, 115, 22);
    text-align: right;
    line-height: 1.2;
    /* background-color: rgba(0, 0, 0, 0.3); */
    padding: 2px 5px;
    /* border-radius: 10px; */
    z-index: 5;
    display: none; /* 默认隐藏 */
}

.quotes-info p {
    margin: 0;
  
    opacity: 1 !important;
    transform: none !important;
    font-size: inherit;
    transition: none !important;
}

.quotes-info span {
    font-weight: bold;
}

/* 更新详情按钮样式，使其适应新布局 */
.detail-button {
    position: static;
    transform: none;
    margin-top: 10px;
    align-self: center;
    display: none;
    /* 默认隐藏，只有在容器展开时才显示 */
}

/* 响应式调整 */
@media (max-width: 600px) {
    .comparison-container {
        flex-direction: column;
        align-items: center;
    }
    
    .image-wrapper {
        width: 100%;
    }
    
    .sphere-content.expanded {
        width: 90vw;
        height: 80vh;
    }
}

/* 删除按钮样式 */
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-color: white;
    color: rgb(249, 115, 22);
    border: 2px solid rgb(249, 115, 22);
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.comparison-container {
    position: relative;
}

.comparison-container:hover .delete-btn {
    opacity: 1;
    visibility: visible;
}

.delete-btn:hover {
    background-color: rgb(249, 115, 22);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
}

.delete-btn:active {
    transform: scale(0.95);
}

/* 确保在移动设备上也能正常显示 */
@media (max-width: 768px) {
    .delete-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
        border-width: 1.5px;
    }
}