/**
 * Cookie 同意横幅样式
 * GDPR合规
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookie-consent-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
}

.cookie-consent-link:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-accept {
    background: #28a745;
    color: white;
}

.btn-accept:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-reject {
    background: #6c757d;
    color: white;
}

.btn-reject:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* 详情面板 */
.cookie-consent-details {
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    background: #f8f9fa;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-consent-details h5 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
}

.cookie-consent-details h6 {
    margin: 10px 0 5px 0;
    font-size: 0.95rem;
    color: #444;
}

.cookie-category {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.cookie-category p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #666;
}

.cookie-category ul {
    margin: 8px 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #666;
}

.cookie-category ul li {
    margin: 3px 0;
}

.cookie-info {
    background: #e7f3ff;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #0056b3;
}

.cookie-info p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0056b3;
}

.cookie-info ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #333;
}

.cookie-info ul li {
    margin: 4px 0;
}

.btn-close-details {
    margin-top: 10px;
    padding: 8px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-close-details:hover {
    background: #5a6268;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-buttons button {
        flex: 1;
    }

    .cookie-consent-text h4 {
        font-size: 1rem;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
    }

    .cookie-consent-details {
        max-height: 300px;
    }
}

/* 打印时隐藏 */
@media print {
    .cookie-consent-banner {
        display: none !important;
    }
}
