/**
 * Cookie Consent Popup - Styles
 * Version: 1.0.0
 */

/* 遮罩层 */
.ccp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: ccp-fade-in 0.3s ease-in-out;
}

/* 弹窗容器 */
.ccp-popup {
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: ccp-slide-up 0.4s ease-out;
    position: relative;
}

/* 弹窗头部 */
.ccp-popup-header {
    margin-bottom: 20px;
}

.ccp-popup-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* 弹窗内容 */
.ccp-popup-content {
    margin-bottom: 25px;
}

.ccp-popup-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.ccp-popup-content a {
    text-decoration: underline;
    font-weight: 500;
}

/* 按钮容器 */
.ccp-popup-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.ccp-button {
    flex: 1;
    min-width: 120px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.ccp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ccp-button:active {
    transform: translateY(0);
}

.ccp-accept {
    background-color: #4CAF50;
}

.ccp-accept:hover {
    background-color: #45a049;
}

.ccp-decline {
    background-color: #f44336;
}

.ccp-decline:hover {
    background-color: #da190b;
}

/* 动画效果 */
@keyframes ccp-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ccp-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 关闭动画 */
.ccp-overlay.ccp-closing {
    animation: ccp-fade-out 0.3s ease-in-out forwards;
}

.ccp-overlay.ccp-closing .ccp-popup {
    animation: ccp-slide-down 0.3s ease-in forwards;
}

@keyframes ccp-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes ccp-slide-down {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .ccp-popup {
        width: 95%;
        padding: 25px 20px;
        max-width: none;
    }
    
    .ccp-popup-title {
        font-size: 20px;
    }
    
    .ccp-popup-content p {
        font-size: 14px;
    }
    
    .ccp-popup-buttons {
        flex-direction: column;
    }
    
    .ccp-button {
        width: 100%;
        min-width: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .ccp-popup {
        background-color: #2d2d2d;
        color: #ffffff;
    }
    
    .ccp-popup-content p {
        opacity: 0.85;
    }
}

