/* 旧版 Cookie 授权条（Legacy Cookie Consent）：通栏固定底部，深灰底 + 1px 灰边
   （与站内卡片 #202020 / rgb(255 255 255 / 11%) 一致）；首页已由 Cookie 授权条（Cookie Banner）取代。 */
.aoyea-component-cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  border-top: 1px solid rgb(255 255 255 / 11%);
  background: #444;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
}

/* 任意按钮点击后关闭：淡出并下移，动画结束后由脚本移出布局。 */
.aoyea-component-cookie-consent.aoyea-component-cookie-consent--dismissed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
}

.aoyea-component-cookie-consent .aoyea-cookie-consent-inner {
  display: flex;
  width: min(var(--aoyea-content-width), calc(100% - 100px));
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
  padding: 20px 0;
}

.aoyea-component-cookie-consent .aoyea-cookie-consent-text {
  max-width: 880px;
  margin: 0;
  color: var(--aoyea-color-muted);
  font-family: var(--aoyea-font-copy);
  font-size: 14px;
  line-height: 22px;
}

.aoyea-component-cookie-consent .aoyea-cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.aoyea-component-cookie-consent .aoyea-cookie-consent-button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 21px;
  background: transparent;
  color: #fff;
  font-family: var(--aoyea-font-ui);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.aoyea-component-cookie-consent .aoyea-cookie-consent-button:hover,
.aoyea-component-cookie-consent .aoyea-cookie-consent-button:focus-visible {
  border-color: var(--aoyea-color-brand);
  color: var(--aoyea-color-brand);
}

.aoyea-component-cookie-consent .aoyea-cookie-consent-button--primary {
  border-color: var(--aoyea-color-brand);
  background: var(--aoyea-color-brand);
  color: #fff;
}

.aoyea-component-cookie-consent .aoyea-cookie-consent-button--primary:hover,
.aoyea-component-cookie-consent .aoyea-cookie-consent-button--primary:focus-visible {
  border-color: var(--aoyea-color-brand-strong);
  background: var(--aoyea-color-brand-strong);
  color: #fff;
}

@media (max-width: 900px) {
  .aoyea-component-cookie-consent .aoyea-cookie-consent-inner {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 0 20px;
  }

  .aoyea-component-cookie-consent .aoyea-cookie-consent-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .aoyea-component-cookie-consent .aoyea-cookie-consent-actions {
    gap: 8px;
  }

  .aoyea-component-cookie-consent .aoyea-cookie-consent-button {
    flex: 1 1 0;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aoyea-component-cookie-consent {
    transition: none;
  }
}
