/* 用户站壳补充样式（cookie 同意条等）；主题骨架仍用 style.css */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__card {
    pointer-events: auto;
    max-width: 52rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 0.85rem 1rem 0.85rem 0.85rem;
    background: #fff;
    border: 1px solid rgba(31, 45, 65, 0.1);
    border-radius: 0.875rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 10px 32px rgba(31, 45, 65, 0.16),
        0 2px 6px rgba(31, 45, 65, 0.06);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-consent.is-visible .cookie-consent__card {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent__icon {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0, 97, 242, 0.14), rgba(0, 97, 242, 0.06));
    color: #0061f2;
    font-size: 0.95rem;
}

.cookie-consent__body {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 0.15rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2d41;
    letter-spacing: -0.01em;
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #687281;
}

.cookie-consent__text a {
    color: #0061f2;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cookie-consent__text a:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    margin-left: 0.25rem;
}

.cookie-consent__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cookie-consent__btn--ghost {
    background: #eff3f9;
    color: #323f52;
}

.cookie-consent__btn--ghost:hover {
    background: #e2e8f2;
    color: #1f2d41;
}

.cookie-consent__btn--primary {
    background: #0061f2;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 97, 242, 0.28);
}

.cookie-consent__btn--primary:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 97, 242, 0.34);
}

.cookie-consent__btn:focus {
    outline: 0;
}

.cookie-consent__btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 97, 242, 0.35);
}

@media (max-width: 767.98px) {
    .cookie-consent {
        padding: 0.65rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent__card {
        flex-wrap: wrap;
        padding: 0.85rem;
        gap: 0.7rem;
        border-radius: 0.75rem;
    }

    .cookie-consent__icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.55rem;
        font-size: 0.85rem;
    }

    .cookie-consent__body {
        flex: 1 1 calc(100% - 3rem);
    }

    .cookie-consent__actions {
        width: 100%;
        margin-left: 0;
    }

    .cookie-consent__btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.55rem 0.85rem;
    }
}
