/* Domain Sale Popup - 简约风格 */
.dsp-popup {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dsp-popup.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* 弹窗位置 */
.dsp-position-bottom-right {
    right: 30px;
}

.dsp-position-bottom-left {
    right: auto;
    left: 30px;
}

.dsp-position-bottom-center {
    right: 50%;
    transform: translateX(50%) translateY(100px);
}

.dsp-position-bottom-center.active {
    transform: translateX(50%) translateY(0);
}

.dsp-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    font-size: 24px;
    line-height: 1;
    transition: all 0.2s ease;
}

.dsp-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.dsp-close-btn:active {
    transform: scale(0.95);
}

.dsp-content {
    padding: 24px 20px;
}

.dsp-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.dsp-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.dsp-contact {
    margin-bottom: 16px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.dsp-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dsp-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.dsp-button:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dsp-popup {
        right: 20px;
        left: 20px;
        width: auto;
        bottom: 20px;
    }
    
    .dsp-position-bottom-left,
    .dsp-position-bottom-right,
    .dsp-position-bottom-center {
        right: 20px;
        left: 20px;
        transform: translateY(100px);
    }
    
    .dsp-position-bottom-center.active {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .dsp-popup {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
    
    .dsp-content {
        padding: 20px 16px;
    }
    
    .dsp-title {
        font-size: 16px;
    }
    
    .dsp-text {
        font-size: 13px;
    }
    
    .dsp-contact {
        font-size: 13px;
    }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    .dsp-popup {
        background: #1e293b;
    }
    
    .dsp-title {
        color: #f1f5f9;
    }
    
    .dsp-text {
        color: #cbd5e1;
    }
    
    .dsp-contact {
        background: #334155;
        color: #e2e8f0;
    }
    
    .dsp-close-btn {
        color: #94a3b8;
    }
    
    .dsp-close-btn:hover {
        background: #334155;
        color: #f1f5f9;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .dsp-popup {
        transition: none;
    }
    
    .dsp-close-btn,
    .dsp-button {
        transition: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .dsp-popup {
        border: 2px solid #000;
    }
    
    .dsp-button {
        border: 2px solid transparent;
    }
}
