/**
 * Cookie Consent Banner Styles
 * GDPR、CCPA、LGPD 等法规合规的 Cookie 同意管理
 */

/* 横幅容器 */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.cookie-consent-banner.cookie-consent-show {
    opacity: 1;
    transform: translateY(0);
}

/* 位置 */
.cookie-consent-banner.cookie-consent-bottom {
    bottom: 0;
}

.cookie-consent-banner.cookie-consent-top {
    top: 0;
    transform: translateY(-100%);
}

.cookie-consent-banner.cookie-consent-top.cookie-consent-show {
    transform: translateY(0);
}

/* 容器 */
.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 内容区域 */
.cookie-consent-content {
    margin-bottom: 15px;
}

.cookie-consent-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.cookie-consent-message {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

/* 分类列表 */
.cookie-consent-categories {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cookie-consent-category {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.cookie-consent-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-consent-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.cookie-consent-category-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cookie-consent-category-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.cookie-consent-category-title {
    flex: 1;
}

.cookie-consent-required {
    font-size: 12px;
    color: #dc3545;
    margin-left: 5px;
}

.cookie-consent-category-desc {
    margin: 5px 0 0 24px;
    font-size: 13px;
    color: #666;
}

/* 按钮区域 */
.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

/* 按钮样式 */
.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-consent-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-consent-btn:active {
    transform: translateY(0);
}

/* 接受所有按钮 */
.cookie-consent-btn-accept-all {
    background: #28a745;
    color: #fff;
}

.cookie-consent-btn-accept-all:hover {
    background: #218838;
}

/* 拒绝按钮 */
.cookie-consent-btn-reject {
    background: #6c757d;
    color: #fff;
}

.cookie-consent-btn-reject:hover {
    background: #5a6268;
}

/* 保存按钮 */
.cookie-consent-btn-save {
    background: #007bff;
    color: #fff;
}

.cookie-consent-btn-save:hover {
    background: #0056b3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 15px;
    }
    
    .cookie-consent-title {
        font-size: 16px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* 深色主题 */
.cookie-consent-banner.cookie-consent-dark {
    background: #2d3748;
    color: #fff;
}

.cookie-consent-banner.cookie-consent-dark .cookie-consent-title {
    color: #fff;
}

.cookie-consent-banner.cookie-consent-dark .cookie-consent-message {
    color: #cbd5e0;
}

.cookie-consent-banner.cookie-consent-dark .cookie-consent-categories {
    background: #4a5568;
}

.cookie-consent-banner.cookie-consent-dark .cookie-consent-category {
    border-bottom-color: #718096;
}

.cookie-consent-banner.cookie-consent-dark .cookie-consent-category-desc {
    color: #cbd5e0;
}

/* 紧凑模式 */
.cookie-consent-banner.cookie-consent-compact .cookie-consent-container {
    padding: 15px;
}

.cookie-consent-banner.cookie-consent-compact .cookie-consent-categories {
    padding: 10px;
}

.cookie-consent-banner.cookie-consent-compact .cookie-consent-btn {
    padding: 8px 16px;
    font-size: 13px;
}
