/**
 * Cookie 同意横幅样式
 * 符合 GDPR/CCPA 要求
 */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 4px solid #FF6B35;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

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

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.cookie-desc {
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cookie-link {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #FF6B35;
  color: #FFFFFF;
}

.cookie-btn-accept:hover {
  background: #E55A25;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cookie-btn-reject {
  background: #E2E8F0;
  color: #2D3748;
}

.cookie-btn-reject:hover {
  background: #CBD5E0;
  transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
  }

  .cookie-consent-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-consent-text {
    min-width: auto;
  }

  .cookie-title {
    font-size: 1.1rem;
  }

  .cookie-desc {
    font-size: 0.9rem;
  }

  .cookie-consent-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.875rem 1rem;
  }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .cookie-consent-content {
    gap: 1.5rem;
  }

  .cookie-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .cookie-consent-banner {
    background: #1A202C;
    border-top-color: #FF6B35;
  }

  .cookie-title {
    color: #FFFFFF;
  }

  .cookie-desc {
    color: #A0AEC0;
  }

  .cookie-btn-reject {
    background: #2D3748;
    color: #FFFFFF;
  }

  .cookie-btn-reject:hover {
    background: #4A5568;
  }
}

/* 打印时隐藏 */
@media print {
  .cookie-consent-banner {
    display: none !important;
  }
}
