/* =========================================
   Cookie Consent Banner
========================================= */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background-color: #111827;
    color: #f3f4f6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
    padding: 1rem 1.25rem;
    transform: translateY(100%);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 240px;
}

.cookie-consent-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #9ca3af;
}

.cookie-consent-text a {
    color: #fbbf24;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-text a:hover {
    color: #f59e0b;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 0.65rem 1.25rem;
    font-family: "Inter", sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.cookie-btn-primary {
    background-color: #fbbf24;
    color: #111827;
    border-color: #fbbf24;
}

.cookie-btn-primary:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.cookie-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.cookie-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

/* Mobile: leave space above bottom floating sidebar */
@media (max-width: 768px) {
    .cookie-consent {
        bottom: 55px; /* 避开底部悬浮联系栏 */
        padding: 1rem;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}