/* 侧边弹窗组件样式 */
.side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.side-panel.active {
    right: 0;
}

/* 关闭按钮 */
.side-panel .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.side-panel .close-btn:hover {
    transform: scale(1.1);
}

.side-panel .close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 文本信息容器 */
.side-panel .text-info-container {
    background: #FFF6DC;
    padding: 20px;
    margin-top: 60px;
    position: relative;
    height: auto; /* 改为自适应高度 */
    min-height: 48px; /* 设置最小高度 */
    width: 354px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* 改为垂直排列 */
    gap: 8px; /* 容器之间的间距 */
}

.side-panel .text-info-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 16px; /* 固定每个内容的高度 */
    min-height: 16px;
}

.side-panel .text-info-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #1A1A33;
    font-weight: 600;
    font-size: 12px;
    width: 100%;
    text-align: left;
    height: 16px;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-panel .text-info-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-panel .text-info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 图片展示区域 */
.side-panel .image-section {
    padding: 30px 20px;
}

.side-panel .image-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.side-panel .image-item {
    flex: 1;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.side-panel .image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 遮罩层 */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.side-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .side-panel {
        width: 100%;
        right: -100%;
    }

    .side-panel .text-info-container {
        padding: 20px;
    }

    .side-panel .image-section {
        padding: 20px;
    }

    /* 第一行图片垂直排列 */
    .side-panel .image-row:first-child {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .side-panel .image-row:first-child .image-item {
        width: 100%;
        height: auto;
    }

    .side-panel .image-row:first-child .image-item img {
        width: 100%;
        height: auto;
        max-height: 218px;
        object-fit: contain;
    }

    /* 第二行图片保持水平排列，但宽度调整为90% */
    .side-panel .image-row:nth-child(2) {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 15px;
    }

    .side-panel .image-row:nth-child(2) .image-item {
        flex: 1;
        width: 45%;
    }

    .side-panel .image-row:nth-child(2) .image-item img {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: contain;
    }

    /* 文本信息改为静态显示 */
    .side-panel .text-info-content {
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .side-panel .text-info-item {
        margin-right: 0;
        margin-bottom: 0;
        text-align: left;
        width: 100%;
        font-size: 11px;
        height: 14px;
        padding: 0 8px;
    }

    /* 文本信息容器在小屏时保持相同的宽高 */
    .side-panel .text-info-container {
        height: auto;
        min-height: 48px;
        width: 354px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .side-panel .text-info-container {
        padding: 15px;
    }

    .side-panel .image-section {
        padding: 15px;
    }

    .side-panel .image-row {
        gap: 12px;
        margin-bottom: 12px;
    }

    .side-panel .text-info-item {
        font-size: 12px;
        margin-right: 30px;
    }
}
