/* ICP弹窗遮罩层样式 */
.icp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: icpOverlayFadeIn 0.3s ease-out;
	z-index: calc(var(--z-modal) - 2);
}

.icp-overlay-closing {
    animation: icpOverlayFadeOut 0.3s ease-in forwards;
}

/* ICP弹窗容器样式 */
.icp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;    
    animation: icpModalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #333333;
	z-index: calc(var(--z-modal) - 1);
}

.icp-modal-closing {
    animation: icpModalSlideOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

/* ICP弹窗头部 */
.icp-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
}

.icp-header h2 {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icp-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icp-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ICP内容区域 */
.icp-content {
    padding: 30px;
    color: white;
}

/* ICP信息项 */
.icp-info-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #333333;
}

.icp-item {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #333333;
}

.icp-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.icp-label {
    font-weight: 600;
    min-width: 100px;
    color: #cccccc;
    font-size: 15px;
}

.icp-value {
    color: white;
    font-size: 15px;
    flex: 1;
}

/* ICP链接样式 */
.icp-link {
    color: #ff6b6b !important;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: inline-block;
}

.icp-link:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff9e9e;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* 底部信息 */
.icp-footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    border-left: 4px solid #444444;
}

.icp-footer p:first-child {
    font-weight: 600;
    margin-top: 0;
    color: white;
}

/* 动画关键帧 */
@keyframes icpModalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes icpModalSlideOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
}

@keyframes icpOverlayFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes icpOverlayFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 668px) {
    .icp-modal {
        width: 95%;
        max-width: 400px;
    }
    
    .icp-header h2 {
        font-size: 18px;
    }
    
    .icp-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .icp-label {
        min-width: auto;
    }
}

/* 滚动条样式 */
.icp-modal::-webkit-scrollbar {
    width: 8px;
}

.icp-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.icp-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.icp-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}