/* Cookie 首访告知条 */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(42, 42, 42, 0.97);
  color: #ecf0f1;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.32s ease, opacity 0.32s ease;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(236, 240, 241, 0.92);
}

.cookie-consent__link {
  color: #7dd3e0;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.cookie-consent__link:hover {
  color: #fff;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
}

.cookie-consent__btn {
  flex: 0 0 auto;
  min-width: 96px;
  height: 38px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 4px;
  background: var(--color-primary, #1aa6b0);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__btn:hover {
  filter: brightness(1.06);
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: rgba(236, 240, 241, 0.95);
  border: 1px solid rgba(236, 240, 241, 0.45);
  font-weight: 500;
}

.cookie-consent__btn--ghost:hover {
  filter: none;
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.cookie-consent-open {
  padding-bottom: 72px;
}

@media (max-width: 720px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem 0;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1 1 0;
  }

  body.cookie-consent-open {
    padding-bottom: 140px;
  }
}
