/* Cookie Consent Banner —— 第34批：底部单行细横条（2026-09-27 银月） */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 10px 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.cookie-consent-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent-text a {
    color: #E85D26;
    text-decoration: none;
}

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

/* 长/短句二选一：宽屏用长句，窄屏用短句（Cookie 条文案，非 SEO 内容） */
.cc-short {
    display: none;
}

.cc-long {
    display: inline;
}

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

.cookie-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: #E85D26;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #d14d1e;
}

.cookie-btn-decline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 手机端：换短句，压成一条；宽度不够时按钮自然折行（总高仍 <= 80px） */
@media (max-width: 640px) {
    .cookie-consent {
        padding: 8px 12px;
    }

    .cookie-consent-content {
        gap: 8px;
        text-align: left;
    }

    .cookie-consent-text {
        flex: 1 1 auto;
        font-size: 12px;
        line-height: 1.35;
    }

    .cc-long {
        display: none;
    }

    .cc-short {
        display: inline;
    }

    .cookie-consent-buttons {
        margin-left: auto;
    }

    .cookie-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}
