/* Cookie 同意提示样式 */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.3s ease;
}

.cookie-close-btn:hover {
  color: #333;
}

.cookie-consent-header {
  margin: 0;
  padding-right: 30px;
}

.cookie-consent-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-text p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: #0066cc;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
  color: #004499;
  text-decoration: none;
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background-color: #ffa800;
  color: #fff;
  border: none;
}

.cookie-btn-accept:hover {
  background-color: #e69900;
}

.cookie-btn-personalize {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
}

.cookie-btn-personalize:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .cookie-consent {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 15px;
  }
  
  .cookie-consent-content {
    gap: 12px;
  }
  
  .cookie-consent-header h3 {
    font-size: 16px;
  }
  
  .cookie-consent-text p {
    font-size: 13px;
  }
  
  .cookie-consent-buttons {
    width: 100%;
    flex-direction: column;
    justify-content: stretch;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

