/* ==========================================
   昆仑能源 Cookie 同意管理样式
   ========================================== */

/* Cookie 弹窗 */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 20px 0;
  border-top: 4px solid #0056b3;
  transition: transform 0.3s ease-in-out;
}

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

.cookie-text {
  flex: 1 1 500px;
}

.cookie-text h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #555555;
}

.cookie-text a {
  color: #0056b3;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.cookie-btn-primary {
  background-color: #0056b3;
  color: #ffffff;
}
.cookie-btn-primary:hover {
  background-color: #004085;
}

.cookie-btn-secondary {
  background-color: #f8f9fa;
  color: #333333;
  border-color: #cccccc;
}
.cookie-btn-secondary:hover {
  background-color: #e2e6ea;
}

.cookie-btn-outline {
  background-color: transparent;
  color: #0056b3;
  border-color: #0056b3;
}
.cookie-btn-outline:hover {
  background-color: #f0f7ff;
}

/* Cookie 偏好设置模态框 */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 12px;
}

.cookie-modal-header h2 {
  font-size: 18px;
  color: #111111;
  margin: 0;
}

.cookie-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #888888;
  cursor: pointer;
}
.cookie-close-btn:hover {
  color: #111111;
}

.cookie-modal-body {
  padding: 20px 0;
}

.cookie-option {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e9ecef;
}

.cookie-option:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.option-header label {
  font-size: 14px;
  color: #222222;
}

.cookie-option p {
  font-size: 12px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e9ecef;
  padding-top: 16px;
}
