/* 非模态偏好面板，拒绝与同意使用完全相同的按钮样式。 */
body.public-site footer .footer-preferences {
    border: 0; background: transparent; color: var(--footer-text);
    font: inherit; font-size: 12px; line-height: 1.8; padding: 8px 2px;
    text-decoration: none; cursor: pointer; min-height: 44px;
}
body.home-page .home-footer .footer-preferences { color: var(--home-ink); }
body.public-site footer .footer-preferences:hover { text-decoration: underline; }
.analytics-consent {
    position: fixed; bottom: 16px; right: 16px; z-index: 1200;
    box-sizing: border-box; width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px); overflow: auto; padding: 24px;
    border: 1px solid var(--modal-border); border-radius: var(--radius-lg);
    background: var(--paper-color); color: var(--text-color);
    box-shadow: 0 8px 36px rgba(var(--shadow-rgb), .2);
    font-family: var(--font-ui);
}
.analytics-consent[hidden], .analytics-consent [hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 12px; font-size: 20px; }
.analytics-consent p { margin: 10px 0; line-height: 1.65; font-size: 14px; }
.analytics-consent a { color: var(--secondary-dark); text-decoration: underline; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.analytics-actions button {
    flex: 1 1 45%; min-height: 44px; padding: 10px 14px; cursor: pointer;
    border: 1px solid var(--modal-border); border-radius: var(--radius-md);
    background: var(--surface-color); color: var(--text-color); font: inherit;
}
.analytics-actions button:hover { border-color: var(--secondary-dark); }
.analytics-consent button:focus-visible, .footer-preferences:focus-visible {
    outline: 2px solid var(--secondary-dark); outline-offset: 3px;
}
@media (max-width: 480px) {
    .analytics-consent { padding: 18px; }
    .analytics-actions button { font-size: 14px; }
}
